* {
    box-sizing: border-box;
}
body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
}
header{
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav a{
    text-decoration: none;
    margin-left: 20px;
    color: #333;
}
main{
    max-width: 1200px;
    margin: auto;
    padding: 30px;

}
section{
    margin-bottom: 60px;
}
#inicio{
    text-align: center;
    padding: 80px 20px;
}
#lista-productos{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px, 1fr));
    gap: 20px;
}
.producto {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.precio {
    font-size: 22px;
    font-weight: bold;
}
button{
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;

}
footer{
    text-align: center;
    padding: 20px;
    background-color: white;
}

.herramientas {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.herramientas input,
.herramientas select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.herramientas input {
    flex: 1;
    min-width: 250px;
}

.producto {
    position: relative;
}

.producto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.producto h3 {
    margin-bottom: 8px;
}

.categoria {
    color: #666;
}

.stock {
    font-weight: bold;
}

.disponible {
    color: green;
}

.agotado {
    color: red;
}

.oferta {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: red;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
}

.boton-whatsapp {
    display: block;
    margin-top: 15px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    background-color: #25d366;
    color: white;
    font-weight: bold;
}

.boton-whatsapp:hover {
    opacity: 0.9;
}


.header-principal {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 6%;

    background: white;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.07);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;

    color: #222;

    font-size: 20px;
    font-weight: bold;
}

.menu-principal {
    display: flex;
    gap: 25px;
}

.menu-principal a {
    color: #333;

    text-decoration: none;

    font-weight: 500;
}


.hero {
    min-height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    text-align: center;

    background:
        linear-gradient(135deg,
            #fff4dc,
            #ffe6f2);
}

.hero-contenido {
    max-width: 700px;
}

.hero-etiqueta {
    font-weight: bold;

    margin-bottom: 15px;
}

.hero h1 {
    margin: 0;

    font-size: clamp(40px,
            7vw,
            70px);

    line-height: 1.05;
}

.hero-texto {
    max-width: 550px;

    margin:
        25px auto;

    font-size: 19px;

    line-height: 1.6;

    color: #555;
}

.boton-principal {
    display: inline-block;

    padding:
        14px 25px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: bold;

    background: #222;

    color: white;
}


#productos {
    max-width: 1200px;

    margin: auto;

    padding:
        70px 25px;
}

.encabezado-seccion {
    text-align: center;

    margin-bottom: 35px;
}

.encabezado-seccion h2 {
    margin-top: 8px;

    font-size: 34px;
}

.subtitulo {
    margin: 0;

    font-weight: bold;

    color: #666;
}

.herramientas {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 12px;

    margin-bottom: 35px;
}

.herramientas input,
.herramientas select {
    min-height: 48px;

    padding:
        0 15px;

    border:
        1px solid #ddd;

    border-radius: 10px;

    background: white;

    font-size: 16px;
}


#lista-productos {
    display: grid;

    grid-template-columns:
        repeat(auto-fill,
            minmax(230px, 1fr));

    gap: 25px;
}

.producto {
    position: relative;

    overflow: hidden;

    background: white;

    border-radius: 15px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.08);

    padding: 15px;

    transition:
        transform 0.2s ease;
}

.producto:hover {
    transform:
        translateY(-5px);
}

.producto img {
    width: 100%;

    height: 230px;

    object-fit: cover;

    border-radius: 12px;
}

.producto h3 {
    margin-bottom: 8px;

    font-size: 20px;
}

.precio {
    font-size: 23px;

    font-weight: bold;
}




@media (max-width: 700px) {

    .header-principal {
        padding:
            14px 18px;
    }

    .logo span {
        font-size: 16px;
    }

    .menu-principal {
        display: none;
    }

    .hero {
        min-height: 420px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-texto {
        font-size: 17px;
    }

    #productos {
        padding:
            50px 16px;
    }

    .herramientas {
        grid-template-columns:
            1fr;
    }

    #lista-productos {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));

        gap: 12px;
    }

    .producto {
        padding: 10px;
    }

    .producto img {
        height: 170px;
    }

    .producto h3 {
        font-size: 16px;
    }

    .precio {
        font-size: 19px;
    }

    .boton-whatsapp {
        font-size: 14px;
        padding: 10px;
    }

        .modal-contenido {
            grid-template-columns: 1fr;
    
            padding: 18px;
    
            gap: 15px;
        }
    
    
        .modal-imagen img {
            height: 300px;
        }
    
    
        .modal-informacion h2 {
            font-size: 25px;
        }
    
    
        .modal-precio-oferta,
        .modal-precio {
            font-size: 25px;
        }

                .contacto-grid {
                    grid-template-columns:
                        1fr;
                }

}


