*, *::before, *::after { color: inherit !important; }
p, li, td, span, label { color: inherit !important; }
[style*="background:#fff"] *, [style*="background:#ffffff"] *, [style*="background-color:#fff"] *, [style*="background-color:#ffffff"] *, .bg-white * { color: #1a2329 !important; }
[style*="background:#fff"] h1, [style*="background:#fff"] h2, [style*="background:#fff"] h3, [style*="background:#fff"] h4, [style*="background:#ffffff"] h1, [style*="background:#ffffff"] h2, [style*="background:#ffffff"] h3, [style*="background:#ffffff"] h4, [style*="background-color:#fff"] h1, [style*="background-color:#fff"] h2, [style*="background-color:#fff"] h3, [style*="background-color:#fff"] h4, [style*="background-color:#ffffff"] h1, [style*="background-color:#ffffff"] h2, [style*="background-color:#ffffff"] h3, [style*="background-color:#ffffff"] h4, .bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4 { color: #002624 !important; }
/* ===== EMPEZAR - DIAGNOSTICO 59€: hover con impacto ===== */
a.empezar-card-pro {
    position: relative !important;
    overflow: hidden !important;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease !important;
}
a.empezar-card-pro::before {
    content: "";
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left .6s ease;
    pointer-events: none;
}
a.empezar-card-pro:hover::before { left: 100%; }
a.empezar-card-pro:hover {
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 0 16px 36px rgba(255,196,0,0.55), 0 4px 12px rgba(0,38,36,0.3) !important;
}

/* ===== EMPEZAR - COMPLETO 790€: estilizar las inline para que peleen ===== */
#completo a[href^="/checkout/completo-"] {
    background: rgba(255,255,255,0.10) !important;
    border: 2px solid #FFC400 !important;
    border-radius: 14px !important;
    padding: 20px 14px !important;
    transition: all 0.25s ease !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
}
#completo a[href^="/checkout/completo-"]:hover {
    background: rgba(255,196,0,0.20) !important;
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 14px 32px rgba(255,196,0,0.45) !important;
    border-color: #FFD740 !important;
}
#completo a[href^="/checkout/completo-"] > div {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
}
#completo a[href^="/checkout/completo-"] > span {
    background: #FFC400 !important;
    color: #002624 !important;
    border-radius: 999px !important;
    padding: 5px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    display: inline-block !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* ===== BADGE de urgencia bajo el hero "¿Qué necesitas?" ===== */
section[style*="linear-gradient(135deg,#005954"] .container::after {
    content: "⚡ Diagnóstico en 48h GARANTIZADO o devolución íntegra + 59€ extra";
    display: block;
    background: #FFC400;
    color: #002624;
    font-weight: 800;
    padding: 10px 22px;
    margin: 18px auto 0;
    max-width: 480px;
    border-radius: 999px;
    font-size: 0.88rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(255,196,0,0.45);
    line-height: 1.3;
}

/* ===== MOBILE 100% — cards 59€ compactas, palabras enteras ===== */
@media (max-width: 575.98px) {
    a.empezar-card-pro {
        min-height: 80px !important;
        padding: 12px 6px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
        border-width: 2px !important;
    }
    .empezar-card-title {
        font-size: 0.75rem !important;
        min-height: auto !important;
        margin-bottom: 6px !important;
        line-height: 1.15 !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        white-space: normal !important;
        display: block !important;
    }
    .empezar-card-price {
        font-size: 0.72rem !important;
        padding: 3px 10px !important;
    }

    /* Cards 790€ mobile */
    #completo a[href^="/checkout/completo-"] {
        padding: 12px 6px !important;
        border-radius: 10px !important;
        min-height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #completo a[href^="/checkout/completo-"] > div {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
        line-height: 1.15 !important;
        word-break: keep-all !important;
        hyphens: none !important;
    }
    #completo a[href^="/checkout/completo-"] > span {
        font-size: 0.7rem !important;
        padding: 2px 10px !important;
    }

    /* Padding compacto en bloques contenedores */
    section[style*="background:#f8f9fa"] > .container > div {
        padding: 20px 14px !important;
        border-radius: 14px !important;
    }

    /* Hero más legible */
    section[style*="linear-gradient(135deg,#005954"] h1 {
        font-size: 1.5rem !important;
    }
    section[style*="linear-gradient(135deg,#005954"] .container::after {
        font-size: 0.78rem !important;
        padding: 8px 16px !important;
        max-width: 95% !important;
    }
}
/* ============ MEJORAS DISEÑO + CONVERSIÓN GLOBAL v2 ============ */

