/* ==========================================================================
   Iglesias & Asociados — Estudio Jurídico
   Premium law-firm landing. White-dominant, deep navy, subtle gold.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --white:      #ffffff;
  --bg:         #ffffff;
  --bg-soft:    #f5f6f8;      /* light gray */
  --bg-soft-2:  #eef0f3;
  --navy:       #0e2038;      /* deep navy */
  --navy-2:     #0a1729;      /* darker navy */
  --navy-3:     #15304f;      /* lighter navy for accents */
  --ink:        #10151d;      /* near-black titles */
  --text:       #3b434f;      /* body */
  --muted:      #6b7480;      /* secondary text */
  --gold:       #c2a15a;      /* subtle gold */
  --gold-soft:  #d8c087;
  --line:       rgba(14, 32, 56, 0.12);
  --line-soft:  rgba(14, 32, 56, 0.07);
  --whatsapp:   #25d366;
  --whatsapp-d: #1da851;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --radius:     16px;
  --radius-sm:  12px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 10px rgba(14, 32, 56, 0.05);
  --shadow:     0 14px 40px -18px rgba(14, 32, 56, 0.18);
  --shadow-lg:  0 30px 70px -30px rgba(14, 32, 56, 0.32);

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --nav-h:      76px;
  --maxw:       1200px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 2000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}
.section--soft { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}
.section-head.center .kicker { justify-content: center; }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--navy);
}

.section-intro {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.075rem;
  max-width: 60ch;
}
.section-head.center .section-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--navy-2);
}

