/* ============================================
   Gestión Documental México
   style.css — Estilos principales
   Premium Government Document Services
   ============================================ */

/* ---- Variables CSS ---- */
:root {
  /* Paleta de colores */
  --white:         #ffffff;
  --emerald:       #059669;
  --emerald-light: #10b981;
  --emerald-dark:  #047857;
  --navy:          #0f2b4a;
  --navy-dark:     #071a2f;
  --navy-light:    #1e3a5f;
  --gray-50:       #f8f9fa;
  --gray-100:      #f1f3f5;
  --gray-200:      #e9ecef;
  --gray-300:      #dee2e6;
  --gray-400:      #ced4da;
  --gray-500:      #adb5bd;
  --gray-600:      #6c757d;
  --gray-700:      #495057;
  --gray-800:      #343a40;
  --gray-900:      #212529;
  --gold:          #c9a227;
  --gold-light:    #e0b83a;
  --gold-dark:     #a8871f;
  --danger:        #ef4444;
  --success:       #22c55e;

  /* Tipografía */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Radios */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Sombras */
  --shadow-xs:      0 1px 4px rgba(0,0,0,0.07);
  --shadow-sm:      0 2px 10px rgba(0,0,0,0.09);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.16);
  --shadow-xl:      0 24px 80px rgba(0,0,0,0.20);
  --shadow-emerald: 0 8px 32px rgba(5,150,105,0.32);
  --shadow-navy:    0 8px 32px rgba(15,43,74,0.28);
  --shadow-gold:    0 8px 32px rgba(201,162,39,0.30);

  /* Transiciones */
  --ease:   cubic-bezier(0.4,0,0.2,1);
  --t-fast: 0.18s;
  --t-base: 0.3s;
  --t-slow: 0.5s;

  /* Header */
  --header-h: 76px;

  /* Z-index */
  --z-back:   -1;
  --z-header: 900;
  --z-mobile: 890;
  --z-top:    999;
}

/* ============================================
   RESET / BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; transition: color var(--t-base) var(--ease); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: var(--font-body); outline: none; border: none; }
button { cursor: pointer; background: none; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ---- Section header ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,150,105,.1);
  color: var(--emerald-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}

.section-tag i { font-size: .7rem; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 14px;
}

.section-title span.hl {
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc { margin: 0 auto; }

/* ============================================
   UTILITIES
   ============================================ */
.text-gold    { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-navy    { color: var(--navy); }
.text-white   { color: var(--white); }

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.28);
}

.glass-dark {
  background: rgba(15,43,74,.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-full);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(5,150,105,.42);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(201,162,39,.42);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-navy);
}
.btn-navy:hover {
  transform: translateY(-3px);
  background: var(--navy-light);
}

.btn-sm { padding: 10px 22px; font-size: .84rem; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.vis, .reveal-left.vis, .reveal-right.vis {
  opacity: 1;
  transform: translate(0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  padding: 18px 0;
  transition: background var(--t-base) var(--ease),
              padding var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 10px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,.09);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
  flex-shrink: 0;
}

.header.scrolled .logo { color: var(--navy); }

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-emerald);
  transition: transform var(--t-base) var(--ease);
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.06); }

.logo-icon i { color: var(--white); font-size: 1.1rem; }

.logo-text { line-height: 1.2; }
.logo-text .name {
  display: block;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.logo-text .tagline {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .65;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  padding: 8px 13px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-radius: var(--r-xs);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.nav a:hover, .nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.13);
}

.header.scrolled .nav a { color: var(--gray-700); }
.header.scrolled .nav a:hover,
.header.scrolled .nav a.active {
  color: var(--emerald);
  background: rgba(5,150,105,.08);
}

/* CTA Button */
.hdr-cta {
  padding: 10px 22px;
  font-size: .84rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  color: var(--white);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-emerald);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  white-space: nowrap;
}
.hdr-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5,150,105,.42);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  cursor: pointer;
  z-index: var(--z-header);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.header.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy));
  z-index: var(--z-mobile);
  flex-direction: column;
  padding: 110px 36px 40px;
  gap: 8px;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--t-base) var(--ease), padding-left var(--t-base) var(--ease);
}
.mobile-nav a:hover { color: var(--emerald-light); padding-left: 12px; }

.mobile-nav .mobile-cta {
  margin-top: 24px;
  align-self: flex-start;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Geometric background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-1 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(5,150,105,.22), transparent 70%);
  top: -200px; right: -140px;
  animation: drift 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(201,162,39,.18), transparent 70%);
  bottom: -80px; left: -100px;
  animation: drift 14s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,.2), transparent 70%);
  top: 35%; left: 22%;
  animation: drift 9s ease-in-out infinite 2s;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