/* ---- Tipografía y respiración global ---- */
body { font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; }
section { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
@media (max-width: 767.98px) {
    section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* ---- Cards genéricas: sombra premium + hover elevado ---- */
[class*="card"]:not(.cmp-table):not(.hp-cta):not(.btn) {
    transition: transform .25s ease, box-shadow .25s ease !important;
}
[class*="card"]:not(.cmp-table):not(.hp-cta):not(.btn):hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,38,36,0.18), 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* ---- Botones CTA: tamaño tap-friendly + glow amarillo ---- */
.btn, button, a.btn-primary-cta, a.empezar-card-pro, .hp-cta, .hp-btn, .hp-final-btn,
a[href*="/empezar"], a[href*="/contratar"], a[href*="/checkout"] {
    min-height: 44px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hp-cta, .hp-btn, .hp-final-btn,
a[href*="/empezar"]:not(.empezar-card-pro):not(.hp-nav-link) {
    box-shadow: 0 4px 14px rgba(255,196,0,0.45) !important;
}
.hp-cta:hover, .hp-btn:hover, .hp-final-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(255,196,0,0.65) !important;
}

/* ---- Trust signals: badges flotantes en CTAs grandes ---- */
.hp-final-cta::before {
    content: "🛡 Tramitación directa con el Ministerio · Garantía escrita 48h · 180 días máximo";
    display: block;
    background: rgba(255,196,0,0.15);
    color: #FFC400;
    border: 1px solid rgba(255,196,0,0.4);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    max-width: 580px;
    margin: 0 auto 18px;
    line-height: 1.3;
}
@media (max-width: 575.98px) {
    .hp-final-cta::before { font-size: 0.72rem; padding: 6px 14px; max-width: 95%; }
}

/* ---- Inputs y formularios mobile-friendly (anti-zoom iOS) ---- */
input, textarea, select { font-size: 16px !important; min-height: 44px; border-radius: 8px !important; }
input:focus, textarea:focus, select:focus {
    outline: 2px solid #FFC400 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255,196,0,0.2) !important;
}

/* ---- HOME / SECCIONES dark con cards: realce visual ---- */
.hp-guarantee-card, .req-card, .coleg-card, .error-card,
.country-difference .comparison-card, .team-card, .value-card,
.stat-box, .eeat-box, .price-card, .step, .msg-card, .cmp-card, .cmp-panel, .hp-card {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06) !important;
    border-radius: 14px !important;
}
.hp-guarantee-card:hover, .req-card:hover, .coleg-card:hover,
.country-difference .comparison-card:hover, .team-card:hover, .value-card:hover,
.stat-box:hover, .eeat-box:hover, .price-card:hover, .msg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,38,36,0.18), 0 4px 12px rgba(0,0,0,0.10) !important;
}

/* ---- COUNTRY: cards comparison con borde decorativo ---- */
.country-difference .comparison-card {
    border-top: 4px solid #FFC400 !important;
}
.country-difference .comparison-card .btn-comparison {
    box-shadow: 0 4px 14px rgba(255,196,0,0.4) !important;
}
.country-difference .comparison-card .btn-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255,196,0,0.6) !important;
}

/* ---- TABLA comparador: filas con hover destacado ---- */
.cmp-table tr {
    transition: background .15s ease;
}
.cmp-table tbody tr:hover {
    background: rgba(255,196,0,0.08) !important;
}

