:root {
    --bg: #ffffff;
    --text: #030303;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;

    /* Verde = acción / CTA */
    --accent: #059669;

    /* Azul = marca / confianza */
    --accent-2: #122960;
}

/* =========================
   Base
   ========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1120px;
    margin: auto;
    padding: 0 16px;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: #f8fafc;
}

.lead {
    color: var(--muted);
}

.accent {
    color: var(--accent);
}

.hidden {
    display: none !important;
}

/* utilidad global */

/* =========================
   Header
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: saturate(120%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    height: auto;
    min-height: 76px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--accent-2);
}

/* (Si aún usas el cuadrito FT en algún lado) */
.logo {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
}

/* Logo en imagen */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-img {
    height: 56px;
    width: auto;
    display: block;
}

@media(max-width:480px) {
    .brand-img {
        height: 44px;
    }
}

/* Nav (Azul = marca, Verde = hover) */
.nav a {
    margin-left: 18px;
    color: var(--accent-2);
}

.nav a:hover {
    color: var(--accent);
}

/* =========================
   Language switch
   ========================= */
.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.lang-switch button {
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switch button.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px #d1fae5;
}

.lang-switch button:hover {
    background: #f8fafc;
    border-color: var(--accent-2);
}

/* =========================
   Hero
   ========================= */
.hero {
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

.hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--accent-2);
}

.hero p {
    max-width: 60ch;
}

.grid-2 {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
}

/* 2 columnas en desktop */
@media(min-width:900px) {
    .grid-2 {
        grid-template-columns: 1.1fr .9fr;
    }
}

.hero .grid-2 {
    align-items: center;
}

/* Hero image */
.hero-media {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(2, 6, 23, .06);
    overflow: hidden;
}

.hero-media img {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    max-width: 100%;
}

/* =========================
   Cards / grids
   ========================= */
.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media(min-width:640px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width:960px) {
    .cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(2, 6, 23, .04);
}

.card h3 {
    margin: 8px 0 6px;
    color: var(--accent-2);
}

.card p {
    margin: 0;
    color: var(--muted);
}

.icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
}

/* =========================
   Panels / checklist / pills
   ========================= */
.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
}

.checklist {
    margin: 12px 0 20px;
    padding-left: 18px;
}

.checklist li {
    margin: 6px 0;
}

.checklist.tight {
    margin: 10px 0 0;
}

.checklist.tight li {
    margin: 6px 0;
}

.mini-block {
    margin-top: 14px;
}

.mini-block h4 {
    margin: 10px 0 8px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

/* =========================
   Buttons / CTA
   ========================= */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.btn:hover {
    background: #f8fafc;
}

/* Verde = acción */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #047857;
}

/* Outline = azul corporativo */
.btn-primary.outline {
    background: #fff;
    color: var(--accent-2);
    border-color: var(--accent-2);
}

.btn-primary.outline:hover {
    background: #f8fafc;
}

.cta {
    background: var(--accent);
    color: #fff;
}

.cta-inner {
    display: flex;
    gap: 16px;
    padding: 26px 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.btn-light {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.btn-light:hover {
    background: rgba(255, 255, 255, .25);
}

/* =========================
   Contacto (tarjetas + form)
   ========================= */
.contact {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.contact li {
    margin: 6px 0;
}

/* Tarjetas por país + correos */
.contact-grid {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

@media(min-width:640px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-card-wide {
        grid-column: 1 / -1;
    }
}

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 0;
}

.contact-card .contact {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.contact-title {
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--accent-2);
}

/* Honeypot */
.hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Form (asegurado) */
form.form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

form.form .field {
    margin-bottom: 14px;
}

form.form .field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--accent-2);
}

form.form .field input,
form.form .field textarea,
form.form .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

form.form .field input:focus,
form.form .field textarea:focus,
form.form .field select:focus {
    outline: 2px solid #d1fae5;
    border-color: #a7f3d0;
}

form.form .grid {
    display: grid;
    gap: 14px;
}

@media(min-width:640px) {
    form.form .grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   FAQ
   ========================= */
.faq {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(2, 6, 23, .04);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    color: var(--accent-2);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "▾";
    float: right;
    color: var(--muted);
}

.faq-item[open] summary::after {
    content: "▴";
}

.faq-body {
    margin-top: 10px;
    color: var(--muted);
}

/* =========================
   Comparador
   ========================= */
.tiers {
    margin-top: 10px;
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--accent-2);
    white-space: nowrap;
}

/* Rendimiento (verde destacado) */
.tier-badge[data-tier="best"] {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

/* Premium (azul/neutral) */
.tier-badge[data-tier="premium"] {
    border-color: #cbd5e1;
    background: #ffffff;
    color: var(--accent-2);
}

.tier-desc {
    margin: 10px 0 0;
    color: var(--muted);
}

.tier-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.tier-list li {
    margin: 6px 0;
}

.tier-card.featured {
    border-color: #a7f3d0;
    box-shadow: 0 10px 25px rgba(2, 6, 23, .08);
}

/* Botón siempre abajo */
.tier-pick {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* =========================
   Zonas de entrega
   ========================= */
.delivery-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media(min-width:900px) {
    .delivery-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Subir botón en la sección */
.section-head.head-top {
    align-items: flex-start;
}

@media(max-width:640px) {
    .section-head.head-top .btn {
        margin-top: 6px;
    }
}

/* =========================
   Productos con imagen
   ========================= */
.product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-media {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 12px;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-body {
    padding: 18px;
}

.product-body h3 {
    margin: 0 0 6px;
    color: var(--accent-2);
}

.product-body p {
    margin: 0;
    color: var(--muted);
}

/* =========================
   Footer
   ========================= */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    background: #fff;
}

.footer-inner {
    display: grid;
    gap: 10px;
    align-items: center;
}

@media(min-width:640px) {
    .footer-inner {
        grid-template-columns: auto 1fr auto;
    }
}

.foot-nav a {
    margin-right: 14px;
}

.copy {
    color: var(--muted);
    font-size: 14px;
}

/* =========================
   Utilities
   ========================= */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip:focus {
    left: 12px;
    top: 12px;
    background: #000;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
}

/* Plugin teléfono ocupa todo el ancho */
.iti {
    width: 100%;
}

/* WhatsApp FAB */
.wa-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25D366;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    border: 0;
    text-decoration: none;
    z-index: 60;
}

.wa-fab:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}