.filtros-rapidos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filtro-rapido {
    padding: 10px 18px;

    border: 1px solid #ddd;

    border-radius: 20px;

    background: white;

    cursor: pointer;

    font-weight: bold;
}

.filtro-rapido:hover {
    background: #f1f1f1;
}

.filtro-rapido.activo {
    background: #222;
    color: white;
}


.modal-producto {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.65);
}


.modal-producto.oculto {
    display: none;
}


.modal-contenido {
    position: relative;

    width: 100%;
    max-width: 850px;

    max-height: 90vh;

    overflow-y: auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    background: white;

    border-radius: 18px;

    padding: 25px;

    gap: 30px;
}


.cerrar-modal {
    position: absolute;

    top: 12px;
    right: 15px;

    z-index: 5;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border-radius: 50%;

    background: white;

    font-size: 30px;

    line-height: 1;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15);
}


.modal-imagen img {
    width: 100%;

    height: 420px;

    object-fit: cover;

    border-radius: 14px;
}


.modal-informacion {
    display: flex;

    flex-direction: column;

    justify-content: center;
}


.modal-informacion h2 {
    margin:
        5px 0 15px;

    font-size: 32px;
}


.modal-categoria {
    color: #777;

    font-weight: bold;
}


.modal-descripcion {
    line-height: 1.6;

    color: #555;
}


.modal-precio-normal {
    margin-bottom: 3px;

    color: #777;
}


.modal-precio-oferta,
.modal-precio {
    margin: 5px 0;

    font-size: 30px;

    font-weight: bold;
}


.producto {
    cursor: pointer;
}


.contacto {
    max-width: 1200px;

    margin: auto;

    padding:
        70px 25px;
}


.contacto-grid {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 20px;
}


.contacto-card {
    padding: 30px;

    background: white;

    border-radius: 16px;

    text-align: center;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.07);
}


.contacto-icono {
    display: block;

    font-size: 38px;

    margin-bottom: 15px;
}


.contacto-card h3 {
    margin:
        0 0 15px;
}


.contacto-card p {
    color: #555;

    line-height: 1.6;
}


.enlace-contacto {
    display: inline-block;

    margin-top: 10px;

    font-weight: bold;

    color: #222;
}


.redes {
    margin-top: 45px;

    text-align: center;
}


.redes-enlaces {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;
}


.redes-enlaces a {
    padding:
        10px 18px;

    border-radius: 20px;

    background: white;

    text-decoration: none;

    color: #222;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Fredoka', Arial, sans-serif;
    background:
        linear-gradient(180deg,
            #fff9fb 0%,
            #fefaf2 40%,
            #f7fbff 100%);
    color: #444;
}


/* =========================
   BARRA SUPERIOR
========================= */
.franja-superior {
    text-align: center;
    padding: 10px 15px;
    background: #ffb6d9;
    color: white;
    font-weight: 600;
    font-size: 15px;
}


/* =========================
   HEADER
========================= */
.header-principal {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 6%;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: #ff5ca8;

    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: #ff5ca8;
}

.menu-principal {
    display: flex;
    gap: 22px;
}

.menu-principal a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: 0.2s ease;
}

.menu-principal a:hover {
    color: #ff5ca8;
}


