/* ==========================================================================
   Araceli González — Refined editorial style
   Design system: teal + warm cream + discreet gold accent
   ========================================================================== */

:root {
  /* Core palette — teal ink */
  --accent:         #1B3A4B;
  --accent-ink:     #0B1F2A;
  --accent-dark:    #0F2530;
  --accent-mid:     #1F4559;
  --accent-light:   #2C5F7C;
  --accent-soft:    #8EAFC0;
  --accent-wash:    #E9EFF3;

  /* Warm surfaces */
  --surface-primary: #FCFAF7;
  --surface-warm:    #F5F0E8;
  --surface-cream:   #FBF6ED;
  --surface-deep:    #EFE7D9;

  /* Gold — used sparingly as editorial accent */
  --gold:       #BFA06A;
  --gold-soft:  #D9BE89;
  --gold-deep:  #8F7642;

  /* Foreground text */
  --fg-primary:         #14303E;
  --fg-secondary:       #566E79;
  --fg-muted:           #8398A2;
  --fg-inverse:         #FFFFFF;
  --fg-inverse-strong:  #F8F5EE;
  --fg-inverse-muted:   rgba(255, 255, 255, 0.72);
  --fg-inverse-soft:    rgba(255, 255, 255, 0.55);

  /* Borders */
  --hairline:     rgba(27, 58, 75, 0.08);
  --border-soft:  rgba(27, 58, 75, 0.14);
  --border-gold:  rgba(191, 160, 106, 0.35);
  --hairline-inv: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* Shadows — tinted with ink for warmth */
  --shadow-xs: 0 1px 2px rgba(20, 48, 62, 0.05);
  --shadow-sm: 0 2px 6px rgba(20, 48, 62, 0.05), 0 1px 2px rgba(20, 48, 62, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 48, 62, 0.08), 0 2px 6px rgba(20, 48, 62, 0.05);
  --shadow-lg: 0 20px 48px rgba(20, 48, 62, 0.12), 0 6px 16px rgba(20, 48, 62, 0.06);
  --shadow-xl: 0 32px 72px rgba(20, 48, 62, 0.18), 0 10px 24px rgba(20, 48, 62, 0.08);
  --shadow-gold: 0 10px 28px rgba(191, 160, 106, 0.28);

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --max-w: 1280px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --pad-y: clamp(4rem, 7vw, 7rem);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fg-primary);
  background: var(--surface-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

::selection {
  background: var(--accent);
  color: var(--fg-inverse-strong);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg-primary);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(2.125rem, 4.2vw, 3.125rem); }
h3 {
  font-size: 1.375rem;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--fg-secondary);
  text-transform: uppercase;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
}

.eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow-light { color: var(--fg-inverse-muted); }
.eyebrow-muted { color: var(--accent-soft); }

/* ==========================================================================
   Icons
   ========================================================================== */

.icon { flex-shrink: 0; }
.icon-28 { width: 28px; height: 28px; }
.icon-32 { width: 32px; height: 32px; }
.icon-40 { width: 40px; height: 40px; }

/* ==========================================================================
   Buttons / CTAs — unified system
   ========================================================================== */

.cta,
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.015em;
  border-radius: var(--r-md);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
  cursor: pointer;
  user-select: none;
}

.cta {
  align-self: flex-start;
  padding: 1.05rem 1.75rem;
  background: var(--surface-primary);
  color: var(--accent);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-md);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--fg-inverse);
}
.cta:active { transform: translateY(-1px); }

.cta .cta-arrow {
  width: 18px; height: 18px;
  transition: transform 0.35s var(--ease-out);
}
.cta:hover .cta-arrow { transform: translateX(4px); }

.nav-cta {
  padding: 0.6rem 1.125rem 0.6rem 1.25rem;
  background: var(--surface-primary);
  color: var(--accent);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
  gap: 0.5rem;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--fg-inverse);
}

.nav-cta .cta-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-out);
}
.nav-cta:hover .cta-arrow { transform: translateX(3px); }

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  height: 84px;
  transition:
    height 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.navbar.scrolled {
  height: 64px;
  background: rgba(27, 58, 75, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--hairline-inv);
  box-shadow: 0 10px 30px rgba(11, 31, 42, 0.22);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg-inverse);
  transition: font-size 0.3s var(--ease-out), letter-spacing 0.3s var(--ease-out);
}

