/*
 * Archivo: style.css (EDICIÓN ESPECIAL DE SAN VALENTÍN 💘)
 * Descripción: Estilos base transformados con estética romántica de Amor y Amistad.
 * Todas las reglas estructurales y lógica originales se han preservado.
 * Se han modificado variables y valores cosméticos para crear una atmósfera de enamorados.
 */

/* 1. Variables Globales y Reseteo (Paleta: "Endless Love") */
:root {
    /* 💘 PALETA DE COLORES SAN VALENTÍN */
    /* Primary -> Rojo Pasión / Rosa Fuerte */
    --color-primary: #FF3366; 
    /* Secondary -> Borgoña Profundo / Vino (Para contraste elegante) */
    --color-secondary: #880E4F; 
    /* Accent -> Oro Rosa / Dorado Cálido */
    --color-accent: #FFD700; 
    /* White -> Blanco Pétalo */
    --color-white: #ffffff; 
    /* Light BG -> Rosa Empolvado muy suave */
    --color-light-bg: #FFF0F5; 
    /* Text -> Azul Noche (Para legibilidad sobre rosa) */
    --color-text: #2D2D2D; 
    /* Borders -> Rosa Pastel */
    --color-borders: #F8BBD0;
    
    /* FUENTES */
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    
    /* ESPACIADO (Conservado) */
    --spacing-xs: 4px;
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;

    /* 💘 MEJORA VISUAL: Sombras Románticas (Glow suave) */
    --shadow-sm: 0 4px 8px rgba(255, 51, 102, 0.15); /* Resplandor rosado sutil */
    --shadow-md: 0 8px 24px rgba(136, 14, 79, 0.15); /* Sombra vino profunda */
    --shadow-lg: 0 16px 48px rgba(255, 215, 0, 0.25); /* Resplandor dorado mágico */
    
    --border-radius-sm: 8px;
    --border-radius-lg: 16px; /* Manteniendo la suavidad original */
    
    /* TRANSICIONES */
    --transition-main: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
     from { opacity: 0; transform: scale(0.9); }
     to { opacity: 1; transform: scale(1); }
}

/* AÑADIDO: Animación estilo latido para botones/floats */
@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px 5px rgba(255, 51, 102, 0.3); } /* Efecto latido */
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 51, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

/* 💘 NUEVA ANIMACIÓN: Flotar suave (Love is in the air) */
@keyframes loveFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

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

/* SCROLLBAR TEMÁTICO (Estilo Romántico) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FFF0F5; /* Color rosa suave */
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary); /* Rosa Fuerte */
    border-radius: 10px;
    border: 2px solid #FFF0F5;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary); /* Vino al interactuar */
}

/* 2. Estilos Base del Body y Tipografía */
body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 💘 DECORACIÓN: Fondo sutil degradado romántico */
    background: 
        radial-gradient(circle at 10% 10%, rgba(255, 51, 102, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 90%, rgba(136, 14, 79, 0.03) 0%, transparent 20%),
        linear-gradient(to bottom, #FFF0F5 0%, #FFFFFF 100vh); /* Rosa pálido a blanco */
    background-size: 100% 100%;
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-m);
    color: var(--color-secondary); /* Encabezados en Borgoña elegante */
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    /* Sombra de texto suave y amorosa */
    text-shadow: 
        2px 2px 0px rgba(255, 192, 203, 0.3),
        0px -2px 1px rgba(255,255,255, 0.9); 
}

h2 {
    font-size: 1.75rem;
    margin-top: var(--spacing-xl);
    border-bottom: 2px solid var(--color-primary); /* Línea Rosa Fuerte */
    padding-bottom: var(--spacing-s);
    position: relative;
}

/* Decoración visual en H2: Corazón atravesado */
h2::after {
    content: '💘'; /* Icono de Cupido */
    font-size: 20px;
    position: absolute;
    bottom: -12px;
    left: 50px;
    width: 24px;
    height: 24px;
    background: var(--color-white);
    line-height: 1;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: var(--spacing-m);
    color: rgba(45, 45, 45, 0.8); 
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-main);
    font-weight: 600;
    position: relative;
}

