/* ==========================================================================
   Ingrediente Secreto — Pastelería artesanal · Flores, CABA
   Design tokens: Stitch "Warm Artisanal Pâtisserie"
   Mobile first, medido a 375px.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Superficies */
  --surface:            #fff8f6;
  --surface-lowest:     #ffffff;
  --surface-low:        #fff1ec;
  --surface-container:  #ffe9e2;
  --surface-high:       #ffe2d8;
  --surface-highest:    #ffdbce;
  --surface-dim:        #f8d2c4;

  /* Texto */
  --on-surface:         #2a170f;
  --on-surface-variant: #54433e;
  --inverse-surface:    #422b22;
  --inverse-on-surface: #ffede7;

  /* Marca */
  --primary:            #914b34;
  --on-primary:         #ffffff;
  --primary-container:  #d48166;
  --on-primary-container:#551d09;
  --secondary:          #536251;
  --secondary-container:#d4e4ce;
  --tertiary:           #7a582f;
  --tertiary-container: #b88f62;

  /* Líneas */
  --outline:            #86736d;
  --outline-variant:    #d9c1bb;
  --hairline:           rgba(42, 23, 15, .08);

  /* Radios */
  --r-sm:   .25rem;
  --r:      .5rem;
  --r-md:   .75rem;
  --r-lg:   1rem;
  --r-xl:   1.5rem;
  --r-full: 9999px;

  /* Espaciado */
  --margin:   1.5rem;
  --gutter:   1rem;
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 3rem;

  /* Sombras cálidas */
  --shadow-1: 0 2px 8px -2px rgba(42,23,15,.06);
  --shadow-2: 0 12px 32px -4px rgba(42,23,15,.10), 0 4px 12px -2px rgba(42,23,15,.05);
  --shadow-3: 0 20px 44px -8px rgba(42,23,15,.16);

  /* Tipografía
     Fraunces en vez de Playfair: los ejes SOFT y WONK le dan a las letras una
     irregularidad hecha a mano que le queda al rubro. Playfair es la serif que
     usa todo el mundo y se nota. */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header-h: 62px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul  { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  margin: 0;
  font-weight: 600;
  /* SOFT redondea las terminaciones, WONK activa las formas irregulares */
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin: 0 0 var(--space-sm);
}

.section-title {
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -.01em;
  font-weight: 500;
  margin: 0 0 var(--space-sm);
}

.section-intro {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 var(--space-lg);
  max-width: 62ch;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

section { padding-block: 3.5rem; }
section:nth-of-type(even) { background: var(--surface-low); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-variant), transparent);
  border: 0;
  margin: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary-container);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: #bf6e54; box-shadow: var(--shadow-2); }

.btn-ghost {
  background: transparent;
  color: var(--on-surface);
  border: 1px solid var(--tertiary-container);
}

/* WhatsApp. Lo dibuja js/contenido.js solo si Sol cargó el número en el panel.
   Verde de la paleta (--secondary), no el verde de WhatsApp: se reconoce por
   el ícono y no le rompe el tono a la página. */
.btn-wa {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-wa:hover { background: #445142; box-shadow: var(--shadow-2); }
.btn-wa svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* En los dos lugares donde convive con el botón de Instagram, va debajo y
   con aire; en móvil los dos ocupan el ancho completo. */
[data-wa="boton"] { margin-top: .7rem; }
[data-wa="boton"] .btn { width: 100%; }
@media (min-width: 640px) {
  [data-wa="boton"] { display: inline-block; margin-top: 0; margin-left: .6rem; }
  [data-wa="boton"] .btn { width: auto; }
}
.btn-ghost:hover { background: var(--surface-container); }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 248, 246, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brand img {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  object-fit: cover;
  flex: none;
}
.brand-text { min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-tag {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  white-space: nowrap;
}

.nav-desktop { display: none; }

.header-cta { display: flex; align-items: center; gap: .5rem; }
.header-cta .btn { padding: 9px 16px; font-size: 13px; }
/* En mobile el botón del header queda solo con el ícono */
.header-cta .btn-texto { display: none; }

/* ---------- Hero ----------
   Composición asimétrica a propósito: el texto va alineado a la izquierda y
   las fotos reales arman un collage con el logo de sello encima. Nada
   centrado, sin fila de chips y sin renglón en itálica de otro color: esos
   tres juntos son la plantilla que se ve en todos lados.                   */
.hero {
  position: relative;
  padding-block: 2rem 3.25rem;
  background: radial-gradient(135% 105% at 85% 4%, var(--surface-high) 0%, var(--surface) 58%);
  overflow: hidden;
}

.hero-grid { display: grid; gap: 3.25rem; }

/* Renglón de datos, con una regla fina que se va al blanco */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 1.15rem;
  animation: rise .6s cubic-bezier(.2,.7,.3,1) both;
}
.hero-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--outline-variant), transparent);
}

