/* ==========================================================================
   Pozuelo Lock · Cerrajeros Pozuelo de Alarcón
   Estilo: Premium / Elegante — mobile-first (base 360px)
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-800: #13315C;
  --navy-900: #071a33;
  --gold: #C9A227;
  --gold-light: #E3C766;
  --gold-dark: #7F640F;   /* dorado accesible sobre fondos claros (AA) */
  --cream: #F7F3E9;
  --cream-200: #EFE8D6;
  --white: #FFFFFF;
  --stone: #8D99AE;
  --ink: #1B2333;
  --muted: #4E5A6E;      /* texto secundario AA sobre blanco/crema */
  --line: rgba(201, 162, 39, .45);

  --ff-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .5vw, 1.3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.85rem, 1.4rem + 2vw, 2.85rem);
  --fs-h1: clamp(2.15rem, 1.5rem + 3.4vw, 4rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, .8rem + 2vw, 2.5rem);

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-soft: 0 2px 6px rgba(11, 37, 69, .04), 0 18px 40px -18px rgba(11, 37, 69, .18);
  --shadow-hover: 0 4px 10px rgba(11, 37, 69, .06), 0 28px 60px -24px rgba(11, 37, 69, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 64px; /* barra inferior móvil */
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 600; line-height: 1.18; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: .75rem 1.25rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #E6EAF1; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-dark); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.section--navy .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.65; font-weight: 300; }
.section--navy .section-head p { color: #C9D1DE; }
.lead { font-size: var(--fs-lg); font-weight: 300; }

/* Separador de línea fina dorada */
.gold-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto; max-width: 320px; color: var(--gold); }
.gold-rule::before, .gold-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.gold-rule svg { width: 18px; height: 18px; flex: none; }
.divider { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

/* Enlaces con subrayado dorado animado */
.link-gold, .prose a, .footer a, .nav__link {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 2px;
}
.link-gold:hover, .prose a:hover, .footer a:hover, .nav__link:hover,
.link-gold:focus-visible, .prose a:focus-visible, .footer a:focus-visible, .nav__link:focus-visible { background-size: 100% 1px; }
.prose a { color: var(--gold-dark); background-size: 100% 1px; background-image: linear-gradient(var(--line), var(--line)); }
.prose a:hover { background-image: linear-gradient(var(--gold), var(--gold)); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.6rem; border-radius: var(--radius);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(201, 162, 39, .7); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(201, 162, 39, .28);
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
/* Nota: sin backdrop-filter en el header para no romper el menú móvil (position: fixed) */
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); transition: height .35s var(--ease); }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 37, 69, .35); }
.header.is-scrolled .header__inner { height: 60px; }
.header.is-scrolled .brand__logo { width: 38px; height: 38px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); min-width: 0; }
.brand__logo { width: 44px; height: 44px; flex: none; transition: width .35s var(--ease), height .35s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; }
.brand__tag { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.header__actions { display: flex; align-items: center; gap: .5rem; }
.header__phone { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--navy); text-decoration: none; cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); }

.nav-toggle { position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 18px; height: 1.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
  padding: 2rem var(--gutter) 6rem; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s linear .4s;
}
.header.is-scrolled .nav { inset-block-start: 60px; }
.nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
.nav__list { list-style: none; display: flex; flex-direction: column; }
.nav__list li { border-bottom: 1px solid rgba(201, 162, 39, .22); }
.nav__link { display: inline-block; padding: 1rem 0; font-family: var(--ff-serif); font-size: 1.4rem; color: var(--navy); }
.nav__link[aria-current="page"] { color: var(--gold-dark); }
.nav__cta { margin-top: 2rem; display: grid; gap: .75rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 860px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  color: var(--white);
  background: var(--navy);
}
.hero__media { position: absolute; inset: -12% 0 0 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 26, 51, .55) 0%, rgba(7, 26, 51, .35) 35%, rgba(7, 26, 51, .92) 100%),
    linear-gradient(90deg, rgba(11, 37, 69, .85) 0%, rgba(11, 37, 69, .2) 75%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 720px; }
