:root {
  --navy: #0f3d5e;
  --navy-2: #0f3d5e;
  --turquoise: #00a6c8;
  --turquoise-2: #37d6e8;
  --white: #ffffff;
  --soft: #f4f8fb;
  --text: #183047;
  --muted: #6b7c8f;
  --border: rgba(15, 61, 94, 0.14);
  --shadow: 0 24px 70px rgba(7, 29, 51, 0.18);
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow { width: min(850px, calc(100% - 40px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 29, 51, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
  letter-spacing: .4px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.brand strong { color: var(--turquoise-2); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}

.main-nav a:hover { color: white; }

.nav-cta {
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--turquoise), var(--turquoise-2));
  color: #062033 !important;
  border-radius: 999px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
}

.hero-video-section {
  position: relative;
  max-width: 100%;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(5,15,30,.86), rgba(5,15,30,.48)),
    url("../public/images/home-dashboard-hipoteca.webp") center / cover no-repeat,
    #05101f;
  isolation: isolate;
}

.hero-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  transition: opacity .25s ease;
  pointer-events: none;
}

.hero-video-section.video-error .hero-background-video {
  opacity: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5,15,30,.78) 0%,
      rgba(5,15,30,.46) 42%,
      rgba(5,15,30,.16) 100%
    ),
    radial-gradient(circle at 18% 45%, rgba(0,166,200,.20), transparent 32%),
    linear-gradient(180deg, rgba(5,15,30,.04) 0%, rgba(5,15,30,.38) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-video-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 96px 0 82px;
}

.hero-content {
  max-width: 720px;
  text-shadow: 0 2px 26px rgba(0,0,0,.35);
}

.eyebrow, .section-label {
  display: inline-flex;
  color: var(--turquoise-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -2px; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -1.3px; }
h3 { font-size: 22px; }

.hero-text {
  font-size: 20px;
  color: rgba(212,235,250,.86);
  max-width: 680px;
}

.hero-actions, .trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #052033;
  background: linear-gradient(135deg, #2de8ff, #ffffff);
  box-shadow: 0 18px 52px rgba(45,232,255,.34);
}
.btn-secondary {
  color: white;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.btn-light {
  background: white;
  color: var(--navy);
}

.trust-row span {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.problem-section {
  padding: 70px 0;
  background: var(--soft);
  text-align: center;
}
.problem-section p { font-size: 19px; color: var(--muted); }

.section { padding: 95px 0; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.section p { color: var(--muted); font-size: 18px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.check-list li {
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: 900;
}
.inline-link {
  color: var(--navy-2);
  font-weight: 850;
}

.glass-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(135deg, white, #edfaff);
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 38px;
  height: 210px;
  margin-top: 24px;
}
.mini-bars span {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  color: var(--muted);
  font-weight: 800;
}
.mini-bars i {
  position: absolute;
  bottom: 34px;
  width: 80%;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, var(--turquoise-2), var(--navy-2));
}

.dark-section {
  background: var(--navy);
  color: white;
}
.dark-section p { color: rgba(255,255,255,.72); }

.section-head {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 46px;
}

.cards-3, .feature-grid {
  display: grid;
  gap: 22px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }

.feature-card, .feature-item {
  border-radius: 26px;
  padding: 28px;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 18px 45px rgba(7,29,51,.08);
}
.dark-section .feature-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.icon {
display:inline-flex;
align-items:center;
justify-content:center;
width:48px;
height:48px;
margin-bottom:14px;
border-radius:16px;
background:rgba(0,166,200,.12);
color:#00a6c8;
}

.icon svg {
width:28px;
height:28px;
fill:none;
stroke:currentColor;
stroke-width:3;
stroke-linecap:round;
stroke-linejoin:round;
}

.icon svg rect,
.icon svg circle {
fill:rgba(0,166,200,.16);
stroke:currentColor;
}

.report-section { background: linear-gradient(180deg, #f5fbff, #ffffff); }
.report-preview {
  display: flex;
  justify-content: center;
}
.paper {
  width: 360px;
  min-height: 470px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  padding: 36px;
  transform: rotate(-3deg);
}
.paper-line {
  height: 13px;
  background: #dce8ef;
  border-radius: 999px;
  margin-bottom: 14px;
  width: 75%;
}
.paper-line.wide { width: 100%; background: var(--navy-2); }
.paper-table {
  height: 150px;
  border-radius: 14px;
  background:
    linear-gradient(#e8f1f6 1px, transparent 1px),
    linear-gradient(90deg, #e8f1f6 1px, transparent 1px);
  background-size: 100% 38px, 33% 100%;
  border: 1px solid #e8f1f6;
  margin: 30px 0;
}

.faq-section { background: var(--soft); }
details {
  background: white;
  border: 1px solid var(--border);
  padding: 22px 24px;
  border-radius: 18px;
  margin-bottom: 14px;
}
summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--navy);
}

.cta-section {
  padding: 90px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(55,214,232,.32), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
}
.cta-box {
  text-align: center;
  max-width: 850px;
}
.cta-box p { color: rgba(255,255,255,.78); font-size: 20px; }
.cta-box small {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,.6);
}

.hero-video-section .hero-content {
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0,0,0,.68), 0 1px 2px rgba(0,0,0,.88);
}

.hero-video-section .eyebrow {
  color: #8feeff;
  text-shadow: 0 2px 12px rgba(0,0,0,.72);
}

.hero-video-section h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0,0,0,.78), 0 1px 2px rgba(0,0,0,.92);
}

.hero-video-section .hero-text {
  color: #e6f7ff;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0,0,0,.82);
}

.hero-video-section .btn-primary {
  color: #041525;
  background: linear-gradient(135deg, #ffffff 0%, #66f0ff 48%, #16b8ff 100%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 18px 46px rgba(22,184,255,.36), 0 4px 14px rgba(0,0,0,.34);
}

.hero-video-section .btn-secondary {
  color: #ffffff;
  background: rgba(4,18,32,.58);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
}

.hero-video-section .trust-row span {
  color: #eefbff;
  background: rgba(4,18,32,.52);
  border-color: rgba(255,255,255,.42);
  text-shadow: 0 1px 8px rgba(0,0,0,.72);
}

.site-footer {
  padding: 36px 0;
  background: #f4f8fb;
  color:#0f3d5e;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer-grid a {
  display: inline-block;
  margin-left: 18px;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    background: var(--navy);
    display: none;
  }
  .main-nav.open { display: flex; }
  .split { grid-template-columns: 1fr; }
  .cards-3, .feature-grid { grid-template-columns: 1fr; }
  .hero-video-section {
    min-height: 82vh;
    align-items: flex-end;
  }
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(5,15,30,.22) 0%, rgba(5,15,30,.72) 68%, rgba(5,15,30,.84) 100%),
      linear-gradient(90deg, rgba(5,15,30,.68), rgba(5,15,30,.18));
  }
  .hero-video-content-wrap {
    padding: 86px 0 58px;
  }
  .hero-content {
    max-width: 100%;
  }
  .footer-grid { flex-direction: column; }
  .footer-grid a { margin: 0 18px 0 0; }
}

@media (max-width: 560px) {
  .hero-video-section {
    min-height: 86vh;
  }
  .hero-video-content-wrap {
    padding: 72px 0 42px;
  }
  .hero-video-section h1 {
    font-size: clamp(38px, 11vw, 54px);
  }
  .hero-text {
    font-size: 17px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
