/* ================================
   VILOPHONE
   ESTILOS SIMPLIFICADOS
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #111827;
}


/* ================================
   COLORES
================================ */

:root {
    --morado: #635bff;
    --morado-oscuro: #4d46d8;
    --azul: #312e81;
    --oscuro: #111827;
    --gris: #6b7280;
    --blanco: #ffffff;
}


/* ================================
   ENLACES
================================ */

a {
    text-decoration: none;
    color: inherit;
}


/* ================================
   HEADER
================================ */

header {
    height: 70px;

    background: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 6%;

    border-bottom: 1px solid #ddd;

    position: sticky;

    top: 0;

    z-index: 100;
}


.logo {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 22px;

    font-weight: bold;
}


.logo span {
    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--morado);

    color: white;

    border-radius: 10px;

    font-weight: bold;
}


nav {
    display: flex;

    align-items: center;

    gap: 20px;
}


nav a {
    color: #444;

    font-weight: bold;
}


nav a:hover {
    color: var(--morado);
}


.carrito-link {
    background: var(--oscuro);

    color: white !important;

    padding: 10px 14px;

    border-radius: 8px;
}


.carrito-link b {
    background: var(--morado);

    padding: 2px 7px;

    border-radius: 20px;

    margin-left: 4px;
}


/* ================================
   BIENVENIDA
================================ */

.bienvenida {
    position: fixed;

    inset: 0;

    background: linear-gradient(
        135deg,
        #111827,
        #312e81
    );

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 9999;

    padding: 20px;
}


.bienvenida.oculta {
    display: none;
}


.bienvenida-box {
    background: white;

    width: 100%;

    max-width: 500px;

    padding: 45px 30px;

    text-align: center;

    border-radius: 25px;
}


.logo-grande {
    width: 90px;

    height: 90px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background: linear-gradient(
        135deg,
        #635bff,
        #8b5cf6
    );

    color: white;

    font-size: 42px;

    font-weight: bold;
}


.bienvenida-box h1 {
    font-size: 35px;
}


.bienvenida-box h2 {
    font-size: 45px;

    color: var(--morado);

    margin-bottom: 15px;
}


.bienvenida-box p {
    color: var(--gris);

    margin-bottom: 25px;
}


/* ================================
   BOTONES
================================ */

button {
    border: none;

    background: var(--morado);

    color: white;

    padding: 12px 20px;

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;
}


button:hover {
    background: var(--morado-oscuro);
}


/* ================================
   TITULO
================================ */

.titulo {
    text-align: center;

    padding: 60px 20px 40px;
}


.titulo span {
    color: var(--morado);

    font-weight: bold;

    font-size: 13px;
}


.titulo h1 {
    font-size: 45px;

    margin: 10px 0;
}


.titulo p {
    color: var(--gris);

    margin-bottom: 25px;
}


/* ================================
   BUSCADOR
================================ */

.buscador {
    max-width: 650px;

    margin: auto;

    display: flex;

    gap: 10px;
}


.buscador input {
    flex: 1;

    padding: 14px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 16px;

    outline: none;
}


.buscador input:focus {
    border-color: var(--morado);
}


/* ================================
   PRODUCTOS
================================ */

.productos {
    max-width: 1200px;

    margin: auto;

    padding: 20px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.producto {
    background: white;

    border-radius: 15px;

    overflow: hidden;

    border: 1px solid #ddd;
}


.producto:hover {
    box-shadow:
        0 10px 30px
        rgba(0,0,0,.10);
}


.producto-imagen {
    width: 100%;

    height: 250px;

    object-fit: contain;

    background: #f1f3f7;

    padding: 15px;
}


.producto-info {
    padding: 18px;
}


.marca {
    color: var(--morado);

    font-size: 13px;

    font-weight: bold;
}


.producto h2 {
    font-size: 20px;

    margin: 7px 0;
}


.descripcion {
    color: var(--gris);

    font-size: 14px;

    min-height: 40px;
}


.precio {
    font-size: 24px;

    font-weight: bold;

    margin: 15px 0;
}


.botones-producto {
    display: flex;

    gap: 8px;
}


.botones-producto button {
    flex: 1;

    font-size: 13px;
}


.detalles {
    background: #eef2ff;

    color: var(--morado);
}


/* ================================
   LOGIN
================================ */

.pagina-login {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #111827,
            #312e81
        );
}