.hero h1 { color: var(--white); font-size: var(--fs-h1); font-weight: 500; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero__sub { font-size: var(--fs-lg); font-weight: 300; color: #E3E8F0; max-width: 600px; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2.5rem; }
.hero__seals { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(201, 162, 39, .45); }
.seal { display: flex; align-items: center; gap: .7rem; font-size: var(--fs-xs); letter-spacing: .06em; color: #DDE3EC; line-height: 1.35; }
.seal i { color: var(--gold); font-size: 1.15rem; width: 1.3rem; text-align: center; }
.seal strong { display: block; color: var(--white); font-size: .95rem; letter-spacing: 0; font-weight: 700; }
.hero__key { display: none; }

/* Parallax sutil — CSS scroll-driven animations (con fallback JS mínimo) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media img { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes hero-parallax { from { transform: translateY(0) scale(1.02); } to { transform: translateY(12%) scale(1.06); } }

/* ==========================================================================
   Garantías
   ========================================================================== */
.guarantees { background: var(--cream); border-bottom: 1px solid rgba(201, 162, 39, .3); }
.guarantees__list { list-style: none; display: grid; grid-template-columns: 1fr; }
.guarantee { display: flex; gap: 1rem; align-items: flex-start; padding: 1.6rem 0; border-bottom: 1px solid rgba(201, 162, 39, .3); }
.guarantee:last-child { border-bottom: 0; }
.guarantee__icon { flex: none; width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); font-size: 1.1rem; }
.guarantee h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.guarantee p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   Servicios
   ========================================================================== */
.services__grid { list-style: none; display: grid; gap: 1.25rem; }
.service-card {
  position: relative; height: 100%; background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.75rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(11, 37, 69, .06);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  overflow: hidden;
}
.service-card::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--navy); font-size: 1.3rem; margin-bottom: 1.3rem; border: 1px solid rgba(201, 162, 39, .5); }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1rem; }
.service-card__list { list-style: none; font-size: var(--fs-xs); color: var(--muted); display: grid; gap: .35rem; letter-spacing: .02em; }
.service-card__list li::before { content: "—"; color: var(--gold-dark); margin-right: .5rem; }
.service-card--featured { background: var(--navy); color: #D5DCE7; border-color: var(--navy); }
.service-card--featured h3 { color: var(--white); }
.service-card--featured p, .service-card--featured .service-card__list { color: #C9D1DE; }
.service-card--featured .service-card__list li::before { color: var(--gold); }
.service-card--featured .service-card__icon { background: transparent; color: var(--gold); border-color: var(--gold); }
.service-card__tel { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold-light); font-weight: 700; text-decoration: none; margin-top: 1rem; }

/* Banda de imágenes */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; color: var(--white); font-family: var(--ff-serif); font-size: 1.1rem; background: linear-gradient(180deg, transparent, rgba(7, 26, 51, .85)); }

/* ==========================================================================
   Seguridad
   ========================================================================== */