/* Hero content */
.hero-content { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--r-full);
  margin-bottom: 24px;
  animation: fadeDown .8s var(--ease) both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 22px;
  animation: fadeUp .8s var(--ease) .18s both;
}

.hero-title .hl {
  background: linear-gradient(120deg, var(--emerald-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,.72);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 40px;
  animation: fadeUp .8s var(--ease) .32s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp .8s var(--ease) .46s both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  animation: fadeUp .8s var(--ease) .6s both;
}

.hero-trust-avatars {
  display: flex;
}
.hero-trust-avatars img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  object-fit: cover;
  margin-left: -8px;
}
.hero-trust-avatars img:first-child { margin-left: 0; }

.hero-trust-text {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.hero-trust-text strong {
  color: var(--gold-light);
  display: block;
  font-size: .88rem;
}

/* Hero cards */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: fadeRight .8s var(--ease) .36s both;
}

.hero-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 28px 22px;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.hero-card:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hero-card-ico {
  width: 50px; height: 50px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.hero-card-ico.em { background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark)); box-shadow: var(--shadow-emerald); }
.hero-card-ico.gd { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); box-shadow: var(--shadow-gold); }
.hero-card-ico i { color: var(--white); font-size: 1.2rem; }

.hero-card-ico.gd i { color: var(--navy-dark); }

.hero-card h3 {
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.hero-card p {
  font-size: .8rem;
  color: rgba(255,255,255,.56);
  line-height: 1.55;
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios { background: var(--gray-50); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.srv-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 32px 26px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.srv-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}

.srv-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.srv-card:hover::after { transform: scaleX(1); }

.srv-icon {
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(5,150,105,.08);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.srv-icon i {
  font-size: 1.4rem;
  color: var(--emerald);
  transition: color var(--t-base) var(--ease);
}
.srv-card:hover .srv-icon {
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  box-shadow: var(--shadow-emerald);
}
.srv-card:hover .srv-icon i { color: var(--white); }

.srv-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.srv-card p {
  font-size: .84rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 18px;
}

.srv-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: rgba(5,150,105,.09);
  padding: 4px 12px;
  border-radius: var(--r-full);
  letter-spacing: .04em;
}

/* ============================================
   VENTAJAS
   ============================================ */
.ventajas { background: var(--white); overflow: hidden; }

.ventajas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ventajas-visual { position: relative; }

.v-img-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.v-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.v-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 22px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
}
.v-badge .num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--emerald);
  line-height: 1;
  display: block;
}
.v-badge .lbl {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.v-floating {
  position: absolute;
  top: 28px;
  left: -24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-navy);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.v-floating i { color: var(--gold-light); font-size: 1.1rem; }
.v-floating-text { font-size: .82rem; font-weight: 600; }
.v-floating-text span { display: block; font-size: .72rem; font-weight: 400; opacity: .6; }

.ventajas-content .section-desc { margin-bottom: 40px; max-width: 100%; }

.adv-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.adv-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.adv-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,150,105,.09);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.adv-ico i { font-size: 1rem; color: var(--emerald); transition: color var(--t-base) var(--ease); }
.adv-item:hover .adv-ico { background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark)); box-shadow: var(--shadow-emerald); }
.adv-item:hover .adv-ico i { color: var(--white); }

.adv-text h4 {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.adv-text p { font-size: .82rem; color: var(--gray-600); line-height: 1.5; }

/* ============================================
   CÓMO FUNCIONA
   ============================================ */
.como {
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.como::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(5,150,105,.2) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 40%, rgba(201,162,39,.14) 0%, transparent 50%);
  pointer-events: none;
}

.como .section-title { color: var(--white); }
.como .section-desc  { color: rgba(255,255,255,.6); }

/* Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 30px; bottom: 30px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent,
    rgba(16,185,129,.5) 15%,
    rgba(201,162,39,.5) 50%,
    rgba(16,185,129,.5) 85%,
    transparent);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 56px;
}
.tl-item:last-child { margin-bottom: 0; }

/* Odd items: content left, dot center, empty right */
.tl-item:nth-child(odd)  .tl-content { grid-column: 1; text-align: right; }
.tl-item:nth-child(odd)  .tl-dot     { grid-column: 2; }
.tl-item:nth-child(odd)  .tl-empty   { grid-column: 3; }
/* Even items: empty left, dot center, content right */
.tl-item:nth-child(even) .tl-empty   { grid-column: 1; }
.tl-item:nth-child(even) .tl-dot     { grid-column: 2; }
.tl-item:nth-child(even) .tl-content { grid-column: 3; text-align: left; }