.hero h1 {
  font-size: clamp(42px, 13vw, 56px);
  line-height: .97;
  letter-spacing: -.035em;
  font-weight: 600;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  margin-bottom: 1.15rem;
  text-wrap: balance;
  animation: rise .6s .07s cubic-bezier(.2,.7,.3,1) both;
}

.hero-lead {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--on-surface-variant);
  max-width: 41ch;
  margin: 0 0 1.85rem;
  animation: rise .6s .14s cubic-bezier(.2,.7,.3,1) both;
}
.hero-lead strong { color: var(--on-surface); font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  animation: rise .6s .21s cubic-bezier(.2,.7,.3,1) both;
}

/* Segunda acción como link de texto: dos botones iguales pesan lo mismo y
   ninguno gana. */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--outline-variant);
  transition: border-color .22s ease, gap .22s ease;
}
.hero-link:hover { border-color: var(--primary-container); gap: .7rem; }
.hero-link svg { width: 15px; height: 15px; flex: none; }

/* ---- Collage de fotos ---- */
.hero-collage {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  animation: rise .75s .28s cubic-bezier(.2,.7,.3,1) both;
}

.hero-foto {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-container);
  box-shadow: var(--shadow-3);
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-foto-a { aspect-ratio: 4 / 5; }

/* En mobile los desbordes van cortos: con -13% la foto quedaba pegada al
   borde de la pantalla y se comía el margen lateral. */
.hero-foto-b {
  position: absolute;
  left: -7%;
  bottom: -9%;
  width: 50%;
  aspect-ratio: 1;
  border: 6px solid var(--surface-lowest);
  border-radius: var(--r-lg);
  transform: rotate(-5deg);
}

.hero-sello {
  position: absolute;
  right: -5%;
  top: -6%;
  width: 35%;
  aspect-ratio: 1;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 4px solid var(--surface-lowest);
  box-shadow: var(--shadow-2);
  transform: rotate(7deg);
}
.hero-sello img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Franja de valores ---------- */
/* `section.valores` y no `.valores`: si no, `section:nth-of-type(even)` le gana
   por especificidad y la franja pierde el fondo oscuro. */
section.valores { background: var(--inverse-surface); color: var(--inverse-on-surface); padding-block: 1.6rem; }
.valores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem .9rem;
}
.valor { display: flex; align-items: flex-start; gap: .6rem; }
.valor svg { width: 19px; height: 19px; color: var(--tertiary-container); flex: none; margin-top: 2px; }
.valor-t { font-size: 13px; font-weight: 600; line-height: 1.3; }
.valor-d { font-size: 11.5px; line-height: 1.4; opacity: .74; margin-top: 2px; }

/* ---------- Filtros ---------- */
.filtros {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .6rem;
  margin-bottom: var(--space-lg);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filtros::-webkit-scrollbar { display: none; }

.filtro {
  flex: none;
  padding: 9px 17px;
  border-radius: var(--r-full);
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  white-space: nowrap;
  transition: all .18s ease;
}
.filtro:hover { border-color: var(--primary-container); color: var(--primary); }
.filtro[aria-pressed="true"] {
  background: var(--primary-container);
  border-color: var(--primary-container);
  color: #fff;
}

/* ---------- Catálogo ---------- */
.catalogo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.card {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .26s ease, box-shadow .26s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.card[hidden] { display: none; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-container);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-media img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 11px; left: 11px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(255,253,249,.94);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}

.card-body {
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: .55rem;
}
.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin: 0 0 .9rem;
}

