/* ============================================================
   FINANZAS POPULAR — Hoja de estilos principal
   Paleta: Azul marino profundo + Dorado cálido + Crema
   ============================================================ */

/* ---------- Variables de diseño ---------- */
:root {
  --navy:       #1A2B4A;
  --navy-dark:  #0F1C33;
  --navy-light: #243659;
  --gold:       #C8963E;
  --gold-light: #E0B060;
  --gold-dark:  #A87830;
  --cream:      #FDF8F0;
  --cream-dark: #F5EDD8;
  --white:      #FFFFFF;
  --gray-100:   #F8F9FA;
  --gray-200:   #E9ECEF;
  --gray-400:   #ADB5BD;
  --gray-600:   #6C757D;
  --gray-800:   #343A40;
  --text-main:  #2C2C2C;
  --text-muted: #6B6B6B;
  --success:    #28A745;
  --error:      #DC3545;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --shadow-sm:  0 2px 8px rgba(26,43,74,.10);
  --shadow-md:  0 6px 24px rgba(26,43,74,.14);
  --shadow-lg:  0 16px 48px rgba(26,43,74,.18);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: .3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }

/* ---------- Contenedor ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,150,62,.35);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,62,.45);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-body { padding: 32px; }

/* ---------- Divider dorado ---------- */
.gold-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 0;
}
.gold-line-left { margin-left: 0; }

/* ============================================================
   HEADER / NAVEGACIÓN
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(26,43,74,.08);
  transition: all var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(26,43,74,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo img {
  height: 48px;
  width: auto;
}
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: .92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 1px;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold);
}
.main-nav a:hover::after, .main-nav a.active::after {
  transform: scaleX(1);
}
.header-cta { margin-left: 16px; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 76px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8963E' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,150,62,.15);
  border: 1px solid rgba(200,150,62,.3);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 span { color: var(--gold-light); }
.hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-visual {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  opacity: .08;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-card p { font-size: .92rem; margin-bottom: 20px; }
.service-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; color: var(--gold-dark); }

/* ============================================================
   TESTIMONIOS / CARRUSEL
   ============================================================ */
.testimonials-section { background: var(--cream); }
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform .5s ease;
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 16px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--gold);
  opacity: .15;
  position: absolute;
  top: -10px; left: 32px;
  line-height: 1;
}
.testimonial-stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 20px; }
.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.8;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--navy); font-size: 1rem; }
.author-role { font-size: .82rem; color: var(--text-muted); }
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.carousel-btn:hover {
  background: var(--gold);
  color: var(--white);
}
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-400);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,150,62,.15) 0%, transparent 70%);
}
.cta-section h2 { color: var(--white); position: relative; }
.cta-section p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 560px; margin: 16px auto 40px; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.blog-category {
  background: var(--cream-dark);
  color: var(--gold-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.blog-date { font-size: .8rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: .9rem; flex: 1; }
.blog-read-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  transition: gap var(--transition);
}
.blog-read-more:hover { gap: 10px; color: var(--gold-dark); }

/* ============================================================
   EQUIPO
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 4px solid var(--cream-dark);
}
.team-card h4 { color: var(--navy); margin-bottom: 6px; }
.team-role { font-size: .85rem; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: .88rem; color: var(--text-muted); }

/* ============================================================
   VALORES / MISIÓN VISIÓN
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.value-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border-left: 4px solid var(--gold);
  transition: all var(--transition);
}
.value-card:hover { background: var(--white); box-shadow: var(--shadow-md); }
.value-icon { font-size: 2.2rem; margin-bottom: 16px; }
.value-card h4 { color: var(--navy); margin-bottom: 10px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid var(--cream-dark);
}
.contact-info-item h4 { color: var(--navy); margin-bottom: 4px; font-size: 1rem; }
.contact-info-item p { font-size: .9rem; margin: 0; }
.social-links { display: flex; gap: 12px; margin-top: 32px; }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

/* Formulario */
.contact-form { background: var(--white); border-radius: var(--radius-md); padding: 48px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-main);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,150,62,.12);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { margin-top: 3px; accent-color: var(--gold); }
.form-check label { font-size: .85rem; color: var(--text-muted); }
.form-message { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; display: none; margin-top: 16px; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* Mapa */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 60px;
}
.map-container iframe { width: 100%; height: 400px; border: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: .9rem; margin-top: 20px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item i { color: var(--gold); margin-top: 3px; font-size: .9rem; }
.footer-contact-item span { font-size: .88rem; color: rgba(255,255,255,.65); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.45); margin: 0; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold-light); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: all var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-btn:hover {
  background: #1ebe5d;
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}
.whatsapp-tooltip {
  background: var(--navy-dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 6px 40px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,.1); }
}

/* ============================================================
   BARRA DE COOKIES
   ============================================================ */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { font-size: .88rem; color: rgba(255,255,255,.8); margin: 0; flex: 1; min-width: 200px; }
.cookie-bar a { color: var(--gold-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.cookie-accept { background: var(--gold); color: var(--white); }
.cookie-accept:hover { background: var(--gold-dark); }
.cookie-decline { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3); }
.cookie-decline:hover { background: rgba(255,255,255,.1); }

/* ============================================================
   PÁGINAS INTERNAS — Hero pequeño
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,150,62,.12) 0%, transparent 70%);
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; margin: 16px auto 0; position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  position: relative;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ============================================================
   TIMELINE (Historia)
   ============================================================ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
}
.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  max-width: 400px;
  transition: all var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.timeline-content h4 { color: var(--navy); margin-bottom: 8px; }
.timeline-content p { font-size: .9rem; margin: 0; }

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 { font-size: 1.6rem; margin: 48px 0 16px; color: var(--navy); }
.legal-content h3 { font-size: 1.2rem; margin: 32px 0 12px; color: var(--navy-light); }
.legal-content p { color: var(--text-muted); margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { color: var(--text-muted); font-size: .95rem; margin-bottom: 8px; list-style: disc; }
.legal-content strong { color: var(--text-main); }
.legal-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.legal-box p { margin: 0; font-size: .9rem; }
.legal-update { font-size: .82rem; color: var(--text-muted); font-style: italic; }

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 64px;
    padding-right: 0;
  }
  .timeline-dot { left: 24px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 16px; width: 100%; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 28px; }
  .testimonial-card { padding: 32px 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 76px; }
  .whatsapp-float { bottom: 20px; right: 20px; }
  .cookie-bar { flex-direction: column; }
}