/* =========================
   HERO
========================= */
.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;

    background:
        radial-gradient(circle at top left, #ffe0f0 0%, transparent 25%),
        radial-gradient(circle at top right, #fff0b8 0%, transparent 25%),
        radial-gradient(circle at bottom left, #dff7ff 0%, transparent 25%),
        linear-gradient(135deg, #fff7fb, #fffdf2);
}

.hero-contenido {
    max-width: 780px;
}

.hero-etiqueta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    color: #ff5ca8;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    color: #444;
}

.hero h1 span {
    color: #ff6aac;
}

.hero-texto {
    max-width: 580px;
    margin: 22px auto 30px;
    font-size: 20px;
    line-height: 1.7;
    color: #666;
}

.hero-botones {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.boton-principal,
.boton-secundario {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.boton-principal {
    background: linear-gradient(135deg, #ff6aac, #ff8b5e);
    color: white;
    box-shadow:
        0 8px 18px rgba(255, 106, 172, 0.28);
}

.boton-secundario {
    background: white;
    color: #666;
    border: 2px solid #ffe1ee;
}

.boton-principal:hover,
.boton-secundario:hover {
    transform: translateY(-2px);
}


/* =========================
   CONTENIDO PRINCIPAL
========================= */
main {
    width: 100%;
}


/* =========================
   SECCIONES
========================= */
#productos,
.contacto {
    max-width: 1200px;
    margin: auto;
    padding: 70px 20px;
}

.encabezado-seccion {
    text-align: center;
    margin-bottom: 30px;
}

.subtitulo {
    margin: 0;
    color: #ff7db8;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.encabezado-seccion h2 {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 36px;
    color: #444;
}


/* =========================
   HERRAMIENTAS
========================= */
.herramientas {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
}

.herramientas input,
.herramientas select {
    min-height: 50px;
    padding: 0 15px;
    border: 2px solid #ffe8f2;
    border-radius: 16px;
    background: white;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.herramientas input:focus,
.herramientas select:focus {
    border-color: #ff8fc3;
}


/* =========================
   FILTROS RÁPIDOS
========================= */
.filtros-rapidos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filtro-rapido {
    padding: 10px 16px;
    border: 2px solid #ffe3ee;
    border-radius: 999px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    color: #666;
    transition: 0.2s ease;
}

.filtro-rapido:hover {
    transform: translateY(-2px);
}

.filtro-rapido.activo {
    background: linear-gradient(135deg, #ff6aac, #ffb45c);
    color: white;
    border-color: transparent;
}


/* =========================
   TARJETAS DE PRODUCTO
========================= */
#lista-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

.producto {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 24px;
    padding: 14px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
    cursor: pointer;
    border: 2px solid #fff1f7;
}

.producto:hover {
    transform: translateY(-6px);
}

.producto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
}

.producto h3 {
    margin: 14px 0 8px;
    font-size: 20px;
    color: #444;
}

.categoria {
    margin: 0 0 10px;
    color: #888;
    font-size: 15px;
}

.producto p {
    margin: 6px 0;
}

.precio {
    font-size: 24px;
    font-weight: 700;
    color: #ff5ca8;
}

.stock {
    font-weight: 600;
}

.disponible {
    color: #24a148;
}

.agotado {
    color: #d93025;
}

.oferta {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff5ca8, #ff8d5e);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow:
        0 6px 14px rgba(255, 92, 168, 0.25);
}

.boton-whatsapp {
    display: block;
    margin-top: 14px;
    text-align: center;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #1db954);
    color: white;
    font-weight: 600;
    transition: 0.2s ease;
}

.boton-whatsapp:hover {
    transform: translateY(-2px);
}


/* =========================
   MODAL
========================= */
.modal-producto {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.modal-producto.oculto {
    display: none;
}

.modal-contenido {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: white;
    padding: 24px;
    border-radius: 26px;
}

.cerrar-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff1f7;
    color: #ff5ca8;
    font-size: 28px;
    cursor: pointer;
}

.modal-imagen img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

.modal-categoria {
    color: #ff7db8;
    font-weight: 600;
}

.modal-informacion h2 {
    margin: 6px 0 12px;
    font-size: 32px;
    color: #444;
}

.modal-descripcion {
    line-height: 1.7;
    color: #666;
}

.modal-precio,
.modal-precio-oferta {
    font-size: 30px;
    font-weight: 700;
    color: #ff5ca8;
}

.modal-precio-normal {
    color: #999;
}


/* =========================
   CONTACTO
========================= */
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contacto-card {
    background: white;
    border-radius: 24px;
    padding: 28px 22px;
    text-align: center;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #fff1f7;
}

.contacto-icono {
    display: block;
    font-size: 38px;
    margin-bottom: 14px;
}

.contacto-card h3 {
    margin-top: 0;
    color: #444;
}

.contacto-card p {
    color: #666;
    line-height: 1.6;
}

.enlace-contacto {
    display: inline-block;
    margin-top: 8px;
    color: #ff5ca8;
    font-weight: 600;
    text-decoration: none;
}

.redes {
    margin-top: 42px;
    text-align: center;
}

.redes h3 {
    color: #444;
}

.redes-enlaces {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.redes-enlaces a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    background: white;
    color: #666;
    font-weight: 600;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06);
}


/* =========================
   FOOTER
========================= */
footer {
    margin-top: 20px;
    text-align: center;
    padding: 24px 15px;
    background: #fff;
    color: #888;
    font-size: 15px;
}


/* =========================
   OCULTO
========================= */
.oculto {
    display: none !important;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .modal-contenido {
        grid-template-columns: 1fr;
    }

    .modal-imagen img {
        height: 300px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .header-principal {
        padding: 14px 18px;
    }

    .logo span {
        font-size: 17px;
    }

 .boton-menu {
     display: block;
 }


 .menu-principal {
     position: absolute;

     top: 100%;

     left: 16px;
     right: 16px;

     display: none;

     flex-direction: column;

     gap: 5px;

     padding: 14px;

     background: white;

     border-radius: 18px;

     box-shadow:
         0 10px 30px rgba(0, 0, 0, 0.12);
 }


 .menu-principal.abierto {
     display: flex;
 }


 .menu-principal a {
     padding: 13px 15px;

     border-radius: 12px;
 }


 .menu-principal a:hover {
     background: #fff1f7;
 }

    .hero {
        min-height: 450px;
        padding: 55px 18px;
    }

    .hero-texto {
        font-size: 17px;
    }

    #productos,
    .contacto {
        padding: 55px 16px;
    }

    .herramientas {
        grid-template-columns: 1fr;
    }

    #lista-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .producto {
        border-radius: 18px;
        padding: 10px;
    }

    .producto img {
        height: 160px;
        border-radius: 14px;
    }

    .producto h3 {
        font-size: 16px;
    }

    .precio {
        font-size: 19px;
    }

    .boton-whatsapp {
        font-size: 14px;
        padding: 10px;
    }

    .modal-informacion h2 {
        font-size: 25px;
    }

    .modal-precio,
    .modal-precio-oferta {
        font-size: 24px;
    }
}

.categorias-visuales {
    max-width: 1200px;
    margin: auto;
    padding: 65px 20px 20px;
}

.categorias-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.categoria-card {
    border: none;
    border-radius: 24px;

    min-height: 150px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    cursor: pointer;

    font-family: inherit;

    background: white;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.categoria-card:nth-child(1) {
    background: #e8f7ff;
}

.categoria-card:nth-child(2) {
    background: #ffe9f3;
}

.categoria-card:nth-child(3) {
    background: #fff3d9;
}

.categoria-card:nth-child(4) {
    background: #eafbe8;
}

.categoria-card span {
    font-size: 48px;
}

.categoria-card strong {
    font-size: 18px;
    color: #555;
}

.categoria-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.10);
}

@media (max-width: 700px) {

    .categorias-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .categoria-card {
        min-height: 125px;
    }

    .categoria-card span {
        font-size: 40px;
    }


}


.boton-menu {
    display: none;

    border: none;

    background: #fff1f7;

    color: #ff5ca8;

    width: 44px;
    height: 44px;

    border-radius: 14px;

    font-size: 24px;

    cursor: pointer;

    margin: 0;
    padding: 0;
}


/* =========================
   MENÚ MÓVIL - CORRECCIÓN
========================= */

.boton-menu {
    display: none;
}

@media (max-width: 700px) {

    .header-principal {
        position: sticky;
        top: 0;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 14px 18px;
    }

    .logo {
        flex: 1;
    }

    .boton-menu {
        display: flex !important;

        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        width: 44px;
        height: 44px;

        margin: 0;

        border: none;
        border-radius: 14px;

        background: #fff1f7;
        color: #ff5ca8;

        font-size: 24px;

        cursor: pointer;
    }

    .menu-principal {
        position: absolute;

        top: calc(100% + 8px);
        left: 16px;
        right: 16px;

        display: none;

        flex-direction: column;

        padding: 12px;

        background: white;

        border-radius: 18px;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .menu-principal.abierto {
        display: flex !important;
    }

    .menu-principal a {
        padding: 14px;

        text-decoration: none;

        border-radius: 12px;
    }
}