.tl-dot {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.tl-dot-inner {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  border: 3px solid rgba(255,255,255,.1);
  transition: transform var(--t-base) var(--ease);
}
.tl-dot-inner:hover { transform: scale(1.1); }

.tl-item:nth-child(odd)  .tl-dot-inner { background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark)); box-shadow: var(--shadow-emerald); }
.tl-item:nth-child(even) .tl-dot-inner { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); box-shadow: var(--shadow-gold); color: var(--navy-dark); }

.tl-content {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 28px 30px;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.tl-content:hover { background: rgba(255,255,255,.12); transform: scale(1.02); }

.tl-step {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-item:nth-child(odd)  .tl-step { color: var(--emerald-light); }
.tl-item:nth-child(even) .tl-step { color: var(--gold-light); }

.tl-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.tl-content p { font-size: .87rem; color: rgba(255,255,255,.62); line-height: 1.65; }

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats { padding: 80px 0; background: var(--white); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  cursor: default;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-50); }

.stat-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-num .sfx { font-size: 1.6rem; color: var(--emerald); margin-left: 2px; }
.stat-num .sym { font-size: 1.8rem; color: var(--gold); }

.stat-lbl { font-size: .9rem; color: var(--gray-600); font-weight: 500; line-height: 1.4; }
.stat-sub { font-size: .75rem; color: var(--gray-400); margin-top: 4px; }

.stat-item .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: rgba(5,150,105,.09);
}
.stat-item .stat-icon i { font-size: 1.1rem; color: var(--emerald); }

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonios { background: var(--gray-50); }

.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tst-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 36px 30px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.tst-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }

.tst-card::before {
  content: '\201C';
  position: absolute;
  top: 12px; right: 24px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--gray-100);
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.tst-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.tst-stars i { color: var(--gold); font-size: .88rem; }

.tst-text {
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 26px;
}

.tst-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tst-author img {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}
.tst-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.tst-role { font-size: .78rem; color: var(--gray-500); }

/* Verified badge */
.tst-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: rgba(5,150,105,.08);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-top: 4px;
}
.tst-verified i { font-size: .65rem; }

/* ============================================
   FAQ
   ============================================ */
.faq { background: var(--white); }

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  align-items: start;
}

.faq-side {
  position: sticky;
  top: 100px;
}
.faq-side .section-desc { margin-bottom: 32px; max-width: 100%; }

.faq-cta-card {
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  border-radius: var(--r-md);
  padding: 28px;
  color: var(--white);
  box-shadow: var(--shadow-navy);
}
.faq-cta-card h4 {
  font-family: var(--font-heading);
  font-size: .96rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.faq-cta-card p {
  font-size: .84rem;
  opacity: .7;
  margin-bottom: 18px;
  line-height: 1.6;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.faq-item:hover { border-color: rgba(5,150,105,.4); }
.faq-item.active {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5,150,105,.08);
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--t-fast) var(--ease);
}
.faq-q:hover { color: var(--emerald); }
.faq-item.active .faq-q { color: var(--emerald); }

.faq-ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.faq-ico i { font-size: .78rem; color: var(--gray-600); transition: color var(--t-base) var(--ease); }
.faq-item.active .faq-ico { background: var(--emerald); transform: rotate(45deg); }
.faq-item.active .faq-ico i { color: var(--white); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .42s var(--ease);
}
.faq-a-inner {
  padding: 0 24px 20px;
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.72;
}
.faq-item.active .faq-a { max-height: 400px; }

/* ============================================
   CONTACTO
   ============================================ */
.contacto { background: var(--gray-50); }

.ct-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.ct-info {
  position: sticky;
  top: 100px;
}
.ct-info .section-desc { margin-bottom: 36px; max-width: 100%; }

.ct-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }

.ct-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ct-detail-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-emerald);
}
.ct-detail-ico i { color: var(--white); font-size: .9rem; }

.ct-detail-text label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.ct-detail-text a,
.ct-detail-text p {
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  transition: color var(--t-base) var(--ease);
}
.ct-detail-text a:hover { color: var(--emerald); }

/* Hours card */
.ct-hours {
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  border-radius: var(--r-md);
  padding: 28px;
  color: var(--white);
  box-shadow: var(--shadow-navy);
}
.ct-hours h4 {
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ct-hours h4 i { color: var(--gold-light); }

.hrs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .86rem;
}
.hrs-row:last-child { border-bottom: none; }
.hrs-row .day { color: rgba(255,255,255,.6); }
.hrs-row .time { color: var(--emerald-light); font-weight: 700; }
.hrs-row .closed { color: rgba(255,255,255,.35); font-style: italic; }

