/* ======================================================
   GENERAL
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ======================================================
   HEADER
====================================================== */

.header {
    height: 75px;
    background: white;

    display: flex;
    align-items: center;

    padding: 0 6%;

    gap: 30px;

    position: sticky;
    top: 0;
    z-index: 100;
    
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo img {
    width: 120px;
    height: 55px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 25px;
    margin-left: auto;
}

.nav a {
    font-size: 15px;
    font-weight: 600;
}

.nav a:hover {
    color: #e91e63;
}

.carrito-btn {
    border: none;
    background: #e91e63;
    color: white;

    width: 48px;
    height: 42px;

    border-radius: 10px;

    font-size: 20px;

    position: relative;
}

.carrito-btn span {
    position: absolute;

    top: -7px;
    right: -7px;

    width: 21px;
    height: 21px;

    background: #222;
    color: white;

    border-radius: 50%;

    font-size: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn {
    display: none;

    border: none;
    background: none;

    font-size: 25px;
}


/* ======================================================
   HERO
====================================================== */

.hero {
    min-height: 520px;

    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 70px 10%;

    overflow: hidden;
}

.hero-contenido {
    max-width: 600px;
}

.etiqueta {
    color: #e91e63;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;

    margin-bottom: 25px;
}

.hero h1 span {
    color: #e91e63;
}

.hero-contenido > p:not(.etiqueta) {
    font-size: 18px;
    color: #666;

    margin-bottom: 30px;

    max-width: 500px;
}

.boton {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: #e91e63;
    color: white;

    padding: 14px 24px;

    border-radius: 8px;

    font-weight: bold;
    font-size: 14px;

    transition: 0.2s;
}

.boton:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.boton-completo {
    width: 100%;
}


/* HERO DECORACIÓN */

.hero-decoracion {
    width: 420px;
    height: 420px;

    position: relative;
}

.circulo {
    position: absolute;

    border-radius: 50%;
}

.circulo-1 {
    width: 300px;
    height: 300px;

    background: #ffd6e5;

    top: 40px;
    left: 60px;
}

.circulo-2 {
    width: 180px;
    height: 180px;

    background: #ead9ff;

    bottom: 10px;
    right: 0;
}

.tarjeta-hero {
    position: absolute;

    top: 110px;
    left: 115px;

    width: 190px;
    height: 210px;

    background: white;

    border-radius: 20px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    transform: rotate(-5deg);
}

.tarjeta-hero small {
    color: #e91e63;
    letter-spacing: 3px;
}

.tarjeta-hero strong {
    font-size: 50px;
}

.tarjeta-hero span {
    letter-spacing: 5px;
}


/* ======================================================
   CATÁLOGO
====================================================== */

.catalogo {
    max-width: 1200px;

    margin: auto;

    padding: 70px 25px;
}

.titulo {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 30px;
}

.titulo h2 {
    font-size: 35px;
}

.titulo > p {
    color: #777;
}


/* BUSCADOR */

.busqueda {
    margin-bottom: 20px;
}

.busqueda input {
    width: 100%;

    padding: 16px 20px;

    border: 1px solid #ddd;

    border-radius: 10px;

    background: white;

    outline: none;

    font-size: 16px;
}

.busqueda input:focus {
    border-color: #e91e63;
}


/* CATEGORÍAS */

.categorias {
    display: flex;

    gap: 10px;

    margin-bottom: 30px;

    overflow-x: auto;
}

.categoria {
    border: 1px solid #ddd;

    background: white;

    padding: 10px 18px;

    border-radius: 20px;

    white-space: nowrap;
}

.categoria:hover,
.categoria.activa {
    background: #e91e63;
    color: white;

    border-color: #e91e63;
}


/* ======================================================
   PRODUCTOS
====================================================== */

.productos-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.producto-card {
    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    transition: 0.2s;

    position: relative;
}

.producto-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.producto-imagen {
    height: 280px;

    background: #f2f2f2;

    position: relative;

    overflow: hidden;
}

.producto-imagen img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.3s;
}

.producto-card:hover img {
    transform: scale(1.04);
}

.etiqueta-producto {
    position: absolute;

    top: 12px;
    left: 12px;

    background: #e91e63;
    color: white;

    padding: 6px 10px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: bold;
}

.producto-info {
    padding: 17px;
}

.producto-categoria {
    color: #888;

    font-size: 12px;

    margin-bottom: 7px;
}

.producto-info h3 {
    font-size: 17px;

    margin-bottom: 10px;
}

.precio {
    font-size: 23px;

    font-weight: bold;

    margin-bottom: 15px;
}

.ver-producto {
    width: 100%;

    border: 1px solid #e91e63;

    background: white;

    color: #e91e63;

    padding: 11px;

    border-radius: 7px;

    font-weight: bold;
}

.ver-producto:hover {
    background: #e91e63;
    color: white;
}


/* ======================================================
   BENEFICIOS
====================================================== */

.beneficios {
    background: white;

    max-width: 1200px;

    margin: 30px auto 70px;

    padding: 30px;

    border-radius: 15px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.beneficio {
    display: flex;
    gap: 15px;
    align-items: center;
}

.beneficio > span {
    font-size: 28px;
}

.beneficio strong {
    display: block;

    margin-bottom: 5px;
}

.beneficio p {
    color: #777;

    font-size: 14px;
}


/* ======================================================
   NOSOTROS
====================================================== */

.nosotros {
    background: #222;
    color: white;

    padding: 80px 10%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 50px;
}

.nosotros h2 {
    font-size: 50px;

    margin-bottom: 20px;
}

.nosotros > div:first-child > p:last-child {
    color: #bbb;

    max-width: 500px;

    line-height: 1.7;
}

.frase {
    font-size: 30px;

    max-width: 400px;

    color: #ffd6e5;
}


/* ======================================================
   FOOTER
====================================================== */

footer {
    background: #111;

    color: white;

    padding: 30px 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

footer strong {
    font-size: 20px;
}

footer strong span {
    color: #e91e63;
}

footer p {
    color: #999;
}


/* ======================================================
   OVERLAY
====================================================== */

.overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.5);

    z-index: 200;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;
}

.overlay.activo {
    opacity: 1;
    visibility: visible;
}


/* ======================================================
   CARRITO
====================================================== */

.carrito {
    position: fixed;

    top: 0;
    right: -430px;

    width: 420px;
    max-width: 95vw;

    height: 100vh;

    background: white;

    z-index: 300;

    transition: 0.3s;

    display: flex;
    flex-direction: column;
}

.carrito.activo {
    right: 0;
}

.carrito-header {
    padding: 25px;

    border-bottom: 1px solid #eee;

    display: flex;

    justify-content: space-between;
}

.carrito-header h2 {
    font-size: 28px;
}

.cerrar {
    border: none;

    background: none;

    font-size: 32px;

    height: 35px;
}

.items-carrito {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

.item-carrito {
    padding: 15px 0;

    border-bottom: 1px solid #eee;
}

.item-carrito h4 {
    margin-bottom: 5px;
}

.item-carrito .detalle-talle {
    color: #777;
    font-size: 13px;
    margin-bottom: 10px;
}

.item-precio {
    font-weight: bold;

    margin-top: 10px;
}

.controles {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 10px;
}

.controles button {
    width: 28px;
    height: 28px;

    border: 1px solid #ddd;

    background: white;

    border-radius: 5px;
}

.eliminar {
    border: none;

    background: none;

    color: #e91e63;

    margin-top: 10px;

    font-size: 12px;
}

.carrito-vacio {
    display: none;

    flex: 1;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 15px;

    color: #777;
}

.carrito-vacio span {
    font-size: 50px;
}

.carrito-vacio button {
    border: none;

    background: #e91e63;

    color: white;

    padding: 12px 20px;

    border-radius: 7px;

    font-weight: bold;
}

.carrito-footer {
    border-top: 1px solid #eee;

    padding: 20px;
}

.total {
    display: flex;

    justify-content: space-between;

    font-size: 20px;

    margin-bottom: 15px;
}


/* ======================================================
   MODALES
====================================================== */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    z-index: 500;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.activo {
    display: flex;
}

.producto-detalle,
.checkout {
    background: white;

    width: 700px;
    max-width: 100%;

    max-height: 90vh;

    overflow-y: auto;

    border-radius: 15px;

    padding: 30px;

    position: relative;
}

.cerrar-modal {
    position: absolute;

    top: 15px;
    right: 15px;

    border: none;

    background: #f1f1f1;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    font-size: 24px;
}


/* ======================================================
   DETALLE PRODUCTO
====================================================== */

.detalle-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;
}

.detalle-imagen {
    width: 100%;
    height: 400px;

    object-fit: cover;

    border-radius: 10px;

    background: #f3f3f3;
}

.detalle-info h2 {
    font-size: 30px;

    margin-bottom: 10px;
}

.detalle-precio {
    font-size: 30px;

    font-weight: bold;

    margin: 20px 0;
}

.selector-talles {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin: 10px 0 20px;
}

.talle {
    border: 1px solid #ccc;

    background: white;

    padding: 10px 16px;

    border-radius: 6px;
}

.talle.seleccionado {
    background: #e91e63;

    border-color: #e91e63;

    color: white;
}

.cantidad-selector {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.cantidad-selector button {
    width: 35px;
    height: 35px;

    border: 1px solid #ccc;

    background: white;

    border-radius: 6px;
}

.cantidad-selector span {
    font-weight: bold;
}


/* ======================================================
   CHECKOUT
====================================================== */

.checkout h2 {
    font-size: 30px;

    margin-bottom: 10px;
}

.texto-checkout {
    color: #777;

    margin-bottom: 25px;
}

.metodos-pago {
    display: grid;

    gap: 10px;

    margin-bottom: 20px;
}

.metodo {
    display: flex;

    align-items: center;

    gap: 12px;

    border: 1px solid #ddd;

    padding: 15px;

    border-radius: 8px;

    cursor: pointer;
}

.metodo:has(input:checked) {
    border-color: #e91e63;

    background: #fff4f8;
}

.metodo > span {
    font-size: 25px;
}

.metodo div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.metodo small {
    color: #777;
}

.datos {
    display: grid;

    gap: 12px;

    margin-bottom: 20px;
}

.datos input,
.datos textarea {
    width: 100%;

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 13px;

    outline: none;
}

.datos textarea {
    min-height: 90px;

    resize: vertical;
}

.datos input:focus,
.datos textarea:focus {
    border-color: #e91e63;
}


/* ======================================================
   TOAST
====================================================== */

.toast {
    position: fixed;

    bottom: 25px;
    left: 50%;

    transform: translate(-50%, 100px);

    background: #222;

    color: white;

    padding: 13px 20px;

    border-radius: 8px;

    z-index: 1000;

    opacity: 0;

    transition: 0.3s;
}

.toast.activo {
    opacity: 1;

    transform: translate(-50%, 0);
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {

    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-decoracion {
        width: 330px;
    }

}


@media (max-width: 700px) {

    .header {
        padding: 0 20px;
    }

    .nav {
        position: absolute;

        top: 75px;
        left: 0;
        right: 0;

        background: white;

        display: none;

        flex-direction: column;

        padding: 20px;

        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav.activo {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding: 50px 25px;

        text-align: center;
    }

    .hero-decoracion {
        display: none;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .titulo {
        display: block;
    }

    .titulo > p {
        margin-top: 10px;
    }

    .beneficios {
        margin: 20px;

        grid-template-columns: 1fr;
    }

    .nosotros {
        padding: 60px 25px;

        flex-direction: column;

        align-items: flex-start;
    }

    .nosotros h2 {
        font-size: 40px;
    }

    footer {
        flex-direction: column;

        gap: 15px;

        align-items: flex-start;
    }

    .detalle-grid {
        grid-template-columns: 1fr;
    }

    .detalle-imagen {
        height: 300px;
    }

}


@media (max-width: 450px) {

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .producto-imagen {
        height: 320px;
    }

    .carrito {
        width: 100%;
    }

}

@media (max-width: 768px) {

    .menu-btn {
    display: block;
    border: none;
    background: none;
    font-size: 25px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.carrito-btn {
    display: block;
    margin-left: auto;
    margin-right: 0.01px;
}

}