/* =============== VARIABLES Y RESET =============== */
:root {
    /* Colores */
    --primary: #041296;
    --primary-dark: #c1121f;
    --secondary: #d5f8f5a8;
    --dark: #010f23;
    --light: #ffffff;
    --gray: #6c757d;
    --white: #ffffff;
    --Green: #42ff00;
    --black: #212529;
    --azulf: #130dc1;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Tipografía */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-6xl: 3.75rem;
    /* Colores usados en navegación */
    --primary-color: #ffffff;
    --accent-color: #00f9e0;
    /* Corregido: era text-6x1 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif, Century;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ajuste para que el main tome el espacio disponible */
main {
    margin-top: 60px;
    /* altura aproximada de la navbar para compensar */
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    font-family: Century;
}

/******************contenedor de mision y vision + imagen**********************************/

.text-with-image {
    display: flex;
    align-items: center;
    max-width: 1800px;
    /*Ancho del recuadro que contiene la ubicacion*/
    margin: 50px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    gap: 40px;
}

/* New relative wrapper for image */
.image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 600px;
    /*Tamaño de la imagen "centro de servicio"*/
}

.side-image-fixed {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Facebook icon link */
.facebook-link {
    position: absolute;
    top: 15px;
    left: 12px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 5;
    transition: background 0.3s ease;
}

.facebook-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Responsive stacked layout */
@media (max-width: 600px) {
    .text-with-image {
        flex-direction: column;
        max-width: 90%;
        margin: 30px auto;
        gap: 25px;
    }

    .image-wrapper {
        width: 100%;
    }

    .side-image-fixed {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .text-column h2 {
        font-size: 1.6rem;
    }

    .text-column p {
        font-size: 1rem;
    }

    .facebook-link {
        /* Móvil: ajustar posición y tamaño del ícono sin anidar reglas inválidas */
        color: var(--white);
        font-size: 1rem;
        top: 12px;
        left: 12px;
        padding: 6px;
    }
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.section {
    padding: var(--space-xl) 0;
    text-align: justify;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-align: center;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: var(--space-sm) auto 0;
}

/*--------------------------------*/
/* HEADER GENERAL */

/* HEADER GENERAL */
.header {
    width: 100%;
    background: linear-gradient(90deg, rgba(4,18,150,0.95) 0%, rgba(19,13,193,0.95) 100%);
    box-shadow: 0 6px 24px rgba(2,8,60,0.18);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: saturate(1.05) blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
}

/* FILA SUPERIOR: LOGO + ICONOS */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* LOGO */
.logo-container .logo {
    height: 64px;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* ÍCONOS DERECHO */

.right-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* BOTÓN CARRITO */
.btn-carrito {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-carrito i,
.btn-carrito span {
    pointer-events: none;
}

/* HAMBURGUESA */
.hamburger {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.12s ease, border-color 0.2s;
}

.hamburger:active {
    transform: scale(0.96);
}

.hamburger:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.16);
}


/* NAVIGATION DESKTOP */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0.25rem 0;
    width: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.5rem;
    gap: 2rem;
}


.nav-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color, #ffffff);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.3s, background 0.2s;
}

button.nav-link {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-price-list {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.nav-price-list i {
    font-size: 0.9em;
}

.nav-link:hover {
    color: var(--accent-color, #00f9e0);
    background: rgba(255,255,255,0.04);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 10%;
    height: 3px;
    width: 80%;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
    border-radius: 3px;
    opacity: 0.95;
}

.nav-link:hover::after {
    transform: scaleX(1);
}


/* NAVIGATION MOBILE */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(19,13,193,0.98), rgba(4,18,150,0.95));
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        box-shadow: 0 8px 30px rgba(2,8,60,0.2);
        width: auto;
        border-radius: 12px;
        padding: 0.6rem 0.75rem;
        z-index: 1200;
    }

    .nav.show {
        display: flex;
        animation: slideDown 0.4s ease-out forwards;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }


    .hamburger {
        display: block;
    }
}

/* Estado abierto del botón hamburguesa */
.hamburger.open {
    background: rgba(255,255,255,0.08);
    transform: scale(0.98);
    border-color: rgba(255,255,255,0.22);
}

/* Mejor presentación del menú en modo mobile: enlaces más grandes */
@media (max-width: 768px) {
    .nav-list .nav-link {
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
        width: 100%;
        color: #fff;
    }

    .nav-list .nav-link:hover {
        background: rgba(255,255,255,0.04);
        transform: none;
    }
}

/* Animación del menú hamburguesa */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Otros estilo */
/****************************************************************/
/*Sangria*/
.sangria-text-indent {
    text-indent: 30px;
}

.sangria-margin {
    margin-left: 20px;
}

.sangria-padding {
    padding-left: 20px;
}

/****************************************************************/

/* Redes sociales */
.social-links {
    display: flex;
    gap: 1rem;
    /* separación entre íconos */
    justify-content: center;
    /* opcional, para centrar en el contenedor */
    align-items: center;
    /* opcional para centrar verticalmente */
}

.social-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/*----------------------------------------*/

/* =============== HERO =============== */

.hero {
    position: relative;
    margin-bottom: var(--space-xl);
    height: auto;
    width: 100%;
    overflow: visible;
    display: block;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
}

.hero-title {
    position: relative;
    z-index: 10;
    font-family: sans-serif;
    text-align: center;
    color: var(--Green);
    font-size: var(--text-6xl);
    text-shadow: 2px 2px 2px rgb(40, 6, 132);
    padding: var(--space-xl) var(--space-md);
    margin: 0;
    line-height: 1.2;
    background-color: white;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
    }
    
    .hero-image {
        height: 70vh;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
        padding: var(--space-lg) var(--space-md);
    }
}

