/* ==========================================================
   CAZADOR PATAGÓNICO - HOJA DE ESTILOS UNIFICADA Y DEFINITIVA
   ========================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, body.cp-page-body {
    background-color: #121415 !important;
    color: #e2e6ea !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    padding-top: 75px !important;
}

img, video {
    max-width: 100%;
    display: block;
}

/* ==========================================================
   VIDEO DE INTRODUCCIÓN (OVERLAY PANTALLA COMPLETA)
   ========================================================== */
.cp-intro-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #0b0c0d !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cp-intro-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cp-intro-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.cp-skip-btn {
    position: absolute !important;
    bottom: 40px !important;
    right: 40px !important;
    background: rgba(229, 169, 59, 0.95) !important;
    color: #121415 !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    transition: background 0.2s ease !important;
}

.cp-skip-btn:hover {
    background: #f0b449 !important;
}

/* ==========================================================
   BARRA DE NAVEGACIÓN Y MENÚ MÓVIL (HAMBURGUESA + CARRITO IZQ)
   ========================================================== */
.cp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #181a1b;
    border-bottom: 1px solid #2e3235;
    z-index: 1000;
    padding: 12px 20px;
}

.cp-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-nav-left-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.cp-nav-logo-img {
    height: 35px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
}

/* Botón exclusivo de ícono de carrito para celulares a la izquierda */
.cp-nav-cart-icon-only {
    display: none;
    background: rgba(212, 163, 89, 0.15);
    border: 1px solid #d4a359;
    color: #d4a359;
    padding: 6px 10px;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
}

.cp-mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #e5a93b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.cp-nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cp-nav-item {
    color: #e2e6ea !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.cp-nav-item:hover, .cp-nav-item.active {
    color: #e5a93b !important;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none !important;
}

.cp-cart-count {
    background-color: #d9534f;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 0 8px rgba(217, 83, 79, 0.5);
}

@media (max-width: 900px) {
    .cp-mobile-menu-btn {
        display: block !important;
    }

    .cp-nav-cart-icon-only {
        display: flex !important;
    }

    /* Ocultamos el botón de carrito largo en la versión móvil */
    .cp-nav-cart-desktop {
        display: none !important;
    }

    .cp-nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #181a1b;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0 !important;
        border-bottom: 1px solid #2e3235;
        box-shadow: 0 10px 25px rgba(0,0,0,0.8);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .cp-nav-links.active {
        max-height: 400px !important;
        padding: 10px 0;
    }

    .cp-nav-links .cp-nav-item {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }
}

@media (min-width: 901px) {
    .cp-nav-cart-icon-only {
        display: none !important;
    }
}

/* ==========================================================
   HEADER Y BANNER DE INDEX
   ========================================================== */
.cp-header {
    text-align: center;
    margin-bottom: 40px;
}

.cp-banner-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2e3235;
    margin-bottom: 20px;
}

.cp-banner-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.cp-desc, .cp-page-desc {
    color: #a0a5ab !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cp-page-header {
    text-align: center;
    margin-bottom: 35px;
}

.cp-page-title {
    color: #e5a93b !important;
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* ==========================================================
   ESTRUCTURA Y TARJETAS (GRID GENERAL)
   ========================================================== */
.cp-wrapper {
    padding: 40px 20px;
}

.cp-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cp-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
}

.cp-card-link-wrapper {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.cp-card {
    background: #181a1b !important;
    border: 1px solid #2e3235 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cp-card:hover {
    transform: translateY(-4px);
    border-color: #e5a93b !important;
}

.cp-card-img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}

.cp-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cp-badge {
    color: #e5a93b !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.cp-card-title {
    font-size: 1.15rem;
    color: #ffffff !important;
    margin: 0 0 8px 0;
}

.cp-card-text {
    font-size: 0.88rem;
    color: #9da3ae !important;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.cp-card-action-text {
    color: #e5a93b;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cp-card-action-muted {
    color: #6c757d;
}

.cp-mochilas-card-price {
    font-size: 1.25rem;
    color: #e5a93b !important;
    font-weight: 700;
    margin-bottom: 15px;
}

.cp-mochilas-card-btns {
    display: flex;
    gap: 10px;
}

.cp-card-btn {
    flex: 1;
    padding: 10px;
    background: #25282a;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border: 1px solid #3c4247;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cp-card-btn-accent {
    background: #e5a93b;
    color: #121415;
    border-color: #e5a93b;
    width: 100%;
    font-weight: 700;
}

.cp-card-btn-accent:hover {
    background: #f0b449;
}

/* ==========================================================
   ESTILO DE GALERÍA LATERAL DE MOCHILAS (PLATAFORMA)
   ========================================================== */
