/* ==========================================================
   Ana Faber Luxury — estilos del sitio (mobile-first).
   Requiere base.css (tokens, botones y formularios).
   ========================================================== */

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 243, .86);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(29, 26, 23, .4); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--cream); } }

.header-inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-crown { width: 30px; height: 23px; color: var(--gold); }
.brand-emblem { width: auto; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { white-space: nowrap; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.brand-tag { font-size: .625rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark); margin-top: 3px; }

.nav { order: 3; }
.header-cta { order: 2; margin-left: auto; }

.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 20px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 24px 40px -24px rgba(29, 26, 23, .35);
  display: none;
}
.menu.is-open { display: block; animation: drop .25s var(--ease); }
.menu a {
  display: block; padding: 14px 4px; font-size: 1.125rem; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu li:last-child a { border-bottom: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 480px) {
  .brand { gap: 8px; }
  .brand-emblem { height: 36px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: .5625rem; }
  .header-cta { padding-inline: 14px; font-size: .875rem; }
}
@media (max-width: 340px) { .brand-text { display: none; } }

@media (min-width: 960px) {
  .nav { order: 2; margin-left: auto; }
  .header-cta { order: 3; margin-left: 8px; }
  .nav-toggle { display: none; }
  .menu {
    position: static; display: flex; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .menu a { border: 0; padding: 10px 14px; font-size: .9375rem; border-radius: 999px; color: var(--ink-2); }
  .menu a:hover { color: var(--ink); background: rgba(29, 26, 23, .05); }
}

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  text-wrap: balance;
  margin: 0 0 14px; font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark);
}
.section-title {
  text-wrap: balance;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 5.5vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.02em;
}
.section-sub { color: var(--ink-2); margin: 14px 0 0; max-width: 46ch; }
.section-head { margin-bottom: 40px; }
/* Secciones de contenido centrado: encabezado centrado */
#servicios .section-head, #agenda .section-head, #preguntas .section-head { text-align: center; }
#servicios .section-sub, #agenda .section-sub { margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--ink); margin-top: 12px; }

.section { padding-block: 72px; }
.section-cream { background: var(--cream); }
.section-rose { background: var(--rose); }
@media (min-width: 960px) { .section { padding-block: 112px; } .section-head { margin-bottom: 56px; } }