.btn-wa {
  background: var(--whatsapp);
  color: #06381b;
  box-shadow: 0 14px 34px -14px rgba(37, 211, 102, 0.7);
}
.btn-wa:hover {
  transform: translateY(-3px);
  background: var(--whatsapp-d);
  color: #042d14;
  box-shadow: 0 22px 44px -16px rgba(37, 211, 102, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  background: rgba(14, 32, 56, 0.03);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.btn-lg { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 30px -22px rgba(14, 32, 56, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  transition: color 0.4s var(--ease);
}
.nav.scrolled .brand { color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--navy-3), var(--navy));
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a[aria-current="true"] { color: var(--gold); }
.nav.scrolled .nav-links a[aria-current="true"] { color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn {
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav.scrolled .nav-toggle { border-color: var(--line); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled .nav-toggle span,
.nav.scrolled .nav-toggle span::before,
.nav.scrolled .nav-toggle span::after { background: var(--ink); }
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem var(--gutter) 2rem;
  display: grid;
  gap: 0.35rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), visibility 0.4s;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  padding: 0.85rem 0.25rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 1rem; width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + clamp(0.5rem, 2.4svh, 3rem)) clamp(0.85rem, 3svh, 3.25rem);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(115% 85% at 82% 6%, rgba(32, 66, 108, 0.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 6% 106%, rgba(8, 18, 33, 0.92) 0%, transparent 62%),
    linear-gradient(158deg, #103058 0%, #0c1e38 44%, #081426 100%);
}
/* Soft luminous glow behind the main content — creates hierarchy */
.hero::before {
  content: "";
  position: absolute;
  left: 3%;
  top: 44%;
  width: min(46rem, 82vw);
  height: min(46rem, 82vw);
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(96, 142, 199, 0.30), rgba(96, 142, 199, 0.10) 45%, transparent 72%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}
/* Almost-imperceptible dot lattice + faint gold seam for depth */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px),
    linear-gradient(90deg, transparent, rgba(194, 161, 90, 0.14) 62%, transparent);
  background-size: 30px 30px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 74%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 32%, #000 74%, transparent);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero two-column layout: text + premium visual */
.hero .container {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-inner {
  flex: 1 1 58%;
  max-width: 700px;
  color: #fff;
}

/* Golden scales illustration on the right (~36% of the row) */
.hero-visual {
  flex: 0 0 clamp(260px, 39%, 440px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -3.25rem;
  animation: heroVisualIn 1.2s var(--ease-out) both;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 4%;
  background: radial-gradient(closest-side, rgba(194, 161, 90, 0.30), rgba(194, 161, 90, 0.10) 55%, transparent 74%);
  filter: blur(34px);
  z-index: -1;
  pointer-events: none;
}
.hero-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: clamp(280px, 62svh, 525px);
  object-fit: contain;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.45));
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: clamp(0.5rem, 1.5svh, 1.3rem);
}
.hero-kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-size: clamp(2.35rem, 5.2vw, 4.05rem);
  line-height: 1.07;
  color: #fff;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 26ch;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero-sub {
  margin-top: clamp(0.6rem, 1.7svh, 1.4rem);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}
.hero-actions {
  margin-top: clamp(0.9rem, 2.4svh, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-meta {
  margin-top: clamp(0.8rem, 2.2svh, 1.7rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  align-items: center;
  padding-top: clamp(0.7rem, 1.6svh, 1.4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 660px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-meta-item .lbl {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.hero-meta-item .val {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: stretch;
}
.about-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
}
.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(10, 23, 41, 0.30));
}
/* Image fills the full height of the text column for a balanced composition */
.about-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 30%;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}
.about-body { display: flex; flex-direction: column; justify-content: center; }
.about-badge {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 78%;
}
.about-badge .name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.about-badge .role {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.about-badge .mp {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.about-body .section-title { margin-bottom: 1.5rem; }
.about-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 1.35rem;
}
.about-text { color: var(--text); margin-bottom: 1rem; }

/* ==========================================================================
   Practice areas
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.area-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem 2rem;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.section--soft .area-card { background: #fff; }
.area-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.area-card:hover::before { transform: scaleX(1); }
.area-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #f3f5f8, #e7ebf1);
  color: var(--navy);
  margin-bottom: 1.4rem;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease);
}
.area-icon svg { width: 26px; height: 26px; }
.area-card:hover .area-icon {
  background: linear-gradient(155deg, var(--navy-3), var(--navy));
  color: var(--gold-soft);
  transform: scale(1.05) rotate(-3deg);
}
.area-card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.6rem;
}
.area-card p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.62;
}
.area-num {
  position: absolute;
  top: 1.5rem; right: 1.6rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--line);
  font-weight: 600;
}

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(194,161,90,0.12), transparent 70%);
  pointer-events: none;
}
.why .kicker { color: var(--gold-soft); }
.why .section-title { color: #fff; }
.why .section-title em { color: var(--gold-soft); }
.why .section-intro { color: rgba(255,255,255,0.7); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.why-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(194, 161, 90, 0.5);
}
.why-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(194, 161, 90, 0.14);
  color: var(--gold-soft);
  margin-bottom: 1.25rem;
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.why-card p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  position: relative;
}
.process-step {
  position: relative;
  padding: 2.2rem 1.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.process-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(194, 161, 90, 0.1);
  border: 1px solid rgba(194, 161, 90, 0.35);
  margin-bottom: 1.4rem;
}
.process-step h3 {
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}
.process-step p { font-size: 0.97rem; color: var(--muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-2), var(--navy) 60%, var(--navy-3));
  isolation: isolate;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-inner {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  color: #fff;
}
.cta .kicker { color: var(--gold-soft); justify-content: center; }
.cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}
.cta h2 em { font-style: italic; color: var(--gold-soft); }
.cta p {
  margin-top: 1.25rem;
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
}
.cta .hero-actions { justify-content: center; margin-top: 2.5rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; }
.contact-cards { display: grid; gap: 1rem; margin-top: 0.5rem; }
.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.contact-item .ic {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--navy-3), var(--navy));
  color: var(--gold-soft);
}
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.contact-item .val {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}
.contact-item a.val:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.contact-cta { margin-top: 1.75rem; }
.contact-cta .btn { width: 100%; }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  min-height: 420px;
  position: relative;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: grayscale(0.2) contrast(1.02);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-2);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand { color: #fff; margin-bottom: 1.25rem; }
.footer-about {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 38ch;
}
.footer h4 {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a,
.footer-contact li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-contact { display: grid; gap: 0.85rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--gold); }
.footer-contact a:hover { color: var(--gold-soft); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.8);
  transition: all 0.35s var(--ease);
}
.footer-social a:hover { color: #fff; transform: translateY(-3px); }
.footer-social a.is-wa:hover { background: var(--whatsapp); border-color: var(--whatsapp); }
.footer-social a.is-fb:hover { background: #1877f2; border-color: #1877f2; }
.footer-social a.is-ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 50%, #cc2366 70%, #bc1888);
  border-color: transparent;
}
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: var(--gold-soft); }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 18px 40px -8px rgba(37, 211, 102, 0.75); }
.wa-float svg { width: 32px; height: 32px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Only hide when JS is available (progressive enhancement) */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
/* Defensive: split elements must never stay invisible */
.js .reveal[data-split] { opacity: 1; transform: none; }

/* ==========================================================================
   About — experience highlight
   ========================================================================== */
.about-stat {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  margin: 0.35rem 0 1.85rem;
  padding: 0.95rem 1.35rem;
  background: linear-gradient(155deg, rgba(194, 161, 90, 0.12), rgba(194, 161, 90, 0.03));
  border: 1px solid rgba(194, 161, 90, 0.3);
  border-radius: var(--radius-sm);
}
.about-stat .num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 0.95;
  color: var(--navy);
  white-space: nowrap;
}
.about-stat .num .plus { color: var(--gold); }
.about-stat .txt {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: 20ch;
}
.about-stat .txt strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
/* Accordion — custom (button + panel), animated only with max-height + a simple
   icon rotation. No transforms on the collapsing panel, no filters/clip-path/
   will-change/3d — maximum cross-browser stability (incl. Android/Samsung). */
.faq2 {
  max-width: 840px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}
.faq2-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.faq2-item.is-open {
  box-shadow: var(--shadow);
  border-color: rgba(194, 161, 90, 0.4);
}
.faq2-h { margin: 0; }
.faq2-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq2-q:hover { color: var(--navy); }
.faq2-text { flex: 1; }
/* "+" built from two bars; rotates 45° to "×" on open (simple, safe transform) */
.faq2-ic {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(14, 32, 56, 0.05);
  color: var(--navy);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.faq2-ic::before,
.faq2-ic::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq2-ic::before { left: 10px; right: 10px; top: 16px; height: 2px; }
.faq2-ic::after  { top: 10px; bottom: 10px; left: 16px; width: 2px; }
.faq2-item.is-open .faq2-ic {
  background: var(--navy);
  color: var(--gold-soft);
  transform: rotate(45deg);
}
/* Collapsible panel: height animated via max-height (JS sets the px value). */
.faq2-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq2-inner {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
  line-height: 1.65;
}
.faq2-inner p { margin: 0; }
/* Scroll-reveal stays opacity-only on the item (no transform on interactive card) */
.js .faq2-item.reveal { transform: none; }
.faq-cta {
  margin-top: 3rem;
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}
.faq-cta h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.6rem; }
.faq-cta p { color: var(--muted); margin-bottom: 1.6rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid .area-card--cta { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .hero .container { display: block; }
  .hero-visual { display: none; }
  .hero-inner { max-width: none; flex: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 460px; width: 100%; margin-inline: auto; order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero {
    padding-top: calc(var(--nav-h) + clamp(0.3rem, 1.2svh, 1.3rem));
    padding-bottom: clamp(0.4rem, 1.2svh, 1.75rem);
  }
  .hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    margin-bottom: clamp(0.35rem, 1.1svh, 0.85rem);
  }
  .hero-sub { margin-top: clamp(0.5rem, 1.4svh, 1.2rem); }
  .hero-actions {
    gap: 0.6rem;
    margin-top: clamp(0.65rem, 1.9svh, 1.5rem);
  }
  .hero-actions .btn,
  .cta .hero-actions .btn { width: 100%; }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.9rem;
    margin-top: clamp(0.5rem, 1.3svh, 1.1rem);
    padding-top: clamp(0.45rem, 1.2svh, 0.9rem);
  }
  .hero-meta-item .lbl { font-size: 0.62rem; }
  .hero-meta-item .val { font-size: 0.9rem; }
  .about-stat { width: 100%; }
  .faq2-q { font-size: 1.02rem; padding: 1.1rem 1.15rem; }
  .faq2-inner { padding: 0 1.15rem 1.2rem; }
}

/* Reduce only intrusive motion */
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
  .faq2-panel, .faq2-ic { transition: none; }
  .hero-visual img { animation: none; }
  .hero-visual { animation: none; }
}
