/* ============================================
   CARLA LOBOS ABOGADA — SHARED STYLES v2.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── TOKENS ─── */
:root {
  --gold:       #c9a84c;
  --gold-light: #e2c47a;
  --gold-pale:  #f5ecd4;
  --gold-glow:  rgba(201,168,76,0.15);
  --dark:       #0a0a0f;
  --dark-2:     #111118;
  --dark-3:     #18181f;
  --dark-4:     #222230;
  --navy:       #0d1528;
  --navy-2:     #131e35;
  --accent:     #1a2f5a;
  --gray-dim:   #5a5a6e;
  --gray:       #8a8a9e;
  --gray-light: #b0b0c0;
  --light:      #f0f0f5;
  --white:      #ffffff;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t1: 0.3s; --t2: 0.5s; --t3: 0.8s;

  --shadow-gold: 0 0 40px rgba(201,168,76,0.2);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-nav:  0 2px 30px rgba(0,0,0,0.6);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── PAGE TRANSITION ─── */
.page-transition {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.page-transition.in  { animation: wipeIn  0.5s var(--ease) forwards; }
.page-transition.out { animation: wipeOut 0.5s var(--ease) forwards; }
@keyframes wipeIn  { from{transform:scaleX(0)} to{transform:scaleX(1)} }
@keyframes wipeOut { from{transform:scaleX(1)} to{transform:scaleX(0); transform-origin:right} }

body { animation: fadeBody 0.6s var(--ease) both; }
/* IMPORTANTE: solo opacidad, SIN transform. Un transform en el body rompe el
   position:fixed del botón de WhatsApp y lo manda al pie de la página. */
@keyframes fadeBody { from{opacity:0} to{opacity:1} }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 995; /* sobre el menú móvil para que la X siempre se vea */
  padding: 1.4rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(16px) saturate(1.5);
  padding: 0.9rem 3rem;
  box-shadow: var(--shadow-nav);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.nav-brand-title {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gray-dim);
}
.nav-menu { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.nav-menu li a {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray);
  transition: color var(--t1) var(--ease);
  border-radius: 2px;
  position: relative;
}
.nav-menu li a::after {
  content: ''; position: absolute; bottom: 2px; left: 0.9rem; right: 0.9rem;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t2) var(--ease);
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--gold-light); }
.nav-menu li a:hover::after, .nav-menu li a.active::after { transform: scaleX(1); }
.nav-menu li a .nav-icon { font-size: 0.85rem; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--gold); color: var(--dark);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: all var(--t1) var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
  position: relative; z-index: 1001;   /* siempre por encima del menú */
}
.hamburger span { width: 24px; height: 2px; background: var(--gold); transition: all 0.3s; display: block; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── MENÚ MÓVIL (método a prueba de iOS: display none/flex, sin opacity/visibility) ─── */
.mobile-menu {
  display: none;                        /* oculto por defecto */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; /* insets explícitos (compat. iOS viejo) */
  z-index: 990;
  background: #0a0a0f;                  /* fondo SÓLIDO opaco */
  background-image: linear-gradient(160deg, #12121c 0%, #0a0a0f 55%, #0d1020 100%);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 5.5rem 1.5rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; } /* visible: simple toggle, sin transiciones que rompen en iOS */
.mobile-menu a {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--sans);
  font-size: 1.2rem; font-weight: 500;
  color: #ffffff;                       /* blanco puro = máximo contraste */
  padding: 1.2rem 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.22);
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu a:active { color: var(--gold-light); }
.mobile-menu .mob-cta {
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1.15rem 2rem;
  background: #25D366; color: #fff;
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: none;
  border-radius: 8px; border-bottom: none;
}

/* ─── BOTÓN WHATSAPP FLOTANTE (siempre visible, encima de todo) ─── */
.wa-float {
  position: fixed;
  right: 1.2rem;
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); /* sube por encima de la barra de iOS */
  z-index: 1000;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex !important; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes waPulse {
  0%,100%  { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* ─── HERO BASE ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom { from{transform:scale(1.05)} to{transform:scale(1.12)} }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,15,0.95) 45%, rgba(10,10,15,0.4) 100%),
    linear-gradient(to top, rgba(10,10,15,0.8) 0%, transparent 50%);
}
.hero-overlay-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 60px, rgba(201,168,76,1) 60px, rgba(201,168,76,1) 61px
  ), repeating-linear-gradient(
    90deg, transparent, transparent 60px, rgba(201,168,76,1) 60px, rgba(201,168,76,1) 61px
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  padding: 8rem 3rem 5rem 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201,168,76,0.4);
  margin-bottom: 2rem;
  animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-badge span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-title strong { font-weight: 500; }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gray-light); font-weight: 300;
  line-height: 1.7; max-width: 520px;
  margin-bottom: 2.8rem;
  animation: fadeUp 0.7s var(--ease) 0.3s both;
}
.hero-sub strong { color: var(--gold-light); font-weight: 400; }

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s var(--ease) 0.4s both;
}
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--gold); color: var(--dark);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: all var(--t1) var(--ease);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(240,240,245,0.3); color: var(--light);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all var(--t1) var(--ease);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-stats {
  position: absolute; bottom: 3rem; right: 0; left: 0;
  z-index: 2;
  display: flex; justify-content: flex-end;
  padding: 0 4rem;
  gap: 3rem;
  animation: fadeUp 0.7s var(--ease) 0.6s both;
}
.hero-stat {
  text-align: center;
  border-left: 1px solid rgba(201,168,76,0.25);
  padding-left: 2rem;
}
.hero-stat:first-child { border: none; padding: 0; }
.hero-stat-num {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 300;
  color: var(--gold-light); line-height: 1;
}
.hero-stat-label {
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gray-dim);
  margin-top: 0.3rem;
}