.volver {
    color: var(--gris);

    font-weight: bold;
}


.login-contenedor {
    min-height:
        calc(100vh - 70px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;
}


.login-box {
    background: white;

    width: 100%;

    max-width: 430px;

    padding: 35px;

    border-radius: 20px;

    text-align: center;
}


.pequeño {
    width: 65px;

    height: 65px;

    font-size: 28px;
}


.login-box h1 {
    margin-bottom: 8px;
}


.login-box > p {
    color: var(--gris);

    margin-bottom: 20px;
}


.login-box label {
    display: block;

    text-align: left;

    font-weight: bold;

    margin: 15px 0 5px;
}


.login-box input {
    width: 100%;

    padding: 13px;

    border: 1px solid #ddd;

    border-radius: 8px;
}


.login-box form button {
    width: 100%;

    margin-top: 20px;
}


.login-box hr {
    border: 0;

    border-top: 1px solid #ddd;

    margin: 25px 0;
}


.boton-secundario {
    background: var(--oscuro);
}


.mensaje {
    margin-top: 15px;

    font-weight: bold;
}


/* ================================
   CARRITO
================================ */

.carrito-pagina {
    max-width: 1000px;

    margin: auto;

    padding: 50px 20px;

    min-height: 80vh;
}


.carrito-pagina > h1 {
    font-size: 40px;

    margin-bottom: 10px;
}


.carrito-pagina > p {
    color: var(--gris);

    margin-bottom: 30px;
}


.carrito-item {
    background: white;

    border: 1px solid #ddd;

    border-radius: 12px;

    padding: 15px;

    margin-bottom: 15px;

    display: flex;

    align-items: center;

    gap: 20px;
}


.carrito-item img {
    width: 100px;

    height: 100px;

    object-fit: contain;

    background: #f1f3f7;

    border-radius: 10px;
}


.carrito-info {
    flex: 1;
}


.carrito-info h2 {
    font-size: 20px;
}


.carrito-info p {
    color: var(--gris);

    margin: 5px 0;
}


.carrito-precio {
    font-size: 20px;

    font-weight: bold;
}


.eliminar {
    background: #dc2626;
}


.total-carrito {
    background: white;

    padding: 25px;

    border-radius: 15px;

    text-align: right;

    margin-top: 25px;
}


.total-carrito h2 {
    margin-bottom: 15px;
}


.carrito-vacio {
    background: white;

    padding: 50px;

    border-radius: 15px;

    text-align: center;

    color: var(--gris);
}


/* ================================
   DETALLES
================================ */

.modal {
    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,.7);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 500;
}


.modal.oculto {
    display: none;
}


.modal-box {
    background: white;

    width: 100%;

    max-width: 600px;

    max-height: 90vh;

    overflow: auto;

    border-radius: 20px;

    padding: 25px;
}


.modal-box img {
    width: 100%;

    height: 300px;

    object-fit: contain;

    background: #f1f3f7;

    border-radius: 10px;
}


.modal-box h2 {
    margin: 15px 0 5px;
}


.modal-box p {
    color: var(--gris);

    margin: 10px 0;
}


.cerrar {
    background: #dc2626;

    margin-top: 15px;
}


/* ================================
   MÓVIL
================================ */

@media (max-width: 900px) {

    .productos {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    header {
        height: auto;

        flex-direction: column;

        gap: 12px;
    }

    nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 10px;
    }

    .titulo h1 {
        font-size: 32px;
    }

    .buscador {
        flex-direction: column;
    }

    .productos {
        grid-template-columns: 1fr;
    }

    .carrito-item {
        flex-direction: column;

        align-items: stretch;

        text-align: center;
    }

    .carrito-item img {
        margin: auto;
    }

}

