
/* RESET GENERAL */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, sans-serif;
}

body {
    position: relative;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 35px;
    background-color: white;
    border-bottom: 2px solid #f2f2f2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    width: 200px;
    height: 60px;
    object-fit: contain;
}

/* MENÚ */
.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    position: relative;
}

.menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: #0049a8;
    background-color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: bold;
    white-space: nowrap;
    border: 2px solid #0049a8;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.menu a:hover {
    color: white;
    background-color: #d88526;
    border-color: #d88526;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.menu a:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.menu > img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 3px;
}

/* MENÚ DESPLEGABLE */
#productos-lista {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 420px;
    max-width: calc(100vw - 30px);
    margin: 0;
    padding: 12px;
    list-style: none;
    background-color: white;
    border: 2px solid #0049a8;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    z-index: 2000;
}

#productos-lista.visible {
    display: grid;
}

#productos-lista li {
    padding: 3px;
    border-radius: 7px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#productos-lista li:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

#productos-lista li a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 9px;
    color: #0049a8;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: normal;
    box-shadow: none;
    transform: none;
}

#productos-lista li a:hover {
    color: white;
    background-color: #d88526;
    border-color: #d88526;
    transform: none;
    box-shadow: none;
}

/* FRANJA SUPERIOR */
.franjaalta {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    background-color: #d88526;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.franja-texto {
    position: absolute;
    left: 100%;
    margin: 0;
    color: white;
    font-family: Arial, sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.5rem);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* CONTACTO */
.contact-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 30px;
    padding: 18px 25px;
    background-color: #0049a8;
    font-family: Arial, sans-serif;
}

.contact-item {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 100%;
}

.contact-item span {
    overflow-wrap: anywhere;
}

