/* ===================== VARIABLES ===================== */
:root {
  --blue-dark:    #00377f;
  --blue-mid:     #024277;
  --blue-bright:  #00b5fc;
  --blue-btn:     #3f81ff;
  --cyan:         #00ffed;
  --gradient-btn: linear-gradient(135deg, #00459b 0%, #2686c1 100%);
  --purple-text:  #8585bd;
  --heading-dark: #2e2545;
  --bg-light:     #f7f8fc;
  --bg-dark:      #0a1628;
  --white:        #ffffff;
  --black:        #000000;
  --text-body:    #444444;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.3; }
ul { list-style: none; }

/* ===================== LAYOUT ===================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.row-top { align-items: flex-start; }
.row-reverse { flex-direction: row-reverse; }

.col-full        { flex: 1 1 100%; }
.col-half        { flex: 1 1 calc(50% - 16px);      min-width: 280px; }
.col-third       { flex: 1 1 calc(33.333% - 22px);  min-width: 240px; }
.col-two-thirds  { flex: 1 1 calc(66.666% - 16px);  min-width: 280px; }
.col-quarter     { flex: 1 1 calc(25% - 24px);      min-width: 200px; }
.col-three-quarter { flex: 1 1 calc(75% - 8px);     min-width: 280px; }

/* ===================== TYPOGRAPHY ===================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }

h1.page-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
}
h2.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--heading-dark);
  margin-bottom: 16px;
}
h2.section-title-bright {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
.subtitle {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}
.text-muted { color: var(--purple-text); }

/* ===================== DIVIDERS ===================== */
.accent-divider {
  width: 40px; height: 4px;
  background: var(--cyan);
  border-radius: 2px;
  margin-bottom: 24px;
}
.accent-divider-center {
  width: 40px; height: 4px;
  background: var(--cyan);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-outline {
  background: var(--white);
  color: var(--black) !important;
  border: 1px solid var(--blue-mid);
}
.btn-outline:hover { background: #f0f4ff; }

.btn-primary {
  background: var(--gradient-btn);
  color: var(--white) !important;
  border: 1px solid #013687;
  letter-spacing: 1px;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-cta {
  background: var(--blue-btn);
  color: var(--white) !important;
  border: 10px solid var(--blue-btn);
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 2em 10px 0.7em;
  box-shadow: 0 10px 50px 5px rgba(114,114,255,0.4);
  transition: all 300ms ease;
}
.btn-cta::after { content: ' →'; font-weight: 400; }
.btn-cta:hover  { letter-spacing: 2px; }

.btn-cta-white {
  background: var(--white);
  color: #7272ff !important;
  border: 10px solid var(--white);
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 2em 10px 0.7em;
  box-shadow: 0 10px 50px 5px rgba(181,181,255,0.38);
  transition: all 300ms ease;
}
.btn-cta-white::after { content: ' →'; font-weight: 400; }
.btn-cta-white:hover  { letter-spacing: 2px; }

.btn-cta-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 2em;
  transition: all 300ms ease;
}
.btn-cta-outline:hover { background: var(--white); color: var(--blue-dark) !important; }

/* ===================== HEADER ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}
.logo img { height: 54px; width: auto; }
nav.main-nav ul { display: flex; list-style: none; }
nav.main-nav ul li a {
  font-weight: 600;
  font-size: 18px;
  color: var(--black) !important;
  padding: 8px 18px;
  display: block;
  transition: color 0.2s;
}
nav.main-nav ul li a:hover,
nav.main-nav ul li.active a { color: var(--blue-bright) !important; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 28px; height: 3px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===================== HERO DARK (page header) ===================== */
.page-hero {
  background: linear-gradient(135deg, #000d2a 0%, #00243f 100%);
  color: var(--white);
  padding: 80px 0 72px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* ===================== SECTIONS ===================== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark {
  background: linear-gradient(135deg, #060f22 0%, #0d1f3c 100%);
  color: var(--white);
}
.section-dark h2, .section-dark h1, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-light { background: var(--bg-light); }
.section-alt   { background: #fafbff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 16px; }

/* ===================== CARDS ===================== */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.card-dark {
  background: linear-gradient(145deg, #060f22, #0d1f3c);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
}
.card-dark h2 { color: var(--blue-bright); font-size: 1.25rem; margin-bottom: 10px; }
.card-dark p  { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.8; }

/* ===================== BLURB (feature item) ===================== */
.blurb {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #eef0f8;
}
.blurb:last-child { border-bottom: none; }
.blurb-icon {
  font-size: 24px;
  color: var(--blue-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.blurb h4 { color: var(--heading-dark); font-size: 15px; margin-bottom: 6px; }
.blurb p  { color: var(--purple-text); font-size: 14px; line-height: 1.8; }

/* ===================== FEATURE BLURB GRID ===================== */
.feature-blurb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 10px 60px 0 rgba(71,74,182,0.12);
}
.blurb-card {
  background: var(--white);
  padding: 30px;
  box-shadow: inset -1px -1px 0 0 rgba(71,74,182,0.12);
}
.blurb-card .blurb-icon { font-size: 28px; color: var(--blue-bright); margin-bottom: 12px; }
.blurb-card h4 { font-weight: 700; color: var(--heading-dark); line-height: 1.5; font-size: 15px; }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
}
.cta-banner h1 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--heading-dark); margin-bottom: 16px; }
.cta-banner p  { font-size: 17px; color: var(--purple-text); margin-bottom: 28px; line-height: 1.8; }

/* ===================== BLOG GRID ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,55,127,0.12);
}
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-body h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body .meta { font-size: 12px; color: var(--purple-text); margin-bottom: 12px; }
.blog-card-body p  { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 16px; }
.blog-card-body a.read-more {
  color: var(--blue-btn);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card-body a.read-more:hover { color: var(--blue-bright); }

/* ===================== DISCLAIMER ===================== */
.disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--purple-text);
  font-style: italic;
}
.disclaimer-strong {
  margin-top: 24px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--heading-dark);
  background: #fff8e6;
  border-left: 4px solid #e0a917;
  border-radius: 6px;
  font-style: normal;
  text-align: left;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.disclaimer-strong strong { color: #8a6a00; }

/* ===================== FOOTER ===================== */
#site-footer {
  background: var(--black);
  padding: 56px 0 24px;
  color: rgba(255,255,255,0.8);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue-bright); }
.footer-logo { margin-bottom: 16px; }
.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-disclaimer-small { font-style: italic; }
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===================== SCROLL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  nav.main-nav.open { display: block; width: 100%; }
  nav.main-nav.open ul {
    flex-direction: column;
    padding: 16px 0;
    border-top: 1px solid #eee;
  }
  .header-inner { flex-wrap: wrap; }
  .hamburger { display: flex; }
  .feature-blurb-grid { grid-template-columns: 1fr; }
  .row-reverse { flex-direction: column; }
}
@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .page-hero { padding: 56px 0 48px; }
  .cta-banner { padding: 40px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .col-half, .col-third, .col-two-thirds,
  .col-quarter, .col-three-quarter { flex: 1 1 100%; }

  /* CTA más proporcionado en mobile: menor border y padding compacto */
  .btn-cta, .btn-cta-white {
    border-width: 6px;
    padding: 10px 1.4em 10px 1em;
    font-size: 14px;
    box-shadow: 0 6px 24px 2px rgba(114,114,255,0.3);
  }
}
@media (max-width: 420px) {
  .btn-cta, .btn-cta-white {
    border-width: 4px;
    padding: 10px 1.1em 10px 0.8em;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}
