:root {
  --green: #66B63F;
  --green-dark: #4b9c2e;
  --navy: #0B2E63;
  --blue: #3F6EB4;
  --ink: #102033;
  --muted: #607086;
  --line: rgba(11, 46, 99, 0.12);
  --soft: #f5f8fb;
  --white: #fff;
  --shadow: 0 22px 60px rgba(11, 46, 99, 0.13);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 46, 99, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(11, 46, 99, 0.14);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(11, 46, 99, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.brand-logo {
  width: 172px;
  height: 58px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(11, 46, 99, 0.12));
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 8px 18px rgba(102, 182, 63, 0.22));
  box-shadow: none;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(11, 46, 99, 0.78);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--green);
}

.site-header .btn {
  border-color: rgba(11, 46, 99, 0.16);
  color: var(--navy);
  background: rgba(11, 46, 99, 0.06);
}

.site-header .btn:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(102, 182, 63, 0.32);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.btn-outline {
  min-height: 42px;
  border-color: rgba(102, 182, 63, 0.35);
  color: var(--green-dark);
  background: rgba(102, 182, 63, 0.08);
}

.btn-sm {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.86rem;
}

.btn-xl {
  min-height: 54px;
  padding-inline: 26px;
  font-size: 0.96rem;
}

.btn-giant {
  min-height: 70px;
  padding-inline: clamp(28px, 5vw, 68px);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
}

.btn-icon {
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
}

.hero picture,
.hero > picture img,
.final-cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 46, 99, 0.96), rgba(11, 46, 99, 0.74) 42%, rgba(11, 46, 99, 0.1)),
    linear-gradient(0deg, rgba(11, 46, 99, 0.25), rgba(11, 46, 99, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 96px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.mid-cta h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 5.8vw, 5.8rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.floating-proof {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 6vw, 90px);
  bottom: clamp(38px, 8vw, 110px);
  display: grid;
  gap: 12px;
}

.float-card {
  min-width: 250px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  font-size: 0.92rem;
  font-weight: 700;
}

.float-card:nth-child(2),
.float-card:nth-child(4) {
  transform: translateX(-34px);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  padding: 28px 28px;
  background: var(--white);
  color: var(--muted);
  font-weight: 700;
}

.trust-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 800;
}

.section {
  padding: clamp(68px, 8vw, 108px) 22px;
}

.section:nth-of-type(even) {
  background: var(--soft);
}

.section-head {
  width: min(1040px, 100%);
  margin: 0 auto 38px;
}

.section-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  font-weight: 700;
  line-height: 1.65;
}

.section h2 {
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(1.95rem, 3.8vw, 3.7rem);
  line-height: 1.08;
}

.comparison {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compare-card,
.plan-card,
.testimonial,
.diff,
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.compare-card {
  min-height: 420px;
  padding: clamp(28px, 4vw, 44px);
}

.compare-card h3,
.service-card h3,
.plan-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.2rem, 1.55vw, 1.48rem);
}

.compare-card ul {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  padding-left: 30px;
  color: var(--muted);
  font-weight: 700;
  position: relative;
}