/* =============== SECCIÓN DE PRODUCTOS =============== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 120%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.product-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-container::after {
    opacity: 1;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    object-fit: cover;
    /* Mantenido solo cover */
}

.product-card:hover .product-image {
    transform: scale(1.05);
    /* Unificado el valor de escala */
}

.product-info {
    padding: var(--space-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
    max-height: 2.6em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    row-gap: 0.25rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--primary-dark);
    font-size: var(--text-sm);
}

.current-price {
    font-weight: 700;
    color: var(--primary);
    font-size: var(--text-lg);
    overflow-wrap: anywhere;
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 600;
    min-width: auto;
    height: auto;
    white-space: nowrap;
    line-height: 1;
    padding: 0.2rem 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    user-select: none;
    transition: background-color 0.3s ease;
    cursor: default;
}

.btn-add {
    width: 100%;
    padding: var(--space-sm);
    background: linear-gradient(135deg, var(--primary), var(--azulf));
    color: var(--white);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: var(--text-base);
    position: relative;
    overflow: hidden;
    white-space: normal;
    line-height: 1.25;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-add:active {
    transform: scale(0.98);
}

.btn-add.sin-stock {
    background: #c62828;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: none;
}

.product-card.is-out-of-stock {
    border: 1px solid rgba(198, 40, 40, 0.35);
}

.product-card.is-out-of-stock .current-price {
    color: #b71c1c;
}

/* Ripple effect */
.btn-add::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
}

.btn-add:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* =============== CARRITO =============== */
/* Ajuste del botón carrito para que el icono y contador luzcan más visibles */
#carrito-btn {
    background-color: #1912e4;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#carrito-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

#carrito-btn.attention {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#cart-count {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.cart-modal {
    position: fixed;
    top: 86px;
    right: var(--space-md);
    width: min(460px, calc(100vw - 2rem));
    max-height: calc(100vh - 100px);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 36px rgba(2, 8, 40, 0.22);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Mejor transición para mostrar el carrito */
.cart-modal.active {
    display: flex;
}

/* Cart header más consistente y pulido */
.cart-header {
    padding: 0.9rem 1rem;
    border-bottom: 2px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
}

.footer-logo {
    max-width: 60px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Titulos y boton cerrar */
.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    flex-grow: 1;
    margin-left: 0.5rem;
}

