/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;600;700&display=swap');

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Lato', sans-serif; color: #333; background: #f8f7f4; line-height: 1.8; font-size:18px;  }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Variables ────────────────────────────────────────────── */
:root {
  --navy:  #0D1F3C;
  --navy2: #112244;
  --dark:  #071020;
  --gold:  #C9A84C;
  --cream: #F3F0E8;
  --blue:  #8AADCE;
  --white: #FFFFFF;
  --text:  #333333;
  --muted: #666666;
  --border:#E0DCD4;
}

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gold);
}
.topbar a { color: var(--gold); transition: opacity .2s; }
.topbar a:hover { opacity: .75; }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right a { font-size: 12px; letter-spacing: 1px; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  flex-wrap: wrap;
}
.nav-logo { padding: 14px 0; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: clamp(28px, 2.7vw, 40px); color: var(--gold); font-weight: 700; white-space: nowrap; }
.nav-logo-sub { font-size: clamp(10px, 1vw, 14px); color: var(--blue); letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: #c5d8eb;
  font-size: clamp(14px, 1.2vw, 17px);
  padding: 22px clamp(8px, 0.8vw, 11px);
  display: block;
  transition: color .2s;
  letter-spacing: .3px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active { border-bottom: 2px solid var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: .3s; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--gold); }
