
/* ==========================================
   INDUMENTARIA SMP - REDISEÑO V1
   ========================================== */

:root {
    --fondo: #faf8f6;
    --blanco: #ffffff;
    --texto: #242424;
    --secundario: #777;
    --rosa: #f3d4d8;
    --rosa-oscuro: #b97f8a;
    --borde: #eae5e3;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--fondo);
    color: var(--texto);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

/* BARRA ANIMADA */

.alerta-envio {
    overflow: hidden;
    background: var(--rosa);
    color: #222;
    padding: 11px 0;
}

.anuncios-movimiento {
    display: flex;
    width: max-content;
    animation: mover-anuncios 25s linear infinite;
}

.anuncios-movimiento span {
    white-space: nowrap;
    padding: 0 45px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

@keyframes mover-anuncios {
    to {
        transform: translateX(-50%);
    }
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid var(--borde);
}

.header-contenedor {
    max-width: 1400px;
    min-height: 82px;
    margin: auto;
    padding: 12px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    text-align: center;
}

.logo h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 3px;
}

.logo strong {
    font-weight: 800;
}

.acciones-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.boton-icono {
    border: 0;
    background: transparent;
    font-size: 27px;
    color: #222;
    padding: 5px;
}

.icono-carrito {
    border: 0;
    background: transparent;
    font-size: 23px;
    color: #222;
}

#contador-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 5px;
    border-radius: 50%;
    background: #222;
    color: white;
    font-size: 12px;
}

/* BUSCADOR */

.buscador-header {
    padding: 15px 25px 22px;
    border-top: 1px solid var(--borde);
    text-align: center;
}

.buscador-header label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buscador-header input {
    width: min(100%, 600px);
    padding: 14px 17px;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline-color: var(--rosa-oscuro);
}

/* MENÚ LATERAL */

.fondo-menu {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, .45);
}

.menu-lateral {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(360px, 88vw);
    background: white;
    transform: translateX(-105%);
    transition: transform .3s ease;
    box-shadow: 5px 0 25px rgba(0,0,0,.08);
    padding: 28px;
}

.menu-lateral.abierto {
    transform: translateX(0);
}

.menu-lateral-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--borde);
    letter-spacing: 2px;
}

.menu-lateral-cabecera button {
    border: 0;
    background: none;
    font-size: 32px;
}

