/* Glidef — estilos del sitio (tema claro). Se apoya en el grid de Bootstrap 4. */

/* Poppins (c) Indian Type Foundry — SIL Open Font License 1.1 (https://openfontlicense.org).
   Subconjunto latino alojado localmente. El peso 600 usa el archivo 700. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff) format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(../fonts/poppins-700.woff) format('woff'); }

:root {
    --brand: #42CB31;
    --brand-dark: #23861A;   /* verde para texto sobre blanco (contraste AA) */
    --brand-deep: #0E3B0A;
    --brand-success: #44B681;
    --tint: #F4FBF2;
    --tint-2: #E8F7E4;
    --ink: #111827;
    --ink-2: #374151;
    --muted: #6B7280;
    --line: #E5E7EB;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(17, 24, 39, .08);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink-2);
    background: var(--white);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--ink); font-weight: 700; line-height: 1.25; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand-deep); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Botones ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .7rem 1.4rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: var(--brand-deep); border: 2px solid var(--brand); }
.btn-brand:hover, .btn-brand:focus { background: #38B829; border-color: #38B829; color: var(--brand-deep); box-shadow: 0 8px 20px rgba(66, 203, 49, .3); }
.btn-outline-brand { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn-outline-brand:hover { background: var(--tint); color: var(--brand-deep); }
.btn-wa { background: #fff; color: #128C4B; border: 2px solid #25D366; }
.btn-wa:hover { background: #EFFCF3; color: #0B6B38; }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 40px; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.main-nav ul a:hover { background: var(--tint); color: var(--ink); }
.main-nav ul a.active { color: var(--brand-dark); background: var(--tint); }
.pill-soon { display: inline-block; font-size: .65rem; font-weight: 600; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 1px 7px; vertical-align: middle; margin-left: 2px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099.98px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 10px; }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 12px; font-size: 1rem; }
    .nav-cta { align-self: flex-start; }
}

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--brand-dark); background: var(--tint-2); border-radius: 999px; padding: 5px 14px; margin-bottom: 16px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(66, 203, 49, .25); }
.text-brand { color: var(--brand-dark); }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding: 64px 0 72px; overflow: hidden; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; letter-spacing: -.5px; }
.hero h1 .text-brand { display: inline; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-points i { color: var(--brand-success); margin-right: 6px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badges img { width: 160px; height: auto; display: block; }
.store-badges-sm img { width: 140px; }
.store-badges a { border-radius: 12px; display: inline-block; }

/* Maqueta del teléfono (ilustrativa, hecha en CSS) */
.phone-wrap { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.phone-wrap::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(66, 203, 49, .25), rgba(66, 203, 49, 0) 70%); top: 40px; }
.phone { position: relative; width: 290px; background: #fff; border: 10px solid #111827; border-radius: 40px; box-shadow: 0 30px 60px rgba(17, 24, 39, .18); overflow: hidden; }
.phone-map { height: 210px; background:
        linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px) 0 0 / 34px 34px,
        linear-gradient(0deg, rgba(255,255,255,.7) 1px, transparent 1px) 0 0 / 34px 34px,
        #DDF3D8; position: relative; }
.phone-map .route { position: absolute; left: 60px; top: 50px; width: 150px; height: 110px; border: 4px dashed var(--brand-dark); border-left: 0; border-bottom: 0; border-radius: 0 60px 0 0; }
.phone-map .pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.phone-map .pin-a { left: 50px; top: 41px; background: var(--brand-dark); }
.phone-map .pin-b { left: 201px; top: 150px; background: #EF4444; }
.phone-map .vehicle { position: absolute; left: 120px; top: 34px; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: .8rem; }
.phone-body { padding: 16px; }
.phone-chips { display: flex; gap: 6px; margin-bottom: 12px; }
.phone-chip { flex: 1; text-align: center; font-size: .72rem; font-weight: 600; padding: 7px 4px; border-radius: 10px; background: #F3F4F6; color: var(--ink-2); }
.phone-chip.on { background: var(--tint-2); color: var(--brand-dark); outline: 2px solid var(--brand); }
.phone-field { display: flex; align-items: center; gap: 8px; font-size: .78rem; background: #F9FAFB; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; color: var(--ink-2); }
.phone-field i { color: var(--brand-dark); width: 14px; text-align: center; }
.phone-offer { margin: 10px 0; padding: 10px; border-radius: 12px; background: var(--tint); font-size: .78rem; }
.phone-offer strong { display: block; color: var(--ink); font-size: .85rem; }
.phone-offer .bar { height: 6px; border-radius: 6px; background: #D1D5DB; margin-top: 8px; position: relative; }
.phone-offer .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 6px; background: var(--brand); }
.phone-btn { display: block; text-align: center; background: var(--brand); color: var(--brand-deep); font-weight: 700; font-size: .85rem; border-radius: 12px; padding: 9px; }
.float-card { position: absolute; z-index: 2; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: .8rem; display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.float-card i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint-2); color: var(--brand-dark); }
.float-card small { display: block; color: var(--muted); font-weight: 400; }
.float-1 { left: 0; top: 70px; }
.float-2 { right: 0; bottom: 70px; }
@media (max-width: 575.98px) {
    .float-card { display: none; }
    .phone { width: 260px; }
}

/* ---------- Tarjetas ---------- */
.card-g { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; transition: box-shadow .2s, transform .2s; }
.card-g:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-g h3 { font-size: 1.2rem; margin: 16px 0 8px; }
.card-g p { margin: 0; color: var(--ink-2); }
.card-g ul { padding-left: 18px; margin: 12px 0 0; }
.card-g li { margin-bottom: 4px; }
.icon-box { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--tint-2); color: var(--brand-dark); }
.card-soon { position: relative; background: #FFFBEB; border-color: #FDE68A; }
.card-soon .icon-box { background: #FEF3C7; color: #B45309; }
.badge-soon { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 600; background: #FDE68A; color: #92400E; border-radius: 999px; padding: 3px 10px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Pasos */
.steps { counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 24px 24px 24px; border: 1px solid var(--line); height: 100%; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-deep); font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .95rem; }

/* Lista con checks */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--tint-2); color: var(--brand-success); font-size: .7rem; display: grid; place-items: center; }
.check-list strong { color: var(--ink); }

/* Bloques destacados */
.feature-split { align-items: center; }
.panel { background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.panel-tint { background: var(--tint); box-shadow: none; border: 1px solid var(--tint-2); }

.wa-box { background: linear-gradient(135deg, #EFFCF3, #fff); border: 1px solid #C9F2D6; border-radius: 24px; padding: 40px; }
.wa-chat { background: #E7F7EC; border-radius: 18px; padding: 16px; max-width: 360px; margin: 0 auto; }
.wa-msg { background: #fff; border-radius: 12px 12px 12px 2px; padding: 8px 12px; font-size: .88rem; margin-bottom: 8px; max-width: 85%; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa-msg.me { background: #D9FDD3; margin-left: auto; border-radius: 12px 12px 2px 12px; }
.wa-msg i { color: #128C4B; margin-right: 6px; }

.promo-card { background: #fff; border-radius: var(--radius); padding: 26px; height: 100%; border: 2px dashed #BBE8B3; }
.promo-card .icon-box { background: var(--brand); color: var(--brand-deep); }
.promo-card h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.promo-card p { margin: 0; font-size: .95rem; }

.cta-band { background: var(--tint-2); border-radius: 28px; padding: 48px 40px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.page-hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding: 56px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; color: var(--ink-2); }

.doc-list { columns: 2; column-gap: 30px; padding: 0; list-style: none; }
.doc-list li { break-inside: avoid; margin-bottom: 12px; padding-left: 32px; position: relative; }
.doc-list li i { position: absolute; left: 0; top: 4px; color: var(--brand-dark); }
@media (max-width: 575.98px) { .doc-list { columns: 1; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; }
.faq details > div p:last-child { margin-bottom: 0; }
.faq-group { font-size: 1.25rem; margin: 36px 0 14px; }

/* Formularios */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.form-card label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.form-control, .custom-select { border-radius: 12px; border: 1px solid #D1D5DB; padding: .65rem .9rem; height: auto; font-size: 1rem; }
.form-control:focus, .custom-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(66, 203, 49, .25); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 14px; }
.alert-success { background: #ECFDF3; border-color: #A7F3C5; color: #065F46; }
.alert-danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon-box { flex: 0 0 48px; width: 48px; height: 48px; font-size: 1.1rem; }
.contact-item h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-item p { margin: 0; }

/* ---------- Pie ---------- */
.site-footer { background: #F9FAFB; border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .95rem; }
.brand-footer { font-size: 1.3rem; margin-bottom: 12px; }
.brand-footer img { height: 36px; }
.footer-tagline { color: var(--muted); max-width: 340px; }
.footer-title { font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; color: var(--ink-2); }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-links i { color: var(--brand-dark); width: 18px; }
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Páginas legales (contenido heredado) ---------- */
.legal-page .sample-text-area { padding: 30px 0 70px; }
.legal-page .box_1170 { max-width: 1170px; }
.legal-page .services-area { padding: 48px 0 0; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.legal-page .section-tittle h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); text-align: center; }
.legal-page .mb-80 { margin-bottom: 30px; }
.legal-page .company-header .company-name { color: #fff; }

@media (max-width: 767.98px) {
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 48px; }
    .panel, .wa-box, .cta-band, .form-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card-g { transition: none; }
}