/* Form */
.ct-form-box {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.ct-form-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ct-form-title i { color: var(--emerald); }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.f-group { margin-bottom: 20px; }
.f-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.f-group label .req { color: var(--emerald); margin-left: 2px; }

.f-ctrl {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.f-ctrl:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
.f-ctrl::placeholder { color: var(--gray-400); }
.f-ctrl.err {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.09);
}
.f-ctrl.ok { border-color: var(--success); }

select.f-ctrl {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea.f-ctrl {
  resize: vertical;
  min-height: 130px;
}

.f-error {
  display: none;
  font-size: .76rem;
  color: var(--danger);
  margin-top: 5px;
  align-items: center;
  gap: 4px;
}
.f-error.show { display: flex; }
.f-error i { font-size: .7rem; }

.form-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  color: var(--white);
  border-radius: var(--r-full);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  box-shadow: var(--shadow-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  cursor: pointer;
  border: none;
}
.form-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(5,150,105,.42);
}
.form-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.form-note {
  text-align: center;
  font-size: .76rem;
  color: var(--gray-500);
  margin-top: 12px;
}
.form-note i { color: var(--emerald); }

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }

.success-ico {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-emerald);
  animation: popIn .5s var(--ease) both;
}
.success-ico i { color: var(--white); font-size: 2rem; }

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-success p { color: var(--gray-600); font-size: .9rem; line-height: 1.6; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.5fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-text .name { color: var(--white); }
.footer-brand .logo-text .tagline { color: rgba(255,255,255,.5); }
.footer-brand .logo { color: var(--white); }

.footer-brand p {
  font-size: .86rem;
  line-height: 1.72;
  max-width: 280px;
  margin-bottom: 24px;
}

.socials { display: flex; gap: 10px; }

.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  border: 1px solid rgba(255,255,255,.07);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.social-btn:hover {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
  transform: translateY(-3px);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: .86rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--t-base) var(--ease), padding-left var(--t-base) var(--ease);
}
.footer-links a:hover { color: var(--emerald-light); padding-left: 5px; }
.footer-links a i { font-size: .65rem; opacity: .5; }

.ft-contact-list { display: flex; flex-direction: column; gap: 15px; }
.ft-contact-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.ft-contact-item i {
  color: var(--emerald-light);
  font-size: .82rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.ft-contact-item a,
.ft-contact-item span {
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  transition: color var(--t-base) var(--ease);
}
.ft-contact-item a:hover { color: var(--emerald-light); }

/* Footer bottom */
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

.footer-legal {
  display: flex;
  gap: 22px;
}
.footer-legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
  transition: color var(--t-base) var(--ease);
}
.footer-legal a:hover { color: rgba(255,255,255,.65); }

.footer-disclaimer {
  background: rgba(0,0,0,.18);
  padding: 14px 0;
}
.footer-disclaimer p {
  font-size: .74rem;
  color: rgba(255,255,255,.22);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.btt {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-emerald);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  z-index: var(--z-top);
}
.btt.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.btt:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(5,150,105,.46); }

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-28px) rotate(6deg); }
}
@keyframes popIn {
  0%   { transform: scale(.4); opacity: 0; }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--emerald); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald-dark); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-desc { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-cards { max-width: 500px; margin: 0 auto; }

  .ventajas-inner { grid-template-columns: 1fr; gap: 52px; }
  .ventajas-visual { order: -1; }
  .v-badge { right: 16px; bottom: 16px; }
  .v-floating { display: none; }

  .stats-grid { grid-template-columns: repeat(2,1fr); border-radius: var(--r-md); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--gray-200); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--gray-200); border-right: none; }

  .tst-grid { grid-template-columns: 1fr 1fr; }

  .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .faq-side { position: relative; top: auto; }

  .ct-wrap { grid-template-columns: 1fr; gap: 48px; }
  .ct-info { position: relative; top: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Timeline: linear on tablet */
  .timeline::before { left: 28px; transform: none; }
  .tl-item {
    grid-template-columns: 60px 1fr;
    margin-bottom: 32px;
  }
  .tl-item .tl-empty { display: none; }
  .tl-item:nth-child(odd)  .tl-content,
  .tl-item:nth-child(even) .tl-content { grid-column: 2; grid-row: 1; text-align: left; }
  .tl-item:nth-child(odd)  .tl-dot,
  .tl-item:nth-child(even) .tl-dot { grid-column: 1; grid-row: 1; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav, .hdr-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-card { padding: 20px 16px; }

  .servicios-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .adv-list { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .tst-grid { grid-template-columns: 1fr; }

  .form-row-2 { grid-template-columns: 1fr; }
  .ct-form-box { padding: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-row { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .btt { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .tl-dot-inner { width: 48px; height: 48px; font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; border: none; box-shadow: none; }
  .stat-item { border: 1px solid var(--gray-200); border-radius: var(--r-md); }
  .stat-item { border-right: 1px solid var(--gray-200) !important; border-top: 1px solid var(--gray-200) !important; }
}
