/* =========================================================
   ENJOY - ESTILOS GENERALES
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff8f2;
    color: #333;
    overflow-x: hidden;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

header {
    width: 100%;
    background: #20b9aa;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    width: 210px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

header nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

header nav a:hover {
    background: rgba(255,255,255,0.18);
}

.contador-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 4px;
    background: white;
    color: #20a99b;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
}


/* =========================================================
   MENSAJE DE BIENVENIDA
   ========================================================= */

.mensaje-bienvenida {
    width: 100%;
    text-align: center;
    padding: 25px 20px;
    background: #fff8f2;
}

.mensaje-bienvenida h2 {
    font-size: 30px;
    margin-bottom: 8px;
    color: #e85d75;
    text-align: center;
}

.mensaje-bienvenida p {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: 100%;
    text-align: center;
    padding: 55px 20px;
    background: #fff8f2;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 70px);
    color: #e85d75;
    margin-bottom: 10px;
    text-align: center;
}

.hero p {
    font-size: clamp(18px, 3vw, 24px);
    text-align: center;
}

.boton {
    display: inline-block;
    margin-top: 25px;
    background: #e85d75;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 18px;
}

.boton:hover {
    background: #d94761;
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

h2 {
    color: #333;
}

.titulo-productos {
    text-align: center;
    font-size: clamp(32px, 5vw, 48px);
    margin: 35px 0;
    color: #e85d75;
}


/* =========================================================
   FILTROS
   ========================================================= */

.filtros {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 auto 40px;
}

.filtros button {
    width: 100%;
    min-height: 52px;
    background: white;
    border: 2px solid #20b9aa;
    border-radius: 12px;
    color: #20a99b;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.filtros button:hover,
.filtros button.activo {
    background: #20b9aa;
    color: white;
}


/* =========================================================
   CATÁLOGO
   ========================================================= */

.productos-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}


/* =========================================================
   TARJETAS DEL CATÁLOGO
   ========================================================= */

.producto-card {
    width: 100%;
    min-width: 0;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid #f4d8df;
}

.producto-card img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: contain;
    object-position: center;
    background: white;
}

.producto-card .info {
    padding: 20px 15px 24px;
    text-align: center;
}

.producto-card h3 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px;
    text-align: center;
}

.producto-card p {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 8px;
    text-align: center;
}

.producto-card .precio {
    font-size: 27px;
    font-weight: bold;
    color: #e85d75;
    margin: 12px 0;
    text-align: center;
}

.disponible {
    color: #159447;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.no-disponible {
    color: #e85d75;
    font-weight: bold;
}


/* =========================================================
   BOTONES
   ========================================================= */

.boton-producto {
    display: inline-block;
    align-self: center;
    background: #e85d75;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 14px 25px;
    border-radius: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: none;
    cursor: pointer;
}

.boton-producto:hover {
    background: #d94761;
}


/* =========================================================
   TODOS LOS BOTONES AGREGAR AL CARRITO
   ========================================================= */

button[onclick="agregarAlCarrito()"] {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 15px auto 5px;

    background: #e85d75;
    color: white;

    border: none;
    border-radius: 12px;

    padding: 14px 25px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;

    cursor: pointer;
    text-align: center;
}

button[onclick="agregarAlCarrito()"]:hover {
    background: #d94761;
}


/* =========================================================
   FICHA INDIVIDUAL DEL PRODUCTO
   ========================================================= */

.producto-detalle {
    width: 100%;
    max-width: 1050px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}


/* =========================================================
   IMAGEN DE LA FICHA
   ========================================================= */

.producto-imagen {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.producto-imagen img {
    width: 380px;
    max-width: 90%;
    height: auto;
    max-height: 480px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 15px;
}


/* =========================================================
   INFORMACIÓN DE LA FICHA
   ========================================================= */

.producto-informacion {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.producto-informacion h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 18px;
    text-align: center;
}

.producto-informacion p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
}

.producto-informacion .precio {
    font-size: 32px;
    color: #e85d75;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
}

.producto-informacion .boton-producto {
    margin-top: 15px;
}


/* =========================================================
   NOSOTROS
   ========================================================= */

.nosotros {
    width: calc(100% - 24px);
    max-width: 1000px;
    margin: 50px auto;
    padding: 35px 30px;
    background: white;
    border-radius: 18px;
    border: 2px solid #f5d5df;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.nosotros h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 25px;
    color: #e85d75;
}

.nosotros h3 {
    color: #20b9aa;
    font-size: 24px;
    margin-top: 28px;
    margin-bottom: 12px;
    text-align: center;
}

.nosotros p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto 18px;
    text-align: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    width: 100%;
    background: #20b9aa;
    color: white;
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
}