/* =========================================
   CONTACTO
========================================= */

.contacto {
    background: white;
    padding: 70px 20px;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
}


.contacto-titulo {
    max-width: 800px;
    margin: auto;
    text-align: center;
}


.contacto-titulo span {
    color: var(--morado);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}


.contacto-titulo h2 {
    font-size: 38px;
    margin: 10px 0;
}


.contacto-titulo p {
    color: var(--gris);
    line-height: 1.6;
}


/* GRID DE CONTACTO */

.contacto-grid {
    max-width: 1200px;
    margin: 40px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.contacto-card {
    background: #f5f7fb;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 30px 20px;

    text-align: center;

    transition: .3s;
}


.contacto-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.08);
}


.contacto-icono {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--morado);

    color: white;

    border-radius: 50%;

    font-size: 26px;
}


.contacto-card h3 {
    font-size: 19px;

    margin-bottom: 10px;
}


.contacto-card p {
    color: var(--gris);

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 15px;
}


.contacto-card a {
    color: var(--morado);

    font-weight: bold;

    word-break: break-word;
}


.contacto-card a:hover {
    color: var(--morado-oscuro);

    text-decoration: underline;
}


.contacto-info {
    color: var(--gris);

    font-size: 14px;
}


/* =========================================
   HORARIO
========================================= */

.horario {
    max-width: 700px;

    margin: 40px auto 0;

    padding: 25px;

    background: #eef2ff;

    border-radius: 15px;

    text-align: center;
}


.horario h3 {
    color: var(--morado);

    margin-bottom: 15px;
}


.horario p {
    color: var(--gris);

    margin: 5px 0;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: var(--oscuro);

    color: white;

    margin-top: 0;
}


.footer-contenido {
    max-width: 1200px;

    margin: auto;

    padding: 55px 20px;

    display: grid;

    grid-template-columns:
        2fr 1fr 1.5fr 1fr;

    gap: 40px;
}


/* LOGO DEL FOOTER */

.footer-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 23px;

    font-weight: bold;

    margin-bottom: 18px;
}


.footer-logo span {
    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--morado);

    color: white;

    border-radius: 10px;

    font-weight: bold;
}


.footer-columna p {
    color: #cbd5e1;

    line-height: 1.6;

    font-size: 14px;
}


.footer-columna h3 {
    font-size: 18px;

    margin-bottom: 18px;
}


.footer-columna > a:not(.footer-logo) {
    display: block;

    color: #cbd5e1;

    margin-bottom: 10px;

    font-size: 14px;
}


.footer-columna > a:not(.footer-logo):hover {
    color: white;

    padding-left: 4px;
}


.footer-columna p {
    margin-bottom: 10px;
}


/* =========================================
   REDES SOCIALES
========================================= */

.redes-sociales {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.redes-sociales a {
    color: #cbd5e1;

    font-size: 14px;

    transition: .2s;
}


.redes-sociales a:hover {
    color: white;

    transform: translateX(4px);
}


/* =========================================
   PARTE INFERIOR FOOTER
========================================= */

.footer-bottom {
    border-top: 1px solid #374151;

    max-width: 1200px;

    margin: auto;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-bottom p {
    color: #9ca3af;

    font-size: 13px;
}


/* =========================================
   CONTACTO EN MÓVIL
========================================= */

@media (max-width: 900px) {

    .contacto-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .footer-contenido {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================
   FOOTER Y CONTACTO EN CELULAR
========================================= */

@media (max-width: 600px) {

    .contacto {
        padding: 50px 15px;
    }


    .contacto-titulo h2 {
        font-size: 30px;
    }


    .contacto-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .contacto-card {
        padding: 25px 18px;
    }


    .footer-contenido {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 40px 20px;
    }


    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }

}