.cart-close {
    background: none;
    border: none;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-close:hover {
    color: var(--primary);
    background: rgba(4, 18, 150, 0.1);
}

/* Scroll en cuerpo para que no se pase el max alto */
.cart-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    scroll-behavior: smooth;
    min-height: 260px;
    max-height: none;
}

/* Mejor separación y apariencia para los items */
.cart-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: block;
    flex-shrink: 0;
    max-height: 38vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.cart-item + .cart-item {
    margin-top: 0.75rem;
}

/* Cada item con sombra sutil y espacio */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(4, 18, 150, 0.2);
}

/* Nombre y precio */
.cart-item-name {
    flex: 1;
    margin-right: var(--space-sm);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    min-width: 65px;
    text-align: right;
    font-size: 0.95rem;
}

/* Botón eliminar */
.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    margin-left: var(--space-sm);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 0;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove:hover {
    color: var(--primary-dark);
    transform: scale(1.2);
}

/* Mensaje orden vacía */
.cart-empty {
    text-align: center;
    padding: var(--space-xl) 0;
    color: var(--gray);
    font-weight: 500;
}

/* Footer del carrito */
.cart-footer {
    padding: 0.85rem 1rem 1rem;
    border-top: 2px solid #e8e8e8;
    background: linear-gradient(to bottom, #fafbfc, #f5f7fa);
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.cart-summary-card {
    margin: 0.9rem 1rem 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid #dbe7f5;
    border-radius: 12px;
    background: linear-gradient(135deg, #f6fbff 0%, #eef5ff 100%);
}

.cart-step-indicator {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.cart-step-indicator span {
    flex: 1;
    padding: 0.38rem 0.5rem;
    border-radius: 7px;
    background: #e6edf5;
    color: #708096;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: center;
}

.cart-step-indicator .is-active {
    background: var(--primary);
    color: #fff;
}

.cart-summary-heading,
.cart-summary-row,
.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-summary-heading {
    margin-bottom: 0.55rem;
    color: #315276;
    font-size: 0.84rem;
    font-weight: 800;
}

.cart-summary-pv {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    color: #9b1c1c;
}

.cart-summary-row {
    padding: 0.32rem 0;
    color: #5d6877;
    font-size: 0.9rem;
}

.cart-summary-row strong {
    color: var(--dark);
}

.cart-summary-total {
    margin-top: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px solid #cddced;
    color: var(--primary-dark);
    font-weight: 800;
}

.cart-summary-total strong {
    color: var(--primary);
    font-size: 1.22rem;
}

/* NUEVO: Desglose de precios */
.cart-breakdown {
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid #f0f0f0;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.breakdown-label {
    color: #666;
    font-weight: 500;
}

.breakdown-value {
    font-weight: 600;
    color: var(--dark);
    font-family: 'Courier New', monospace;
}

.breakdown-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 0.5rem 0;
}

/* Total carrito mejorado */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding: 0.75rem;
    background: linear-gradient(135deg, #f0f3ff 0%, #f5f8ff 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
}

.total-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.total-amount {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botón checkout mejorado */
.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #0309a5 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(4, 18, 150, 0.3);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #0309a5 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 18, 150, 0.4);
}

.btn-checkout:active {
    transform: translateY(0);
}

.btn-checkout:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
}

/* Cada paso del carrito muestra únicamente su acción principal. */
.cart-footer .btn-checkout[hidden] {
    display: none !important;
}

.checkout-live-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.checkout-live-summary[hidden] {
    display: none !important;
}

.checkout-live-summary span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.45rem;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #f7fbff;
    color: #596b80;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

.checkout-live-summary strong {
    color: var(--primary-dark);
    font-size: 0.82rem;
}

.checkout-live-summary .checkout-live-total {
    border-color: #b8d3f2;
    background: #edf6ff;
    color: var(--primary-dark);
}

.checkout-live-summary .checkout-live-total strong {
    color: var(--primary);
    font-size: 0.95rem;
}

.cart-checkout-note {
    margin: 0.55rem 0 0;
    color: #667085;
    font-size: 0.76rem;
    text-align: center;
}

.cart-step-panel {
    min-width: 0;
}

.cart-step-panel[hidden] {
    display: none;
}

.cart-step-title {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.02rem;
}

.cart-step-help {
    margin: 0.25rem 0 0.75rem;
    color: #68778b;
    font-size: 0.84rem;
    line-height: 1.35;
}

.cart-details-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-back-btn {
    flex: 0 0 auto;
    padding: 0.4rem 0.55rem;
    border: 1px solid #ced9e6;
    border-radius: 8px;
    background: #fff;
    color: #395676;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cart-shipping-field {
    padding: 0.9rem;
    background: #fbfdff;
    border: 1px solid #e7eef8;
    border-radius: 12px;
}

.field-hint {
    display: block;
    min-height: 1.25rem;
    margin-top: 0.05rem;
    padding: 0.38rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #5e6e82;
    background: #f3f6f9;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-hint.is-success {
    color: #146c43;
    background: #eaf8f0;
    border-color: #bde7ce;
}

.field-hint.is-error {
    color: #b42318;
    background: #fff1f0;
    border-color: #f5c6c2;
}

.field-hint.is-neutral {
    color: #506176;
    background: #f3f6f9;
    border-color: #e3e9ef;
}

.order-form input.is-invalid,
.cart-shipping-field select.is-invalid,
.cart-shipping-field input.is-invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.1);
}

