/* ═══════════════════════════════════
   VARIABLES
═══════════════════════════════════ */
:root {
  --navy:    #0B1D3A;
  --navy-2:  #0e2448;
  --gold:    #C9A84C;
  --gold-2:  #e8c76a;
  --red:     #C41230;
  --white:   #FFFFFF;
  --gray-1:  #F4F6FA;
  --gray-2:  #E2E8F0;
  --text:    #1E293B;
  --text-2:  #64748B;

  --ff-head: 'Montserrat', sans-serif;
  --ff-body: 'Open Sans', sans-serif;

  --r:    12px;
  --r-lg: 20px;
  --sh:   0 4px 24px rgba(0,0,0,.10);
  --sh-lg:0 16px 56px rgba(0,0,0,.20);
  --tr:   .4s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--ff-body); color: var(--text); overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════
   BOTONES
═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--tr);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,.55);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  padding: 18px 0;
  transition: var(--tr);
}
.navbar.scrolled {
  background: rgba(11,29,58,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: rgba(255,255,255,.8);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--tr);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy) !important;
  border-radius: 50px;
  padding: 9px 20px;
  font-weight: 800;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,.5); background: var(--gold-2) !important; }
.nav-panel {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 8px 16px !important;
  font-size: .82rem !important;
  color: rgba(255,255,255,.7) !important;
}
.nav-panel:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: transparent !important;
}

.link-social { display: inline-flex; align-items: center; gap: 6px; }
.link-social svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-idioma {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  font-family: inherit;
  cursor: pointer;
}
.btn-idioma:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--tr);
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(11,29,58,.92) 0%, rgba(11,29,58,.75) 60%, rgba(11,29,58,.55) 100%),
    url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1600&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}

/* Fallback si no carga la imagen externa: fondo sólido navy */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  z-index: 0;
  opacity: .7;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -.5px;
}
.hero-highlight {
  color: var(--gold);
  position: relative;
}

.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-sub strong { color: var(--white); }
.hero-sub em     { color: var(--gold); font-style: normal; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.35);
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: hintFade 2s ease 1.5s both;
}
.scroll-chevron {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,.35);
  border-bottom: 2px solid rgba(255,255,255,.35);
  transform: rotate(45deg);
  animation: chevronBounce 1.6s ease-in-out infinite;
}
@keyframes chevronBounce {
  0%,100% { transform: rotate(45deg) translateY(0); opacity:.35; }
  50%      { transform: rotate(45deg) translateY(7px); opacity:.9; }
}
@keyframes hintFade {
  from { opacity:0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════
   IMAGEN INSTITUCIONAL
═══════════════════════════════════ */
.img-section {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.img-section__photo {
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ═══════════════════════════════════
   TRUST BAR
═══════════════════════════════════ */
.trust-bar {
  background: var(--red);
  padding: 16px 24px;
}
.trust-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-bar-inner span {
  color: var(--white);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 28px;
  border-right: 1px solid rgba(255,255,255,.25);
  letter-spacing: .3px;
}
.trust-bar-inner span:last-child { border-right: none; }

/* ═══════════════════════════════════
   SECCIONES GENERALES
═══════════════════════════════════ */
.section         { padding: 96px 0; }
.section--dark   { background: var(--navy); }
.section--accent { background: var(--gray-1); }
.section--cta    { background: linear-gradient(135deg, var(--navy) 0%, #122a5e 100%); }

.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section--dark .section-head h2,
.section--cta  .section-head h2  { color: var(--white); }

.section-head p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.section--dark .section-head p { color: rgba(255,255,255,.6); }

.label {
  display: inline-block;
  background: rgba(196,18,48,.1);
  color: var(--red);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(196,18,48,.2);
}
.label--light {
  background: rgba(201,168,76,.12);
  color: var(--gold);
  border-color: rgba(201,168,76,.25);
}

.gold { color: var(--gold); }

/* ═══════════════════════════════════
   SERVICIOS
═══════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.scard {
  background: var(--white);
  border: 1.5px solid var(--gray-2);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--tr);
  box-shadow: var(--sh);
}
.scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--gold);
}

.scard--featured {
  background: var(--navy);
  border-color: var(--gold);
}
.scard--featured h3 { color: var(--white); }
.scard--featured p  { color: rgba(255,255,255,.7); }
.scard--featured ul li { color: rgba(255,255,255,.65); }
.scard--featured ul li::before { color: var(--gold); }

.scard-icon { font-size: 2.4rem; }

.scard h3 {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.scard p {
  color: var(--text-2);
  font-size: .93rem;
  line-height: 1.65;
}
.scard ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.scard ul li {
  font-size: .88rem;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.scard ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ═══════════════════════════════════
   ROAD TEST SPLIT
═══════════════════════════════════ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-text h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.split-text p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.check-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .93rem;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 10px 14px;
}
.check-list--light li {
  color: var(--text-2);
  background: rgba(11,29,58,.06);
  border-color: rgba(11,29,58,.08);
}

.points {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: .82rem;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.points.red {
  background: rgba(196,18,48,.15);
  color: #f87171;
  border: 1px solid rgba(196,18,48,.3);
}

.split-images {
  position: relative;
  height: 480px;
}

.img-card {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  position: absolute;
}
.img-top {
  width: 70%;
  top: 0;
  right: 0;
  border: 3px solid rgba(201,168,76,.3);
}
.img-bottom {
  width: 60%;
  bottom: 0;
  left: 0;
  border: 3px solid rgba(201,168,76,.3);
  z-index: 1;
}

/* ═══════════════════════════════════
   PASOS
═══════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.step {
  background: var(--white);
  border: 1.5px solid var(--gray-2);
  border-radius: var(--r-lg);
  padding: 36px 24px;
  text-align: center;
  transition: var(--tr);
  box-shadow: var(--sh);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--gold);
}
.step-num {
  font-family: var(--ff-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(11,29,58,.08);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.step p { color: var(--text-2); font-size: .9rem; line-height: 1.65; }
.step-arrow {
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 900;
}

/* ═══════════════════════════════════
   EBOOK
═══════════════════════════════════ */
.ebook-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.ebook-image img {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  max-width: 380px;
  margin: 0 auto;
  border: 3px solid rgba(11,29,58,.08);
}
.ebook-text h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.ebook-text p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════
   COBERTURA
═══════════════════════════════════ */
.coverage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.coverage-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--tr);
}
.coverage-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(201,168,76,.3);
  transform: translateY(-4px);
}
.coverage-icon { font-size: 2rem; margin-bottom: 12px; }
.coverage-card h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}
.coverage-card p { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.6; }

/* ═══════════════════════════════════
   CTA / CONTACTO
═══════════════════════════════════ */
.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.cta-title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 16px;
}
.cta-left p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 14px 18px;
  transition: var(--tr);
}
.contact-item:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(201,168,76,.3);
  transform: translateX(4px);
}
.ci-icon { font-size: 1.5rem; }
.contact-item strong { display: block; color: var(--white); font-size: .88rem; }
.contact-item span   { color: rgba(255,255,255,.55); font-size: .82rem; }

