﻿/* ====================
   PRODUCTOS.CSS
   Estilos para la página de productos
   ==================== */

/* --- ESTILOS GENERALES DE LA PÁGINA --- */
.productos-body {
    background-color: #ffffff;
}



/* --- TÍTULO DE LA CAMPAÑA --- */
.titulo-productos {
    background-color: #d14e68;
    color: white;
    padding: 15px 45px;
    border-radius: 15px;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(209, 78, 104, 0.3);
    /* Centrado */
    display: block;
    margin: 40px auto 40px auto;
    max-width: fit-content;
}

   /* .titulo-productos::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: #c0392b;
    }*/

/* --- GRID DE PRODUCTOS (3 columnas) --- */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    justify-items: center;
}

/* --- TARJETA DE PRODUCTO --- */
.producto-card {
    width: 100%;
    max-width: 350px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .producto-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }

    .producto-card.center-item {
        grid-column: 2 / 3;
    }

.producto-imagen {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

    .producto-imagen img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.producto-card:hover .producto-imagen img {
    transform: scale(1.05);
}

.producto-info {
    padding: 20px;
    text-align: center;
    background: #ffffff;
}

.producto-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- RESPONSIVE PARA GRID --- */
@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .producto-card.center-item {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .titulo-productos {
        font-size: 1.8rem;
        margin: 20px 0 30px;
        padding: 15px;
    }

    .producto-imagen {
        height: 200px;
    }

    .producto-titulo {
        font-size: 1rem;
        min-height: 40px;
        padding: 10px;
    }

    .producto-card {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .producto-imagen {
        height: 180px;
    }

    .titulo-productos {
        font-size: 1.4rem;
        margin: 15px 0 20px;
        padding: 10px;
    }
}

/* --- MENSAJE CUANDO NO HAY PRODUCTOS --- */
.no-productos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

    .no-productos p {
        background: #f8f9fa;
        padding: 30px;
        border-radius: 12px;
        border: 2px dashed #dee2e6;
    }

/* ====================
   MODAL PARA VER IMAGEN COMPLETA
   ==================== */
.modal-producto {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.modal-contenido {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 70px;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: #2c3e50;
        font-weight: 600;
        flex: 1;
        padding-right: 15px;
    }

.modal-cerrar {
    font-size: 2.5rem;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

    .modal-cerrar:hover {
        color: #c0392b;
        background: #fde8e8;
        transform: rotate(90deg);
    }

.modal-body {
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    flex: 1;
}

.modal-imagen-container {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    min-height: 300px;
}

    .modal-imagen-container img {
        width: 100%;
        height: auto;
        max-height: 60vh;
        object-fit: contain;
        transition: transform 0.3s ease;
        transform-origin: center center;
        cursor: grab;
        user-select: none;
        -webkit-user-drag: none;
    }

        .modal-imagen-container img:active {
            cursor: grabbing;
        }

.modal-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    flex-shrink: 0;
    width: 100%;
    flex-wrap: wrap;
}

.btn-zoom {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #e9ecef;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

    .btn-zoom:hover {
        background: #c0392b;
        color: white;
        transform: scale(1.1);
    }

    .btn-zoom:active {
        transform: scale(0.95);
    }

    .btn-zoom:focus {
        outline: 2px solid #c0392b;
        outline-offset: 2px;
    }
/* --- CONTACTO --- */
.seccion-contacto {
    background-color: #ffffff;
    padding: 40px 20px 60px 20px;
    border-top: 1px solid #f0f0f0;
}

    .seccion-contacto h2 {
        text-align: center;
        color: #1a2b4c;
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 40px;
    }

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-icon-box {
    background-color: #D0335C;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(208, 51, 92, 0.3);
}

    .contacto-icon-box img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

.contacto-item p {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b4c;
    line-height: 1.4;
}

.barra-azul-inferior {
    background-color: #5bc0de;
    color: white;
    text-align: center;
    padding: 20px 20px;
    font-size: 24px;
    font-weight: 600;
}
/* --- RESPONSIVE DEL MODAL --- */
@media (max-width: 768px) {
    .modal-contenido {
        width: 95%;
        margin: 20px auto;
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 15px 20px;
        min-height: 60px;
    }

        .modal-header h3 {
            font-size: 1.1rem;
        }

    .modal-cerrar {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .modal-body {
        padding: 15px;
        gap: 15px;
    }

    .modal-imagen-container {
        max-height: 50vh;
        min-height: 200px;
    }

        .modal-imagen-container img {
            max-height: 50vh;
        }

    .btn-zoom {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-controls {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .modal-contenido {
        margin: 10px auto;
        border-radius: 10px;
        max-height: 98vh;
        width: 98%;
    }

    .modal-header {
        padding: 12px 15px;
        min-height: 50px;
    }

        .modal-header h3 {
            font-size: 0.95rem;
        }

    .modal-cerrar {
        font-size: 1.8rem;
        width: 30px;
        height: 30px;
    }

    .modal-imagen-container {
        max-height: 40vh;
        min-height: 150px;
    }

        .modal-imagen-container img {
            max-height: 40vh;
        }

    .btn-zoom {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
@media (max-width: 600px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contacto-icon-box {
        width: 80px;
        height: 80px;
    }

        .contacto-icon-box img {
            width: 40px;
            height: 40px;
        }

    .barra-azul-inferior {
        font-size: 15px;
    }

   
}

/* --- SCROLLBAR PERSONALIZADO --- */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 4px;
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #a93226;
    }