.navbar.scrolled .logo {
  font-size: 1.25rem;
  letter-spacing: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-mid) 100%);
  color: var(--fg-inverse);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(191, 160, 106, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(142, 175, 192, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 4.5rem;
  align-items: center;
  padding: 4.5rem var(--pad-x) 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-copy h1 {
  color: var(--fg-inverse);
  line-height: 1.05;
  font-weight: 700;
  max-width: 14ch;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--fg-inverse);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--fg-inverse-muted);
  max-width: 46ch;
  font-weight: 300;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--border-gold);
  border-radius: var(--r-md);
  pointer-events: none;
  z-index: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-image: url("images/hero.jpg");
  background-image: image-set(
    url("images/hero.avif") type("image/avif"),
    url("images/hero.webp") type("image/webp"),
    url("images/hero.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  z-index: 1;
}

/* ==========================================================================
   Section heads
   ========================================================================== */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.section-head h2 { margin-top: 0.25rem; }

.section-head-light h2 { color: var(--fg-inverse); }

.section-lead {
  font-size: 1.0625rem;
  color: var(--fg-secondary);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto;
}

.section-head-light .section-lead { color: var(--fg-inverse-muted); }

/* ==========================================================================
   Areas
   ========================================================================== */

.areas {
  background: var(--surface-primary);
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.area-card {
  position: relative;
  background: var(--fg-inverse);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 2.25rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  color: var(--accent);
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  overflow: hidden;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-soft);
}

.area-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-wash);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.area-card:hover .area-icon {
  background: var(--accent);
  color: var(--fg-inverse);
}

.area-card .icon-40 {
  width: 26px;
  height: 26px;
}

.area-card h3 {
  color: var(--fg-primary);
  font-weight: 700;
}

.area-card p {
  color: var(--fg-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--surface-warm);
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.about-media {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.about-media::before {
  content: '';
  position: absolute;
  inset: -20px 20px 20px -20px;
  border: 1px solid var(--border-gold);
  border-radius: var(--r-md);
  pointer-events: none;
  z-index: 0;
}

.about-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-image: url("images/araceli.jpg");
  background-image: image-set(
    url("images/araceli.avif") type("image/avif"),
    url("images/araceli.webp") type("image/webp"),
    url("images/araceli.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-copy h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.about-copy > p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fg-secondary);
  font-weight: 400;
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-top: 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface-primary);
  color: var(--accent);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.badge:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.badge .icon-28 {
  width: 22px;
  height: 22px;
  color: var(--gold-deep);
  flex-shrink: 0;
}

.badge span {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-primary);
  line-height: 1.3;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  position: relative;
  background: var(--accent);
  padding: var(--pad-y) var(--pad-x);
  color: var(--fg-inverse);
  overflow: hidden;
  isolation: isolate;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(191, 160, 106, 0.08), transparent 60%);
  z-index: -1;
}

.testimonials > .section-head,
.testimonials > .testimonials-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.testimonial {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-inv);
  border-radius: var(--r-md);
  padding: 2rem 1.875rem 1.875rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  backdrop-filter: blur(6px);
  transition:
    transform 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-soft);
  opacity: 0.5;
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(191, 160, 106, 0.28);
}

.icon-quote {
  display: none;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fg-inverse-strong);
  font-weight: 300;
  flex: 1;
}

.stars {
  display: flex;
  gap: 0.2rem;
  color: var(--gold);
  margin-top: auto;
}
.stars svg { width: 14px; height: 14px; }

.testimonial-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg-inverse);
  letter-spacing: -0.005em;
  margin-top: 0.5rem;
}

.testimonial-case {
  font-size: 0.75rem;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -0.25rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--surface-primary);
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--fg-inverse);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-soft);
}

.contact-card > .icon-32 {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--accent-wash);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.contact-card:hover > .icon-32 {
  background: var(--accent);
  color: var(--fg-inverse);
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.contact-card::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  background: currentColor;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.contact-card:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-primary);
  overflow-wrap: anywhere;
}

.contact-note {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 0.125rem;
}

/* Phone card — chip "Atención por WhatsApp" */
.contact-card-phone .contact-card-text {
  gap: 0.25rem;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.contact-chip svg {
  width: 11px;
  height: 11px;
}

.contact-chip-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #1EB955;
  border: 1px solid rgba(37, 211, 102, 0.35);
}

.contact-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-warm);
  display: block;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background: var(--surface-primary);
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  background: var(--fg-inverse);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.faq-item[open] {
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg-primary);
  line-height: 1.4;
  transition: color 0.2s var(--ease-out);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  background: currentColor;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item summary:hover { color: var(--accent); }

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin: 0;
}