a:hover {
    color: var(--color-secondary); /* Hover Borgoña */
    text-decoration: none;
}

/* Efecto de subrayado brillante */
a:not(.btn):hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary); /* Glow Rosa */
    animation: fadeIn 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--spacing-xs);
}

/* 3. Header y Navegación ("Glass Love") */
.main-header {
    background-color: rgba(255, 255, 255, 0.90); 
    border-bottom: 1px solid rgba(255, 51, 102, 0.1); /* Borde rosa sutil */
    padding: var(--spacing-m) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.08); /* Resplandor rosado bajo el header */
    backdrop-filter: blur(10px); 
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--color-primary);
    transition: var(--transition-bounce);
    display: flex; 
    align-items: center;
    gap: 5px;
    text-shadow: 0 2px 4px rgba(255, 182, 193, 0.3);
}

/* Icono del logo animado como latido */
.logo:hover {
    color: var(--color-secondary);
    text-decoration: none;
    transform: scale(1.05); 
}

.main-nav {
    display: none; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-l);
}

.nav-links a {
    font-weight: 700;
    padding-bottom: var(--spacing-xs);
    border-bottom: 3px solid transparent;
    color: var(--color-secondary); 
    transition: var(--transition-main);
}

.nav-links a.active,
.nav-links a:hover {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    gap: var(--spacing-s); 
}

.header-actions button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

/* Botones del header */
.header-actions button {
    background: rgba(255, 51, 102, 0.05); 
    border-radius: 50%;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--color-secondary);
    padding: 10px;
    transition: var(--transition-bounce);
}

.header-actions button:hover {
    opacity: 1;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white); 
    transform: translateY(-2px); 
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.4); 
}

/* 4. Barra de Búsqueda */
.search-bar {
    background-color: #ffffff;
    padding: var(--spacing-m) 0;
    border-bottom: 1px solid var(--color-borders);
    /* Sutil textura de corazones (simulada) */
    background-image: radial-gradient(var(--color-borders) 1px, transparent 1px);
    background-size: 20px 20px;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.01);
}

.search-bar .container {
    display: flex;
    justify-content: center;
}

.search-bar input[type="search"] {
    flex-grow: 1;
    max-width: 600px;
    border: 2px solid var(--color-borders); 
    background-clip: padding-box;
    background-color: var(--color-white);
    border-radius: 50px 0 0 50px;
    font-size: 1.05rem;
    padding: var(--spacing-s) var(--spacing-l);
    outline: none;
    font-family: var(--font-primary);
    color: var(--color-text);
    transition: all 0.3s ease;
}

/* Focus estilo "Amor" */
.search-bar input[type="search"]:focus {
    background-color: #FFFDFD; 
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2); 
}

.search-bar #search-close {
    background: var(--color-white);
    border: 2px solid var(--color-borders);
    border-left: none;
    border-radius: 0 50px 50px 0;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-secondary);
    padding: 0 var(--spacing-m) 0 var(--spacing-s);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-bar #search-close:hover {
    color: var(--color-primary);
    background-color: #FFF0F5;
}

.search-bar input[type="search"]:focus + #search-close {
    border-color: var(--color-primary);
    background-color: #FFFDFD;
    border-left: none;
}