footer p {
    text-align: center;
    line-height: 1.6;
    margin: 6px auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .logo {
        width: 190px;
        margin: 0 auto;
    }

    header nav {
        width: 100%;
        justify-content: center;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .producto-card img {
        height: 260px;
        object-fit: contain;
    }

    .filtros {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 16px;
    }

    header {
        width: 100%;
        padding: 12px 12px 15px;
        gap: 12px;
    }

    .logo {
        width: 180px;
        margin: 0 auto;
    }

    header nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    header nav a {
        width: 100%;
        text-align: center;
        padding: 9px 5px;
        font-size: 14px;
    }

    .mensaje-bienvenida {
        width: 100%;
        padding: 20px 15px;
        text-align: center;
    }

    .mensaje-bienvenida h2 {
        font-size: 25px;
    }

    .mensaje-bienvenida p {
        font-size: 16px;
    }

    .hero {
        width: 100%;
        padding: 35px 15px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
        line-height: 1.4;
    }

    main {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        overflow-x: hidden;
    }

    .filtros {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 30px;
    }

    .filtros button {
        min-height: 52px;
        font-size: 18px;
    }

    .productos-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0;
    }

    .producto-card {
        width: 100%;
        max-width: 100%;
        border-radius: 18px;
    }

    .producto-card img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        object-position: center;
    }

    .producto-card h3 {
        font-size: 23px;
    }

    .producto-card p {
        font-size: 17px;
    }

    .producto-card .precio {
        font-size: 26px;
    }


    /* =====================================================
       FICHA INDIVIDUAL EN CELULAR
       ===================================================== */

    .producto-detalle {
        width: 100%;
        max-width: 100%;
        margin: 20px auto;
        padding: 18px 12px 25px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        border-radius: 16px;
        overflow: hidden;
    }

    .producto-imagen {
        width: 100%;
        max-width: 100%;
        text-align: center;
        overflow: hidden;
    }

    .producto-imagen img {
        width: 160px;
        max-width: 70%;
        height: auto;
        max-height: 220px;
        display: block;
        margin: 0 auto;
        object-fit: contain;
        border-radius: 12px;
    }

    .producto-informacion {
        width: 100%;
        max-width: 100%;
        text-align: center;
        overflow-wrap: break-word;
    }

    .producto-informacion h1 {
        width: 100%;
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
        overflow-wrap: break-word;
    }

    .producto-informacion p {
        width: 100%;
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 9px;
        text-align: center;
    }

    .producto-informacion .precio {
        font-size: 28px;
        margin: 15px 0;
    }

    .producto-informacion .boton-producto,
    button[onclick="agregarAlCarrito()"] {
        width: 100%;
        max-width: 300px;
        margin: 15px auto 0;
        display: block;
    }


    /* NOSOTROS */

    .nosotros {
        width: calc(100% - 12px);
        margin: 35px auto;
        padding: 28px 18px;
        text-align: center;
    }

    .nosotros h2 {
        font-size: 30px;
    }

    .nosotros h3 {
        font-size: 22px;
    }

    .nosotros p {
        font-size: 17px;
        line-height: 1.6;
    }


    /* FOOTER */

    footer {
        width: 100%;
        text-align: center;
        padding: 22px 12px;
    }

    footer p {
        width: 100%;
        text-align: center;
        margin: 6px auto;
        line-height: 1.5;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {

    .logo {
        width: 160px;
    }

    header nav a {
        font-size: 13px;
        padding: 8px 3px;
    }

    .titulo-productos {
        font-size: 30px;
    }

    .filtros button {
        font-size: 16px;
        min-height: 48px;
    }

    .producto-card img {
        height: 200px;
    }

    .producto-card h3 {
        font-size: 21px;
    }

    .producto-card .precio {
        font-size: 24px;
    }


    /* FICHA INDIVIDUAL */

    .producto-detalle {
        padding: 15px 10px 22px;
    }

    .producto-imagen img {
        width: 145px;
        max-width: 65%;
        max-height: 200px;
    }

    .producto-informacion h1 {
        font-size: 27px;
    }

    .producto-informacion p {
        font-size: 16px;
    }

    .producto-informacion .precio {
        font-size: 26px;
    }

    .producto-informacion .boton-producto,
    button[onclick="agregarAlCarrito()"] {
        width: 100%;
        max-width: 280px;
        margin: 15px auto 0;
    }


    /* NOSOTROS */

    .nosotros {
        width: calc(100% - 10px);
        padding: 25px 15px;
    }

    .nosotros h2 {
        font-size: 28px;
    }

    .nosotros h3 {
        font-size: 21px;
    }

    .nosotros p {
        font-size: 16px;
    }
}