/* =====================================================
   FACE MODA PERÚ - Hoja de estilos
   Índice:
   1.  Variables y reset
   2.  Utilidades, botones y cuadros de imagen (.ph)
   3.  Cabecera / navegación
   4.  Hero
   5.  Marquesina y cifras
   6.  Secciones y servicios
   7.  Catálogo
   8.  Proceso
   9.  Nosotros
   10. Preguntas frecuentes (FAQ)
   11. Llamado final (CTA)
   12. Contacto y mapa
   13. Footer, modal y botón flotante
   14. Animaciones
   15. Responsive
   16. Legal: footer, aviso de cookies y contenido bloqueado
   ===================================================== */

/* ---------- 1. Variables y reset ---------- */
:root {
  --purple-900: #1c1450;
  --purple-800: #2b1b6b;
  --purple-700: #3b2a8f;
  --purple-500: #6c5ce0;
  --lilac-100: #f1edfb;
  --lilac-200: #e4ddf6;
  --gold: #b8923a;
  --gold-light: #d9b865;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;

  --bg: #fcfaf7;
  --white: #ffffff;
  --ink: #1f1a3d;
  --ink-soft: #5f5b76;
  --line: #e9e4f3;

  --font-body: "Montserrat", system-ui, sans-serif;
  --font-title: "Playfair Display", Georgia, serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(43, 27, 107, 0.08);
  --shadow: 0 18px 45px rgba(43, 27, 107, 0.14);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }
em { font-style: italic; color: var(--gold); }

/* ---------- 2. Utilidades, botones y cuadros de imagen ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--gold-light); }

.pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--lilac-200);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--purple-700);
  box-shadow: var(--shadow-sm);
}

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; fill: none; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 0.92rem var(--font-body);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--sm { padding: 0.6rem 1.3rem; font-size: 0.84rem; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--purple-700); color: #fff; box-shadow: 0 10px 24px rgba(59, 42, 143, 0.3); }
.btn--primary:hover { background: var(--purple-800); box-shadow: 0 14px 30px rgba(59, 42, 143, 0.4); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }

.btn--gold { background: var(--gold-light); color: var(--purple-900); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.btn--gold:hover { background: #e6c981; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple-700);
  transition: gap 0.25s, color 0.25s;
}
.link-arrow:hover { gap: 0.9rem; color: var(--gold); }

/* Cuadro de imagen (boceto): se reemplaza luego por <img> */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  min-height: 140px;
  padding: 1rem;
  text-align: center;
  color: var(--purple-700);
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(59, 42, 143, 0.05) 18px 19px),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(59, 42, 143, 0.05) 18px 19px),
    var(--lilac-100);
  border: 2px dashed rgba(59, 42, 143, 0.35);
  border-radius: inherit;
}
.ph__icon { width: 38px; height: 38px; opacity: 0.7; }
.ph strong { font-size: 0.78rem; letter-spacing: 0.12em; }
.ph span { font-size: 0.8rem; color: var(--ink-soft); max-width: 260px; }
.ph small { font-size: 0.72rem; font-weight: 600; color: var(--gold); }

/* ---------- 3. Cabecera / navegación ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(252, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__logo { height: 54px; width: auto; object-fit: contain; }
.brand__name { font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; color: var(--purple-800); }
.brand__name strong { color: var(--gold); font-weight: 700; }
.brand--light .brand__name { color: #fff; }
/* En el footer (fondo oscuro) el logo morado va sobre un fondo blanco */
.brand--light .brand__logo { height: 58px; padding: 6px 8px; border-radius: 14px; background: #fff; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav__link:hover { color: var(--purple-800); }
.nav__link:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--purple-800); border-radius: 3px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(108, 92, 224, 0.18), transparent 55%),
    radial-gradient(ellipse at 5% 90%, rgba(184, 146, 58, 0.14), transparent 50%),
    var(--bg);
}
/* Patrón de acolchado (rombos) */
.hero__pattern {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 46px, rgba(59, 42, 143, 0.06) 46px 47px),
    repeating-linear-gradient(-45deg, transparent 0 46px, rgba(59, 42, 143, 0.06) 46px 47px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
          mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.hero__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  color: var(--purple-900);
  margin-bottom: 1.4rem;
}
.hero__text { max-width: 520px; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 2.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.hero__trust li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; font-weight: 600; color: var(--purple-700); }
.hero__trust .icon { color: var(--gold); }