/* 5. Breadcrumbs */
.breadcrumbs {
    padding: var(--spacing-m) 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li::after {
    content: '❤'; /* Separador corazón pequeño */
    color: var(--color-primary); 
    margin: 0 var(--spacing-s);
    font-size: 0.8em;
    vertical-align: middle;
}

.breadcrumbs li:last-child::after {
    content: '';
}

.breadcrumbs a {
    color: var(--color-secondary);
    opacity: 0.7;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* 6. Grid de Productos (¡Los Regalos!) */
.product-grid {
    display: grid;
    /* Garantizar 2 columnas en móvil */
    grid-template-columns: repeat(2, 1fr); 
    /* Optimización Móvil: Gap reducido para evitar desbordamiento */
    gap: var(--spacing-s); 
    margin-top: var(--spacing-l);
    margin-bottom: var(--spacing-xxl);
}

.product-card {
    background-color: var(--color-white);
    /* Borde decorativo rosa suave */
    border: 1px solid rgba(248, 187, 208, 0.5); 
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-main);
    /* Optimización Móvil: Padding reducido */
    padding: var(--spacing-s);
    position: relative; 
    overflow: visible;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    /* Prevenir que el contenido fuerce scroll horizontal */
    min-width: 0;
}

/* Hover estilo tarjeta romántica */
.product-card:hover {
    transform: translateY(-8px); 
    /* Brillo rosado mágico alrededor de la carta */
    box-shadow: 0 15px 35px rgba(255, 51, 102, 0.15);
    border-color: var(--color-primary);
}

/* Toque especial: pequeño corazón en la esquina */
.product-card::before {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--color-primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transition: 0.3s;
    /* Forma de corazón CSS simplificada usando clip-path o content */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}
.product-card:hover::before {
    opacity: 1; /* El "adorno" aparece al pasar el mouse */
    transform: scale(1.2);
}

.product-image-container {
    position: relative;
    background-color: #fff;
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-m);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.08); 
}

.product-image-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradiente cálido romántico al hover */
    background: linear-gradient(to top, rgba(255, 51, 102, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-image-container::after {
    opacity: 1;
}

/* Botón de "Ver" */
.product-view-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%) scale(0.8); 
    opacity: 0;
    padding: 12px 24px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--color-primary); 
    border-radius: 30px;
    transition: var(--transition-bounce);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card:hover .product-view-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.product-view-button:hover {
    background: var(--color-primary);
    color: var(--color-white); 
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Badges festivos */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--color-primary), #FF6B95); /* Rosa vibrante */
    color: var(--color-white);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
    z-index: 4;
    border: 1px solid #FFFFFF;
}

.product-info {
    text-align: left; 
    position: relative; 
    z-index: 1; 
    padding: 0 4px;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-secondary); /* Precio en Borgoña para seriedad */
    display: flex;
    justify-content: flex-start; 
    align-items: baseline;
    gap: 4px;
}

.product-price-amount {
    font-size: 1.2rem; 
    letter-spacing: -0.5px;
}

.product-price-currency {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
}

/* 7. Sección Inspiración */
.inspiration-section {
    display: flex;
    flex-direction: column; 
    background-color: var(--color-white);
    margin-bottom: var(--spacing-xxl);
    border: 2px solid var(--color-primary); /* Marco Rosa Fuerte */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    opacity: 0;
    animation: popIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards;
    box-shadow: 0 20px 50px rgba(255, 51, 102, 0.1); 
    position: relative;
}

/* Borde interno estilo "Carta de Amor" */
.inspiration-section::before {
    content: '';
    position: absolute;
    top: 6px; bottom: 6px; left: 6px; right: 6px;
    border: 1px dashed var(--color-borders);
    border-radius: 12px;
    z-index: 5;
    pointer-events: none;
}

.inspiration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.inspiration-section:hover .inspiration-image img {
    transform: scale(1.03);
}

.inspiration-content {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Gradiente suave */
    background: linear-gradient(180deg, var(--color-white) 0%, #FFF5F7 100%); 
}

.inspiration-content h2 {
    margin-top: 0;
    border-bottom: none;
    color: var(--color-primary);
    font-size: 2rem;
    font-family: Georgia, serif; /* Romántico y clásico */
    font-style: italic;
}

.inspiration-content h2::after { display: none; }

/* 8. Botones (Estilo Cupido) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border-radius: 50px; 
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    letter-spacing: 0.5px;
    /* Gradiente Rosa Pasión */
    background: linear-gradient(135deg, #FF3366, #D81B60); 
    color: var(--color-white);
    /* Sombra luminosa */
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.3);
    position: relative;
    overflow: hidden;
}

/* Efecto Brillo en Hover */
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 51, 102, 0.4); 
}
.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 14, 79, 0.3);
}

