/* ========== VALENTINE THEME - Solo activo con body.theme-valentine ========== */

/* Ocultar elementos Valentine por defecto (sin tema activo) */
.valentine-top-banner,
.valentine-hearts-container {
    display: none !important;
}

/* Variables de colores San Valentín */
.theme-valentine {
    --valentine-primary: #ff6b9d;
    --valentine-secondary: #ffc4d6;
    --valentine-accent: #ff1744;
    --valentine-light: #fff5f7;
    --valentine-gradient: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
}

/* Corazones flotantes animados - Decoración de fondo */
.theme-valentine .valentine-hearts-container {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.15;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.theme-valentine .valentine-heart {
    position: absolute;
    font-size: 20px;
    color: var(--valentine-primary);
    animation: floatHearts 15s infinite ease-in-out;
    -webkit-animation: floatHearts 15s infinite ease-in-out;
    opacity: 0;
    will-change: transform;
    -webkit-will-change: transform;
}

@keyframes floatHearts {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@-webkit-keyframes floatHearts {
    0% {
        -webkit-transform: translateY(100vh) rotate(0deg);
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        -webkit-transform: translateY(-100px) rotate(360deg);
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Banner decorativo superior - San Valentín */
.theme-valentine .valentine-top-banner {
    background: var(--valentine-gradient);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
    -webkit-box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
    height: 38px;
    display: -webkit-flex !important;
    display: -moz-flex !important;
    display: flex !important;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    pointer-events: auto;
}

.theme-valentine .valentine-top-banner::before,
.theme-valentine .valentine-top-banner::after {
    content: '💕';
    margin: 0 10px;
    animation: pulse 2s infinite;
    -webkit-animation: pulse 2s infinite;
    -moz-animation: pulse 2s infinite;
    -o-animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        -webkit-transform: scale(1);
    }
    50% { 
        transform: scale(1.2);
        -webkit-transform: scale(1.2);
    }
}

@-webkit-keyframes pulse {
    0%, 100% { 
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% { 
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

/* Ajustar body para compensar el banner fijo */
.theme-valentine {
    padding-top: 48px !important;
}

/* Ajustar header para que no quede detrás del banner */
.theme-valentine .header-section-3 {
    margin-top: 0 !important;
    position: relative;
    z-index: 1001;
    padding: 0;
}

/* Header sticky en su estado normal (no scrolleado) */
.theme-valentine #header-sticky,
.theme-valentine .header-3 {
    position: relative;
    top: 0;
    margin: 0 !important;
    padding: 0;
    z-index: 1001;
    width: 100%;
    left: 0;
    right: 0;
}

.theme-valentine .container-fluid {
    margin: 0 !important;
    padding: 0 15px !important;
}

.theme-valentine .main-header-wrapper,
.theme-valentine .main-header-items {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajustar header sticky para que no se superponga con el banner */
.theme-valentine #header-sticky.sticky,
.theme-valentine .header-3.sticky {
    position: fixed !important;
    top: 38px !important;
    z-index: 1001;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
}

/* Animación de corazones en el menú sticky - San Valentín */
.theme-valentine #header-sticky.sticky::before,
.theme-valentine .header-3.sticky::before {
    content: '💕';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    font-size: 18px;
    animation: pulse 2s infinite;
    -webkit-animation: pulse 2s infinite;
    z-index: 10;
}

.theme-valentine #header-sticky.sticky::after,
.theme-valentine .header-3.sticky::after {
    content: '💕';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    font-size: 18px;
    animation: pulse 2s infinite;
    -webkit-animation: pulse 2s infinite;
    animation-delay: 1s;
    z-index: 10;
}

/* Ajustar logo en header sticky para no chocar con corazones */
.theme-valentine #header-sticky.sticky .header-left,
.theme-valentine #header-sticky.sticky .header-middle {
    position: relative;
    z-index: 11;
}

/* Asegurar que el preloader no interfiera */
.theme-valentine #preloader {
    top: 48px;
}

/* Icono de menú - color negro cuando header es sticky */
.theme-valentine .header__hamburger {
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.theme-valentine .header__hamburger i {
    color: inherit;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.theme-valentine #header-sticky.sticky .header__hamburger i,
.theme-valentine .header-3.sticky .header__hamburger i {
    color: #000 !important;
}

.theme-valentine #header-sticky.sticky .sidebar__toggle i,
.theme-valentine .header-3.sticky .sidebar__toggle i {
    color: #000 !important;
}

/* Efecto sutil en botones principales */
.theme-valentine .theme-btn {
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.theme-valentine .theme-btn::after {
    content: '♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    -webkit-transform: translate(-50%, -50%) scale(0);
    font-size: 100px;
    color: rgba(255, 107, 157, 0.1);
    pointer-events: none;
    -webkit-transition: transform 0.6s ease;
    -moz-transition: transform 0.6s ease;
    transition: transform 0.6s ease;
}

.theme-valentine .theme-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    -webkit-transform: translate(-50%, -50%) scale(1);
}

/* Detalles decorativos en secciones */
.theme-valentine .section-valentine-accent::before {
    content: '💝';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.1;
    animation: rotate 20s linear infinite;
    -webkit-animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { 
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }
    to { 
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes rotate {
    from { 
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to { 
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Brillo sutil en imágenes al hover - Toque romántico */
.theme-valentine .dishes-card img,
.theme-valentine .offcanvas-image img {
    -webkit-transition: -webkit-filter 0.3s ease, filter 0.3s ease;
    -moz-transition: filter 0.3s ease;
    transition: filter 0.3s ease;
}

.theme-valentine .dishes-card:hover img {
    -webkit-filter: brightness(1.05) saturate(1.1);
    filter: brightness(1.05) saturate(1.1);
}

/* Borde decorativo sutil para tarjetas */
.theme-valentine .dishes-card {
    border: 1px solid transparent;
    -webkit-transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.theme-valentine .dishes-card:hover {
    border-color: rgba(255, 107, 157, 0.2);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
    -webkit-box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

/* Icono corazón en favoritos/destacados */
.theme-valentine .valentine-favorite-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--valentine-gradient);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
    -webkit-box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
    animation: heartbeat 1.5s infinite;
    -webkit-animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1);
        -webkit-transform: scale(1);
    }
    25% { 
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
    }
    50% { 
        transform: scale(1);
        -webkit-transform: scale(1);
    }
}

@-webkit-keyframes heartbeat {
    0%, 100% { 
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    25% { 
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    50% { 
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/* Efecto de brillo en títulos principales */
.theme-valentine h1, 
.theme-valentine h2, 
.theme-valentine .section-title {
    position: relative;
}

.theme-valentine h1::after, 
.theme-valentine h2::after, 
.theme-valentine .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--valentine-gradient);
    border-radius: 2px;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.theme-valentine h1:hover::after, 
.theme-valentine h2:hover::after, 
.theme-valentine .section-title:hover::after {
    opacity: 0.6;
}

/* ========== RESPONSIVE - Tablets ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .theme-valentine .valentine-hearts-container {
        opacity: 0.12;
    }
    
    .theme-valentine .valentine-heart {
        font-size: 18px;
    }
    
    .theme-valentine .valentine-top-banner {
        font-size: 12px;
        padding: 9px 15px;
        height: 35px;
    }
    
    .theme-valentine .valentine-top-banner::before,
    .theme-valentine .valentine-top-banner::after {
        margin: 0 8px;
        font-size: 14px;
    }
    
    .theme-valentine {
        padding-top: 45px !important;
    }
    
    .theme-valentine #preloader {
        top: 45px;
    }
    
    .theme-valentine #header-sticky.sticky,
    .theme-valentine .header-3.sticky {
        top: 35px !important;
    }
    
    .theme-valentine #header-sticky.sticky::before,
    .theme-valentine #header-sticky.sticky::after,
    .theme-valentine .header-3.sticky::before,
    .theme-valentine .header-3.sticky::after {
        font-size: 16px;
        left: 12px;
    }
    
    .theme-valentine #header-sticky.sticky::after,
    .theme-valentine .header-3.sticky::after {
        right: 12px;
        left: auto;
    }
}

/* ========== RESPONSIVE - Mobile ========== */
@media (max-width: 768px) {
    .theme-valentine {
        padding-top: 32px !important;
        margin: 0 !important;
    }
    
    .theme-valentine .valentine-hearts-container {
        opacity: 0.08;
    }
    
    .theme-valentine .valentine-heart {
        font-size: 16px;
    }
    
    .theme-valentine .valentine-top-banner {
        font-size: 10px;
        padding: 7px 10px;
        height: 32px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .theme-valentine .valentine-top-banner::before,
    .theme-valentine .valentine-top-banner::after {
        margin: 0 3px;
        font-size: 11px;
    }
    
    .theme-valentine #preloader {
        top: 32px;
    }
    
    .theme-valentine .header-section-3 {
        width: 100%;
        overflow: visible;
        z-index: 1001;
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .theme-valentine #header-sticky,
    .theme-valentine .header-3 {
        position: relative !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
    }
    
    .theme-valentine #header-sticky.sticky,
    .theme-valentine .header-3.sticky {
        position: fixed !important;
        top: 32px !important;
        width: 100%;
        left: 0;
        right: 0;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .theme-valentine .header-main {
        height: auto;
        min-height: 60px;
        width: 100%;
        margin: 0 !important;
    }
    
    .theme-valentine .container-fluid {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    .theme-valentine .main-header-wrapper {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .theme-valentine .main-header-items {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .theme-valentine #header-sticky.sticky::before,
    .theme-valentine #header-sticky.sticky::after,
    .theme-valentine .header-3.sticky::before,
    .theme-valentine .header-3.sticky::after {
        font-size: 13px;
        left: 8px;
        display: none;
    }
    
    @media (min-width: 481px) {
        .theme-valentine #header-sticky.sticky::before,
        .theme-valentine #header-sticky.sticky::after,
        .theme-valentine .header-3.sticky::before,
        .theme-valentine .header-3.sticky::after {
            display: block;
        }
    }
    
    .theme-valentine #header-sticky.sticky::after,
    .theme-valentine .header-3.sticky::after {
        right: 8px;
        left: auto;
    }
    
    .theme-valentine .section-valentine-accent::before {
        font-size: 28px;
        top: 8px;
        right: 8px;
    }
}

/* ========== RESPONSIVE - Large Desktops ========== */
@media (min-width: 1400px) {
    .theme-valentine {
        padding-top: 50px !important;
    }
    
    .theme-valentine #preloader {
        top: 50px;
    }
    
    .theme-valentine #header-sticky.sticky,
    .theme-valentine .header-3.sticky {
        top: 38px !important;
    }
    
    .theme-valentine .valentine-heart {
        font-size: 22px;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .theme-valentine .valentine-heart,
    .theme-valentine .valentine-top-banner::before,
    .theme-valentine .valentine-top-banner::after,
    .theme-valentine .valentine-favorite-badge,
    .theme-valentine .section-valentine-accent::before {
        animation: none !important;
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -o-animation: none !important;
    }
    
    .theme-valentine .dishes-card:hover img {
        filter: none;
        -webkit-filter: none;
    }
}