.hero__visual { position: relative; padding: 0 0 1.5rem 1.5rem; }
.hero__frame {
  position: absolute;
  top: -1.2rem; right: -1.2rem; bottom: 2.7rem; left: 2.7rem;
  border: 2px solid var(--gold-light);
  border-radius: 28px;
}
.ph--hero { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; box-shadow: var(--shadow); background-color: var(--lilac-100); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-card .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--lilac-100); color: var(--purple-700); box-sizing: content-box; }
.float-card strong { display: block; font-size: 0.85rem; line-height: 1.2; color: var(--purple-900); }
.float-card span { font-size: 0.74rem; color: var(--ink-soft); }
.float-card--top { top: 2rem; left: -1rem; }
.float-card--bottom { bottom: 0; right: -0.5rem; animation-delay: -2.5s; }
.float-card--bottom .icon { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp-dark); }

/* ---------- 5. Marquesina y cifras ---------- */
.marquee { overflow: hidden; background: var(--purple-800); color: #fff; padding: 1.1rem 0; }
.marquee__track { display: flex; width: max-content; gap: 2rem; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-title); font-size: 1.15rem; font-style: italic; white-space: nowrap; }
.marquee i { color: var(--gold-light); font-style: normal; font-size: 0.7rem; align-self: center; }

.stats { padding: 4rem 0 1rem; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-title); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; color: var(--purple-700); }
.stat span { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- 6. Secciones y servicios ---------- */
.section { padding: 6.5rem 0; }
.section--tint { background: var(--lilac-100); }

.section__head { text-align: center; max-width: 660px; margin: 0 auto 3.5rem; }
.section__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--purple-900);
  margin-bottom: 0.9rem;
}
.section__title--light { color: #fff; }
.section__subtitle { color: var(--ink-soft); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.service .ph { border-radius: 0; border-width: 0 0 2px; min-height: 200px; flex: 1; }
.service__body { position: relative; padding: 1.8rem; }
.service__num { position: absolute; top: 1.2rem; right: 1.5rem; font-family: var(--font-title); font-size: 2rem; font-weight: 600; color: var(--lilac-200); }
.service h3 { padding-right: 2.5rem; font-family: var(--font-title); font-size: 1.35rem; font-weight: 600; color: var(--purple-900); margin-bottom: 0.6rem; }
.service p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 1.2rem; }

.service--lg { grid-column: span 2; flex-direction: row; }
.service--lg .ph { flex: 1.1; border-width: 0 2px 0 0; }
.service--lg .service__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2.2rem; }