/* Botón Secundario (Estilo Elegante) */
.btn-secondary {
    background: transparent;
    background-image: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: none; 
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
    box-shadow: 0 8px 20px rgba(136, 14, 79, 0.2);
}
.btn-secondary::after { display: none; } 

/* 9. Filtros */
.filters {
    margin-bottom: var(--spacing-l);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-s);
}

.filter-btn {
    background: var(--color-white);
    border: 1px solid var(--color-borders);
    color: var(--color-text);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.filter-btn:hover {
    background-color: #FFF0F5; 
    border-color: var(--color-primary);
    color: var(--color-primary); 
    transform: translateY(-2px);
}

/* Botón Activo estilo Amor */
.filter-btn.active {
    background: var(--color-secondary); 
    color: var(--color-white);
    border-color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(136, 14, 79, 0.3);
    transform: translateY(-2px);
}

/* 10. Footer (Cena Romántica) */
.main-footer {
    /* Degradado profundo: Vino a Negro */
    background: linear-gradient(160deg, #880E4F, #210414); 
    color: #F8BBD0; /* Texto rosa pálido */
    padding: var(--spacing-xxl) 0 0;
    margin-top: var(--spacing-xxl);
    border-top: none; 
    position: relative;
    /* Decoración sutil */
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Barra decorativa superior */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-secondary));
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    color: var(--color-accent); /* Títulos en dorado */
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-m);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #F48FB1; /* Enlaces rosa medio */
    font-weight: 400;
    transition: all 0.2s ease;
}
.footer-section a:hover {
    color: var(--color-white);
    padding-left: 5px; 
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    padding: var(--spacing-l) 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* 11. Modal (Caja de Sorpresas) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Overlay Rosa Oscuro */
    background-color: rgba(60, 10, 30, 0.85); 
    backdrop-filter: blur(5px); 
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #FFF5F7; /* Fondo interior muy suave */
    margin: 5% auto; 
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 90%;
    max-width: 750px;
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 40px rgba(136, 14, 79, 0.3); 
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.95);
}

/* Detalle superior del modal */
.modal-content::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 8px 8px 0 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--color-secondary);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 300;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
    background: #FFDDE6;
    transform: rotate(90deg);
}

/* Detalles Modal */
.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary); 
    margin-bottom: var(--spacing-m);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.modal-price-amount { font-weight: 800; }
.modal-price-currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: #777;
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.modal-features {
    margin-top: var(--spacing-m);
    margin-bottom: var(--spacing-l);
    padding-left: 0; 
    list-style: none;
    display: grid;
    gap: 8px;
}

.modal-features li {
    position: relative;
    padding-left: 24px;
    color: var(--color-text);
}
/* Bullet point como corazón */
.modal-features li::before {
    content: '❤'; /* Icono de amor */
    color: var(--color-primary); 
    position: absolute;
    left: 0;
    font-weight: normal;
    font-size: 1.1em;
    line-height: 1.5rem;
}

/* 12. Botón Flotante de WhatsApp (Estilo San Valentín) */
.whatsapp-fab {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    /* Verde WhatsApp Clásico pero con toque festivo */
    background: linear-gradient(135deg, #25D366, #128C7E); 
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998; 
    border: 2px solid #fff; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0; 
    animation: 
        popIn 0.5s 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        pulse-soft 2.5s infinite 3s; 
}

.whatsapp-fab:hover {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    /* En hover cambia a Rosa San Valentín */
    background: linear-gradient(135deg, #FF3366, #C2185B);
    border-color: var(--color-white);
}

.whatsapp-fab svg {
    width: 34px;
    height: 34px;
    fill: #FFF;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

/* --- AÑADIDO: Estilo para imagen de fallback (Error de Carga) --- */
.img-error-fallback {
    object-fit: contain !important; /* Ajustar el placeholder sin recortar */
    background-color: #FFF0F5; /* Fondo rosa suave coherente */
    padding: 10px;
    border: 1px dashed var(--color-borders);
    opacity: 0.9;
}