.order-form input.is-valid,
.cart-shipping-field select.is-valid {
    border-color: #29a167;
}

.cart-status-message {
    margin: 0 0 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.cart-status-message.is-error {
    color: #b42318;
    background: #fff1f0;
}

#cedula-msg.field-hint,
#codigo-msg.field-hint,
#ciudad-envio-msg.field-hint {
    min-height: 1.25rem;
    margin-top: 0.05rem;
    padding: 0.38rem 0.5rem;
    border: 1px solid #e3e9ef;
    border-radius: 7px;
    color: #506176;
    background: #f3f6f9;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
}

#cedula-msg.field-hint.is-success,
#codigo-msg.field-hint.is-success,
#ciudad-envio-msg.field-hint.is-success {
    color: #146c43;
    background: #eaf8f0;
    border-color: #bde7ce;
}

#cedula-msg.field-hint.is-error,
#codigo-msg.field-hint.is-error,
#ciudad-envio-msg.field-hint.is-error {
    color: #b42318;
    background: #fff1f0;
    border-color: #f5c6c2;
}

@media (max-width: 480px) {
    .cart-details-heading {
        flex-direction: column;
    }

    .cart-back-btn {
        width: 100%;
    }
}

.whatsapp-icon {
    font-size: 1.2rem;
}

/* FORMULARIO */

/* Formulario columna */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 0.15rem;
    padding: 0.9rem;
    background: #fbfdff;
    border: 1px solid #e7eef8;
    border-radius: 12px;
}

/* Fila cédula y código alineada */
.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
    justify-content: space-between;
    align-items: stretch;
}

/* Cada grupo ocupa igual espacio */
.form-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cart-body > .form-group {
    padding: 0.9rem;
    background: #fbfdff;
    border: 1px solid #e7eef8;
    border-radius: 12px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

/* Etiqueta checkbox y texto */
.checkbox-label {
    display: flex;
    align-items: center;
    min-height: 2.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #666;
    font-weight: 500;
}

/* Ajuste checkbox */
.checkbox-label input[type="checkbox"] {
    margin-right: 0.4rem;
    width: auto;
    min-width: auto;
    cursor: pointer;
}

/* Inputs number estilo */
input[type="number"],
input[type="text"],
select {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Cedula más ancho */
#cedula {
    width: 100%;
}

/* Código un poco menos */
#codigo {
    width: 100%;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 18, 150, 0.1);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mensajes validación */
#cedula-msg,
#codigo-msg {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    min-height: 18px;
    color: var(--primary);
}

/* Grupo ciudad de envío */
.form-group select#ciudad-envio {
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid #ccc;
    font-size: var(--text-base);
    transition: border-color 0.3s ease;
    width: 100%;
    margin-top: 6px;
}