.security__grid { display: grid; gap: 3rem; align-items: center; }
.security__media { position: relative; }
.security__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.security__frame { position: absolute; inset: 1.25rem -0.75rem -0.75rem 1.25rem; border: 1px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.security__media { isolation: isolate; }
.security__badge {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; max-width: 300px;
  background: var(--navy); color: var(--white); padding: 1.1rem 1.3rem; border-radius: var(--radius);
  border-left: 3px solid var(--gold); font-size: var(--fs-sm); line-height: 1.45; box-shadow: var(--shadow-soft);
}
.security__badge strong { display: block; font-family: var(--ff-serif); font-size: 1.25rem; color: var(--gold-light); font-weight: 500; }
.checklist { list-style: none; display: grid; gap: 1rem; margin: 1.75rem 0 2.25rem; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; align-items: start; }
.checklist i { color: var(--gold-dark); font-size: 1.1rem; margin-top: .3rem; }
.checklist strong { color: var(--navy); }
.lock-art { width: 84px; height: 126px; color: var(--gold); margin-bottom: 1.5rem; }

/* ==========================================================================
   Proceso
   ========================================================================== */
.steps { list-style: none; display: grid; gap: 2.5rem; counter-reset: step; }
.step { position: relative; padding-top: 1.25rem; }
.step__num { font-family: var(--ff-serif); font-size: 3.25rem; line-height: 1; color: var(--gold); font-weight: 500; font-style: italic; display: block; margin-bottom: .75rem; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 1px; background: var(--gold); }
.step h3 { color: var(--white); font-size: var(--fs-h3); }
.step p { color: #C9D1DE; font-size: var(--fs-sm); margin: 0; }

/* ==========================================================================
   Precios
   ========================================================================== */
.pricing { display: grid; gap: 2.5rem; }
.price-table { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: .5rem 1.5rem; border: 1px solid rgba(11, 37, 69, .06); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px dashed rgba(201, 162, 39, .45); }
.price-row:last-child { border-bottom: 0; }
.price-row dt { font-weight: 700; color: var(--navy); line-height: 1.4; }
.price-row dt span { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-top: .2rem; letter-spacing: .01em; }
.price-row dd { margin: 0; font-family: var(--ff-serif); font-size: 1.25rem; color: var(--navy); white-space: nowrap; text-align: right; }
.price-row dd small { display: block; font-family: var(--ff-sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.price-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1rem; margin-top: 1.5rem; }
.pricing__aside { background: var(--navy); color: #D5DCE7; border-radius: var(--radius-lg); padding: 2.25rem 1.75rem; position: relative; overflow: hidden; }
.pricing__aside h3 { color: var(--white); font-size: var(--fs-h3); }
.pricing__aside .btn { margin-top: .5rem; }
.pricing__aside svg.key-watermark { position: absolute; right: -40px; bottom: -10px; width: 260px; color: var(--gold); opacity: .18; pointer-events: none; }

/* ==========================================================================
   Zonas
   ========================================================================== */
.zones { display: grid; gap: 3rem; }
.zones__groups { display: grid; gap: 2rem; }
.zones__group h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.zones__group h3 i { color: var(--gold-dark); font-size: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { padding: .45rem 1rem; border: 1px solid rgba(201, 162, 39, .55); border-radius: 999px; font-size: var(--fs-sm); color: var(--navy); background: var(--white); transition: background-color .3s, color .3s; }
.chips li:hover { background: var(--navy); color: var(--white); }
.zones__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.zones__media p { font-size: var(--fs-sm); color: var(--muted); margin-top: 1.25rem; }

/* ==========================================================================
   Testimonios
   ========================================================================== */
.quotes { list-style: none; display: grid; gap: 1.5rem; }
.quote { margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--white); padding: 2.5rem 1.75rem 1.75rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); position: relative; border-top: 2px solid var(--gold); }
.quote::before { content: "\201C"; position: absolute; top: .25rem; right: 1.25rem; font-family: var(--ff-serif); font-size: 5.5rem; line-height: 1; color: var(--gold); opacity: .35; }
.quote blockquote { margin: 0 0 1.5rem; font-family: var(--ff-serif); font-style: italic; font-size: 1.1rem; line-height: 1.6; color: var(--navy); flex: 1; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid rgba(201, 162, 39, .35); padding-top: 1rem; }
.quote figcaption strong { display: block; color: var(--navy); letter-spacing: .02em; }
.stars { color: var(--gold-dark); font-size: .8rem; letter-spacing: .15em; margin-bottom: 1rem; }
.quotes-note { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin-top: 2rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 880px; margin-inline: auto; border-top: 1px solid rgba(201, 162, 39, .45); }
.faq__item { border-bottom: 1px solid rgba(201, 162, 39, .45); }
.faq__item h3 { margin: 0; font-size: inherit; }
.faq__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; text-align: left;
  background: none; border: 0; padding: 1.4rem 0; cursor: pointer;
  font-family: var(--ff-serif); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--navy); font-weight: 500; line-height: 1.4;
}
.faq__btn:hover { color: var(--gold-dark); }
.faq__icon { flex: none; width: 32px; height: 32px; border: 1px solid var(--gold); border-radius: 50%; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--gold-dark); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__panel { overflow: hidden; transition: height .4s var(--ease); }
.faq__panel[hidden] { display: none; }
.faq__panel-inner { padding: 0 0 1.5rem; color: var(--muted); max-width: 760px; }
.faq__panel-inner p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { display: grid; gap: 3rem; }
.contact__info { display: grid; gap: 1.5rem; align-content: start; }
.contact__list { list-style: none; display: grid; gap: 1.25rem; }
.contact__list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; }
.contact__list i { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-dark); }
.contact__list span { display: block; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list address { font-style: normal; color: var(--navy); font-weight: 700; text-decoration: none; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(11, 37, 69, .08); }
.map iframe { width: 100%; height: 300px; border: 0; filter: grayscale(.35) contrast(1.05); }
.map iframe[hidden] { display: none; }
.map__placeholder { min-height: 300px; display: grid; place-content: center; justify-items: center; gap: .75rem; text-align: center; padding: 2rem 1.5rem; background: var(--white); color: var(--muted); font-size: var(--fs-sm); }
.map__placeholder i { font-size: 1.8rem; color: var(--gold-dark); }
.map__placeholder p { max-width: 34ch; margin: 0; }
.map__placeholder[hidden] { display: none; }

.form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 2rem 1.4rem; border: 1px solid rgba(11, 37, 69, .06); }
.form h3 { font-size: var(--fs-h3); }
.form__grid { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.field .req { color: #9B2C2C; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border: 1px solid #C8CFDA; border-radius: var(--radius);
  background: #FCFBF8; transition: border-color .25s, box-shadow .25s; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .25); background: var(--white); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field__error { font-size: var(--fs-xs); color: #B42318; min-height: 0; }
.field__error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .3rem; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio label {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .6rem; text-align: center;
  border: 1px solid #C8CFDA; border-radius: var(--radius); cursor: pointer; font-size: var(--fs-sm); letter-spacing: .02em; text-transform: none; font-weight: 700; color: var(--navy);
  transition: border-color .25s, background-color .25s, color .25s;
}
.radio input:checked + label { border-color: var(--navy); background: var(--navy); color: var(--white); }
.radio input:checked + label i { color: var(--gold); }
.radio input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--navy); }
.form__status { margin-top: 1rem; font-size: var(--fs-sm); padding: .9rem 1rem; border-radius: var(--radius); }
.form__status:empty { display: none; }
.form__status.is-ok { background: #EEF6EE; color: #1E5B2A; border: 1px solid #A9D3B0; }
.form__status.is-error { background: #FDF0EF; color: #8A1C12; border: 1px solid #F0B8B2; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-900); color: #B9C3D3; padding: 4.5rem 0 2rem; font-size: var(--fs-sm); }
.footer__grid { display: grid; gap: 2.5rem; }
.footer .brand { color: var(--white); margin-bottom: 1.25rem; }
.footer .brand__tag { color: #A9B4C6; }
.footer h2 { font-size: 1.05rem; color: var(--white); letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { color: #D6DDE8; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__bottom { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(201, 162, 39, .3); display: flex; flex-direction: column; gap: .75rem; font-size: var(--fs-xs); color: #9AA6B8; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ==========================================================================
   Barra móvil / flotante / cookies
   ========================================================================== */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -8px 24px -12px rgba(11, 37, 69, .35); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 60px; padding-bottom: env(safe-area-inset-bottom); text-decoration: none; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.mobile-bar__call { background: var(--navy); color: var(--white); }
.mobile-bar__call i { color: var(--gold); }
.mobile-bar__mail { background: var(--gold); color: var(--navy); }
.float-cta { display: none; }

.cookie {
  position: fixed; left: .75rem; right: .75rem; bottom: 72px; z-index: 120;
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); border-top: 2px solid var(--gold);
  box-shadow: 0 20px 50px -15px rgba(7, 26, 51, .45); padding: 1.25rem 1.25rem 1.1rem; font-size: var(--fs-sm);
  transform: translateY(20px); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .45s var(--ease), visibility 0s linear .45s;
}
.cookie.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.cookie h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.cookie p { margin-bottom: 1rem; color: var(--muted); }
.cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie__actions .btn { min-height: 44px; padding: .6rem 1.1rem; flex: 1; }

/* ==========================================================================
   Páginas legales
   ========================================================================== */
.page-hero { background: var(--navy); color: #D5DCE7; padding: calc(var(--header-h) + 3.5rem) 0 3.5rem; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem); font-weight: 500; margin-bottom: .5rem; }
.page-hero p { margin: 0; color: #C9D1DE; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.25rem; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--gold); }
.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(201, 162, 39, .35); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #DCD5C3; padding: .65rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--cream); color: var(--navy); }
.placeholder { background: #FFF6D6; padding: 0 .25rem; border-radius: 3px; font-weight: 700; color: #5C4A0B; }

/* ==========================================================================
   Animaciones de aparición
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
main { overflow-x: clip; } /* evita scroll horizontal por animaciones/decoraciones (no rompe sticky) */
@media (min-width: 1100px) {
  .js .reveal--left { transform: translateX(-30px); }
  .js .reveal--right { transform: translateX(30px); }
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .float-cta { display: flex; flex-direction: column; gap: .6rem; position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90; }
  .float-cta a {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 1.25rem;
    box-shadow: 0 14px 30px -12px rgba(7, 26, 51, .55); transition: transform .3s var(--ease), background-color .3s;
    border: 1px solid var(--gold);
  }
  .float-cta a:hover { transform: translateY(-3px); }
  .float-cta__mail { background: var(--white); color: var(--navy); }
  .float-cta__call { background: var(--navy); color: var(--gold); }
  .cookie { left: 1.5rem; right: auto; bottom: 1.5rem; max-width: 440px; }

  .brand__name { font-size: 1.4rem; }
  .hero { align-items: center; padding-bottom: 5rem; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .hero__seals { grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.5rem 2.25rem; }

  .guarantees__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .guarantee:nth-last-child(2) { border-bottom: 0; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .zones__groups { grid-template-columns: 1fr 1fr; }
  .form { padding: 2.5rem 2.25rem; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .map iframe, .map__placeholder { height: 360px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Escritorio ≥ 1100px
   ========================================================================== */
@media (min-width: 1100px) {
  :root { --header-h: 88px; }
  .header.is-scrolled .header__inner { height: 66px; }
  .header.is-scrolled .nav { inset-block-start: auto; }
  .brand__logo { width: 50px; height: 50px; }
  .nav-toggle, .header__actions .icon-btn--tel { display: none; }
  .nav { position: static; transform: none; visibility: visible; padding: 0; background: none; overflow: visible; transition: none; }
  .nav__list { flex-direction: row; gap: clamp(1.1rem, -1.5rem + 2.6vw, 1.9rem); }
  .nav__list li { border: 0; }
  .nav__link { font-family: var(--ff-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: .3rem 0; }
  .nav__cta { display: none; }
  .header__phone {
    display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-weight: 700; letter-spacing: .04em;
    padding: .65rem 1.15rem; border: 1px solid var(--gold); border-radius: var(--radius); transition: background-color .3s, color .3s;
  }
  .header__phone i { color: var(--gold-dark); }
  .header__phone:hover { background: var(--navy); color: var(--white); }
  .header__phone:hover i { color: var(--gold); }
  .header__phone span { white-space: nowrap; line-height: 1.25; }
  .header__phone small { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1; }
  .header__phone:hover small { color: #C9D1DE; }

  .hero { min-height: min(100vh, 900px); }
  .hero__key { display: block; position: absolute; right: var(--gutter); bottom: 8%; width: 420px; color: var(--gold); opacity: .85; }
  .guarantees__list { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .guarantee { padding: 2.25rem 1.75rem; border-bottom: 0; border-right: 1px solid rgba(201, 162, 39, .3); flex-direction: column; }
  .guarantee:first-child { padding-left: 0; }
  .guarantee:last-child { border-right: 0; padding-right: 0; }
  .services__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .security__grid { grid-template-columns: 5fr 6fr; gap: 5.5rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .pricing { grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
  .pricing__aside { position: sticky; top: 110px; padding: 2.75rem 2.25rem; }
  .zones { grid-template-columns: 1.25fr 1fr; gap: 4.5rem; align-items: center; }
  .quotes { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr 1.25fr; gap: 4rem; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
}

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none !important; }
}

@media print {
  .header, .mobile-bar, .float-cta, .cookie, .map { display: none !important; }
  body { padding: 0; }
}

/* Textos largos (email) sin desbordar en móvil */
.contact > *, .contact__list li > div, .footer__grid > * { min-width: 0; }
.contact__list a, .footer address a { overflow-wrap: anywhere; }

/* Ajustes pantallas estrechas (360–419px) */
.brand__tag { display: none; }
.eyebrow { letter-spacing: .16em; }
h1, h2, h3 { text-wrap: balance; }
@media (min-width: 420px) {
  .brand__tag { display: block; }
}
@media (min-width: 768px) {
  .eyebrow { letter-spacing: .22em; }
}