/* ─── URGENT BANNER ─── */
.urgent-bar {
  background: var(--gold);
  padding: 0.75rem 3rem;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.urgent-bar p {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--dark);
  text-align: center;
}
.urgent-bar a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--dark); color: var(--gold-light);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em;
  transition: background var(--t1);
  white-space: nowrap;
}
.urgent-bar a:hover { background: var(--navy); }

/* ─── SECTION ─── */
section { padding: 6rem 4rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}
.section-label span {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.18;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.section-desc {
  font-size: 0.95rem; color: var(--gray);
  line-height: 1.85; font-weight: 300; max-width: 560px;
}

/* ─── CARDS GRID ─── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.card {
  background: var(--dark-3);
  padding: 2.2rem 1.8rem;
  position: relative; overflow: hidden;
  transition: background var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--t2) var(--ease);
}
.card:hover { background: var(--dark-4); }
.card:hover::after { width: 100%; }
.card-icon { font-size: 1.6rem; margin-bottom: 1.2rem; display: block; }
.card-num {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-family: var(--serif); font-size: 2.5rem;
  font-weight: 300; color: rgba(201,168,76,0.07);
  line-height: 1; transition: color var(--t2);
}
.card:hover .card-num { color: rgba(201,168,76,0.14); }
.card-title {
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 400; color: var(--light); margin-bottom: 0.7rem;
}
.card-text { font-size: 0.84rem; color: var(--gray); line-height: 1.8; font-weight: 300; }

/* ─── PROCESS STEPS ─── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before {
  content: ''; position: absolute;
  top: 2rem; left: calc(12.5% + 1.5rem); right: calc(12.5% + 1.5rem);
  height: 1px;
  background: linear-gradient(to right, var(--gold) 0%, rgba(201,168,76,0.1) 100%);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  background: var(--dark-2); position: relative; z-index: 1;
  transition: all var(--t2) var(--ease);
}
.step:hover .step-num { background: var(--gold); }
.step-num span { font-family: var(--serif); font-size: 1rem; color: var(--gold); transition: color var(--t2); }
.step:hover .step-num span { color: var(--dark); }
.step-title { font-family: var(--serif); font-size: 1.05rem; color: var(--light); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.7; font-weight: 300; }

/* ─── TESTIMONIALS ─── */
.tests-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.test-card {
  background: var(--dark-3); padding: 2rem;
  border-top: 2px solid transparent;
  transition: border-color var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.test-card:hover { border-top-color: var(--gold); transform: translateY(-4px); }
.test-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1.2rem; }
.test-text { font-size: 0.88rem; color: var(--gray); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; font-weight: 300; }
.test-author { display: flex; align-items: center; gap: 0.8rem; }
.test-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--dark-4); border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; color: var(--gold);
  flex-shrink: 0;
}
.test-name { font-size: 0.82rem; color: var(--light); font-weight: 500; }
.test-case { font-size: 0.7rem; color: var(--gray-dim); letter-spacing: 0.05em; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; cursor: pointer;
  font-size: 0.95rem; color: var(--light); font-weight: 400;
  transition: color var(--t1);
  gap: 1rem;
}
.faq-q:hover { color: var(--gold-light); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem; color: var(--gold); line-height: 1;
  transition: all var(--t2) var(--ease);
}
.faq-item.open .faq-icon { background: var(--gold); color: var(--dark); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  font-size: 0.88rem; color: var(--gray); line-height: 1.85; font-weight: 300;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.4rem; }

