/* --- ESTILOS GENERALES Y CORRECCIONES --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffe4e8; 
    background-image: radial-gradient(#ffb6c1 2px, transparent 2px); 
    background-size: 40px 40px; 
    text-align: center;
    color: #5d4a4e; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER Y LOGO --- */
header {
    padding: 30px 0 0 0;
    margin-bottom: 30px;
    position: relative;
}

.logo-header {
    max-width: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: -50px auto -35px auto; 
    animation: flotarLogo 4s ease-in-out infinite;
    filter: drop-shadow(0px 6px 10px rgba(0,0,0,0.15));
}

@keyframes flotarLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

header p {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* --- MARQUEE (CINTA DESLIZANTE) --- */
.marquee-contenedor {
    background-color: #ffb6c1;
    padding: 22px 0;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    justify-content: flex-start;
    border-top: 3px solid #ff9fb2;
    border-bottom: 3px solid #ff9fb2;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.4);
    width: 100%;
}

.marquee-texto {
    display: flex;
    gap: 40px;
    font-weight: bold;
    font-size: 1.5em;
    color: #5d4a4e;
    animation: movimientoCinta 25s linear infinite;
    padding-right: 40px;
    letter-spacing: 1px;
}

@keyframes movimientoCinta {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- BUSCADOR Y FILTROS --- */
.contenedor-buscador {
    max-width: 500px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

#buscador {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1.05em;
    color: #5d4a4e;
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#buscador:focus {
    border-color: #ffb6c1;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
}

.filtros {
    margin-bottom: 40px;
}

.filtros button {
    background-color: #ffffff;
    border: 2px solid #ffb6c1;
    color: #ffb6c1;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.2);
}

.filtros button.activo {
    background-color: #ffb6c1;
    color: white;
    transform: translateY(-2px);
}

/* --- CATÁLOGO --- */
.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.producto {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box;
}

.contenedor-imagen {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.producto img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.btn-agregar {
    display: inline-block;
    background-color: #ffb6c1;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    width: 80%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.etiqueta {
    position: absolute;
    top: 10px;
    left: -10px;
    background-color: #ff9fb2;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
    transform: rotate(-5deg);
}

/* --- FASE 4: ESTILOS DE "NUESTRO PROCESO" --- */
.seccion-proceso {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    margin: 40px 0;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.titulo-proceso {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #5d4a4e;
}

.pasos-contenedor {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.paso {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.paso:hover {
    transform: translateY(-10px);
}

.paso-icono {
    font-size: 3em;
    margin-bottom: 15px;
    background: white;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(255, 182, 193, 0.3);
}

.paso h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #d15c74;
}

.paso p {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.8;
}

/* --- FOOTER --- */
footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    padding: 40px 20px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -4px 15px rgba(255, 182, 193, 0.15);
}

.enlaces-footer {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.enlaces-footer a {
    color: #ff8fa3;
    text-decoration: none;
    font-weight: bold;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* --- CARRITO PREMIUM --- */
.btn-flotante-carrito {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #d15c74;
    color: white;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(209, 92, 116, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffb6c1;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 0.5em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

.carrito-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: 400px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
}

.carrito-sidebar.abierto {
    right: 0;
}

.carrito-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrito-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carrito-item-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.2);
}

.carrito-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.carrito-footer {
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 182, 193, 0.5);
}

.btn-whatsapp-carrito {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    box-sizing: border-box;
}

.carrito-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(93, 74, 78, 0.4);
    z-index: 1001;
    display: none;
    backdrop-filter: blur(3px);
}

.carrito-overlay.abierto {
    display: block;
}

/* --- SELECTORES Y NOTAS --- */
.selector-talla, .selector-personalizacion {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 15px;
    border: 2px solid #ffe4e8;
    background: #fffafb;
    color: #5d4a4e;
    font-weight: bold;
    outline: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23d15c74" viewBox="0 0 16 16"><path d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
}

.selector-talla {
    width: 80%;
    margin-bottom: 15px;
}

.notas-pedido {
    width: 100%;
    padding: 12px;
    border-radius: 15px;
    border: 2px solid #ffe4e8;
    background: #fffafb;
    color: #5d4a4e;
    resize: none;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #fffafb;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s, visibility 0.8s;
}

#preloader.oculto {
    opacity: 0;
    visibility: hidden;
}

.logo-preloader {
    width: 300px;
    max-width: 80%;
    animation: latido 1.5s infinite;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .logo-header { margin: -20px auto -15px auto; }
    .catalogo { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
    .carrito-sidebar { width: 100%; }
    .seccion-proceso { border-radius: 0; margin: 20px 0; }
    .pasos-contenedor { flex-direction: column; align-items: center; }
}
/* --- ESTILOS DE LOS BOTONES DEL CARRITO (CORRECCIÓN) --- */

.btn-cerrar-carrito {
    background: #fff5f7;
    border: none;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #d15c74;
    transition: all 0.3s ease;
}

.btn-cerrar-carrito:hover {
    background: #ffb6c1;
    color: white;
    transform: rotate(90deg);
}

.carrito-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carrito-item-nombre {
    font-weight: bold;
    color: #5d4a4e;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.carrito-item-talla {
    font-size: 0.8em;
    color: #d15c74;
    background-color: #fff0f2;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 8px;
    font-weight: bold;
}

.carrito-item-controles {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cant {
    background: #fff5f7;
    border: 1px solid #ffb6c1;
    color: #d15c74;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.btn-cant:hover {
    background: #ffb6c1;
    color: white;
}

.carrito-item-cant {
    font-size: 1em;
    font-weight: bold;
    color: #5d4a4e;
    min-width: 20px;
    text-align: center;
}

.btn-eliminar-item {
    background: transparent;
    color: #bfa5a8;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.btn-eliminar-item:hover {
    color: #d15c74;
    transform: scale(1.1);
}
/* =======================================================================
   FASE 4: MICRO-ANIMACIONES PARA LAS ETIQUETAS (NUEVO, POPULAR Y OFERTA)
   ======================================================================= */

/* 1. Aplicamos la animación flotante a todas las etiquetas base (Nuevo y Popular) */
.etiqueta {
    animation: flotarEtiqueta 3.5s ease-in-out infinite;
}

/* 2. Modificamos la etiqueta de Oferta para que tenga su propia animación de pulso */
.etiqueta-oferta {
    /* El !important asegura que esta animación gane sobre la flotante base */
    animation: pulsoOferta 2.2s ease-in-out infinite !important; 
}

/* --- ANIMACIÓN 1: FLOTADO SUAVE (Para etiquetas Nuevo y Popular) --- */
@keyframes flotarEtiqueta {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(-5deg) translateY(-6px); /* Sube sutilmente unos píxeles */
    }
}

/* --- ANIMACIÓN 2: LATIDO PREMIUM (Exclusivo para la etiqueta de Oferta) --- */
@keyframes pulsoOferta {
    0%, 100% {
        transform: rotate(-5deg) scale(1.05);
        background-color: #f27c8d; /* Su color coral original */
        box-shadow: 2px 5px 12px rgba(242, 124, 141, 0.4);
    }
    50% {
        transform: rotate(-3deg) scale(1.12); /* Se endereza un poquito y crece */
        background-color: #e8687a; /* Se intensifica ligeramente el tono en el pico del latido */
        box-shadow: 4px 8px 20px rgba(242, 124, 141, 0.6); /* La sombra se expande simulando brillo */
    }
}
/* --- CORRECCIÓN: CLASE PARA OCULTAR PRODUCTOS EN FILTROS Y BÚSQUEDA --- */
.oculto {
    display: none !important;
}