﻿/* ================================================
   MASCOTAQR — CSS GLOBAL
   Variables, reset y estilos base compartidos
   ================================================ */

/* ================================================
   VARIABLES CSS — PALETA MASCOTAQR
   ================================================ */
:root {
    /* --- Colores principales --- */
    --primary: #2D8A4E;
    --primary-dark: #1F6B3A;
    --primary-light: #4CAF70;
    --secondary: #F5821F;
    --secondary-dark: #D4690E;
    --secondary-light: #FFA04D;
    /* --- Fondos --- */
    --bg-cream: #FFF8F0;
    --bg-light: #F0F7F2;
    --bg-dark: #1A2E1F;
    /* --- Textos --- */
    --text-dark: #1A2E1F;
    --text-body: #374151;
    --text-muted: #6B7280;
    /* --- Gradientes --- */
    --gradient-hero: linear-gradient(135deg, #2D8A4E 0%, #1F6B3A 100%);
    --gradient-cta: linear-gradient(135deg, #F5821F 0%, #D4690E 100%);
    --gradient-card: linear-gradient(135deg, #2D8A4E 0%, #4CAF70 100%);
    --gradient-accent: linear-gradient(135deg, #FFF8F0 0%, #F0F7F2 100%);
    /* --- Sombras (con tinte verde) --- */
    --shadow-sm: 0 1px 2px 0 rgba(45, 138, 78, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(45, 138, 78, 0.12);
    --shadow-lg: 0 10px 15px -3px rgba(45, 138, 78, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(45, 138, 78, 0.18);
    /* --- Bordes --- */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    /* --- Transiciones --- */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   RESET Y BASE
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ================================================
   SCROLLBAR PERSONALIZADA
   ================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(45,138,78,0.35);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(45,138,78,0.6);
    }

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(45,138,78,0.35) transparent;
}

/* ================================================
   BOTONES GLOBALES MASCOTAQR
   ================================================ */

/* CTA de compra — naranja */
.btn-cta-primary {
    display: inline-block;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}

    .btn-cta-primary:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 130, 31, 0.4);
    }

/* CTA secundario — verde */
.btn-cta-secondary {
    display: inline-block;
    background: var(--gradient-hero);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}

    .btn-cta-secondary:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(45, 138, 78, 0.4);
    }

/* WhatsApp B2B */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-whatsapp:hover {
        color: #fff;
        background: #1ebe5a;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

/* ================================================
   UTILIDADES COMPARTIDAS
   ================================================ */

/* Sección con fondo crema */
.section-cream {
    background-color: var(--bg-cream);
}

/* Sección con fondo verde claro */
.section-green-light {
    background-color: var(--bg-light);
}

/* Divisor decorativo con pata */
.section-divider {
    text-align: center;
    color: var(--primary-light);
    font-size: 1.4rem;
    letter-spacing: 0.5rem;
    margin: 0.5rem 0;
    opacity: 0.5;
}

/* Badge de confianza reutilizable */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Cards con hover verde */
.card-mascota {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: #fff;
}

    .card-mascota:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-xl);
    }

#mqr-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: #fff;
    z-index: 9998;
    padding: 16px 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
    animation: mqrSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mqrSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mqr-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.mqr-cookie-texto {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 240px;
}

.mqr-cookie-icono {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.mqr-cookie-texto p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

.mqr-cookie-link {
    color: var(--secondary-light);
    text-decoration: underline;
}

    .mqr-cookie-link:hover {
        color: #fff;
    }

.mqr-cookie-acciones {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.mqr-btn-rechazar {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .mqr-btn-rechazar:hover {
        border-color: #fff;
        color: #fff;
    }

.mqr-btn-aceptar {
    background: var(--gradient-cta);
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

    .mqr-btn-aceptar:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(245,130,31,0.4);
    }

@@media (max-width: 576px) {
    .mqr-cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mqr-cookie-acciones {
        width: 100%;
    }

    .mqr-btn-rechazar,
    .mqr-btn-aceptar {
        flex: 1;
        text-align: center;
    }
}

/* ================================================
           NAVBAR BASE
           ================================================ */
.mqr-navbar {
    background: #fff;
    border-bottom: 1px solid rgba(45, 138, 78, 0.12);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: var(--transition);
}

    /* Efecto scroll — se activa con JS */
    .mqr-navbar.scrolled {
        padding: 8px 0;
        box-shadow: var(--shadow-md);
    }

/* ================================================
           LOGO
           ================================================ */
.mqr-navbar__logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.mqr-navbar__logo:hover img {
    opacity: 0.85;
}

/* ================================================
           LINKS
           ================================================ */
.mqr-navbar__link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

    .mqr-navbar__link:hover {
        color: var(--primary) !important;
        background: var(--bg-light);
    }

    .mqr-navbar__link.active {
        color: var(--primary) !important;
        font-weight: 700;
    }

        .mqr-navbar__link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 12px;
            right: 12px;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
        }

/* ================================================
           DROPDOWN B2B
           ================================================ */
.mqr-navbar__dropdown {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 220px;
}

.mqr-navbar__dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

    .mqr-navbar__dropdown-item:hover,
    .mqr-navbar__dropdown-item.active {
        background: var(--bg-light);
        color: var(--primary);
    }

/* ================================================
           CTA COMPRA
           ================================================ */
.mqr-navbar__cta {
    font-size: 0.9rem;
    padding: 10px 22px;
    white-space: nowrap;
    margin-left: 12px;
}

.mqr-navbar__precio {
    font-weight: 800;
}

/* ================================================
           TOGGLE MÓVIL PERSONALIZADO
           ================================================ */
.mqr-navbar__toggler {
    border: none;
    padding: 6px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .mqr-navbar__toggler:focus {
        box-shadow: none;
    }

.mqr-toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================================
           RESPONSIVE — MÓVIL
           ================================================ */
@media (max-width: 991.98px) {
    #mqrNavMenu {
        padding: 16px 0 8px;
        border-top: 1px solid var(--bg-light);
        margin-top: 12px;
    }

    .mqr-navbar__link.active::after {
        display: none;
    }

    .mqr-navbar__link.active {
        background: var(--bg-light);
    }

    .mqr-navbar__dropdown {
        box-shadow: none;
        background: var(--bg-light);
        padding: 4px 8px;
    }

    .mqr-navbar__cta {
        margin: 12px 0 4px;
        display: block;
        text-align: center;
    }
}

/* ================================================
           FOOTER BASE
           ================================================ */
.mqr-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.75);
    margin-top: auto;
}

/* ================================================
           FRANJA SUPERIOR
           ================================================ */
.mqr-footer__top {
    padding: 60px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Marca */
.mqr-footer__brand {
    display: inline-block;
    margin-bottom: 16px;
}

    .mqr-footer__brand img {
        height: 38px;
        width: auto;
    }

.mqr-footer__tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 16px;
    max-width: 280px;
}

.mqr-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mqr-footer__badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Headings de columna */
.mqr-footer__heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

/* Nav links */
.mqr-footer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .mqr-footer__nav a {
        color: rgba(255, 255, 255, 0.65);
        text-decoration: none;
        font-size: 0.875rem;
        transition: var(--transition);
    }

        .mqr-footer__nav a:hover {
            color: var(--secondary-light);
            padding-left: 4px;
        }

/* CTA columna */
.mqr-footer__cta-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
    line-height: 1.4;
}