.card-ingredientes {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.05rem;
}
.tag {
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 500;
  color: var(--tertiary);
}
.tag-sage { color: var(--secondary); background: var(--secondary-container); border-color: transparent; }

/* Lo pone js/contenido.js cuando Sol marca un producto como no disponible
   desde el panel (fuera de temporada, sin ingrediente, agenda llena). */
.tag-aviso {
  color: var(--primary);
  background: var(--surface-high);
  border-color: var(--outline-variant);
  font-weight: 600;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .85rem;
  border-top: 1px solid var(--hairline);
}
.card-precio-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--outline);
}
.card-precio {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
}
/* Aclaración opcional del precio ("por 12 porciones"), solo si Sol la carga. */
.card-precio-nota {
  font-size: 11px;
  color: var(--on-surface-variant);
  margin-top: 1px;
}
.card-foot .btn { padding: 9px 17px; font-size: 12.5px; }

.catalogo-nota {
  margin-top: var(--space-lg);
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--surface-container);
  border: 1px solid var(--hairline);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  display: flex;
  gap: .7rem;
}
.catalogo-nota svg { width: 18px; height: 18px; color: var(--primary-container); flex: none; margin-top: 1px; }

/* ---------- Pasos ---------- */
.pasos {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  counter-reset: paso;
}
.paso {
  position: relative;
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem 1.35rem;
  transition: box-shadow .22s ease;
}
.paso:hover { box-shadow: var(--shadow-2); }
.paso::before {
  counter-increment: paso;
  content: "0" counter(paso);
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--surface-highest);
  line-height: 1;
}
.paso-icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--surface-high);
  margin-bottom: .85rem;
}
.paso-icon svg { width: 20px; height: 20px; color: var(--primary); }
.paso h3 { font-size: 19px; margin-bottom: .45rem; }
.paso p { font-size: 14px; line-height: 1.6; color: var(--on-surface-variant); margin: 0; }

/* ---------- Sobre Sol ---------- */
.sobre-grid { display: grid; gap: var(--space-lg); }

.sobre-cita {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
  color: var(--primary);
  padding-left: 1.1rem;
  border-left: 3px solid var(--primary-container);
  margin: 0 0 var(--space-md);
}
.sobre-texto p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--on-surface-variant);
  margin: 0 0 .9rem;
}
.sobre-foto {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 1;
}
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ubicación ---------- */
.ubic-card {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-1);
}
.ubic-zona {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}
.ubic-zona svg { width: 26px; height: 26px; color: var(--primary-container); flex: none; }
.ubic-zona strong { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; line-height: 1.2; }
.ubic-zona span { font-size: 13px; color: var(--on-surface-variant); }

.ubic-lista { display: grid; gap: .7rem; margin-bottom: 1.25rem; }
.ubic-item { display: flex; gap: .6rem; font-size: 14px; line-height: 1.55; color: var(--on-surface-variant); }
.ubic-item svg { width: 16px; height: 16px; color: var(--secondary); flex: none; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .65rem; max-width: 860px; }
.faq details {
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary {
  padding: 1.05rem 1.15rem;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  margin-top: 6px;
  border-right: 2px solid var(--primary-container);
  border-bottom: 2px solid var(--primary-container);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-body {
  padding: 0 1.15rem 1.15rem;
  font-size: 14px;
  line-height: 1.68;
  color: var(--on-surface-variant);
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  text-align: center;
  border-radius: var(--r-xl);
  padding: 2.5rem 1.5rem;
  margin-block: 0;
}
.cta-final h2 { font-size: 27px; line-height: 1.24; margin-bottom: .7rem; }
.cta-final p { font-size: 15px; line-height: 1.6; opacity: .82; max-width: 44ch; margin: 0 auto 1.5rem; }

/* ---------- Formulario de pedido ---------- */

.pedido-form {
  margin-top: 2.5rem;
  background: var(--surface-lowest);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.25rem;
  box-shadow: var(--shadow-1);
}

.pedido-form-cabeza { margin-bottom: 1.4rem; }
.pedido-form-cabeza h3 { font-size: 21px; margin-bottom: .4rem; }
.pedido-form-cabeza p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 52ch;
}

.campos { display: grid; gap: .9rem; }

.campo-web > span,
.campo-web > span:first-child {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--on-surface-variant);
}
.campo-web em { font-style: normal; font-weight: 400; color: var(--outline); }

