/* =========================================================
   CEDFX — Landing estática (réplica 1:1)
   Fuente: src/app/(public)/page.tsx + src/features/public/components/*
   ========================================================= */

/* ---------- Fuentes locales ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #171717;
  background: #F4F0EC;
  font-family: "Montserrat", "Roboto", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrapper { overflow-x: hidden; }

/* ---------- Utilidades de layout ---------- */
.container { max-width: 1180px; margin-left: auto; margin-right: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  width: 100%;
  height: 76px;
  padding: 20px 29px;
  background: #0A3019;
  position: relative;
  z-index: 100;
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo img { width: 140px; height: 36px; object-fit: contain; }

.site-header__nav { display: none; }
.site-header__hamburger {
  background: none;
  border: none;
  padding: 4px;
  display: block;
}
.site-header__hamburger img { width: 24px; height: 24px; }

@media (min-width: 1024px) {
  .site-header { height: 109px; padding: 29px; }
  .site-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 20px;
  }
  .site-header__hamburger { display: none; }
}

.nav-link {
  background: none;
  border: none;
  color: #F4F0EC;
  font-size: inherit;
  padding: 0;
  transition: color .2s ease;
}
.nav-link:hover { color: #4ade80; }

.btn-outline {
  display: none;
  align-items: center;
  background: none;
  color: #F4F0EC;
  padding: 12px 20px;
  border: 1px solid #F4F0EC;
  border-radius: 9999px;
  transition: opacity .2s ease;
  font-size: 16px;
}
@media (min-width: 1024px) { .btn-outline { display: inline-flex; } }
.btn-outline--sm { font-size: 14px; }
.btn-outline svg, .btn-outline img { margin-right: 8px; }

.btn-cta-header {
  display: none;
  font-weight: 700;
  background: #CDFF8A;
  color: #0A3019;
  padding: 12px 20px;
  border-radius: 9999px;
  border: none;
  transition: background .2s ease;
}
.btn-cta-header:hover { background: #22c55e; }
@media (min-width: 1024px) { .btn-cta-header { display: inline-block; } }

/* Drawer móvil */
.mobile-drawer { display: none; }
.mobile-drawer.is-open { display: block; position: fixed; inset: 0; z-index: 200; }
.mobile-drawer__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
}
.mobile-drawer__panel {
  position: absolute; right: 0; top: 0; height: 100%; width: 100%;
  background: #0A3019;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 24px 24px;
  box-shadow: -8px 0 24px rgba(0,0,0,.25);
  animation: slide-in .25s cubic-bezier(.4,0,.2,1);
}
@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-drawer__top {
  width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px;
}
.mobile-drawer__top img { width: 110px; height: 30px; object-fit: contain; }
.mobile-drawer__close { background: none; border: none; padding: 0; }
.mobile-drawer__nav {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  color: #fff; font-size: 18px; width: 100%; max-width: 184px; margin: 0 auto;
  padding-top: 45px; text-align: center; font-size: 20px;
}
.mobile-drawer__nav a, .mobile-drawer__nav button {
  background: none; border: none; color: #fff; font-size: inherit;
}
a.mobile-drawer__wa, a.mobile-drawer__demo {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #fff; border-radius: 9999px; padding: 12px 0;
  color: #fff; font-size: 14px;
}
a.mobile-drawer__demo { margin-top: 0; }
a.mobile-drawer__cta {
  width: 100%; max-width: 184px; margin: 35px auto 0;
  font-weight: 700; background: #CDFF8A; color: #0A3019;
  border-radius: 9999px; border: none; padding: 12px 0; font-size: 16px; text-align: center;
}

/* =========================================================
   PORTADA (hero)
   ========================================================= */
.hero {
  background: #3A6335;
  background: linear-gradient(352deg, rgba(58,99,53,1) 0%, rgba(26,65,35,1) 16%, rgba(21,60,32,1) 28%, rgba(11,49,25,1) 39%, rgba(10,48,25,1) 100%);
}
.hero__inner {
  max-width: 1180px; margin: 0 auto; padding-top: 32px;
  display: grid; gap: 32px; align-items: start;
}
@media (min-width: 1024px) {
  .hero__inner { padding-top: 64px; grid-template-columns: 1fr 1fr; gap: 0; }
}
.hero__copy {
  display: flex; flex-direction: column; gap: 32px;
  width: 95%; margin: 0 auto 40px; text-align: center;
}
@media (min-width: 768px) {
  .hero__copy { width: 100%; margin: 0; text-align: left; }
}
@media (min-width: 1024px) { .hero__copy { margin-bottom: 0; } }
.hero__title {
  font-size: 32px; font-weight: 700; color: #fff; line-height: 1.2;
}
@media (min-width: 768px) { .hero__title { font-size: 2.8rem; } }
.hero__title span { color: #94BAFB; }

.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 768px) { .hero__actions { flex-direction: row; } }

.btn-lime {
  margin-top: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #CDFF8A; color: #000; padding: 16px 32px;
  border-radius: 9999px; font-size: 16px; font-weight: 500;
  transition: background .2s ease;
}
.btn-lime:hover { background: #22c55e; }

.btn-ghost {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 12px;
  background: #0a3019; color: #F4F0EC; padding: 16px 32px;
  border: 1px solid #F4F0EC; border-radius: 9999px;
  font-size: 16px; font-weight: 500; transition: opacity .2s ease;
}
.btn-ghost img { width: 16px; height: 16px; margin: 0; }

.hero__media { position: relative; width: 320px; margin: 0 auto; }
@media (min-width: 768px) { .hero__media { width: 674px; margin: 0; } }
.hero__media-fg { position: absolute; top: 0; width: 100%; }
.hero__media-fg img { animation: floatY 3s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

/* =========================================================
   CARACTERÍSTICAS
   ========================================================= */
.features { background: #F4F0EC; }
.features__inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 1024px) { .features__inner { padding: 64px 0; } }

.section-title {
  font-size: 1.8rem; color: #0A3019; font-weight: 700; text-align: center;
}
@media (min-width: 1024px) { .section-title { font-size: 2.8rem; } }
.section-title--light { color: #F4F0EC; }

.btn-dark {
  background: #1E2925; color: #fff; padding: 16px 32px;
  border: none; border-radius: 9999px; font-size: 18px; transition: background .2s ease;
}
.btn-dark:hover { background: #22c55e; }

.features__cta { display: flex; justify-content: center; margin-top: 24px; }

.features__grid {
  margin-top: 48px; display: grid; gap: 32px; align-items: start;
}
@media (min-width: 1024px) { .features__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.features__col { display: grid; gap: 20px; padding: 0 20px; }
.features__col--right { padding-top: 80px; }
@media (max-width: 1023px) { .features__col--right { padding-top: 0; } }

.feature-card {
  position: relative;
  border: 1px solid #278235; border-radius: 8px;
  padding: 48.5px 36px 48.5px 79px;
  font-size: 24px; line-height: 1.25;
  opacity: 0; transform: translateX(-50px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.feature-card.reveal-right { transform: translateX(50px); }
.feature-card.is-visible { opacity: 1; transform: translateX(0); }
.feature-card__icon {
  position: absolute; top: -15%; left: -5%;
  width: 83px; height: 83px; background: #44E353;
  display: flex; align-items: center; justify-content: center;
}
.feature-card__icon img { width: 40px; height: 40px; object-fit: contain; }
.feature-card__title { font-weight: 600; }
.feature-card__desc { font-weight: 300; }

/* =========================================================
   PLANES
   ========================================================= */
.plans { background: #CEF3D1; }
.plans__inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 1024px) { .plans__inner { padding: 64px 32px; } }

.plans__grid { display: grid; gap: 20px; align-items: start; margin-top: 75px; }
@media (min-width: 1024px) { .plans__grid { grid-template-columns: 1fr 1fr; } }

.plans__requirements { padding: 0 32px; }
.plans__requirements-inner { max-width: 415px; display: flex; flex-direction: column; gap: 32px; }
.plans__requirements h3 {
  font-size: 24px; font-weight: 700; color: #1f2937; text-align: center; margin-bottom: 24px;
}
@media (min-width: 1024px) { .plans__requirements h3 { text-align: left; } }

.check-list { display: flex; flex-direction: column; gap: 32px; font-size: 18px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list img { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.check-list span { color: #1f2937; line-height: 1.25; }

.plans__checkboxes { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 16px; flex-wrap: wrap; }
.checkbox-field { display: flex; align-items: flex-start; gap: 8px; max-width: 197px; }
.checkbox-field:last-child { max-width: 160px; }
.checkbox-field input { margin-top: 3px; width: 16px; height: 16px; accent-color: #0A3019; }

.plans__submit { display: flex; justify-content: center; margin-top: 24px; }
.plans__note { font-size: 14px; color: #4b5563; text-align: center; margin-top: 16px; }

.plan-card-wrap { max-width: 341px; margin: 0 auto; }
.plan-card {
  position: relative; border-radius: 8px; background: #0A3019; border: 1px solid #000;
  padding: 64px 0;
  animation: pulse-scale 1.5s ease-in-out infinite;
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.plan-card__badge {
  background: #94BAFB; position: absolute; top: 20px; right: 20px;
  padding: 6px 9px; font-size: 12px; font-weight: 500;
}
.plan-card__head { display: flex; flex-direction: column; gap: 16px; padding: 24px; text-align: left; }
.plan-card__head h3 { font-size: 32px; font-weight: 600; color: #F4F0EC; }
.plan-card__price { font-size: 38px; font-weight: 600; color: #F4F0EC; margin-top: 8px; }
.plan-card__body { padding: 0 24px 24px; }
.plan-card__body hr { border: none; border-top: 1px solid #d1d5db; margin: 0 0 24px; }
.plan-card__list { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.plan-card__list li { display: flex; align-items: flex-start; gap: 12px; }
.plan-card__list img { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.plan-card__list span { color: #F4F0EC; line-height: 1.25; }
.plan-card__submit { display: flex; justify-content: center; margin-top: 60px; }

.btn-lime-fill {
  background: #CDFF8A; color: #000; font-weight: 700;
  padding: 8px 32px; border: none; border-radius: 9999px; font-size: 18px;
  transition: background .2s ease;
}
.btn-lime-fill:hover { background: #22c55e; }

/* =========================================================
   CÓMO FUNCIONA
   ========================================================= */
.how { background: #F4F0EC; }
.how__inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 1024px) { .how__inner { padding: 64px 16px; } }

.how__desktop { display: none; }
.how__mobile { display: block; margin-top: 48px; position: relative; }
@media (min-width: 1024px) {
  .how__desktop { display: block; position: relative; }
  .how__mobile { display: none; }
}

.how__line { position: absolute; width: 95%; left: calc(50% - 37.5%); }
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: start; margin-top: 75px; }

.how__step-1 { display: flex; gap: 8px; }
.how__step-1 .how__phone { position: relative; left: -50px; }
.how__step-1 .how__phone img { height: 100%; }
.how__step-1 .how__text { display: flex; flex-direction: column; color: #0A3019; justify-content: center; padding-bottom: 128px; }

.how__step-2 { display: flex; gap: 40px; margin-top: 110px; }
.how__step-2 .how__tablet { position: relative; left: 250px; }
.how__step-2 .how__tablet img { height: 100%; }
.how__step-2 .how__text { margin-left: 160px; position: absolute; color: #0A3019; padding-top: 180px; }

.how__step-3 { grid-column: span 2; display: flex; justify-content: flex-start; margin-top: 150px; }
.how__step-3 .how__laptop img { height: 100%; }
.how__step-3 .how__text { margin-left: 16px; display: flex; flex-direction: column; color: #0A3019; justify-content: center; padding-bottom: 56px; }

.how__num { position: relative; left: -20px; font-size: 50px; font-weight: 700; }
.how__label { position: relative; left: -20px; font-size: 18px; font-weight: 600; max-width: 400px; }
@media (min-width: 1024px) { .how__label { font-size: 24px; } }

/* Mobile */
.how__mobile-line { position: absolute; width: 60%; top: calc(50% - 30%); left: calc(60% - 30%); }
.how__mobile-steps { display: flex; flex-direction: column; gap: 64px; position: relative; z-index: 10; margin: 0; padding: 0; list-style: none; }
.how__mobile-steps li { display: flex; align-items: flex-start; justify-content: center; text-align: center; }
.how__mobile-steps .how__mnum { font-size: 36px; font-weight: 700; }
.how__mobile-steps .how__mlabel { font-size: 16px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.how__mobile-steps .how__mtext { color: #0A3019; text-align: left; }

.how__mobile-steps .step-1 .how__mtext { max-width: 95px; margin-top: 20px; }
.how__mobile-steps .step-1 img { width: 147px; margin: 0 auto 24px; }

.how__mobile-steps .step-2 .how__mtext { max-width: 108px; }
.how__mobile-steps .step-2 .how__mnum { margin-bottom: 8px; }
.how__mobile-steps .step-2 img { width: 207px; margin: 80px auto 0; }

.how__mobile-steps .step-3 .how__mtext { max-width: 140px; }
.how__mobile-steps .step-3 .how__mnum { margin-bottom: 8px; }
.how__mobile-steps .step-3 img { width: 177px; margin: 0 auto 24px; }

/* =========================================================
   BENEFICIOS
   ========================================================= */
.benefits { background: #0A3019; }
.benefits__inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 1024px) { .benefits__inner { padding: 64px 16px; } }
.benefits__title { max-width: 480px; margin: 0 auto; }

.benefits__grid { display: grid; gap: 20px; margin-top: 75px; }
@media (min-width: 1024px) { .benefits__grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card { padding: 30px; background: #1B402A; border-radius: 8px; }
.benefit-card__icon {
  width: 83px; height: 83px; background: #44E353;
  display: flex; align-items: center; justify-content: center;
}
.benefit-card__icon img { width: 40px; height: 40px; object-fit: contain; }
.benefit-card p { color: #F4F0EC; margin-top: 55px; line-height: 1.25; font-size: 24px; }

/* =========================================================
   TESTIMONIOS / ALIANZAS
   ========================================================= */
.partners { background: #F4F0EC; }
.partners__inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 1024px) { .partners__inner { padding: 110px 16px; } }
.partners__lead { text-align: center; font-size: 18px; color: #0A3019; margin-bottom: 48px; }

.partners__grid {
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 1024px) { .partners__grid { flex-direction: row; justify-content: center; } }

.partner-card {
  background: #F4F0EC; border: 2px solid #0A3019; border-radius: 16px;
  padding: 24px; text-align: center; flex: 1 1 0; max-width: 360px; margin: 0 auto;
}
.partner-card img { width: 100%; max-width: 276px; border-radius: 9999px; margin: 0 auto 16px; }
.partner-card h4 { font-weight: 600; color: #0A3019; font-size: 18px; margin: 0; }
.partner-card p { color: #0A3019; font-size: 16px; line-height: 1.5; margin-top: 4px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { width: 100%; background: #CEF3D1; padding: 61px 0; }
@media (min-width: 768px) { .faq { padding: 110px 0; } }
.faq__inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.faq__head { text-align: center; margin-bottom: 48px; }
.faq__head h2 { font-size: 28px; font-weight: 700; color: #0A3019; margin-bottom: 16px; }
@media (min-width: 768px) { .faq__head h2 { font-size: 3rem; } }
.faq__head p { font-size: 20px; color: #0A3019; }

.faq-item { border-bottom: 1px solid #0A3019; padding: 12px 0; }
@media (min-width: 768px) { .faq-item { padding: 24px 0; } }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; padding: 0 20px;
}
@media (min-width: 768px) { .faq-item summary { padding: 0; } }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q {
  font-size: 20px; font-weight: 600; color: #0A3019; line-height: 1.25; max-width: 216px;
}
@media (min-width: 768px) { .faq-item__q { font-size: 18px; max-width: none; line-height: 1.4; } }
.faq-item__icon { width: 24px; height: 14px; flex-shrink: 0; object-fit: contain; }
@media (min-width: 768px) { .faq-item__icon { width: 16px; height: 8px; } }
.faq-item .icon-down { display: block; }
.faq-item .icon-up { display: none; }
.faq-item[open] .icon-down { display: none; }
.faq-item[open] .icon-up { display: block; }
.faq-item__a { padding: 16px 20px 0; max-width: 208px; }
@media (min-width: 768px) { .faq-item__a { padding: 24px 32px 0 0; max-width: none; } }
.faq-item__a p { font-size: 16px; color: #0A3019; line-height: 1.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0A3019; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 1024px) { .site-footer__inner { padding: 64px 16px; } }

.site-footer__grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }

.site-footer__brand {
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.3);
  display: flex; flex-direction: column; align-items: center; max-width: 212px; width: 100%; margin: 0 auto;
}
@media (min-width: 768px) {
  .site-footer__brand { border-bottom: none; border-right: 1px solid rgba(255,255,255,.3); align-items: flex-start; max-width: none; margin: 0; padding-bottom: 0; }
}
.site-footer__brand img { width: 100px; height: 40px; object-fit: contain; margin-bottom: 32px; }
.site-footer__brand-links { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.site-footer__brand-links a { color: #fff; }

.site-footer__wa {
  display: flex; align-items: center; justify-content: center;
  background: none; color: #F4F0EC; padding: 12px 24px;
  border: 1px solid #F4F0EC; border-radius: 9999px; width: 100%; font-size: 14px;
}
@media (min-width: 768px) { .site-footer__wa { max-width: 157px; } }
.site-footer__wa svg { margin-right: 8px; }

.site-footer__col h3 { font-size: 18px; margin-bottom: 24px; color: #fff; }
.site-footer__col { margin-bottom: 40px; text-align: center; }
@media (min-width: 768px) { .site-footer__col { text-align: left; margin-bottom: 0; } }
.site-footer__col-links { display: flex; flex-direction: column; gap: 16px; }
.site-footer__col-links a { color: #fff; }

.site-footer__rule { border: none; border-top: 1px solid rgba(255,255,255,.3); margin: 32px 0; }
.site-footer__copy { text-align: center; color: #fff; font-size: 16px; }
