/* --- CONTENEDOR PRINCIPAL Y COLUMNAS --- */
.ccp-barra-categorias {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.ccp-columna-categorias {
    width: 80%;
    background-color: #456C97;
    display: flex;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.ccp-columna-opciones {
    width: 20%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --- BOTONES Y CARRUSEL --- */
.ccp-carrusel {
    overflow: hidden;
    flex-grow: 1;
}

.ccp-carrusel-track {
    display: flex;
    align-items: center;
}

.ccp-categoria-item {
    background-color: transparent;
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    white-space: nowrap;
}

.ccp-categoria-item:hover {
    background-color: #202D53;
}

.ccp-categoria-item.active {
    font-weight: normal;
    text-decoration: none;
}

.ccp-nav-arrow {
    background-color: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    display: none;
}

.ccp-nav-arrow:hover {
    color: white;
    opacity: 1;
    background-color: transparent;
}

.ccp-boton-opciones {
    background-color: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    text-align: center;
}

.ccp-boton-opciones:hover {
    background-color: transparent;
}

/* --- CONTENEDOR DE PRODUCTOS --- */
#ccp-contenedor-productos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 50px 50px 100px 50px;
    box-sizing: border-box;
    /* CAMBIO: Separación por defecto de 50px para PC */
    gap: 50px;
}

/* --- CAJA INDIVIDUAL DE PRODUCTO --- */
.ccp-producto-box {
    box-sizing: border-box;
    border: 1px solid #ddd;
    text-align: center;
    padding: 0;
    overflow: hidden;
    /* CAMBIO: Ancho recalculado para 4 columnas con 50px de gap */
    width: calc(25% - 37.5px);
}

.ccp-producto-box a {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.ccp-producto-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    display: block;
}

.ccp-producto-info {
    padding: 15px;
}

.ccp-producto-titulo {
    font-size: 1.1em;
    margin: 0 0 10px;
}

.ccp-producto-descripcion {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

/* --- DISEÑO RESPONSIVE --- */

/* TABLET: 3 columnas */
@media (max-width: 1024px) and (min-width: 769px) {
    #ccp-contenedor-productos {
        /* CAMBIO: Separación de 30px para Tablet */
        gap: 30px;
    }
    .ccp-producto-box {
        /* CAMBIO: Ancho recalculado para 3 columnas con 30px de gap */
        width: calc(33.333% - 20px);
    }
}

/* MÓVIL: 2 columnas y ajuste de columnas superiores */
@media (max-width: 768px) {
    .ccp-columna-categorias,
    .ccp-columna-opciones {
        width: 100%;
    }

    .ccp-nav-arrow {
        display: block;
    }

    #ccp-contenedor-productos {
        /* CAMBIO: Separación de 15px para Móvil */
        gap: 15px;
        /* CAMBIO: Padding reducido a 15px para Móvil */
        padding: 20px 15px 30px 15px;
    }

    .ccp-producto-box {
        /* CAMBIO: Ancho recalculado para 2 columnas con 15px de gap */
        width: calc(50% - 7.5px);
    }
}
.ccp-boton-opciones { text-decoration: none; }
.ccp-producto-box { /* ... tus estilos ... */ }

/* --- NUEVO: ESTILOS PARA EL MODAL Y EL BOTÓN DE WHATSAPP --- */

/* Botón de WhatsApp (estilo general) */
.ccp-whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}
.ccp-whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
}

/* El fondo oscuro del modal */
#ccp-modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
#ccp-modal-overlay.visible {
    display: flex; /* Se muestra con flex para centrar el contenido */
}

/* El contenido del modal */
#ccp-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#ccp-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}
#ccp-modal-close:hover {
    color: #000;
}

#ccp-modal-body {
    display: flex;
    gap: 25px;
}

#ccp-modal-img {
    width: 50%;
    object-fit: cover;
}

#ccp-modal-info {
    width: 50%;
    display: flex;
    flex-direction: column;
}

#ccp-modal-nombre {
    margin-top: 0;
    font-size: 1.5em;
}

#ccp-modal-descripcion {
    flex-grow: 1; /* Empuja el precio y botón hacia abajo */
    margin-bottom: 20px;
    color: #555;
}

#ccp-modal-precio {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}

/* Responsive para el modal en móviles */
@media (max-width: 768px) {
    #ccp-modal-body {
        flex-direction: column;
    }
    #ccp-modal-img, #ccp-modal-info {
        width: 100%;
    }
}