.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.compare-card.primary {
  background: linear-gradient(145deg, var(--navy), #143f7d);
  color: var(--white);
}

.compare-card.primary h3,
.compare-card.primary li {
  color: var(--white);
}

.compare-card.primary li::before {
  background: var(--green);
}

.service-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 50px rgba(11, 46, 99, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover,
.service-card[open] {
  transform: translateY(-7px);
  box-shadow: 0 24px 70px rgba(11, 46, 99, 0.17);
}

.service-card summary,
.plan-card summary {
  display: grid;
  cursor: pointer;
  padding: 0;
  list-style: none;
}

.service-card summary::-webkit-details-marker,
.plan-card summary::-webkit-details-marker {
  display: none;
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.card-body strong,
.plan-card summary strong {
  color: var(--navy);
  font-size: clamp(1.14rem, 1.45vw, 1.42rem);
  line-height: 1.25;
}

.card-body small,
.plan-card summary small {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.6;
}

.card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(102, 182, 63, 0.12);
  color: var(--green-dark);
  font-weight: 900;
}

.details-trigger {
  width: fit-content;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.details-content {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

.details-content h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
}

.details-content p,
.details-content ul {
  margin: 0;
}

.details-content ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.details-content li::marker {
  color: var(--green);
}

.details-content .btn {
  width: fit-content;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.availability {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(63, 110, 180, 0.08);
  color: var(--navy);
  font-weight: 800;
}

.service-card p,
.plan-card p,
.testimonial p,
.accordion p {
  color: var(--muted);
  line-height: 1.65;
}

.text-cta {
  margin: 8px 24px 24px;
  color: var(--green-dark);
  font-weight: 800;
}

.timeline {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.step {
  position: relative;
  min-height: 164px;
  padding: 24px;
}

.step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 12px;
  height: 2px;
  background: var(--green);
}

.step:last-child::after {
  display: none;
}

.step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(102, 182, 63, 0.13);
  color: var(--green-dark);
  font-weight: 800;
}

.step strong {
  color: var(--navy);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.plan-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  display: grid;
  min-height: 100%;
  padding: 24px;
}

.plan-card summary {
  gap: 12px;
}

.plan-card span {
  display: block;
  margin: 2px 0 6px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.plan-card .details-trigger {
  color: var(--green-dark);
}

.plan-card .details-content {
  padding: 14px 0 0;
}

.plan-card.featured {
  border-color: rgba(102, 182, 63, 0.42);
  background: linear-gradient(180deg, rgba(102, 182, 63, 0.1), var(--white) 34%);
}

.plan-card.featured::before {
  content: "Plan clave";
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.diff-grid {
  display: grid;
  width: min(1040px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.diff {
  min-height: 112px;
  padding: 24px;
  color: var(--navy);
  font-weight: 800;
}

.diff-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy), #163f78);
  color: var(--white);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.45;
}

.diff::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.testimonial-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto 28px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  overflow: hidden;
}

.testimonial img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.testimonial .stars,
.testimonial p,
.testimonial strong {
  margin-inline: 24px;
}

.stars {
  margin-top: 22px;
  color: var(--green);
  letter-spacing: 0;
}

.testimonial strong {
  display: block;
  margin-bottom: 24px;
  color: var(--navy);
}

.mid-cta {
  padding: clamp(72px, 9vw, 118px) 22px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 30% 10%, rgba(63, 110, 180, 0.55), transparent 30%),
    linear-gradient(135deg, var(--navy), #123b76 62%, var(--blue));
}

.mid-cta h2 {
  margin-bottom: 28px;
  font-size: clamp(2.45rem, 5.8vw, 5.2rem);
  line-height: 1;
}

.accordion {
  display: grid;
  width: min(920px, 100%);
  margin: 0 auto;
  gap: 12px;
}

.accordion details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(11, 46, 99, 0.08);
}

.accordion summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--navy);
  font-weight: 800;
}

.accordion details p {
  margin: 0;
  padding: 0 24px 24px;
}

.final-cta {
  position: relative;
  display: grid;
  min-height: 88svh;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 46, 99, 0.9), rgba(11, 46, 99, 0.54), rgba(11, 46, 99, 0.35));
}

.final-content {
  position: relative;
  z-index: 1;
  width: min(890px, calc(100% - 44px));
}

.final-cta h2 {
  margin-bottom: 30px;
  font-size: clamp(2.8rem, 6.5vw, 6.2rem);
  line-height: 0.98;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(102, 182, 63, 0.36);
  font-weight: 900;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 26px 22px;
  border-top: 1px solid rgba(11, 46, 99, 0.12);
  background: #f7fafc;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: grid;
  max-width: 360px;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  width: 170px;
  height: 58px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.footer p,
.footer a {
  margin: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-col {
  display: grid;
  gap: 6px;
}

.footer-col span {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    width: 138px;
    height: 44px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    max-width: 680px;
  }

  .floating-proof {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(680px, calc(100% - 44px));
    margin: -138px auto 36px;
  }

  .float-card:nth-child(2),
  .float-card:nth-child(4) {
    transform: none;
  }

  .trust-bar,
  .comparison,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline,
  .plan-grid,
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    inset: 10px 10px auto;
    padding: 10px;
  }

  .brand-logo {
    width: 126px;
    height: 40px;
  }

  .site-header .btn {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(11, 46, 99, 0.96), rgba(11, 46, 99, 0.72) 55%, rgba(11, 46, 99, 0.28));
  }

  .hero-content {
    width: min(100% - 28px, 560px);
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.65rem);
  }

  .hero-actions,
  .hero-actions .btn,
  .center-cta .btn {
    width: 100%;
  }

  .trust-bar,
  .comparison,
  .service-grid,
  .timeline,
  .plan-grid,
  .diff-grid,
  .testimonial-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 24px 18px;
  }

  .compare-card {
    min-height: auto;
  }

  .section {
    padding-inline: 14px;
  }

  .footer {
    align-items: start;
    gap: 18px;
    padding-bottom: 86px;
  }

  .footer-logo {
    width: 136px;
    height: 46px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    padding-inline: 18px;
  }

  .card-body,
  .plan-card {
    padding: 20px;
  }

  .details-content {
    padding: 0 20px 20px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .details-content .btn,
  .plan-card .details-content .btn {
    width: 100%;
  }

  .diff-wide {
    grid-column: auto;
  }
}