/* ---------- Marcadores de imagen pendientes ---------- */
.ph {
  display: grid; place-items: center; align-content: center; gap: 10px; text-align: center;
  background: linear-gradient(150deg, #FBF5E6, var(--gold-soft));
  color: var(--gold-dark); border-radius: var(--radius-lg); font-size: .875rem; padding: 16px;
}
.ph svg { width: 44px; height: 34px; opacity: .7; }
.ph-rose { background: linear-gradient(150deg, var(--rose), var(--rose-deep)); }
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-card { aspect-ratio: 16 / 10; border-radius: 0; }

/* ---------- Portada ---------- */
.hero { background: var(--cream); padding: 32px 0 72px; overflow: hidden; }
.hero-inner { display: grid; gap: 36px; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 8.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 700;
}
.hero-title em { color: var(--gold-dark); font-style: normal; }
/* Texto grande con brillo metálico (el color plano queda de respaldo) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title em {
    background: linear-gradient(120deg, #B8902C 0%, #D9B44A 38%, #A47A22 62%, #C9A13F 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.hero-sub { margin: 20px 0 0; color: var(--ink-2); font-size: 1.125rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-media { margin: 0; position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold);
  border-radius: var(--radius-lg); z-index: 0;
}
.hero-media > * { position: relative; z-index: 1; }
.hero-media > img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; width: 100%; background: #E9ECEF; }
.hero-badge {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: var(--shadow); font-size: .8125rem; color: var(--ink-2);
}
.hero-badge img { width: auto; height: 34px; }
.hero-badge strong { display: block; color: var(--ink); font-size: .875rem; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 120px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 72px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------- Sobre mí ---------- */
.about-inner { display: grid; gap: 40px; }
.about-media { margin: 0; max-width: 460px; position: relative; }
.about-main { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; width: 100%; background: #E9ECEF; }
.about-second { display: none; }
@media (min-width: 900px) {
  .about-media { margin-bottom: 48px; }
  .about-second {
    display: block; position: absolute; right: -56px; bottom: -48px; width: 44%;
    aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 10%;
    border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow); background: #E9ECEF;
  }
}
.pillars { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.pillars span {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark);
  padding: 6px 12px; border: 1px solid var(--gold-soft); border-radius: 999px;
}
.about-copy > p:not(.eyebrow):not(.lead) { color: var(--ink-2); }
.credentials { display: grid; gap: 12px; margin: 24px 0 32px; }
.credentials li { display: flex; gap: 12px; align-items: flex-start; }
.credentials .icon { color: var(--gold); margin-top: 3px; }
@media (min-width: 900px) {
  .about-inner { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
}

/* ---------- Tratamientos ---------- */
.category + .category { margin-top: 64px; }
.category-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.category-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.category-title svg { width: 26px; height: 20px; color: var(--gold); margin-right: 8px; vertical-align: -1px; }
.category-desc { margin: 0; color: var(--ink-2); }

.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cards > .card { flex: 1 1 100%; }
@media (min-width: 640px) { .cards > .card { flex: 0 1 calc((100% - 20px) / 2); } }
@media (min-width: 1024px) { .cards { gap: 24px; } .cards > .card { flex-basis: calc((100% - 48px) / 3); } }

.card {
  display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -20px rgba(29, 26, 23, .22); } }
.card-media {
  display: grid; place-items: center; padding: 28px 0 4px;
  background: linear-gradient(180deg, var(--rose) 0, var(--rose) 50%, transparent 50%);
}
.card-media img, .card-media .ph {
  width: 136px; height: 136px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); box-shadow: 0 0 0 5px var(--white), 0 0 0 6px rgba(212, 175, 55, .35), 0 14px 30px -12px rgba(184, 144, 44, .6);
  padding: 0;
}
.card-body { text-align: center; align-items: center; }
.card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 0; }
.card-tags li { font-size: .8125rem; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-2); }
.card-meta { justify-content: center; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.card-desc { margin: 0; color: var(--ink-2); font-size: 1rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 8px; font-size: .9375rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.card-meta .price { color: var(--ink); font-weight: 600; }
.card-meta .icon { width: 17px; height: 17px; color: var(--gold); }
.card .btn { margin-top: 12px; width: 100%; }

/* Tarjetas por categoría (como en el flyer): foto, título, texto, lista y botón */
.cat-grid { display: grid; gap: 24px; }
.cat-card {
  display: grid; grid-template-rows: auto auto auto 1fr auto; row-gap: 14px;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  padding-bottom: 24px; border: 1px solid rgba(212, 175, 55, .18);
}
.cat-card > :not(.card-media) { margin-inline: 22px; }
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  /* Subgrid: cada fila (foto, título, texto, lista, botón) mide lo mismo en todas las tarjetas */
  @supports (grid-template-rows: subgrid) {
    .cat-card { grid-row: span 5; grid-template-rows: subgrid; }
  }
}
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); column-gap: 20px; } }
.cat-card .card-media img { width: 148px; height: 148px; }
.cat-title {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; text-align: center; text-wrap: balance;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2;
  padding-bottom: 14px; border-bottom: 1px solid var(--gold-soft); margin-top: 4px;
}
.cat-icon { width: 36px; height: 27px; color: var(--gold); flex: none; }
.cat-desc { margin-block: 0; color: var(--ink-2); font-size: .9375rem; text-align: center; }
.cat-card > .btn { align-self: end; }

.svc-list { display: grid; gap: 2px; margin-block: 0; align-content: start; }
.svc-list li { display: flex; }
.svc-list a, .svc-list span {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 40px; padding: 6px 8px; border-radius: 10px;
  text-decoration: none; font-size: 1rem; line-height: 1.3;
}
.svc-list a::before, .svc-list span::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F7E3A6, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 1px 2px rgba(184, 144, 44, .4);
}
.svc-list a::after {
  content: "›"; margin-left: auto; color: var(--gold-dark); font-size: 1.25rem; line-height: 1;
  opacity: .45; transition: opacity .2s, transform .2s var(--ease);
}
.svc-list a:hover { background: var(--gold-tint); }
.svc-list a:hover::after { opacity: 1; transform: translateX(2px); }

