body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(to bottom, #93cbe9, #daeef8);
    font-weight: 340;
}

/* Título */
.productos-titulo {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: white;
    margin-bottom: 1rem;
    margin-top: 0em;
}

.titulo {
    margin-top: 5em;
    padding: 2em;
}

.titulo a {
    color: #fff;
}

.titulo h2 {
    color: #fff;
    text-align: start;
}

.titulo h5 {
    text-align: center;
}

.titulo h5 a {
    text-decoration: none;
}

.titulo h5 a.activo {
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Sección principal con scroll horizontal */
.productos-scroll {
    overflow-x: auto;
    padding: 2em 1em;
    height: 80%;
    background: #fff;
    box-sizing: border-box;
    margin-bottom: 5em;
}

/* Contenedor de productos */
.productos-container {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    width: max-content;
}

/* Tarjeta */
.producto {
    flex: 0 0 auto;
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.producto img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #ddd;
}

.producto .info {
    padding: 1em;
    color: #000;
}

.link-producto {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.link-producto:hover {
    transform: scale(1.03) translateY(-5px) rotateX(2deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.producto h4 {
    font-size: 1rem;
    margin: 0 0 0.2em 0;
    font-weight: bold;
}

.producto p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

/* Scroll personalizado */
.productos-scroll::-webkit-scrollbar {
    height: 8px;
}

.productos-scroll::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 10px;
}

.productos-scroll::-webkit-scrollbar-track {
    background-color: #e0e0e0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-contenido {
    background: white;
    padding: 1.5em;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

/* Zoom */
.zoom-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: zoom-in;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    transition: background-position 0.1s ease, background-size 0.3s ease;
    background-color: #eee;
}

.zoom-container:hover {
    background-size: 300% auto;
    cursor: zoom-out;
}

.zoom-container img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
    opacity: 0;
}

/* Imagen en modal */
#modal-imagen {
    width: 300px;
    height: auto;
}

/* Botón cerrar */
.modal .cerrar {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 28px; 
    cursor: pointer;
} 

.oculto {
    display: none;
}
.texto-modal p{
    margin-top: 15px !important;
    
}
#modal-descripcion{
    font-weight: 100 !important;
    margin: auto 4em auto auto;
}
/* Tipografías */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

h1, h2, .titulo-principal {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Layout modal */
.mobile-modal {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
    padding: 10px;
}

.texto-modal {
    max-width: 400px;
    display: flex;
    flex-direction: column;

    padding: 10px;
    color: #111;
}

.texto-modal h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.texto-modal p {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 800;
    margin: 0;
    color: #111;
}

/* Marca como subtitulo */
#modal-marca {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: -0.2em;
}

/* Responsivo */
@media (max-width: 990px) {
    .mobile-modal {
        flex-direction: column !important;
        align-items: center;
    }

    .mobile-modal .zoom-container {
        width: 100%;
        max-width: 400px;
        margin-bottom: 1em;
    }

    .mobile-modal .texto-modal {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 800px) {
    #modal-imagen {
        max-width: 400px;
        width: 80%;
        height: auto;
    }

    .modal-contenido div {
        display: grid;
    }
}

@media (max-width: 600px) {
    .mobile-modal {
        padding: 0;
    }

    .mobile-modal .zoom-container {
        max-width: 100%;
    }

    .mobile-modal .texto-modal {
        padding: 0 1em;
    }
}

@media (max-width: 400px) {
    #modal-imagen {
        max-width: 100%;
        height: auto;
    }

    .modal-contenido {
        background: white;
        padding: 12px;
    }
    .modal .cerrar {
        position: absolute;
        top: 8px;
        right: 15px;
        font-size: 28px; 
        cursor: pointer;
    } 
    .mobile-modal {
        display: flex;
        gap: 1.5em;
        align-items: flex-start;
        padding: 17px;
    }
}