.faq-item p a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(27, 58, 75, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.faq-item p a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--accent-dark);
  color: var(--fg-inverse);
  padding: 3rem calc(var(--pad-x) + 4.5rem) 2.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(280px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.footer > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--fg-inverse);
  letter-spacing: -0.005em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  position: relative;
  font-size: 0.8125rem;
  color: var(--accent-soft);
  transition: color 0.25s var(--ease-out);
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.footer-links a:hover { color: var(--fg-inverse); }
.footer-links a:hover::after { width: 100%; }

.footer-divider {
  border: 0;
  border-top: 1px solid var(--hairline-inv);
  margin: 1.75rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--fg-inverse-soft);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   WhatsApp FAB
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 58px;
  height: 58px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 22px rgba(37, 211, 102, 0.38),
    0 2px 6px rgba(37, 211, 102, 0.25);
  z-index: 90;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    opacity 0.3s var(--ease-out),
    visibility 0.3s var(--ease-out);
}

.whatsapp-fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.4);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  transform: scale(0.95);
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.5),
    0 4px 10px rgba(37, 211, 102, 0.3);
}
.whatsapp-fab:hover::before {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid var(--fg-inverse);
  outline-offset: 3px;
}
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.areas-grid .area-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }
.areas-grid .area-card:nth-child(1) { --i: 0; }
.areas-grid .area-card:nth-child(2) { --i: 1; }
.areas-grid .area-card:nth-child(3) { --i: 2; }
.areas-grid .area-card:nth-child(4) { --i: 3; }

.testimonials-grid .testimonial.reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.testimonials-grid .testimonial:nth-child(1) { --i: 0; }
.testimonials-grid .testimonial:nth-child(2) { --i: 1; }
.testimonials-grid .testimonial:nth-child(3) { --i: 2; }

.badges .badge.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.badges .badge:nth-child(1) { --i: 0; }
.badges .badge:nth-child(2) { --i: 1; }
.badges .badge:nth-child(3) { --i: 2; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Laptop / tablet grande */
@media (max-width: 1023px) {
  .hero-inner {
    grid-template-columns: 1fr minmax(300px, 400px);
    gap: 3rem;
  }

  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .about {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 3rem;
  }

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial:nth-child(3) { grid-column: 1 / -1; }
}

/* Tablet portrait / móvil grande */
@media (max-width: 899px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
  .hero-media {
    max-width: min(420px, 100%);
    justify-self: center;
  }
  .hero-copy h1 { max-width: 18ch; }

  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-media {
    max-width: min(420px, 100%);
    margin: 0 auto;
  }
  .about-copy { text-align: left; }
}

/* Móvil */
@media (max-width: 639px) {
  :root {
    --pad-x: 1.25rem;
    --pad-y: 4rem;
  }

  .navbar { height: 72px; }
  .navbar.scrolled { height: 58px; }
  .navbar-inner { gap: 1rem; }
  .logo { font-size: 1.25rem; }
  .navbar.scrolled .logo { font-size: 1.125rem; }
  .nav-cta {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
  }

  .hero-inner { gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-media { max-width: 100%; }
  .hero-media::before { inset: 14px -14px -14px 14px; }

  .about-media { max-width: 100%; }
  .about-media::before { inset: -14px 14px 14px -14px; }

  .areas-grid { grid-template-columns: 1fr; }
  .area-card { padding: 1.75rem 1.5rem 1.5rem; }

  .badges { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }

  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testimonial:nth-child(3) { grid-column: auto; }
  .testimonial { padding: 1.75rem 1.5rem 1.5rem; }

  .contact-row { grid-template-columns: 1fr; }
  .contact-map {
    order: 2;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .contact-card {
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }
  .contact-card > .icon-32 {
    width: 38px;
    height: 38px;
  }

  .footer {
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }
  .footer-links { flex-wrap: wrap; gap: 1.25rem; }

  .whatsapp-fab { width: 54px; height: 54px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* Móvil estrecho */
@media (max-width: 479px) {
  h1 { font-size: clamp(2rem, 8.5vw, 2.625rem); }
  .badges { grid-template-columns: 1fr; }
  .logo { font-size: 1.125rem; }
  .eyebrow { font-size: 0.6875rem; letter-spacing: 0.22em; }
  .eyebrow-rule { width: 20px; }
}
