:root {
  --navy: #003471;
  --navy-dark: #002452;
  --cyan: #08b8cc;
  --cyan-bright: #27d4df;
  --sky: #eafaff;
  --ice: #f5fcff;
  --text: #17314d;
  --muted: #617286;
  --white: #ffffff;
  --border: rgba(0, 52, 113, .12);
  --shadow: 0 20px 55px rgba(0, 52, 113, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

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

.narrow { max-width: 760px; }
.center { text-align: center; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 999;
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

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

.header-inner {
  width: min(1500px, calc(100% - 40px));
  min-height: 82px;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 24px;
}

.brand {
  width: 215px;
}

.brand img { width: 100%; }

.main-nav {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #34516d;
}

.main-nav a {
  position: relative;
  padding: 30px 0 26px;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 77, 141, .24);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 77, 141, .30);
}

.button-small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 14px;
}

.button-secondary {
  background: white;
  color: var(--navy);
  border: 1px solid rgba(0, 52, 113, .17);
  box-shadow: 0 10px 24px rgba(0, 52, 113, .10);
}

.header-cta {
  justify-self: end;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.hero {
  min-height: 690px;
  position: relative;
  overflow: hidden;
  background: var(--ice);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 28%, rgba(255,255,255,.30) 56%, rgba(255,255,255,.02) 100%),
    url("assets/portada.webp");
  background-size: cover;
  background-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(39, 212, 223, .22), transparent 23%),
    linear-gradient(180deg, transparent 62%, rgba(235, 250, 255, .92) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 690px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(590px, 58%);
  padding: 84px 0 120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 900;
}

.eyebrow-light { color: #8cecf4; }

h1, h2, h3 {
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 5.2vw, 75px);
  letter-spacing: -.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.035em;
}

h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.hero-text {
  max-width: 580px;
  margin: 0 0 28px;
  color: #405b74;
  font-size: 20px;
}

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

.hero-note {
  margin-top: 17px;
  color: #547087;
  font-size: 14px;
  font-weight: 700;
}

.hero-wave {
  position: absolute;
  z-index: 3;
  left: -5%;
  right: -5%;
  bottom: -70px;
  height: 150px;
  border-radius: 50% 50% 0 0 / 75% 75% 0 0;
  background: white;
  box-shadow: 0 -18px 55px rgba(8, 184, 204, .08);
}

.section { padding: 100px 0; }
.section-tint {
  background:
    radial-gradient(circle at 95% 10%, rgba(39, 212, 223, .14), transparent 22%),
    var(--ice);
}

.section-heading { margin-bottom: 50px; }

.intro { padding-top: 70px; }
.intro .narrow p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 32px rgba(0,52,113,.06);
}

.feature-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(145deg, #e8faff, #d4f4ff);
  font-size: 22px;
  font-weight: 900;
}

.feature-card p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 70px;
}

.split-reverse {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
}
.split-reverse .split-copy { order: 2; }
.split-reverse .image-pair { order: 1; }

.split-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 34px;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  font-size: 13px;
}

.image-pair {
  position: relative;
  min-height: 540px;
}

.image-card {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #dceff5;
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card-main {
  position: absolute;
  inset: 0 12% 10% 0;
}

.image-card-small {
  position: absolute;
  width: 48%;
  height: 42%;
  right: 0;
  bottom: 0;
  border: 8px solid white;
}

.section-dark {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 10% 20%, rgba(39, 212, 223, .22), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(8, 184, 204, .22), transparent 25%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.section-dark h2,
.section-dark h3 { color: white; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  color: var(--navy);
  background: white;
  font-weight: 900;
}

.service-card p { margin: 0; color: rgba(255,255,255,.76); }

.process-section {
  background:
    linear-gradient(180deg, white, #f9fdff);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 29px;
  border-top: 2px dashed rgba(8,184,204,.28);
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}

.process-step span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,52,113,.18);
}

.process-step h3 { font-size: 18px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.faq-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 72px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
}

.faq-intro p:last-child { color: var(--muted); font-size: 17px; }

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: white;
  box-shadow: 0 8px 26px rgba(0,52,113,.05);
}

.faq-list summary {
  position: relative;
  padding: 22px 58px 22px 23px;
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 17px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sky);
  font-size: 22px;
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin: 0;
  padding: 0 23px 24px;
  color: var(--muted);
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 12% 20%, rgba(39, 212, 223, .25), transparent 25%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.contact-section::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  border: 80px solid rgba(39,212,223,.08);
  border-radius: 50%;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact-copy h2 { color: white; }
.contact-copy > p:not(.eyebrow) {
  color: rgba(255,255,255,.78);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.contact-list a,
.contact-list div {
  display: flex;
  flex-direction: column;
  padding: 17px 19px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
}

.contact-list span { color: rgba(255,255,255,.78); }

.contact-form {
  padding: 30px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfe2eb;
  border-radius: 12px;
  background: #f9fdff;
  padding: 13px 14px;
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8,184,204,.12);
}

.privacy-check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 500 !important;
  color: var(--muted) !important;
}

.privacy-check input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.button-full { width: 100%; }
.form-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #19b761;
  box-shadow: 0 14px 32px rgba(0,0,0,.20);
  font-size: 14px;
  font-weight: 900;
}

.site-footer {
  background: #eef9fd;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding: 58px 0;
}

.footer-logo {
  width: 220px;
  margin-bottom: 18px;
}

.footer-grid h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover { color: var(--cyan); }

.footer-bottom {
  padding: 18px 0;
  color: rgba(255,255,255,.72);
  background: var(--navy-dark);
  font-size: 13px;
}

@media (max-width: 1280px) {
  .header-inner {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .brand { width: 190px; }
  .header-cta { display: none; }
  .main-nav {
    justify-content: flex-end;
    gap: 18px;
    font-size: 13px;
  }
  .split, .split-reverse { gap: 46px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 38px; }
  .process-grid::before { display: none; }
}

@media (max-width: 1080px) {
  html { scroll-padding-top: 76px; }
  .header-inner {
    min-height: 74px;
    grid-template-columns: 1fr auto;
  }
  .brand { width: 180px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .main-nav a:hover { background: var(--sky); }
  .main-nav a::after { display: none; }

  .hero, .hero-inner { min-height: 650px; }
  .hero-image {
    background-image:
      linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.82) 60%, rgba(255,255,255,.16)),
      url("assets/portada.webp");
    background-position: 68% center;
  }
  .hero-copy { width: 70%; }

  .split,
  .split-reverse,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-copy,
  .split-reverse .image-pair { order: initial; }
  .image-pair { min-height: 500px; }
  .faq-intro { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 74px 0; }
  .brand { width: 160px; }

  .hero, .hero-inner { min-height: 690px; }
  .hero-image {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 48%, rgba(255,255,255,.30) 78%, rgba(255,255,255,.05) 100%),
      url("assets/portada.webp");
    background-position: 72% center;
  }
  .hero-inner { align-items: flex-start; }
  .hero-copy {
    width: 100%;
    padding-top: 72px;
  }
  h1 { font-size: 47px; }
  h2 { font-size: 36px; }
  .hero-text { font-size: 17px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }

  .feature-grid,
  .services-grid,
  .process-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .image-pair { min-height: 430px; }
  .image-card-main { inset: 0 6% 14% 0; }
  .image-card-small { width: 53%; height: 40%; }

  .process-step { text-align: left; padding-left: 75px; min-height: 72px; }
  .process-step span { position: absolute; left: 0; top: 0; margin: 0; }
  .process-step h3 { margin-bottom: 6px; }

  .contact-form { padding: 22px; }
  .floating-whatsapp { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