.cta-form-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.cta-form h3 {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 24px;
}
.cta-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; }
.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--r);
  font-family: var(--ff-body);
  font-size: .93rem;
  color: var(--text);
  background: var(--gray-1);
  outline: none;
  transition: var(--tr);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-note {
  text-align: center;
  color: var(--text-2);
  font-size: .78rem;
  margin-top: 4px;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer { background: #060F1E; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { height: 58px; margin-bottom: 14px; filter: brightness(1.1); }
.footer-grid > div > p { color: rgba(255,255,255,.45); font-size: .9rem; line-height: 1.7; }
.footer-grid h4 {
  font-family: var(--ff-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid li a,
.footer-grid li span { color: rgba(255,255,255,.45); font-size: .9rem; transition: var(--tr); }
.footer-grid li a:hover { color: var(--gold); }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.2); font-size: .78rem; }

/* ═══════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-up    { transform: translateY(50px); }
.reveal-left  { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Delays escalonados */
.services-grid .scard:nth-child(1) { transition-delay: 0s; }
.services-grid .scard:nth-child(2) { transition-delay: .1s; }
.services-grid .scard:nth-child(3) { transition-delay: .2s; }

.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(3) { transition-delay: .15s; }
.steps .step:nth-child(5) { transition-delay: .3s; }

.coverage-cards .coverage-card:nth-child(1) { transition-delay: 0s; }
.coverage-cards .coverage-card:nth-child(2) { transition-delay: .12s; }
.coverage-cards .coverage-card:nth-child(3) { transition-delay: .24s; }

.trust-bar-inner span:nth-child(1) { transition-delay: 0s; }
.trust-bar-inner span:nth-child(2) { transition-delay: .07s; }
.trust-bar-inner span:nth-child(3) { transition-delay: .14s; }
.trust-bar-inner span:nth-child(4) { transition-delay: .21s; }
.trust-bar-inner span:nth-child(5) { transition-delay: .28s; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .hero          { padding: 100px 40px 80px; }
  .split-layout  { gap: 48px; }
  .ebook-layout  { gap: 48px; }
  .cta-layout    { gap: 48px; }
}

@media (max-width: 860px) {
  .hero          { padding: 100px 24px 80px; }
  .split-layout  { grid-template-columns: 1fr; }
  .split-images  { height: 320px; order: -1; }
  .img-top       { width: 65%; }
  .img-bottom    { width: 55%; }
  .ebook-layout  { grid-template-columns: 1fr; }
  .ebook-image img { max-width: 280px; }
  .steps         { grid-template-columns: 1fr; }
  .step-arrow    { display: none; }
  .cta-layout    { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { text-align: center; align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-scroll-hint { display: none; }
  .trust-bar-inner { flex-direction: column; align-items: center; }
  .trust-bar-inner span { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding: 8px 0; width: 100%; text-align: center; }
  .trust-bar-inner span:last-child { border-bottom: none; }
  .cta-form-wrap { padding: 28px 20px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    transition: var(--tr);
    box-shadow: -8px 0 32px rgba(0,0,0,.5);
    z-index: 899;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
  }
  .nav-menu::-webkit-scrollbar { width: 6px; }
  .nav-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 3px; }
  .nav-menu.open { right: 0; }
  .nav-link { width: 100%; padding: 12px 16px; font-size: .95rem; }
  .nav-cta  { width: 100%; text-align: center; justify-content: center; margin-top: 16px; }
}