/* ---- FAQ: accordion con icono giratorio ---- */
.accordion-button::after, .faq-q::after {
    content: "+";
    float: right;
    color: #002624;
    font-size: 1.4rem;
    font-weight: 800;
    transition: transform .25s ease;
}
.accordion-button[aria-expanded="true"]::after, .faq-item.active .faq-q::after {
    transform: rotate(45deg);
}

/* ---- HEADER mobile: hamburguesa más grande y contrastada ---- */
@media (max-width: 991px) {
    .hp-toggle {
        font-size: 1.8rem !important;
        background: rgba(255,196,0,0.15) !important;
        border: 1px solid rgba(255,196,0,0.4) !important;
        border-radius: 8px !important;
        padding: 6px 12px !important;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ---- FOOTER: separación visual + último CTA repetido ---- */
footer {
    border-top: 4px solid #FFC400 !important;
}

/* ---- WhatsApp FAB siempre visible y palpitante ---- */
.wa-fab {
    box-shadow: 0 6px 20px rgba(37,211,102,0.5) !important;
    animation: wa-pulse-soft 2.5s infinite;
}
@keyframes wa-pulse-soft {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
    50% { transform: scale(1.06); box-shadow: 0 8px 28px rgba(37,211,102,0.75); }
}

/* ---- Imágenes: sutil radius + lazy contrast ---- */
img:not(.hp-logo):not([class*="icon"]):not(.flag) {
    border-radius: 10px;
}

/* ============ MOBILE 100% — toda la web ============ */
@media (max-width: 767.98px) {
    /* Container más respiración lateral */
    .container { padding-left: 16px !important; padding-right: 16px !important; }

    /* Headings escalados */
    h1 { font-size: 1.7rem !important; line-height: 1.25 !important; }
    h2 { font-size: 1.4rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.2rem !important; line-height: 1.3 !important; }
    h4 { font-size: 1.05rem !important; line-height: 1.35 !important; }

    /* Párrafos más cómodos de leer */
    p { font-size: 0.95rem !important; line-height: 1.65 !important; }

    /* Listas con espacio */
    li { line-height: 1.6 !important; margin-bottom: 4px; }

    /* Grids: forzar 1 columna donde aún queden 2 apretadas */
    .hp-guarantees-grid,
    .country-difference .comparison-grid,
    .team-grid, .values-grid, .eeat-grid, .pricing-wrap,
    .arco-grid, .msg-grid, .req-grid, .coleg-grid, .paquetes-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Tabla comparador: scroll horizontal limpio */
    .cmp-table { font-size: 0.78rem !important; min-width: 680px !important; }
    .cmp-table th, .cmp-table td { padding: 8px 10px !important; }

    /* Cards padding compacto */
    .hp-guarantee-card, .req-card, .coleg-card, .team-card,
    .value-card, .stat-box, .price-card, .step, .msg-card, .hp-card {
        padding: 18px 16px !important;
    }

    /* Cuerpo sin overflow horizontal */
    body, html { overflow-x: hidden !important; }

    /* Botones más grandes y cómodos */
    .btn, button, .hp-cta, .hp-btn, .hp-final-btn {
        padding: 12px 22px !important;
        font-size: 0.95rem !important;
    }

    /* Sección hero más compacta */
    section[style*="linear-gradient"] {
        padding: 30px 20px !important;
    }

    /* Cards profession-veterinaria: padding reducido */
    .req-card, .coleg-card, .error-card, .paquete-card {
        padding: 18px 16px !important;
    }
    .paquete-card .price { font-size: 1.8rem !important; }
}

/* ---- iOS específico: prevenir bounce overflow ---- */
@supports (-webkit-touch-callout: none) {
    body { -webkit-overflow-scrolling: touch; }
}

/* ---- Focus visible accesible (WCAG) ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid #FFC400 !important;
    outline-offset: 3px;
    border-radius: 4px;
}