.campo-web input,
.campo-web select,
.campo-web textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  background: var(--surface-lowest);
  color: var(--on-surface);
  font: inherit;
  /* 16px o iOS hace zoom al enfocar y la pantalla pega un salto */
  font-size: 16px;
}
.campo-web textarea { resize: vertical; line-height: 1.5; min-height: 88px; }

.campo-web input:focus-visible,
.campo-web select:focus-visible,
.campo-web textarea:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 1px;
  border-color: var(--primary);
}

.contacto-fila { display: flex; gap: .5rem; }
.contacto-fila select { flex: 0 0 auto; width: auto; min-width: 116px; }
.contacto-fila input { flex: 1 1 auto; min-width: 0; }

@media (min-width: 640px) {
  .campos { grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
  .campo-ancho { grid-column: 1 / -1; }
  .pedido-form { padding: 2rem 1.75rem; }
}

/* 🚨 La trampa NO puede ser display:none ni visibility:hidden: los bots que
   valen algo saltean esos campos justamente por eso. Se saca de la pantalla
   con posición, que para el navegador sigue siendo un campo normal. */
.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pedido-aviso {
  margin: 1rem 0 0;
  padding: 10px 13px;
  border-radius: var(--r-md);
  background: #fdecea;
  color: #7d2718;
  border: 1px solid #f3c4bb;
  font-size: 13.5px;
  line-height: 1.45;
}

.pedido-form form > .btn { margin-top: 1.2rem; width: 100%; justify-content: center; }
@media (min-width: 640px) { .pedido-form form > .btn { width: auto; } }

.pedido-nota { margin-top: .8rem; font-size: 12.5px; color: var(--outline); }

.pedido-listo { text-align: center; padding: 1.5rem .5rem; }
.pedido-listo svg {
  width: 44px; height: 44px;
  color: var(--secondary);
  margin-bottom: .6rem;
}
.pedido-listo h3 { font-size: 22px; margin-bottom: .4rem; }
.pedido-listo p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 38ch;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-low);
  border-top: 1px solid var(--hairline);
  /* El aire de abajo es por el botón flotante, que va fijo arriba de todo:
     sin esto le tapa la última línea al pie. */
  padding-block: 2.5rem 5.5rem;
}
.footer-grid { display: grid; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.footer-brand img { width: 46px; height: 46px; border-radius: var(--r-full); object-fit: cover; }
.footer-brand strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.footer p { font-size: 13.5px; line-height: 1.65; color: var(--on-surface-variant); margin: 0 0 .9rem; }
.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}
.footer-links { display: grid; gap: .5rem; }
.footer-links a { font-size: 13.5px; color: var(--on-surface-variant); transition: color .16s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--outline);
}

.social {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  font-size: 13px;
  font-weight: 600;
  transition: all .18s ease;
}
.social:hover { border-color: var(--primary-container); color: var(--primary); }
.social svg { width: 16px; height: 16px; }