.service--wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
.service--wide .service__body { flex: 1.1; display: flex; flex-direction: column; justify-content: center; padding: 2.2rem; }
.service--wide .ph { flex: 0.9; min-height: 240px; border-width: 0 0 0 2px; }
.service--tech { background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); border-color: transparent; }
.service--tech h3, .service--tech strong { color: #fff; }
.service--tech p { color: rgba(255, 255, 255, 0.78); }
.service--tech .ph strong { color: var(--purple-700); }
.service--tech .ph span { color: var(--ink-soft); }
.service--tech .service__num { color: rgba(255, 255, 255, 0.14); }
.service--tech .link-arrow { color: var(--gold-light); }

/* ---------- 7. Catálogo ---------- */
.catalog {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(108, 92, 224, 0.5), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(184, 146, 58, 0.18), transparent 50%),
    linear-gradient(160deg, var(--purple-900), var(--purple-800) 60%, var(--purple-700));
}
.catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 46px, rgba(255, 255, 255, 0.04) 46px 47px),
    repeating-linear-gradient(-45deg, transparent 0 46px, rgba(255, 255, 255, 0.04) 46px 47px);
  pointer-events: none;
}
.catalog .container { position: relative; }
.catalog__top { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.catalog__text { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; max-width: 480px; margin-bottom: 1.6rem; }
.catalog__features { margin-bottom: 2.2rem; }
.catalog__features li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; font-weight: 500; }
.catalog__features .icon { color: var(--gold-light); }
.catalog__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.catalog__wa { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; color: #7ee6a3; }
.catalog__wa:hover { text-decoration: underline; }

/* Libro / portada */
.catalog__book { position: relative; width: min(520px, 92%); margin-inline: auto; aspect-ratio: 1400 / 788; perspective: 1400px; }
.book__page { position: absolute; inset: 0; border-radius: 6px 14px 14px 6px; background: #f6f2ea; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.book__page--back { transform: translate(18px, 18px) rotate(2.5deg); background: #e6dfd0; }
.book__page--mid { transform: translate(9px, 9px) rotate(1.2deg); }

.book__cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px 14px 14px 6px;
  background: var(--lilac-100);
  cursor: pointer;
  box-shadow: -6px 0 0 rgba(0, 0, 0, 0.2) inset, 0 30px 60px rgba(0, 0, 0, 0.45);
  transform: rotateY(-8deg);
  transform-origin: left center;
  transition: transform 0.5s ease;
}
.book__cover:hover { transform: rotateY(-2deg) translateY(-6px); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover .ph { border-radius: 0; }
.book__play {
  position: absolute;
  left: 50%; bottom: 1.4rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--purple-800);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.book__play .icon { fill: currentColor; width: 1em; height: 1em; }

/* ---------- 8. Proceso ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps::before {
  content: "";
  position: absolute;
  top: 30px; left: 12%; right: 12%;
  border-top: 2px dashed var(--lilac-200);
  border-color: rgba(59, 42, 143, 0.25);
}
.step { position: relative; text-align: center; padding: 0 0.5rem; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple-700);
  box-shadow: var(--shadow-sm);
}
.step h3 { font-family: var(--font-title); font-size: 1.25rem; color: var(--purple-900); margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 9. Nosotros ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: center; }
.about__visual { position: relative; padding: 0 1.5rem 1.5rem 0; }
.about__frame { position: absolute; top: 1.5rem; left: 1.5rem; right: 0; bottom: 0; border: 2px solid var(--gold-light); border-radius: 28px; }
.ph--about { position: relative; aspect-ratio: 9 / 11; border-radius: 28px; box-shadow: var(--shadow); }
.about__lead { font-size: 1.15rem; font-weight: 500; color: var(--purple-800); margin-bottom: 1rem; }
.about__content p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.about__content .about__lead { color: var(--purple-800); }
.checklist { margin-bottom: 2.2rem; }
.checklist li { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; font-weight: 500; }
.checklist .icon { width: 1.6em; height: 1.6em; padding: 0.3em; border-radius: 50%; background: var(--lilac-100); color: var(--purple-700); }

/* ---------- 10. Preguntas frecuentes (FAQ) ---------- */
.faq { max-width: 820px; }
.faq__list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.9rem; transition: box-shadow 0.3s, border-color 0.3s; }
.faq__list details[open] { border-color: var(--gold-light); box-shadow: var(--shadow-sm); }
.faq__list summary {
  position: relative;
  padding: 1.2rem 3.5rem 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--purple-900);
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 11. Llamado final (CTA) ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 146, 58, 0.3), transparent 50%),
    linear-gradient(135deg, var(--purple-900), var(--purple-700));
}
/* Trama de logos pequeños: el logo (morado) se pinta en blanco translúcido con una máscara.
   Los <span> los crea main.js dentro de .cta__pattern. */
.cta__pattern {
  position: absolute;
  inset: -70px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 34px 46px;
  transform: rotate(-8deg);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 18%, #000 70%);
          mask-image: radial-gradient(ellipse at center, transparent 18%, #000 70%);
}
.cta__pattern span {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.11);
  -webkit-mask: url("../img/logo-recortado.png") center / contain no-repeat;
          mask: url("../img/logo-recortado.png") center / contain no-repeat;
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 { font-family: var(--font-title); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.7rem; }
.cta p { color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* ---------- 12. Contacto y mapa ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
.form, .info { padding: 2.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form__group { margin-bottom: 1.2rem; }
.form__group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.85rem; }
.form__group input, .form__group select, .form__group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: 500 0.95rem var(--font-body);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(108, 92, 224, 0.15);
}
.form__error { color: #d93025; font-size: 0.85rem; margin-bottom: 1rem; }

.info__item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.info__icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--lilac-100); color: var(--purple-700); }
.info__label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--ink-soft); }
.info__value { display: block; font-weight: 600; color: var(--purple-900); }
a.info__value:hover { color: var(--gold); }
.info__note { font-size: 0.78rem; color: var(--ink-soft); }