/* ---------- Agenda ---------- */
.agenda-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px 18px;
}
@media (min-width: 640px) { .agenda-card { padding: 36px 40px; } }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-title { font-family: var(--serif); font-size: 1.375rem; font-weight: 700; line-height: 1.15; margin-bottom: 18px; padding: 0; outline: none; }

.subgroup { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }


/* Opciones seleccionables (radio oculto + tarjeta) */
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s, background .2s, box-shadow .2s;
}
.option-box small { color: var(--ink-2); font-size: .8125rem; white-space: nowrap; }
.option:hover .option-box { border-color: var(--gold); }
.option input:checked + .option-box { border-color: var(--gold); background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold); }
.option input:focus-visible + .option-box { outline: 2px solid var(--gold-dark); outline-offset: 2px; }

.date-row {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px;
  margin-inline: -2px; scrollbar-width: thin;
}
.date-row .option { flex: 0 0 auto; scroll-snap-align: start; }
.date-row .option-box { flex-direction: column; justify-content: center; gap: 2px; width: 72px; min-height: 84px; padding: 10px 6px; text-align: center; }
.date-dow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.date-day { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.date-month { font-size: .75rem; color: var(--ink-2); }

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.time-grid .option-box { justify-content: center; min-height: 48px; padding: 10px; font-variant-numeric: tabular-nums; }

/* Barra de navegación: fija abajo mientras se recorre el paso (clave en celular) */
.agenda-nav {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; justify-content: space-between; gap: 12px;
  margin: 24px -18px -24px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
@media (min-width: 640px) { .agenda-nav { margin: 28px -40px -36px; padding: 16px 40px; } }
.agenda-nav #ag-siguiente { flex: 1; max-width: 260px; margin-left: auto; }

.success { text-align: center; padding: 16px 0; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-dark); }
.success-icon svg { width: 32px; height: 32px; }
.success p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }
.success-icon { animation: exito-pop .5s var(--ease); background: var(--gold-metal); color: var(--ink); box-shadow: 0 0 0 8px var(--gold-tint); }
@keyframes exito-pop { 0% { transform: scale(.4); opacity: .001; } 70% { transform: scale(1.08); } }
.ag-exito-detalle {
  display: grid; gap: 4px; padding: 18px; margin: 18px auto 22px; max-width: 380px; text-align: center;
  background: var(--white); border: 1px solid var(--gold-soft); border-radius: var(--radius); box-shadow: 0 14px 30px -22px rgba(29, 26, 23, .5);
}
.ag-exito-detalle strong { font-size: 1.125rem; }
.ag-exito-detalle .ag-ticket-marca { color: var(--gold-dark); }
.ag-exito-detalle > span { color: var(--ink-2); font-size: .9375rem; }
.ag-exito-cuando { color: var(--ink) !important; font-weight: 600; }
.ag-exito-cuando::first-letter { text-transform: uppercase; }
.ag-exito-wa-texto { font-size: .875rem; margin: 10px auto 4px !important; }
.ag-exito-wa-texto a { color: var(--gold-dark); font-weight: 700; }
.ag-codigo { font-size: .875rem; color: var(--ink-2); }
.ag-codigo b { letter-spacing: .08em; color: var(--ink); }
.success-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.success-acciones .btn { flex: 1 1 220px; max-width: 280px; }