/* ---------- CTA flotante ---------- */
.fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 13px 20px;
  border-radius: var(--r-full);
  background: var(--primary-container);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-2);
  transform: translateY(120%);
  transition: transform .34s cubic-bezier(.2,.7,.3,1), background-color .2s;
}
.fab.visible { transform: none; }
.fab:hover { background: #bf6e54; }
.fab svg { width: 18px; height: 18px; flex: none; }

/* ---------- Revelado al scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* ==========================================================================
   Tablet — 600px+
   ========================================================================== */
@media (min-width: 600px) {
  .catalogo { grid-template-columns: repeat(2, 1fr); }
  .pasos    { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-collage { max-width: 360px; }
  .section-title { font-size: 34px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .cta-final { padding: 3.5rem 2.5rem; }
}

/* ==========================================================================
   Desktop — 1024px+
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --margin: 5rem; --gutter: 2.5rem; --header-h: 74px; }

  section { padding-block: 5.5rem; }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav-desktop a {
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
    position: relative;
    padding-block: 4px;
    transition: color .18s;
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--primary-container);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s cubic-bezier(.2,.7,.3,1);
  }
  .nav-desktop a:hover { color: var(--primary); }
  .nav-desktop a:hover::after { transform: scaleX(1); }

  .header-cta .btn-texto { display: inline; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 19px; }

  .hero { padding-block: 4.25rem 5.5rem; }
  .hero-grid {
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 5rem;
  }
  .hero h1 { font-size: clamp(56px, 5.2vw, 72px); line-height: .94; }
  .hero-lead { font-size: 18px; max-width: 38ch; }
  .hero-collage { max-width: 420px; margin-right: 2rem; }
  /* Con más lugar, el collage se abre y los desbordes vuelven a ser generosos */
  .hero-foto-b { left: -13%; bottom: -11%; width: 53%; }
  .hero-sello  { right: -11%; top: -7%; width: 37%; }

  .section-title { font-size: 40px; letter-spacing: -.015em; }
  .section-intro { font-size: 16px; }

  .catalogo { grid-template-columns: repeat(3, 1fr); }
  .pasos    { grid-template-columns: repeat(4, 1fr); }

  .sobre-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4rem; }
  .sobre-cita { font-size: 25px; }

  .ubic-card { padding: 2.25rem 2rem; }
  .cta-final h2 { font-size: 36px; }

  .fab { right: 2rem; bottom: 2rem; padding: 15px 24px; font-size: 14px; }
}

/* ==========================================================================
   Botones especiales
   - .btn-colorful  → gradiente borroso animado detrás (estilo kokonut UI),
                      con la paleta de la marca en vez del índigo/violeta.
   - .btn-particles → estallido de 6 partículas al hacer click.
   ========================================================================== */

/* ---------- Colorful ---------- */
.btn-colorful {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-1);
  isolation: isolate;
}

.btn-colorful .btn-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #914b34  0%,
    #d48166 18%,
    #f2c4ac 34%,
    #b88f62 52%,
    #d48166 70%,
    #8a3f28 100%
  );
  background-size: 220% 100%;
  filter: blur(10px);
  opacity: .6;
  transition: opacity .5s ease;
  animation: glowDeriva 7s ease-in-out infinite;
}

.btn-colorful:hover  { background: var(--primary); box-shadow: var(--shadow-2); }
.btn-colorful:hover .btn-glow { opacity: .95; }

.btn-colorful .btn-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-colorful .btn-label svg {
  width: 15px; height: 15px;
  flex: none;
  opacity: .9;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.btn-colorful:hover .btn-label svg { transform: translate(2px, -2px); }
/* Flecha horizontal (links internos): el empujón va solo hacia el costado */
.btn-colorful.hacia-derecha:hover .btn-label svg { transform: translateX(3px); }
/* Íconos que no son flecha (Instagram, chat): no se mueven */
.btn-colorful.sin-empuje:hover .btn-label svg { transform: none; }

@keyframes glowDeriva {
  0%, 100% { background-position:   0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* El FAB también lleva el glow.
   🚨 `position: fixed` repetido acá a propósito: `.btn-colorful` declara
   `position: relative` (lo necesita para el resplandor de atrás), tiene la
   misma especificidad que `.fab` y viene DESPUÉS en el archivo, así que le
   gana. Sin esta línea el botón deja de flotar y queda al final del
   documento, corrido 16px a la izquierda por su propio `right: 1rem`. */
.fab.btn-colorful {
  background: var(--primary);
  position: fixed;
}
.fab.btn-colorful .btn-label svg { width: 18px; height: 18px; }

/* ---------- Partículas ---------- */
.btn-particles { transition: transform .1s ease; }
.btn-particles.pressed { transform: scale(.95); }

.particula {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--primary-container);
  pointer-events: none;
  z-index: 200;
  will-change: transform, opacity;
  transform: scale(0);
  animation: particula .6s ease-out forwards;
}
.particula.clara { background: var(--tertiary-container); }

@keyframes particula {
  0%   { transform: translate(0, 0) scale(0);                                              opacity: 1; }
  50%  { transform: translate(calc(var(--dx) * .5), calc(var(--dy) * .5)) scale(1);        opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0);                              opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-colorful .btn-glow { animation: none; }
  .particula { display: none; }
  .btn-particles.pressed { transform: none; }
}