.menu-lateral nav {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.menu-lateral nav a {
    padding: 17px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .7px;
}

.menu-lateral nav a:hover {
    color: var(--rosa-oscuro);
}

/* CARRUSEL PROMOCIONAL */

.hero {
    height: 510px;
    position: relative;
    overflow: hidden;
    background: #ddd;
}

.hero-diapositiva {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
    display: flex;
    align-items: center;
}

.hero-diapositiva.activa {
    opacity: 1;
    visibility: visible;
}

.hero-diapositiva:nth-child(1) {
    background: linear-gradient(115deg, #e7c6c7, #f4e8e1 70%);
}

.hero-diapositiva:nth-child(2) {
    background: linear-gradient(115deg, #d7c1c4, #f4e1e6 75%);
}

.hero-diapositiva:nth-child(3) {
    background: linear-gradient(115deg, #d9d0ca, #f5e8e2 75%);
}

.hero-contenido {
    width: min(1200px, 100%);
    margin: auto;
    padding: 45px 55px;
}

.hero-contenido > span {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero-contenido h2 {
    font-size: clamp(45px, 6vw, 82px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -2px;
    margin: 20px 0;
}

.hero-contenido p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 440px;
}

.hero-contenido a {
    display: inline-block;
    background: #222;
    color: white;
    padding: 16px 28px;
    margin-top: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-contenido a:hover {
    background: #555;
}

.hero-indicadores {
    position: absolute;
    bottom: 23px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.hero-indicadores button {
    border: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0,0,0,.25);
    padding: 0;
}

.hero-indicadores button.activo {
    background: #222;
    width: 24px;
    border-radius: 10px;
}

/* CATÁLOGO */

.catalogo {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
    min-height: 350px;
}

.intro-catalogo {
    text-align: center;
    margin-bottom: 55px;
}

.intro-catalogo > span,
.sobre-nosotros > span {
    color: var(--rosa-oscuro);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
}

.intro-catalogo h2 {
    font-size: clamp(29px, 4vw, 46px);
    font-weight: 500;
    margin: 14px 0;
}

.intro-catalogo p {
    color: var(--secundario);
}

.contenedor-productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* CATEGORÍAS HORIZONTALES */

.seccion-categoria {
    width: 100%;
    margin-bottom: 65px;
}

.categoria-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.categoria-cabecera h2 {
    font-size: 25px;
    margin: 0;
    font-weight: 600;
}

.categoria-flechas {
    display: flex;
    gap: 9px;
}

.categoria-flechas button {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 23px;
}

.categoria-flechas button:hover {
    background: #222;
    color: white;
}

.fila-productos {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 5px 0 18px;
    scrollbar-width: thin;
}

.fila-productos .tarjeta-producto {
    flex: 0 0 255px;
    scroll-snap-align: start;
}

/* TARJETAS */

.tarjeta-producto {
    position: relative;
    width: 255px;
    background: white;
    border: 1px solid #f0ecea;
    padding: 10px;
    text-align: left;
    border-radius: 4px;
    overflow: hidden;
}

.tarjeta-producto img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #f1efee;
}

.tarjeta-producto h3 {
    font-size: 14px;
    margin: 15px 4px 8px;
    font-weight: 600;
}

.tarjeta-producto .precio {
    font-size: 17px;
    font-weight: bold;
    margin: 0 4px 10px;
}

.beneficios {
    font-size: 11px;
    color: #777;
    margin: 0 4px 10px;
}

.btn-comprar,
.btn-agregar-carrito {
    width: 100%;
    border: 0;
    background: #222;
    color: white;
    padding: 14px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.btn-comprar:hover,
.btn-agregar-carrito:hover {
    background: #444;
}

.producto-sin-stock img {
    opacity: .45;
}

.badge-agotado {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    background: #555;
    color: white;
    padding: 7px 12px;
    font-size: 10px;
    font-weight: bold;
}

.btn-comprar:disabled,
.btn-agregar-carrito:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
}

/* DETALLE DE PRODUCTO */

.pagina-articulo {
    max-width: 1150px;
    margin: 0 auto;
    padding: 10px 0 50px;
}

.btn-volver {
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: bold;
    padding: 15px 0;
    margin-bottom: 15px;
}

.detalle-contenedor {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    background: white;
    padding: 28px;
    border-radius: 6px;
}

.detalle-imagen img {
    width: 100%;
    max-width: 450px;
    object-fit: contain;
}

.detalle-info {
    flex: 1;
}

.detalle-info h1 {
    font-size: 29px;
    margin-top: 5px;
}

.detalle-precio {
    font-size: 27px;
    font-weight: bold;
}

.detalle-promo {
    font-size: 13px;
    line-height: 1.8;
    color: #777;
}

.selector-variante {
    margin: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-variante label {
    font-size: 12px;
    font-weight: bold;
}

.selector-variante select {
    width: 100%;
    max-width: 350px;
    padding: 13px;
    background: white;
    border: 1px solid #ddd;
}

.descripcion-caja {
    margin-top: 35px;
    border-top: 1px solid #eee;
    padding-top: 18px;
    line-height: 1.7;
}

/* CARRITO LATERAL */

#carrito-lateral {
    position: fixed;
    top: 0;
    right: -420px;
    width: min(390px, 100vw);
    height: 100dvh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,.12);
    z-index: 250;
    display: flex;
    flex-direction: column;
    padding: 22px;
    transition: right .3s ease;
}

#carrito-lateral.carrito-activo {
    right: 0;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.carrito-header h3 {
    margin: 0;
}

.btn-cerrar {
    background: none;
    border: 0;
    font-size: 25px;
}

#items-carrito {
    flex: 1;
    overflow-y: auto;
    padding-top: 20px;
}

.item-en-carrito {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.item-en-carrito img {
    width: 60px;
    height: 75px;
    object-fit: cover;
}

.item-en-carrito h4 {
    font-size: 13px;
    margin: 0 0 7px;
}

.item-en-carrito p {
    font-size: 12px;
    margin: 4px 0;
}

.btn-eliminar {
    margin-left: auto;
    background: none;
    border: 0;
}

.carrito-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#aviso-envio-gratis {
    font-size: 12px;
    color: var(--rosa-oscuro);
}

.btn-finalizar {
    width: 100%;
    background: #222;
    color: white;
    border: 0;
    padding: 16px;
    font-weight: bold;
    margin-top: 12px;
}

/* SOBRE NOSOTROS */

.sobre-nosotros {
    padding: 75px 25px;
    background: #f0e5e3;
    text-align: center;
}

.sobre-nosotros h2 {
    font-size: 34px;
    font-weight: 500;
    margin: 15px 0;
}

.sobre-nosotros p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

.sobre-nosotros a {
    display: inline-block;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid #222;
    font-size: 13px;
    font-weight: bold;
}

/* CENTRO DE AYUDA */

.seccion-ayuda {
    max-width: 1000px;
    margin: 45px auto;
    padding: 0 20px;
}

.titulo-ayuda {
    text-align: center;
    margin: 40px 0;
}

.contenedor-ayuda {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.pregunta-tarjeta {
    background: white;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.pregunta-tarjeta p {
    color: #666;
    line-height: 1.7;
}

/* FOOTER */

footer {
    padding: 45px 20px;
    text-align: center;
    background: white;
    color: #777;
    font-size: 12px;
}

footer strong {
    color: #222;
    letter-spacing: 2px;
}

footer a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: underline;
}

/* CELULARES */

@media (max-width: 768px) {

    .header-contenedor {
        min-height: 65px;
        padding: 10px 15px;
        gap: 8px;
    }

    .logo h1 {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .acciones-header {
        gap: 6px;
    }

    .boton-icono {
        font-size: 23px;
    }

    .hero {
        height: 480px;
    }

    .hero-contenido {
        padding: 30px;
    }

    .hero-contenido h2 {
        font-size: 49px;
    }

    .hero-contenido p {
        font-size: 14px;
    }

    .catalogo {
        padding: 45px 15px;
    }

    .intro-catalogo {
        margin-bottom: 35px;
    }

    .categoria-cabecera h2 {
        font-size: 21px;
    }

    .fila-productos {
        gap: 12px;
    }

    .fila-productos .tarjeta-producto {
        flex-basis: 195px;
    }

    .tarjeta-producto img {
        height: 245px;
    }

    .tarjeta-producto h3 {
        font-size: 13px;
    }

    .detalle-contenedor {
        padding: 14px;
        flex-direction: column;
    }

    .detalle-info h1 {
        font-size: 23px;
    }

    .sobre-nosotros {
        padding: 60px 20px;
    }

    .sobre-nosotros h2 {
        font-size: 27px;
    }
}

@media (max-width: 380px) {
    .logo h1 {
        font-size: 13px;
    }

    .fila-productos .tarjeta-producto {
        flex-basis: 175px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anuncios-movimiento {
        animation: none;
    }

    .menu-lateral,
    .hero-diapositiva,
    #carrito-lateral {
        transition: none;
    }

    .fila-productos {
        scroll-behavior: auto;
    }
}

/* BOTÓN FLOTANTE DE WHATSAPP */

.whatsapp-flotante {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(0,0,0,0.22);
    transition: transform 0.2s ease;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
}

.whatsapp-flotante svg {
    width: 34px;
    height: 34px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-flotante {
        width: 54px;
        height: 54px;
        bottom: 18px;
        left: 18px;
    }
}

/* TÍTULOS DE LAS CATEGORÍAS */

.categoria-cabecera h2 {
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .categoria-cabecera h2 {
        font-size: 25px;
    }
}

/* ============================================
   CARRITO MODERNO SMP
============================================ */

#carrito-lateral {
    background: #ffffff;
    color: #29242d;
    box-shadow: -12px 0 45px rgba(0, 0, 0, 0.12);
}

#carrito-lateral h2,
#carrito-lateral h3 {
    color: #29242d;
    letter-spacing: -0.5px;
}

#items-carrito {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.smp-carrito-producto {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0ebf0;
}

.smp-carrito-imagen {
    width: 90px;
    height: 115px;
    object-fit: cover;
    border-radius: 12px;
    background: #f5f3f5;
    flex-shrink: 0;
}

.smp-carrito-informacion {
    flex: 1;
    min-width: 0;
}

.smp-carrito-informacion h4 {
    font-size: 14px;
    font-weight: 750;
    margin: 0 0 7px;
    line-height: 1.5;
}

.smp-carrito-variante {
    font-size: 12px;
    color: #918691;
    margin: 0 0 9px;
}

.smp-carrito-precio {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 13px;
}

.smp-carrito-controles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.smp-carrito-cantidad {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e7dfe7;
    border-radius: 9px;
    overflow: hidden;
    height: 36px;
}

.smp-carrito-cantidad button {
    width: 35px;
    height: 36px;
    padding: 0;
    border: none;
    background: white;
    color: #29242d;
    font-size: 18px;
    cursor: pointer;
}

.smp-carrito-cantidad button:hover {
    background: #f9edf1;
}

.smp-carrito-cantidad span {
    min-width: 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.smp-carrito-eliminar {
    border: none;
    background: transparent;
    color: #a77487;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
}

.smp-carrito-eliminar:hover {
    text-decoration: underline;
}

.smp-carrito-vacio {
    padding: 55px 15px;
    text-align: center;
}

.smp-carrito-vacio-icono {
    font-size: 48px;
    color: #c999aa;
    margin-bottom: 15px;
}

.smp-carrito-vacio h3 {
    font-size: 20px;
    margin: 0 0 9px;
}

.smp-carrito-vacio p {
    color: #918691;
    font-size: 13px;
    line-height: 1.7;
}

.smp-carrito-aviso {
    margin-top: 16px;
    font-size: 12px;
    color: #8c6476;
    font-weight: 700;
}

.smp-progreso-envio {
    width: 100%;
    height: 7px;
    background: #eee7ed;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0 20px;
}

.smp-progreso-relleno {
    width: 0;
    height: 100%;
    background: #b97991;
    border-radius: 20px;
    transition: width 0.3s ease;
}

#carrito-lateral .btn-finalizar,
#carrito-lateral .btn-comprar {
    background: #29242d;
    color: white;
    border-radius: 11px;
    font-weight: 750;
    transition: 0.2s;
}

#carrito-lateral .btn-finalizar:hover,
#carrito-lateral .btn-comprar:hover {
    background: #514051;
}

@media (max-width: 480px) {
    .smp-carrito-producto {
        gap: 11px;
    }

    .smp-carrito-imagen {
        width: 75px;
        height: 100px;
    }

    .smp-carrito-informacion h4 {
        font-size: 13px;
    }
}