/* Agenda: estados, categorías y servicios */
.ag-estado { padding: 8px 0; }
.ag-aviso { text-align: center; padding: 18px 8px; color: var(--ink-2); display: grid; gap: 12px; justify-items: center; }
.ag-aviso p { margin: 0; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ag-link {
  border: 0; background: none; padding: 6px 4px; min-height: 36px; cursor: pointer;
  font-weight: 700; font-size: .875rem; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; flex: none;
}
.ag-mes::first-letter { text-transform: uppercase; }

/* Progreso: "Paso 2 de 4 · Elige día y hora" + barra en 4 tramos */
.ag-progreso { margin-bottom: 18px; }
.ag-progreso-texto { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ag-progreso-texto span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.ag-progreso-texto strong { font-size: .9375rem; }
.ag-progreso-barra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ag-progreso-barra li { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.ag-progreso-barra li::after { content: ""; position: absolute; inset: 0; background: var(--gold-metal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.ag-progreso-barra li.is-done::after, .ag-progreso-barra li.is-current::after { transform: scaleX(1); }

/* Lo ya elegido */
.ag-migas { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 18px; }
.ag-miga {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 6px 10px 6px 12px;
  border-radius: 999px; border: 1px solid var(--gold-soft); background: var(--gold-tint); cursor: pointer;
  font-size: .8125rem; font-weight: 600; color: var(--ink); text-align: left;
}
.ag-miga span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-miga span::first-letter { text-transform: uppercase; }
.ag-miga-icono { width: 14px; height: 14px; flex: none; color: var(--gold-deep); transform: rotate(-45deg); transition: transform .2s var(--ease); }
.ag-miga:hover { border-color: var(--gold); }
.ag-miga:hover .ag-miga-icono { transform: rotate(0); }

.step-sub { margin: -10px 0 16px; color: var(--ink-2); font-size: .9375rem; }
.step-entra { animation: paso-entra .35s var(--ease); }
.step-vuelve { animation: paso-vuelve .35s var(--ease); }
@keyframes paso-entra { from { opacity: .001; transform: translateX(16px); } }
@keyframes paso-vuelve { from { opacity: .001; transform: translateX(-16px); } }

/* Paso 1: categorías con foto y servicios */
.ag-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 720px) { .ag-cats { grid-template-columns: repeat(4, 1fr); } }
.ag-cat {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); line-height: 1.25;
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.ag-cat-foto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--gold-soft); transition: box-shadow .2s; }
.ag-cat-icon { width: 30px; height: 23px; color: var(--gold); margin-bottom: 6px; }
.ag-cat-nombre { font-weight: 700; font-size: .875rem; color: var(--ink); }
.ag-cat-cuenta { font-size: .75rem; color: var(--ink-2); }
.ag-cat:hover { border-color: var(--gold); transform: translateY(-1px); }
.ag-cat[aria-pressed="true"] { border-color: var(--gold-deep); background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold), 0 10px 22px -16px rgba(184, 144, 44, .9); }
.ag-cat[aria-pressed="true"] .ag-cat-foto { box-shadow: 0 0 0 2px var(--gold-deep); }

.ag-servicios { display: grid; gap: 8px; }
@media (min-width: 640px) { .ag-servicios { grid-template-columns: 1fr 1fr; } }
.ag-servicio {
  width: 100%; height: 100%; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; align-items: center;
  min-height: 68px; padding: 14px 16px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.ag-servicio-nombre { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.ag-servicio-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .8125rem; color: var(--ink-2); }
.ag-servicio-duracion { display: inline-flex; align-items: center; gap: 4px; }
.ag-servicio-precio { font-weight: 700; color: var(--ink); }
.ag-servicio-incluye { font-size: .75rem; color: var(--ink-2); line-height: 1.4; }
.ag-servicio > :not(.ag-servicio-flecha) { grid-column: 1; }
.ag-mini-icono { width: 14px; height: 14px; color: var(--gold-deep); flex: none; }
.ag-servicio-flecha { grid-row: 1 / span 3; grid-column: 2; width: 18px; height: 18px; color: var(--gold-deep); transition: transform .2s var(--ease); }
.ag-servicio:hover { border-color: var(--gold); background: var(--gold-tint); }
.ag-servicio:hover .ag-servicio-flecha { transform: translateX(3px); }
.ag-servicio:active { transform: scale(.99); }
.ag-servicio[aria-pressed="true"] { border-color: var(--gold-deep); background: var(--gold-tint); }

/* Paso 2: fechas y horas */
.ag-fechas-cabeza { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ag-fechas-cabeza .label { margin: 0; }
.ag-fechas-nav { display: none; gap: 6px; }
@media (hover: hover) and (min-width: 640px) { .ag-fechas-nav { display: flex; } }
.ag-flecha {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
}
.ag-flecha:hover { border-color: var(--gold); color: var(--ink); }
.ag-flecha .icon { width: 16px; height: 16px; }
#ag-fechas-ant .icon { transform: rotate(180deg); }
.date-row { scroll-behavior: smooth; }
.date-row .option.is-cercano .date-dow { color: var(--gold-dark); font-weight: 700; }
.ag-horas-titulo .label-hint { font-weight: 400; }
.ag-seleccion {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: #EEF7F1; color: #1F5B36; font-weight: 600; font-size: .9375rem; animation: aviso-sube .3s var(--ease);
}
.ag-seleccion[hidden] { display: none; }
.ag-seleccion span::first-letter { text-transform: uppercase; }
.ag-seleccion .ag-mini-icono { color: #2F8A52; width: 16px; height: 16px; }
@keyframes aviso-sube { from { opacity: .001; transform: translateY(4px); } }

/* "Continuar" se destaca cuando ya se puede avanzar */
#ag-siguiente.is-listo { animation: latido 1.6s var(--ease) 2; }
@keyframes latido { 0%, 100% { box-shadow: 0 10px 22px -12px rgba(184, 144, 44, .9); } 50% { box-shadow: 0 0 0 6px rgba(212, 175, 55, .25), 0 10px 22px -12px rgba(184, 144, 44, .9); } }

/* Paso 3: WhatsApp con indicativo */
.input-prefijo { position: relative; }
.input-prefijo span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-2); pointer-events: none; }
.input-prefijo .input { padding-left: 52px; }

/* Paso 4: tarjeta de la cita */
.ag-ticket { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-soft); box-shadow: 0 14px 30px -20px rgba(29, 26, 23, .4); }
.ag-ticket-cabeza {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; position: relative;
  background: linear-gradient(140deg, #1D1A17, #3A322A); color: var(--cream);
}
.ag-ticket-cabeza::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px;
  background: radial-gradient(circle at 5px 10px, var(--white) 5px, transparent 5.5px) 0 0 / 14px 10px repeat-x;
}
.ag-ticket-marca { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ag-ticket-servicio { font-size: 1.25rem; line-height: 1.25; }
.ag-ticket-cabeza > span:last-child { font-size: .875rem; color: #D8CFC4; }
.ag-ticket-cuerpo { background: var(--white); padding: 8px 18px; }
.ag-ticket-fila { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ag-ticket-fila:last-child { border-bottom: 0; }
.ag-ticket-fila > div { display: flex; flex-direction: column; min-width: 0; }
.ag-ticket-fila small { font-size: .75rem; color: var(--ink-2); }
.ag-ticket-fila strong { font-size: .9375rem; overflow-wrap: anywhere; }
.ag-ticket-fila strong::first-letter { text-transform: uppercase; }
.ag-ticket-icono { width: 20px; height: 20px; color: var(--gold-deep); }
.ag-nota-confirmar { margin-top: 14px; }

.date-row .option.is-lleno .option-box { opacity: .45; background: repeating-linear-gradient(135deg, #FAF7F3 0 6px, #F2ECE4 6px 12px); cursor: not-allowed; }
.option input:disabled { cursor: not-allowed; }

.skeleton { display: block; border-radius: var(--radius-sm); background: linear-gradient(90deg, #F3EEE7 25%, #FBF8F4 50%, #F3EEE7 75%) 0 0 / 200% 100%; animation: brillo-carga 1.2s linear infinite; }
.skeleton-fecha { flex: 0 0 72px; height: 84px; }
.skeleton-horas { height: 120px; width: 100%; }
@keyframes brillo-carga { to { background-position: -200% 0; } }


/* ---------- Preguntas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-family: var(--serif); font-size: 1.0625rem; font-weight: 700; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 1.6px solid var(--gold-dark); border-bottom: 1.6px solid var(--gold-dark);
  transform: rotate(45deg) translateY(-4px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-body { padding: 0 4px 22px; color: var(--ink-2); }
.faq-body p:last-child { margin: 0; }

/* ---------- Contacto ---------- */
.contact-inner { display: grid; gap: 40px; }
.contact-list { display: grid; gap: 22px; margin: 28px 0 32px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--gold); width: 22px; height: 22px; margin-top: 2px; }
.contact-list strong { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-dark); margin-bottom: 2px; }
.contact-list a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ig-links { display: flex; flex-direction: column; gap: 8px; }
.ig-links a { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 44px; justify-content: center; }
.ig-links small { color: var(--ink-2); font-size: .8125rem; text-decoration: none; display: block; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; background: var(--gold-soft); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-fachada {
  height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .9) 0 70px, transparent 140px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(184, 144, 44, .12) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(184, 144, 44, .12) 38px 40px),
    linear-gradient(150deg, #FBF5E6, var(--gold-soft));
}
.map-pin { width: 44px; height: 44px; color: var(--gold-deep); filter: drop-shadow(0 6px 10px rgba(184, 144, 44, .35)); }
.map-direccion { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.map-direccion span { color: var(--ink-2); font-size: .9375rem; }
.map-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #D8CFC4; padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer-links { justify-content: center; }
.brand-footer { color: var(--cream); }
.footer-logo { width: 200px; height: auto; }
.brand-footer .brand-tag { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--cream); text-underline-offset: 3px; text-decoration-color: rgba(250, 247, 243, .35); min-height: 32px; display: inline-flex; align-items: center; }
.copyright { margin: 0; font-size: .875rem; }
.site-footer :focus-visible { outline-color: var(--gold); }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } .footer-inner { grid-template-columns: auto 1fr; align-items: center; justify-items: stretch; text-align: left; } .footer-links { justify-content: flex-end; } .copyright { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(31, 157, 85, .6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 899px) { .wa-float.is-oculto { opacity: 0; transform: scale(.6); pointer-events: none; } }
.wa-float { transition: transform .25s var(--ease), opacity .25s; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Páginas legales ---------- */
.legal { padding: 48px 0 96px; }
.legal h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 5vw, 2.4rem); line-height: 1.1; margin-bottom: 24px; }
.legal h2 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }

/* ---------- Portada con el logo ---------- */
.splash {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 32px var(--gutter) 28px; text-align: center; position: relative;
  background: radial-gradient(ellipse at 50% 40%, #FFFFFF 0%, var(--cream) 72%);
  overflow: hidden;
}
.splash-logo { position: relative; width: min(88vw, 540px); animation: logo-entra .6s var(--ease) both; }
.splash-logo::before {
  content: ""; position: absolute; left: 50%; top: 33.5%; width: 115%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, .22) 0%, rgba(212, 175, 55, 0) 60%); z-index: 0;
}
.splash-logo img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(184, 144, 44, .25)); }
.splash-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-mask: url("../img/logo-completo-640.webp") center / 100% 100% no-repeat;
  mask: url("../img/logo-completo-640.webp") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  animation: brillo 1s .3s ease-in-out both;
}
.splash-slogan { margin: 6px 0 0; font-size: clamp(1.15rem, 4.6vw, 1.5rem); font-style: italic; color: var(--gold-dark); }
.splash-pillars { margin: 0; max-width: 34ch; font-size: .6875rem; font-weight: 700; letter-spacing: .16em; line-height: 1.8; text-wrap: balance; text-transform: uppercase; color: var(--ink-2); }
.splash-down {
  margin-top: 18px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 44px; padding: 6px 12px; text-decoration: none; font-size: .8125rem; color: var(--ink-2);
}
/* 2 rebotes y quieto: una animación infinita impide que la página "termine de pintar" (Speed Index) */
.splash-down .icon { transform: rotate(90deg); color: var(--gold-dark); animation: rebote 1.6s ease-in-out 1s 2; }
/* Solo se anima transform: si el navegador no anima, todo se ve igual */
@keyframes logo-entra { from { transform: scale(.94); } to { transform: none; } }
@keyframes brillo { from { background-position: -150% 0; } to { background-position: 250% 0; } }
@keyframes rebote { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 404 ---------- */
.pagina-404 { min-height: 100vh; min-height: 100svh; }
.pagina-404 .splash-logo { width: min(70vw, 360px); }
.pagina-404 p:last-child { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