.icon {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 5px;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 5000;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.whatsapp-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* GALERÍA */
.galeria-inicio {
    width: min(1600px, calc(100% - 32px));
    margin: 20px auto 35px;
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(220px, 0.7fr);
    grid-template-rows: minmax(0, 700px) auto;
    gap: 12px;
}

.galeria-principal {
    min-width: 0;
    min-height: 0;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.galeria-principal img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.galeria-laterales {
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-column: 2;
    grid-row: 1;
}

.imagen-lateral {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.imagen-lateral:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

/* IMÁGENES GENERALES */
.ImagenContacto {
    width: 100%;
    margin-top: 50px;
    text-align: center;
}

.ImagenContacto img {
    width: 100%;
    height: auto;
    display: block;
}

/* TEXTO */
.texto p {
    margin: 5px 0;
    color: #000;
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.75rem);
    font-weight: bold;
}

/* FRANJA INFERIOR */
.franjabaja {
    width: 100%;
    min-height: 150px;
    margin-top: 40px;
    padding-top: 30px;
    background-color: #0049a8;
}

/* PRODUCTOS DESTACADOS */
.productos-destacados {
    width: 100%;
    padding: 55px 0 65px;
    background-color: transparent;
}

.productos-titulo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto 10px;
    padding: 12px 25px;
    background-color: #d88526;
    border: 1px solid rgba(0, 73, 168, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.productos-titulo h2 {
    margin: 0;
    color: white;
    font-family: Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: bold;
    text-align: center;
}

.linea-titulo {
    width: 150px;
    background-color: #d88526;
    border-radius: 10px;
    flex-shrink: 0;
}

/* GRID DE PRODUCTOS */
.productos-grid {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* TARJETAS */
.producto-card {
    position: relative;
    background-color: #0049a8;
    border: 10px solid #0049a8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-7px);
    border-color: #d88526;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.producto-imagen {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.06);
}

/* INFORMACIÓN DE PRODUCTOS */
.producto-info {
    min-height: 100px;
    padding: 15px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    background-color: #0049a8;
}

.producto-info h3 {
    margin: 0;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: bold;
    line-height: 1.35;
}

.producto-info p {
    margin: 0;
    color: #f0f4ff;
    font-size: 0.82rem;
    line-height: 1.4;
}

.producto-card:hover .producto-info h3 {
    color: #ffd19b;
}

/* FOOTER */
footer {
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    text-align: center;
    background-color: #004aad;
    color: white;
    font-size: 0.95rem;
}

footer p {
    margin: 0;
}

/* TABLETS: PRODUCTOS */
@media (max-width: 1000px) {
    .productos-destacados {
        padding: 45px 25px 55px;
    }

    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* TABLETS */
@media (max-width: 900px) {
    .navbar {
        padding: 12px 20px;
    }

    .logo-icon {
        width: 170px;
        height: 55px;
    }

    .menu {
        gap: 8px;
    }

    .menu a {
        padding: 9px 13px;
        font-size: 0.95rem;
    }

    .menu > img {
        width: 40px;
        height: 40px;
    }

    .contact-bar {
        gap: 15px 20px;
        padding: 16px 15px;
    }

    .contact-item {
        font-size: 0.95rem;
    }

    .galeria-inicio {
        grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.9fr);
        grid-template-rows: minmax(0, 350px) auto;
        gap: 10px;
    }

    .galeria-laterales {
        gap: 10px;
    }
}

/* CELULARES */
@media (max-width: 700px) {
    .navbar {
        min-height: auto;
        flex-direction: column;
        gap: 12px;
        padding: 15px 12px;
    }

    .logo {
        justify-content: center;
        width: 100%;
    }

    .logo-icon {
        width: 170px;
        height: 55px;
    }

    .menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .menu a {
        padding: 9px 13px;
        font-size: 0.9rem;
        border-radius: 9px;
    }

    .menu > img {
        width: 35px;
        height: 35px;
    }

    #productos-lista {
        left: 50%;
        transform: translateX(-50%);
        width: min(380px, calc(100vw - 25px));
        grid-template-columns: 1fr;
        max-height: 70vh;
        overflow-y: auto;
    }

    #productos-lista.visible {
        transform: translateX(-50%);
    }

    .franjaalta {
        height: 65px;
        margin-bottom: 15px;
    }

    .franja-texto {
        font-size: 0.95rem ;
    }

    .contact-bar {
        flex-direction: column;
        gap: 12px;
        padding: 18px 12px;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
    }

    .icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        left: 12px;
        bottom: 12px;
    }

    .whatsapp-icon {
        width: 46px;
        height: 46px;
    }

    .galeria-inicio {
        width: calc(100% - 20px);
        margin: 15px auto 25px;
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        grid-template-rows: 220px;
        gap: 8px;
    }

    /* Imagen principal */
    .galeria-principal {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        background: transparent;
        border-radius: 10px;
        box-shadow: none;
    }

    .galeria-principal img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: transparent;
    }

    /* Contenedor de las imágenes laterales */
    .galeria-laterales {
        grid-column: 2;
        grid-row: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
        min-height: 0;
    }

    /* Imágenes laterales completas */
    .imagen-lateral {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background-color: transparent;
    border: none;
    border-radius: 10px;
    box-shadow: none;
}

    .productos-destacados {
        padding: 40px 15px 50px;
    }

    .productos-titulo {
        gap: 10px;
    }

    .productos-titulo h2 {
        font-size: 1.2rem;
    }

    .linea-titulo {
        width: 35px;
        height: 2px;
    }

    .productos-subtitulo {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .producto-imagen {
        padding: 10px;
    }

    .producto-info {
        min-height: 90px;
        padding: 12px 5px;
        gap: 5px;
    }

    .producto-info h3 {
        font-size: 1.2rem;
    }

    .producto-info p {
        font-size: 1.5rem;
    }

    footer {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 400px) {
    .logo-icon {
        width: 150px;
        height: 50px;
    }

    .menu {
        gap: 7px;
    }

    .menu a {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .menu > img {
        width: 30px;
        height: 30px;
    }

    .franja-texto {
        font-size: 1.50rem;
    }

    .contact-item {
        font-size: 0.82rem;
    }

    .contact-item span {
        max-width: 280px;
    }

    .productos-destacados {
        padding: 35px 10px 45px;
    }

    .productos-grid {
        gap: 10px;
    }

    .producto-imagen {
        padding: 8px;
    }

    .producto-info p {
        font-size: 0.7rem;
    }

    .miniatura {
        width: 65px;
        height: 48px;
    }
}

/* CELULARES MUY PEQUEÑOS */
@media (max-width: 380px) {
    .galeria-inicio {
        grid-template-rows: minmax(0, 210px) auto auto;
    }
}