.hero p { color: var(--blue); font-size: 18px; line-height: 1.8; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-section { background: var(--navy); }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .4px;
  transition: opacity .2s, transform .1s;
  cursor: pointer;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.btn-dark { background: var(--navy); color: var(--gold); }

/* ── Imagen placeholder ───────────────────────────────────── */
.img-placeholder {
  background: #1a3560;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  min-height: 320px;
}
.img-placeholder svg { width: 40px; height: 40px; stroke: var(--blue); fill: none; stroke-width: 1.5; }

/* ── Partners ─────────────────────────────────────────────── */
.partners { background: var(--navy); padding: 36px 40px; }
.partners-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.partners-label { font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.partners-bar { width: 36px; height: 2px; background: var(--gold); margin: 0 auto 28px; }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.partner-item {
  display: flex; align-items: center; justify-content: center;
  width: 130px; height: 52px;
  background: rgba(255,255,255,.06);
  border: .5px solid rgba(201,168,76,.22);
  border-radius: 4px;
  font-weight: 700; font-size: 13px;
  color: rgba(255,255,255,.75);
  transition: background .2s, border-color .2s, color .2s;
}
.partner-item:hover { background: rgba(201,168,76,.1); border-color: rgba(201,168,76,.55); color: var(--gold); }

/* ── Stats ────────────────────────────────────────────────── */
.stats { background: #0a1628; padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(201,168,76,.15);
  max-width: 100%;
}
.stat { background: var(--navy); padding: 40px 20px; text-align: center; transition: background .2s; }
.stat:hover { background: var(--navy2); }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 700;
  color: var(--gold); line-height: 1;
  display: block; margin-bottom: 10px;
}
.stat-label { font-size: 13px; color: var(--blue); text-transform: uppercase; letter-spacing: 2px; }

/* ── Secciones generales ──────────────────────────────────── */
.section { padding: 70px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.3; }
.section-title-light { color: var(--white); }
.section-title-gold { color: var(--gold); }
.section-bar { width: 36px; height: 2px; background: var(--gold); margin-bottom: 32px; }
.section-bar-center { margin-left: auto; margin-right: auto; }
.section-text { font-size: 14px; color: var(--muted); line-height: 1.9; }
.section-text-light { color: var(--blue); }

.bg-white  { background: var(--white); }
.bg-navy   { background: var(--navy); }
.bg-cream  { background: var(--cream); }
.bg-dark   { background: var(--dark); }
.text-center { text-align: center; }

/* ── Grid de tarjetas ─────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-2-asym { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ── Tarjeta Blurb ────────────────────────────────────────── */
.blurb-card {
  background: var(--white);
  border: .5px solid var(--border);
  border-radius: 4px;
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s;
}
.blurb-card:hover { transform: translateY(-4px); }
.blurb-icon {
  width: 52px; height: 52px;
  background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.blurb-icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.blurb-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.blurb-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ── Tarjeta oscura (why us) ──────────────────────────────── */
.dark-card {
  background: var(--navy2);
  border-left: 3px solid var(--gold);
  padding: 24px;
  transition: background .2s;
}
.dark-card:hover { background: #1a3060; }
.dark-card-num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: rgba(201,168,76,.2); line-height: 1; margin-bottom: 6px; }
.dark-card-title { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.dark-card-desc { font-size: 13px; color: var(--blue); line-height: 1.7; }

/* ── Testimonios ──────────────────────────────────────────── */
.testi-card {
  background: var(--white);
  border: .5px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: transform .2s;
}
.testi-card:hover { transform: translateY(-3px); }
.testi-quote { font-family: 'Playfair Display', serif; font-size: 48px; color: var(--gold); line-height: .8; margin-bottom: 12px; }
.testi-text { font-size: 14px; color: #555; line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.testi-divider { width: 100%; height: 1px; background: var(--border); margin-bottom: 14px; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.testi-loc { font-size: 12px; color: #999; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner { background: var(--gold); padding: 50px 40px; }
.cta-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--navy); margin-bottom: 8px; }
.cta-inner p { font-size: 16px; color: #5a3d0a; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 50px 40px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto 30px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold); margin-bottom: 12px; }
.footer p { font-size: 13px; color: #6a8aaa; line-height: 1.9; }
.footer h4 { font-size: 11px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.footer a { font-size: 13px; color: #6a8aaa; display: block; line-height: 2.2; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1a2f4a; padding-top: 16px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: #3a5a7a; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 14px; color: #3a5a7a; transition: color .2s; }
.footer-social a:hover { color: var(--gold); }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero { background: var(--navy); padding: 60px 40px; text-align: center; }
.page-hero-tag { font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--white); margin-bottom: 14px; }
.page-hero-bar { width: 36px; height: 2px; background: var(--gold); margin: 0 auto; }

/* ── Equipo ───────────────────────────────────────────────── */
.team-card { background: #f8f7f4; border: .5px solid var(--border); border-radius: 4px; padding: 28px 20px; text-align: center; transition: transform .2s; }
.team-card:hover { transform: translateY(-4px); }
.team-avatar { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--gold); overflow: hidden; margin: 0 auto 14px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-avatar svg { width: 36px; height: 36px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.team-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 11px; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.team-dept { font-size: 12px; color: #888; line-height: 1.6; }

/* ── Director ─────────────────────────────────────────────── */
.director-grid { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }
.director-img { width: 100%; aspect-ratio: 3/4; border-radius: 4px; border: 1px solid rgba(201,168,76,.3); overflow: hidden; object-fit: cover; object-position: top; }
.director-role { font-size: 12px; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; margin-top: 4px; }
.director-bio p { font-size: 14px; color: var(--blue); line-height: 1.9; margin-bottom: 14px; }
.director-quote { border-left: 3px solid var(--gold); padding: 14px 18px; background: var(--navy2); margin-top: 24px; }
.director-quote p { font-size: 15px; color: #c5d8eb; font-style: italic; line-height: 1.7; }

/* ── MVV ──────────────────────────────────────────────────── */
.mvv-card { background: var(--white); border: .5px solid var(--border); border-radius: 4px; padding: 32px 24px; transition: transform .2s; }
.mvv-card:hover { transform: translateY(-3px); }
.mvv-icon { width: 48px; height: 48px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.mvv-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mvv-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.mvv-text { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ── Valores ──────────────────────────────────────────────── */
.val-card { background: var(--navy2); border-left: 3px solid var(--gold); padding: 22px 20px; transition: background .2s; }
.val-card:hover { background: #1a3060; }
.val-title { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.val-desc { font-size: 13px; color: var(--blue); line-height: 1.7; }

/* ── Contacto ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info-box { background: var(--navy); border-radius: 4px; padding: 32px; }
.contact-info-box h3 { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--gold); margin-bottom: 24px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { width: 36px; height: 36px; background: #1a3560; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.contact-label { font-size: 11px; color: #6a8aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-value { font-size: 13px; color: #c5d8eb; line-height: 1.7; }
.contact-value a { color: #c5d8eb; transition: color .2s; }
.contact-value a:hover { color: var(--gold); }
.contact-btns { display: flex; flex-direction: column; gap: 12px; }
.contact-btn {
  display: flex; align-items: center; gap: 12px;
  background: #f8f7f4; border: .5px solid var(--border);
  border-radius: 4px; padding: 16px 20px;
  font-size: 15px; font-weight: 600; color: var(--navy);
  transition: background .2s, transform .1s;
}
.contact-btn:hover { background: var(--cream); transform: translateX(4px); }
.contact-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-btn.whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.contact-btn.whatsapp:hover { background: #20b958; }
.contact-btn.email { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.contact-btn.email:hover { background: var(--navy2); }
.map-container { margin-top: 24px; border-radius: 4px; overflow: hidden; }
.map-container iframe { width: 100%; height: 280px; border: none; }

/* ── Seguros tabs ─────────────────────────────────────────── */
.tab-bar { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.tab-btn { padding: 14px 24px; font-size: 15px; font-weight: 600; color: #888; border-bottom: 2px solid transparent; cursor: pointer; transition: color .2s, border-color .2s; background: none; border-top: none; border-left: none; border-right: none; font-family: 'Lato', sans-serif; }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Clientes lista ───────────────────────────────────────── */
.clients-cat { margin-bottom: 28px; }
.clients-cat-label { display: inline-block; background: var(--navy); color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 6px 14px; border-radius: 2px; margin-bottom: 12px; }
.clients-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.client-item { background: var(--white); border: .5px solid var(--border); border-radius: 2px; padding: 8px 12px; font-size: 12px; color: #555; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 60px 30px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .director-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .clients-list { grid-template-columns: repeat(2,1fr); }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 10px 0; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 30px; font-size: 17px; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; flex-wrap: nowrap; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .hero h1 { font-size: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-asym { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 50px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-list { grid-template-columns: 1fr; }
  .stat-number { font-size: 36px; }
  .page-hero h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .partners-grid { gap: 12px; }
  .partner-item { width: 110px; }
}
/* ── Ajuste tipografía global ─────────────────────────────── */
.blurb-desc,
.dark-card-desc,
.val-desc,
.mvv-text,
.testi-text,
.section-text,
.team-dept,
.director-bio p,
.footer p,
.footer a,
.client-item,
.contact-value {
  font-size: 17px;
}
.partner-item { font-size: 16px; }

.blurb-title,
.dark-card-title,
.val-title,
.team-name,
.testi-name,
.footer h4 {
  font-size: 18px;
}
.testi-loc { font-size: 14px; }
/* ── Botón scroll to top ──────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--navy2);
}
.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ── Ajustes responsivos de los nuevos tamaños (Jul 2026) ──── */
@media (max-width: 768px) {
  .section-title { font-size: 28px; }
}

/* ── Refuerzo antetítulos (ganan a estilos incrustados por página) ── */
.section-tag,
.page-hero-tag,
.partners-label {
  font-size: 18px !important;
  letter-spacing: 2px !important;
}
@media (max-width: 768px) {
  .section-tag,
  .page-hero-tag,
  .partners-label {
    font-size: 15px !important;
    letter-spacing: 1.5px !important;
  }
}

/* ── Logo en celulares ────────────────────────────────────── */
@media (max-width: 480px) {
  .navbar { padding: 0 20px; }
  .nav-logo-text { font-size: 26px; }
  .nav-logo-sub { font-size: 9px; letter-spacing: 2px; }
}