.form-group select#ciudad-envio:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 18, 150, 0.1);
}

#ciudad-otra {
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid #ccc;
    font-size: var(--text-base);
    width: 100%;
    margin-top: 6px;
    transition: border-color 0.3s ease;
}

#ciudad-otra:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 18, 150, 0.1);
}

/* Responsive para formulario */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0.65rem;
    }

    #cedula,
    #codigo {
        width: 100%;
        min-width: unset;
    }

    /* Carrito responsivo para móviles */
    .cart-modal {
        position: fixed;
        top: 70px;
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
        max-height: calc(100dvh - 80px);
        border-radius: 14px;
    }

    .cart-body {
        min-height: 200px;
        max-height: none;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .cart-items {
        max-height: 32vh;
    }

    .cart-item {
        padding: 0.8rem;
    }

    .cart-footer {
        padding: 0.75rem;
    }

    .btn-checkout {
        padding: 0.9rem;
        font-size: 0.98rem;
    }
}

/* Estilo para el input de nombres */
#nombres {
    border: 2px solid #000000;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#nombres:focus {
    border-color: #f30606;
    outline: none;
    box-shadow: 0 0 8px rgba(82, 188, 224, 0.5);
}

/* Estilo para mensaje de error debajo del campo */
.mensaje-error-nombres {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 6px;
    display: none;
}


/*°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°*/

/*Poner logos antes del parrafo*/
.about {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

.about-logo {
    float: left;
    width: 120px;
    height: auto;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    /* opcional, para suavizar los bordes */
}

/* =============== ZOOM MODAL =============== */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.zoom-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.zoom-container {
    position: relative;
    width: min(960px, 92vw);
    max-height: 90%;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    box-sizing: border-box;
}

.zoom-product-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
    align-items: start;
    gap: 1.75rem;
}

.zoom-media {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 14px;
    background: #f7f9fc;
}

#zoom-img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}



.zoom-close {
    position: sticky;
    top: 1rem;
    align-self: flex-end;
    background: none;
    border: none;
    font-size: var(--text-2xl);
    cursor: pointer;
    color: var(--gray);
    z-index: 10;
    transition: transform 0.2s ease-in-out;
    margin-bottom: 1rem;
}

.zoom-close:hover {
    transform: scale(1.2);
    color: red;
}

@media (max-width: 768px) {
    .zoom-close {
        font-size: 1.5rem;
        /* más pequeño en móviles */
        top: 0.5rem;
        right: 0.5rem;
    }
}


/* Asegura que las imágenes SVG se vean grandes dentro del modal */
#zoom-img[src$=".svg"] {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}



.zoom-desc {
    color: var(--dark);
    text-align: justify;
    max-width: none;
    font-family: Century;
}

.zoom-product-name {
    color: var(--primary-dark);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.2;
    margin: 0 0 0.55rem;
    text-align: left;
}

.zoom-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.zoom-product-meta span {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #edf3ff;
    color: #26508f;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.zoom-product-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.zoom-price {
    padding: 0.7rem;
    border: 1px solid #dce5f1;
    border-radius: 10px;
    background: #fff;
}

.zoom-price span,
.zoom-price strong {
    display: block;
}

.zoom-price span {
    color: #637083;
    font-size: 0.78rem;
}

.zoom-price strong {
    margin-top: 0.2rem;
    color: var(--primary-dark);
    font-size: 1.18rem;
}

.zoom-price.is-member-price {
    border-color: var(--primary);
    background: #f1f7ff;
}

.zoom-price.is-member-price strong {
    color: var(--primary);
}

.zoom-stock-status {
    margin: 0 0 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
}