/* ─── IMAGE + CONTENT SPLIT ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img { position: relative; }
.split-img img {
  width: 100%; height: 480px; object-fit: cover;
  filter: brightness(0.85);
  transition: filter var(--t3) var(--ease);
}
.split-img:hover img { filter: brightness(0.95); }
.split-img-frame {
  position: absolute; top: -1.2rem; left: -1.2rem; right: 1.2rem; bottom: 1.2rem;
  border: 1px solid rgba(201,168,76,0.2); pointer-events: none;
}
.split-content { display: flex; flex-direction: column; gap: 1.5rem; }

/* ─── CTA BANNER ─── */
.cta-section {
  background: var(--navy);
  padding: 5rem 4rem;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 60%);
}
.cta-inner {
  max-width: 800px; margin: 0 auto;
  text-align: center; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; line-height: 1.3;
}
.cta-title em { font-style: italic; color: var(--gold-light); }
.cta-sub { font-size: 0.95rem; color: var(--gray); font-weight: 300; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ─── HERO IMAGE WITH OVERLAY ─── */
.hero-img-card {
  position: relative; overflow: hidden;
  flex: 1; min-height: 280px;
  display: none;
}
@media (min-width:1100px) { .hero-img-card { display: block; } }
.hero-img-card img { width:100%; height:100%; object-fit:cover; }

/* ─── CONTACT SECTION ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold);
}
.ci-lbl { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-dim); margin-bottom: 0.2rem; }
.ci-val { font-size: 0.9rem; color: var(--light); font-weight: 300; }
.ci-val a { color: var(--light); transition: color var(--t1); }
.ci-val a:hover { color: var(--gold-light); }

.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-dim); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-3); border: 1px solid rgba(255,255,255,0.07);
  color: var(--light); font-family: var(--sans); font-size: 0.9rem;
  font-weight: 300; padding: 0.85rem 1rem; outline: none;
  transition: border-color var(--t1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #444; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--dark-3); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: 0.72rem; color: var(--gray-dim); }
.btn-submit {
  padding: 0.9rem 2.2rem;
  background: var(--gold); color: var(--dark);
  font-family: var(--sans); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all var(--t1) var(--ease);
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-submit.sent { background: #2d7a4f; color: #fff; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: 3.5rem 4rem 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 400;
  color: var(--gold-light); margin-bottom: 0.3rem;
}
.footer-brand-sub { font-size: 0.7rem; color: var(--gray-dim); letter-spacing: 0.15em; text-transform: uppercase; }
.footer-brand-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.7; margin-top: 1rem; font-weight: 300; }
.footer-col-title {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; list-style: none; }
.footer-links a { font-size: 0.83rem; color: var(--gray); transition: color var(--t1); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.73rem; color: var(--gray-dim); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--gray);
  transition: all var(--t1) var(--ease);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity:0; transform:translateX(-28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right { opacity:0; transform:translateX(28px);  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.visible, .reveal-right.visible { opacity:1; transform:none; }
.d1{transition-delay:.1s} .d2{transition-delay:.18s} .d3{transition-delay:.26s}
.d4{transition-delay:.34s} .d5{transition-delay:.42s} .d6{transition-delay:.5s}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes shimmer {
  0%{background-position:200% center}
  100%{background-position:-200% center}
}

/* ─── UTILITY GRID CLASSES (usados en lugar de inline styles) ─── */
.g-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.g-2.align-start { align-items: start; }
.g-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─── TABLET (1024px) ─── */
@media (max-width: 1024px) {
  section { padding: 5rem 2.5rem; }
  .cta-section { padding: 4.5rem 2.5rem; }
  .navbar, .navbar.scrolled { padding: 1.2rem 2rem; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .steps::before { display: none; }
  .tests-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { display: none; }
  /* utility grids */
  .g-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  /* about */
  .about-grid { grid-template-columns: 1fr !important; gap: 3rem; }
  .about-img-wrap img { height: 360px; }
  .about-badge {
    position: static !important;
    width: 100% !important; height: auto !important;
    flex-direction: row; gap: 1rem;
    margin-top: 1.2rem; padding: 1rem 1.5rem;
    justify-content: center;
  }
  .practices-header { grid-template-columns: 1fr !important; gap: 1.5rem; }
  /* split img */
  .split-img img { height: 280px; }
  .split-img-frame { display: none; }
}

/* ─── MOBILE (768px) ─── */
@media (max-width: 768px) {
  section { padding: 3.5rem 1.2rem; }
  .cta-section { padding: 3.5rem 1.2rem; }
  footer { padding: 2.5rem 1.2rem 2rem; }

  /* NAV */
  .navbar, .navbar.scrolled { padding: 1rem 1.2rem; }
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* HERO */
  .hero-content { padding: 7rem 1.2rem 3rem; }
  .hero-title { font-size: 2.1rem !important; line-height: 1.1; }
  .hero-sub { font-size: 0.9rem; }
  .hero-badge span { font-size: 0.62rem; }
  .hero-stats { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-gold,
  .hero-actions .btn-outline { width: 100%; justify-content: center; text-align: center; }

  /* URGENT BAR */
  .urgent-bar { padding: 0.8rem 1rem; flex-direction: column; gap: 0.6rem; text-align: center; }
  .urgent-bar p { font-size: 0.78rem; }
  .urgent-bar a { width: 100%; justify-content: center; }

  /* UTILITY GRIDS */
  .g-2, .g-3 { grid-template-columns: 1fr !important; gap: 2rem; }

  /* ABOUT */
  .about-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .about-img-wrap img { height: 300px; object-position: center top; }
  .about-frame { display: none; }
  .about-badge {
    position: static !important;
    width: 100% !important; height: auto !important;
    flex-direction: row; gap: 1rem;
    margin-top: 1rem; padding: 1rem 1.5rem;
    justify-content: center;
  }
  .about-points { grid-template-columns: 1fr; }

  /* PRACTICES HEADER */
  .practices-header { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* CARDS */
  .cards-grid { grid-template-columns: 1fr; }
  .card { padding: 1.6rem 1.4rem; }

  /* STEPS */
  .steps { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .steps::before { display: none; }

  /* TESTS */
  .tests-grid { grid-template-columns: 1fr; }
  .test-card { padding: 1.5rem; }

  /* FAQ */
  .faq-q { font-size: 0.88rem; }

  /* SPLIT */
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-img img { height: 230px; }
  .split-img-frame { display: none; }

  /* SECTION TITLES */
  .section-title { font-size: 1.75rem; }
  .section-desc { font-size: 0.88rem; }

  /* CTA */
  .cta-title { font-size: 1.6rem; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn-gold,
  .cta-actions .btn-outline { width: 100%; justify-content: center; }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; text-align: center; }

  /* FOOTER */
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  /* WA FLOAT — más arriba para que NUNCA quede tapado por la barra de Safari en iPhone */
  .wa-float {
    width: 56px; height: 56px;
    right: 1rem;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .wa-float svg { width: 26px; height: 26px; }

  /* PAGE-SPECIFIC */
  .urgency-grid { grid-template-columns: 1fr !important; }
  .indemnizacion-grid { grid-template-columns: 1fr !important; }
  .rights-grid { grid-template-columns: 1fr !important; }
  .no-anticipo-banner { flex-direction: column; text-align: center; }
  .no-anticipo-icon { margin: 0 auto; }

  /* TABLE */
  .liquidacion-table { font-size: 0.73rem; }
  .liquidacion-table th,
  .liquidacion-table td { padding: 0.55rem 0.4rem; }

  /* HERO IMAGE CARDS */
  [style*="height:360px"][style*="position:relative"] { height: 220px !important; }
}