.mqr-footer__cta-btn {
    font-size: 0.875rem;
    padding: 10px 22px;
    white-space: nowrap;
}

/* ================================================
           FRANJA INFERIOR
           ================================================ */
.mqr-footer__bottom {
    padding: 20px 0;
}

.mqr-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.mqr-footer__copy {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

    .mqr-footer__copy a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
    }

        .mqr-footer__copy a:hover {
            color: var(--secondary-light);
        }

.mqr-footer__legal {
    display: flex;
    gap: 20px;
}

    .mqr-footer__legal a {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.45);
        text-decoration: none;
        transition: var(--transition);
    }

        .mqr-footer__legal a:hover {
            color: rgba(255, 255, 255, 0.8);
        }

/* ================================================
           RESPONSIVE
           ================================================ */
@media (max-width: 767.98px) {
    .mqr-footer__top {
        padding: 40px 0 32px;
    }

    .mqr-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mqr-footer__legal {
        gap: 16px;
    }
}

/* ================================================
   COMPONENTE FAQ — COMPARTIDO
   Usado en: Index, ComoFunciona, Faq, RecuperarMascota
   ================================================ */
.mqr-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mqr-faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid rgba(45, 138, 78, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

    .mqr-faq-item:hover {
        border-color: rgba(45, 138, 78, 0.25);
        box-shadow: var(--shadow-sm);
    }

.mqr-faq-item__q {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition);
    border-radius: var(--border-radius);
    line-height: 1.4;
}

    .mqr-faq-item__q:hover,
    .mqr-faq-item__q:not(.collapsed) {
        color: var(--primary);
        background: var(--bg-light);
    }

.mqr-faq-item__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mqr-faq-item__q:not(.collapsed) .mqr-faq-item__icon {
    transform: rotate(180deg);
}

.mqr-faq-item__a {
    padding: 0 22px 18px;
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.7;
}

.mqr-faq-quick__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 138, 78, 0.3);
    padding-bottom: 2px;
    transition: var(--transition);
}

    .mqr-faq-quick__more:hover {
        color: var(--primary-dark);
        border-bottom-color: var(--primary-dark);
        gap: 10px;
    }

/* ================================================
   BREADCRUMB — COMPARTIDO (fondo hero verde)
   ================================================ */
.cfq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 0.82rem;
    font-weight: 500;
}

    .cfq-breadcrumb a,
    .cfq-breadcrumb a:link,
    .cfq-breadcrumb a:visited {
        color: rgba(255, 255, 255, 0.7) !important;
        text-decoration: none;
        transition: var(--transition);
    }

        .cfq-breadcrumb a:hover {
            color: #fff !important;
            text-decoration: none;
        }

    .cfq-breadcrumb span {
        color: rgba(255, 255, 255, 0.5);
    }

    .cfq-breadcrumb [data-lucide] {
        color: rgba(255, 255, 255, 0.4);
    }