.zoom-stock-status.is-available { color: #177245; }
.zoom-stock-status.is-unavailable { color: #b71c1c; }

.zoom-add-button {
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.zoom-add-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.zoom-add-button.sin-stock,
.zoom-add-button:disabled {
    background: #c62828;
    cursor: not-allowed;
}

.zoom-cart-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1rem;
}

.zoom-cart-controls .zoom-add-button {
    margin: 0;
}

.zoom-quantity-button {
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.zoom-quantity-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.zoom-quantity-count {
    flex: 1;
    padding: 0.7rem;
    border-radius: 10px;
    background: #f1f7ff;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
}

.zoom-product-description {
    margin-top: 0;
    line-height: 1.55;
}

.zoom-desc h3 {
    color: var(--primary-dark);
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.zoom-desc ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.zoom-desc ul li {
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    #zoom-img[src$=".svg"] {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 80vh;
        min-width: unset;
        min-height: unset;
        object-fit: contain;
    }

    .zoom-container {
        padding: 1rem;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .zoom-product-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .zoom-media {
        min-height: 180px;
    }

    .zoom-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }
}



/**************CARRUSAL*********************/
.carousel-slides {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    text-align: center;
}

.carousel-image {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
    position: relative;
    pointer-events: auto;
}

#carouselSlides {
    visibility: hidden;
}

#carouselSlides.ready {
    visibility: visible;
}

/*Ocultar boton carrusel*/
.carousel-btn {
    display: none !important;
}



/**********************************/



/* =============== FOOTER =============== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--space-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--space-md);
}

.footer h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-visits {
    margin: 0.45rem 0 0;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
}


/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: var(--space-md);
    }

    .nav-list {
        margin-top: var(--space-md);
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .cart-modal {
        top: 76px;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-height: calc(100dvh - 92px);
    }

    .cart-header {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .cart-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: linear-gradient(to bottom, #fafbfc, #f5f7fa);
    }

    .cart-close {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .order-form,
    .cart-body > .form-group,
    .cart-breakdown,
    .cart-total {
        border-radius: 10px;
    }

    .text-with-image {
        flex-direction: column;
    }

    .side-image-fixed {
        width: 100%;
        height: auto;
        object-fit: contain;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 120px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: var(--text-xl);
    }

    .hero-image {
        height: 300px;
    }

    .cart-title {
        font-size: 1.05rem;
        margin-left: 0.25rem;
    }

    .footer-logo {
        max-width: 48px;
    }

    .cart-close,
    .btn-clear {
        min-width: 40px;
        min-height: 40px;
    }

    .form-group label,
    .checkbox-label {
        font-size: 0.8rem;
    }
}

/* Contenedor de misión y visión */
.mission-vision-container {
    display: flex;
    padding: 0;
    margin: 0;
    gap: 0;
    align-items: stretch;
}

.image-column {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.text-column {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-column h2 {
    margin-top: 0;
    color: var(--primary);
}

.text-column p {
    text-align: justify;
    margin-bottom: 20px;
}

/* Estilos para mensajes de validación */
#cedula-msg,
#codigo-msg {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Estilos para el mensaje de error del formulario */
#form-error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}



/* beneficios de una membresia*/
/* Estilos generales */
.membresia-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    font-family: 'Arial', sans-serif;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-family: century;
}

/* Contenedor para mantener las letras unidas */
.dxn-logo {
    display: inline-block;
    /* Mantiene las letras en línea pero permite ajustes */
    letter-spacing: -5px;
    /* Elimina el espacio entre letras */
}

/* Colores individuales */
.dxn-logo .d {
    color: #1906be;
    /* Azul */
}

.dxn-logo .x {
    color: #d0210e;
    /* Rojo */
}

.dxn-logo .n {
    color: #09b030;
    /* Verde */
}

/* Opcional: Efecto hover brillante */
.dxn-logo span {
    transition: all 0.3s ease;
    display: inline-block;
    /* Para transformaciones */
}

.dxn-logo:hover span {
    transform: translateY(-5px);
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor de tarjetas */
.beneficios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Estilo base de tarjetas */
.beneficio-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: left;
    border-top: 5px solid;
    /* El color lo define la clase */
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}


/* Iconos */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Títulos y listas */
.beneficio-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.beneficio-card ul {
    list-style: none;
    padding-left: 0;
}

.beneficio-card li {
    text-align: justify;
    font-family: century;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 30px;
}

.beneficio-card li:before {
    content: "→";
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Colores temáticos por tarjeta */
.discount {
    border-top-color: #3498db;
}

.multinivel {
    border-top-color: #2ecc71;
}

.training {
    border-top-color: #f39c12;
}

.internacional {
    border-color: #f80aa0;
}

.obligacion {
    border-color: #6d0af8;
}

.salud {
    border-color: #f4f80a;
}

/* Efecto adicional al hover */
.discount:hover {
    background: #b5d6ef;
}

.multinivel:hover {
    background: #adf7d7;
}

.training:hover {
    background: #fbdfb3;
}

.internacional:hover {
    background: #fbafe9;
}

.obligacion:hover {
    background-color: #cec1f9;
}

.salud:hover {
    background-color: #f0f19d;
}

/* Estilos para el contenedor del mensaje emergente */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Estilos para cada toast individual */
.toast {
    background-color: #4CAF50; /* Verde para éxito */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s, fadeOut 3s 2s forwards;
    min-width: 200px;
    text-align: center;
}

.toast.reminder-toast {
    background-color: #FF9800; /* Naranja para recordatorio */
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*----------------------------
******************************
||||||||||||||||||||||||||||||*/

/* ESTILOS PARA FILTROS DE CATEGORÍA (sin tocar variables existentes) */
/* Estilos para filtros de categoría */
.filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    position: relative;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.category-wrapper {
    position: relative;
}

.category-toggle {
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 170px;
    /* Igual al ancho del botón más largo */
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-toggle:hover {
    background-color: #3108c5;
    color: #ffffff;
}

.category-toggle:hover .arrow-icon {
    transform: scale(1.2);
}

/**/



.category-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background-color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    border-radius: 10px;
    visibility: hidden;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
    flex-direction: column;
    min-width: max-content;
    z-index: 1000;
    padding: 0.5rem;
}

.category-menu.show {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.category-tab {
    border: none;
    padding: 0.6rem 1rem;
    margin: 4px 0;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    color: #000000;
    transition: all 0.25s ease;
    font-weight: bold;
}

.category-tab:hover {
    background: linear-gradient(to right, #3108c5, #3108c5);
    transform: translateX(5px);
    color: #ffffff;
}

#search-input {
    flex-grow: 1;
    min-width: 200px;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
}

#search-input.loading {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" stroke="gray" stroke-width="4" fill="none" stroke-dasharray="31.416" stroke-dashoffset="31.416"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" values="31.416;0"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

/***************************************************/
/*-------------------------------------------------*/
/* Estilos para el botón flotante */
.floating-category-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-category-btn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-category-btn svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Menú flotante para categorías */
.floating-category-menu {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 250px;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.floating-category-menu.show {
    visibility: visible;
    opacity: 1;
}

.floating-category-menu .category-tab {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    #search-input {
        max-width: 100%;
    }

    .category-menu {
        max-width: 90vw;
        left: 5vw;
        right: 5vw;
        width: auto;
        min-width: unset;
    }

    .category-toggle {
        cursor: pointer;
        pointer-events: auto;
    }

    .floating-category-btn {
        cursor: pointer;
        pointer-events: auto;
    }

    /* .category-toggle {
        display: none;
    } */
}

/*mensaje de producto no encontrado*/
#no-products-message {
    display: none;
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    color: #4e4949;
    font-weight: bold;
    font-family: century;
}

/*||||||||||||||||||||||||||||||||||||||||||||||||||*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*dar title a la flechita*/
.arrow-icon {
    display: inline-block;
    color: floralwhite;
    transition: transform 0.3s ease;
    line-height: 1;
}

/*modo claro---modo oscuro*/
/* 🎨 Estilo base (modo claro por defecto o común a ambos) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*Promocion o publicidad de producto*/
/* Modal general */
#promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Contenido del modal */
.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    position: relative;
}

/* Botón cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Contenedor de productos */
.promo-products-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Cada producto */
/* Estilo general para escritorio */
.promo-product {
    flex: 1 1 80%;
    /* Ocupa 80% del contenedor en escritorio */
    max-width: 60%;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    /* Centra el producto si no ocupa todo el ancho */
}

/* Ajuste para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .promo-product {
        flex: 1 1 100%;
        max-width: 120%;
    }
}


.promo-product img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.promo-product p {
    margin: 10px 0 5px;
    font-size: 16px;
}

/* Precio */
.promo-product .precio {
    color: #e11d48;
    font-weight: bold;
    font-size: 18px;
}

/*animacion*/
.promo-product img {
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    will-change: transform;
    cursor: pointer;
}

.promo-product img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn {
    background-color: #130dc1;
    /* verde atractivo */
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Efecto al pasar el mouse */
.cta-btn:hover {
    background-color: #960505;
    transform: scale(1.05);
}

/* Animación de latido */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgb(213, 5, 5);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Responsive: se apilan */
/* En móviles, asegura que el modal use toda la pantalla sin romperse */
@media (max-width: 600px) {
    .modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/*===============================================*/
/* diseño para boton limpiar*/
.btn-clear {
    margin-left: 10px;
    padding: 6px 12px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-clear:hover {
    background: #c9302c;
}

/* Estilos del modal */
.confirm-modal {
    display: none;
    /* oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.confirm-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.confirm-content h3 {
    margin-bottom: 10px;
    color: #d9534f;
}

.confirm-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-yes,
.btn-no {
    flex: 1;
    margin: 0 5px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-yes {
    background: #d9534f;
    color: white;
}

.btn-no {
    background: #ccc;
}

.btn-yes:hover {
    background: #c9302c;
}

.btn-no:hover {
    background: #999;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/*estilo para pvs total */

.pv-counter {
    color: red;
    font-weight: bold;
}

/* =============== ESTILOS NUEVO CONTADOR =============== */

.btn-add-container {
    position: relative;
    width: 100%;
}

/* Botón Añadir normal */
.btn-add {
    width: 100%;
    padding: var(--space-sm);
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: var(--text-base);
    display: block;
    white-space: normal;
    line-height: 1.25;
}

.btn-add:hover:not(.active) {
    background-color: var(--primary-dark);
    transform: scale(1.02);
}

/* El estado de inventario viene de la BDD. Debe prevalecer incluso al pasar el cursor. */
.btn-add.sin-stock,
.btn-add.sin-stock:hover:not(.active) {
    background: #c62828;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.9;
    transform: none;
    box-shadow: none;
}

.btn-add.active {
    display: none;
}

/* Contenedor del contador */
.btn-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    padding: 0;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botones - y + */
.btn-counter-minus,
.btn-counter-plus {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
    flex-shrink: 0;
}

.btn-counter-minus:hover,
.btn-counter-plus:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.btn-counter-minus:active,
.btn-counter-plus:active {
    transform: scale(0.95);
}

/* Valor del contador en el centro */
.btn-counter-value {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    min-width: 50px;
}

/* Responsive para contador */
@media (max-width: 768px) {
    .btn-counter-minus,
    .btn-counter-plus {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .btn-counter-value {
        font-size: 1.1rem;
    }
}

/* ANIMACIONES GUIADAS PARA ONBOARDING */
@keyframes pulse-highlight {
    0% { box-shadow: 0 0 0 0 rgba(4, 18, 150, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(4, 18, 150, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 18, 150, 0); }
}

@keyframes arrow-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.section.highlight {
    animation: pulse-highlight 2s ease-in-out;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.guided-arrow {
    position: fixed;
    top: 50%;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: arrow-bounce 2s infinite;
    z-index: 9998;
    pointer-events: none;
}

.guided-arrow::after {
    content: "👆 Mira los productos aquí";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    animation: fade-in-text 2s 1s forwards;
}

@keyframes fade-in-text {
    to { opacity: 1; }
}

/* TOOLTIPS SUTILES PARA ACCIONES */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%; /* Aparece arriba */
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Flecha apuntando abajo */
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid;
    border-color: var(--primary) transparent transparent transparent;
}

/* Animación sutil para botones */
.btn-add.suggest {
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Indicador para zoom en imagen */
.product-image-container::before {
    content: "🔍";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.product-image-container:hover::before {
    opacity: 1;
}
