:root {
    --primary: #ff4d6d;
    --dark-red: #c9184a;
    --soft-pink: #fff0f3;
    --text: #590d22;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 20px rgba(164, 19, 60, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

body {
    background-color: var(--soft-pink);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- Fondo Animado de Corazones --- */
.bg-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.78 7.77L10 18.78l8.39-8.4a5.5 5.5 0 0 0-7.78-7.77l-.61.61z' fill='%23ffccd5' fill-opacity='0.4'/%3E%3C/svg%3E");
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

/* --- Header --- */
header {
    text-align: center;
    padding: 20px;
}

.brand-name h1 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: var(--dark-red);
}

.handle {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.subtitle {
    margin-top: 5px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* --- Slider & Cards --- */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 40px; /* Espacio lateral para scroll */
    width: 100%;
    max-width: 1200px;
    scrollbar-width: none; /* Ocultar scrollbar Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar Chrome/Safari */
}

.card {
    flex: 0 0 300px; /* Ancho fijo de la card */
    scroll-snap-align: center;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    border: 2px solid white;
}

.card:hover {
    transform: translateY(-5px);
}

/* Badge de Descuento */
.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffb703;
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
    transform: rotate(10deg);
}

.img-container {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    background: #fff;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para no cortar las impresiones */
}

/* Estilos especiales para el corazón secreto */
.swap-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    pointer-events: none;
}

.card h2 {
    color: var(--dark-red);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    min-height: 40px;
}

.btn-cta {
    display: inline-block;
    background: var(--dark-red);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn-cta:hover {
    background: var(--primary);
}

/* --- Botones de Navegación PC --- */
.nav-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    color: var(--dark-red);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
    position: absolute;
    z-index: 10;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Ocultar flechas en móvil (se usa swipe) */
@media (max-width: 768px) {
    .nav-btn { display: none; }
    .card { flex: 0 0 85%; } /* Card más ancha en móvil */
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px 20px;
    background: white;
}

.btn-general {
    display: inline-block;
    background: #333;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 15px;
}
/* --- Estilos del Logo --- */
.logo-img {
    max-width: 320px;      /* Tamaño máximo para que no se vea enorme */
    height: auto;          /* Mantiene la proporción */
    display: block;
    margin: 0 auto 15px auto; /* Centrado horizontal y margen abajo */
    border-radius: 15px;   /* Bordes redondeados suaves (opcional) */
    box-shadow: 0 5px 15px rgba(201, 24, 74, 0.2); /* Sombra suave roja */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Efecto zoom al pasar el mouse */
}