.socials { display: flex; gap: 0.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.social { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--purple-700); color: #fff; transition: transform 0.25s, background 0.25s; }
.social .icon { width: 22px; height: 22px; }
.social:hover { background: var(--gold); transform: translateY(-4px); }

.map { margin-top: 2.5rem; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 380px; border: 0; }
.map__actions { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ---------- 13. Footer, modal y botón flotante ---------- */
.footer { background: var(--purple-900); color: rgba(255, 255, 255, 0.7); padding: 3.5rem 0 2.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.footer__brand p { margin-top: 0.6rem; font-size: 0.9rem; font-family: var(--font-title); font-style: italic; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; justify-content: flex-end; }
.footer__links a { font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.footer__links a:hover { color: var(--gold-light); }
.footer__copy { grid-column: 1 / -1; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; }

/* Ventana del catálogo */
.modal { margin: auto; width: min(1100px, 94vw); height: min(88vh, 820px); padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #111; }
.modal[open] { display: flex; flex-direction: column; animation: pop 0.3s ease; }
.modal::backdrop { background: rgba(20, 14, 55, 0.75); backdrop-filter: blur(4px); }
.modal__bar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.3rem; background: var(--purple-900); color: #fff; }
.modal__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.modal__close:hover { background: rgba(255, 255, 255, 0.3); }
.modal__frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* Botón flotante de WhatsApp */
.wa-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 110; display: flex; align-items: center; gap: 0.7rem; }
.wa-bubble {
  padding: 0.7rem 1.1rem;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-900);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}
.wa-bubble.is-visible { opacity: 1; transform: none; }
.wa-float {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  animation: pulse 2.4s infinite;
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float .icon { width: 34px; height: 34px; }

/* ---------- 14. Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease var(--d, 0s), transform 0.8s ease var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float, .float-card { animation: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner, .catalog__top, .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .about__visual { max-width: 440px; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .service--lg, .service--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.6rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 0.9rem 0; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 0.8rem; }

  .section { padding: 4.5rem 0; }
  .catalog { padding: 4.5rem 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .bento { grid-template-columns: 1fr; }
  .service--lg, .service--wide { grid-column: auto; flex-direction: column; }
  .service--lg .ph, .service--wide .ph { border-width: 0 0 2px; min-height: 200px; }
  .service--wide .ph { order: -1; }
  .float-card--top { left: 0; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand .brand { justify-content: center; }
  .footer__links { justify-content: center; }
  .wa-bubble { display: none; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 16. Legal: enlaces del footer, aviso de cookies y contenido bloqueado ---------- */
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__legal a, .footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  font: 500 0.82rem var(--font-body);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s;
}
.footer__legal a:hover, .footer__legal button:hover { color: var(--gold-light); }
.footer__legal + .footer__copy { padding-top: 0; border-top: 0; }

.form__note { margin-top: 0.9rem; font-size: 0.78rem; color: var(--ink-soft); text-align: center; }
.form__note a { color: var(--purple-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Botones extra */
.btn--outline { border-color: var(--purple-700); color: var(--purple-700); background: transparent; }
.btn--outline:hover { background: var(--lilac-100); }
.btn--text { color: var(--purple-700); background: transparent; padding-inline: 0.8rem; }
.btn--text:hover { color: var(--gold); transform: none; }

/* Aviso de cookies */
.cookie[hidden] { display: none; }
.cookie {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(460px, calc(100vw - 40px));
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: pop 0.35s ease;
}
.cookie__title { font-family: var(--font-title); font-size: 1.2rem; font-weight: 600; color: var(--purple-900); margin-bottom: 0.4rem; }
.cookie__text { font-size: 0.84rem; color: var(--ink-soft); }
.cookie__text a { color: var(--purple-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.cookie__panel { margin-top: 1rem; border-top: 1px solid var(--line); }
.cookie__option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cookie__option strong { display: block; font-size: 0.85rem; color: var(--purple-900); }
.cookie__option small { display: block; font-size: 0.76rem; color: var(--ink-soft); }
.cookie__option input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--purple-700); }

/* Contenido de terceros bloqueado hasta aceptar cookies */
.consent-placeholder[hidden] { display: none; }
.consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 380px;
  padding: 2rem;
  text-align: center;
  background: var(--lilac-100);
  color: var(--purple-800);
}
.consent-placeholder .icon { width: 36px; height: 36px; color: var(--purple-700); }
.consent-placeholder p { max-width: 440px; font-size: 0.9rem; color: var(--ink-soft); }
.consent-placeholder a { color: var(--purple-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.map iframe:not([src]) { display: none; }

/* Horario de atención */
.hours { margin-top: 0.4rem; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.25rem 0.6rem; border-radius: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.hours li.is-closed span:last-child { font-weight: 600; }
.hours li.is-today { background: var(--lilac-100); color: var(--purple-900); font-weight: 700; }
.info__hours { flex: 1; min-width: 0; }
.open-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: #fde8e6;
  color: #b3261e;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: none;
  vertical-align: middle;
}
.open-badge.is-open { background: rgba(37, 211, 102, 0.16); color: #12823b; }

@media (max-width: 768px) {
  .footer__legal { justify-content: center; }
  .cookie { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

/* ---------- 17. Ajustes para celular ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* El atributo hidden siempre debe ocultar, aunque la clase defina display */
[hidden] { display: none !important; }

/* Las columnas de grid nunca deben crecer más que la pantalla por su contenido (correo, horario...) */
.contact > *, .hero__inner > *, .catalog__top > *, .about > *, .footer__inner > * { min-width: 0; }
.info__item > div { min-width: 0; }
.info__value { overflow-wrap: anywhere; }

/* Sin efectos "hover" pegados en pantallas táctiles */
@media (hover: none) {
  .btn:hover, .service:hover, .social:hover { transform: none; }
}

@media (max-width: 1000px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  /* Menú desplegable: que se pueda desplazar en pantallas bajas o en horizontal */
  .nav { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav__link { width: 100%; text-align: center; }

  .hero { padding: calc(var(--header-h) + 2.2rem) 0 3.5rem; }
  .hero__inner { gap: 2.5rem; }
  .section__head { margin-bottom: 2.5rem; }
  .cta { padding: 4rem 0; }
  .stats { padding-top: 2.5rem; }

  /* Tarjetas de contacto con menos relleno para que quepa el horario */
  .form, .info { padding: 1.4rem 1.1rem; }
  .hours li { gap: 0.8rem; padding: 0.3rem 0.5rem; font-size: 0.82rem; }
  .map iframe, .consent-placeholder { height: 300px; min-height: 300px; }

  /* Catálogo en pantalla completa */
  .modal { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }

  /* Aviso de cookies: no ocupar toda la pantalla */
  .cookie { max-height: 80vh; max-height: 80dvh; overflow-y: auto; }

  /* Botón flotante de WhatsApp un poco más pequeño */
  .wa-wrap { right: 14px; bottom: 14px; }
  .wa-float { width: 56px; height: 56px; }

  /* Enlaces del pie más fáciles de tocar */
  .footer__legal a, .footer__legal button, .footer__links a { padding: 0.45rem 0.2rem; }
  .footer__legal { gap: 0.1rem 1rem; }
}

@media (max-width: 480px) {
  /* iOS hace zoom al tocar un campo con letra menor a 16px */
  .form__group input, .form__group select, .form__group textarea { font-size: 16px; }

  .btn { min-height: 46px; }
  .hero__actions .btn, .catalog__actions .btn, .map__actions .btn { width: 100%; }
  .cta .btn--lg { width: 100%; padding-inline: 1rem; }
  .float-card { padding: 0.65rem 0.9rem; }
  .float-card--bottom { right: 0; }
  .brand__name { font-size: 1.15rem; }
  .brand__logo { height: 46px; }
  .cookie__actions .btn { flex: 1 1 auto; }
  .info__value[href^="mailto"] { font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .info__value[href^="mailto"] { font-size: 0.82rem; }
  .brand__name { font-size: 1rem; }
}