.cp-gallery-flex-container {
    display: flex !important;
    flex-direction: row !important;
    background: #141617 !important;
    border-bottom: 1px solid #2e3235 !important;
    padding: 10px !important;
    gap: 10px !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cp-gallery-thumbs-vertical {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.cp-thumb-v {
    width: 46px !important;
    height: 46px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    border: 2px solid #2e3235 !important;
    cursor: pointer !important;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: block !important;
}

.cp-thumb-v.active, .cp-thumb-v:hover {
    opacity: 1;
    border-color: #e5a93b !important;
    box-shadow: 0 0 6px rgba(229, 169, 59, 0.4);
}

.cp-thumb-video-wrapper {
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 4px !important;
    border: 2px solid #2e3235 !important;
    overflow: hidden !important;
    cursor: pointer !important;
    background: #000 !important;
}

.cp-thumb-video-wrapper:hover {
    border-color: #e5a93b !important;
}

.cp-thumb-video-el {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.7;
}

.cp-thumb-video-overlay {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
}

.cp-gallery-main-v {
    flex: 1 !important;
    position: relative !important;
    background: #121415 !important;
    border-radius: 4px !important;
    border: 1px solid #2e3235 !important;
    cursor: zoom-in !important;
    height: 220px !important;
    overflow: hidden !important;
}

.cp-card-img-v {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}

.cp-zoom-hint {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(18, 20, 21, 0.85);
    color: #e5a93b;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    border: 1px solid #2e3235;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cp-gallery-main-v:hover .cp-zoom-hint {
    opacity: 1;
}

/* ==========================================================
   MODALES LIGHTBOX (IMAGEN Y VIDEO AMPLIADOS)
   ========================================================== */
.cp-lightbox-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cp-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.cp-lightbox-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.cp-lightbox-content {
    position: relative;
    max-width: 90vw; max-height: 90vh;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cp-lightbox-close {
    position: absolute;
    top: -45px; right: 0;
    background: #181a1b;
    border: 1px solid #3e4449;
    color: #ffffff;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-lightbox-close:hover {
    background: #e5a93b;
    color: #121415;
}

.cp-lightbox-media-box img,
.cp-lightbox-media-box video {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #3e4449;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* ==========================================================
   MODAL CARRITO (DISEÑO FLUIDO Y SCROLL UNIFICADO)
   ========================================================== */
.cp-cart-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cp-cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cp-cart-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.cp-cart-sidebar {
    position: relative;
    width: 100%; 
    max-width: 420px;
    height: 100vh !important;
    background: #181a1b;
    border-left: 1px solid #2e3235;
    display: flex !important;
    flex-direction: column !important;
    z-index: 10000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.cp-cart-modal.active .cp-cart-sidebar {
    transform: translateX(0);
}

.cp-cart-header {
    padding: 15px 20px;
    background: #111213;
    border-bottom: 1px solid #2e3235;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cp-cart-header h3 {
    margin: 0;
    color: #e5a93b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-cart-close-btn {
    background: transparent;
    border: none;
    color: #a0a5ab;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
}

.cp-cart-items {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cp-cart-footer {
    padding: 15px 20px 60px 20px !important;
    background: #111213;
    border-top: 1px solid #2e3235;
}

.cp-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.cp-cart-total-price {
    color: #e5a93b;
    text-align: right;
}

.cp-cart-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-form-group {
    width: 100%;
}

.cp-form-group input {
    width: 100% !important;
    padding: 10px !important;
    background: #1d2022 !important;
    border: 1px solid #353a3e !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
}

#cp-send-whatsapp-btn {
    width: 100% !important;
    padding: 12px !important;
    background: #22c55e !important;
    color: #0d0e10 !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.cp-cart-sidebar button[onclick="pagarConMercadoPago()"] {
    width: 100% !important;
    padding: 12px !important;
    background: #009ee3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 6px !important;
}

#cp-clear-cart-btn {
    background: transparent !important;
    border: none !important;
    color: #8c949e !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    margin-top: 10px !important;
    text-align: center !important;
    width: 100% !important;
}

.cp-footer {
    background: #111213;
    border-top: 1px solid #2e3235;
    padding: 30px 20px;
    margin-top: 60px;
    text-align: center;
    color: #8c949e;
}

.cp-footer-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}
/* ==========================================================
   EFECTO DE PARPADEO / ZUMBIDO Y TOOLTIP DE BASES Y CONDICIONES
   ========================================================== */
@keyframes cpPulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(229, 169, 59, 0.3);
        border-color: #2e3235;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(229, 169, 59, 0.8), inset 0 0 10px rgba(229, 169, 59, 0.4);
        border-color: #e5a93b;
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 5px rgba(229, 169, 59, 0.3);
        border-color: #2e3235;
        transform: scale(1);
    }
}

.cp-card-gift-promo {
    animation: cpPulseGlow 2.5s infinite ease-in-out !important;
    position: relative !important;
}

/* Contenedor del tooltip para "Bases y Condiciones" al acercar el cursor */
.cp-gift-tooltip-container {
    position: relative;
    display: block;
}

.cp-gift-tooltip-container::after {
    content: "Bases y Condiciones";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #181a1b;
    color: #e5a93b;
    border: 1px solid #e5a93b;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.cp-gift-tooltip-container:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}