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

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ffc3d8;
    --accent-color: #ff9a9e;
    --light-color: #ffeaa7;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: rgba(255, 107, 157, 0.2);
}

[data-theme="dark"] {
    --primary-color: #e91e63;
    --secondary-color: #ad1457;
    --accent-color: #c2185b;
    --light-color: #880e4f;
    --text-color: #fff;
    --bg-color: #1a1a1a;
    --card-bg: rgba(30, 30, 30, 0.9);
    --shadow: rgba(233, 30, 99, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 30%, var(--accent-color) 70%, var(--light-color) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Header Styles */
.main-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle,
.music-toggle,
.slideshow-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.theme-toggle:hover,
.music-toggle:hover,
.slideshow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.music-toggle.active {
    background: #28a745;
    animation: pulse 2s infinite;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2rem;
    color: #ff6b9d;
    animation: heartbeat 2s ease-in-out infinite;
}

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

.logo h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #d63384;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    color: #666;
    font-weight: 500;
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff9a9e);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Love Counter */
.love-counter-section {
    margin-bottom: 40px;
}

.love-counter {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px var(--shadow);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.love-counter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.counter-content {
    position: relative;
    z-index: 2;
}

.counter-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.counter-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.counter-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: countUp 2s ease-out;
}

.counter-label {
    font-size: 1.2rem;
    color: var(--text-color);
    font-style: italic;
}

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

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--primary-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    font-size: 1rem;
    background: var(--bg-color);
    transition: all 0.3s ease;
    outline: none;
    color: var(--text-color);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--shadow);
    transform: translateY(-2px);
}

.clear-search {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.clear-search:hover {
    color: var(--primary-color);
}

.search-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.2);
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
    font-style: italic;
}

/* Years Section */
.years-section {
    margin-bottom: 60px;
}

.years-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.year-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.year-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transition: transform 0.5s ease;
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.year-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.year-card:hover {
    transform: translateY(-10px);
    border-color: #ff6b9d;
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.3);
}

.year-card.active {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.3);
}

.year-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b9d;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.year-description {
    color: #666;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Photos Section */
.photos-section {
    margin-bottom: 60px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.photo-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.3);
}

.photo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-image {
    transform: scale(1.05);
}

.photo-info {
    padding: 20px;
}

.photo-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d63384;
    margin-bottom: 8px;
}

.photo-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.photo-date {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.no-photos-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-photos-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-photos-message p {
    font-size: 1.2rem;
    font-style: italic;
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.photo-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.photo-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.photo-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.photo-info {
    text-align: center;
    color: white;
    max-width: 600px;
}

.photo-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Celebration Modal */
.celebration-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.celebration-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b9d, #ffc3d8);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(255, 107, 157, 0.5);
    animation: celebrationPop 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes celebrationPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.celebration-header {
    position: relative;
    margin-bottom: 30px;
}

.celebration-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.close-celebration {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff6b9d;
    color: #ff6b9d;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    z-index: 10;
}

.close-celebration:hover {
    background: #ff6b9d;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.celebration-hearts {
    margin: 20px 0;
}

.big-heart {
    font-size: 5rem;
    animation: heartPulse 1s ease-in-out infinite;
}

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

.celebration-body p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.celebration-date {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 1rem;
}

/* Corazones flotantes en el modal de celebración */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: floatUpCelebration 4s ease-in-out infinite;
    opacity: 0;
}

.floating-heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    left: 20%;
    animation-delay: 0.5s;
}

.floating-heart:nth-child(3) {
    left: 30%;
    animation-delay: 1s;
}

.floating-heart:nth-child(4) {
    left: 40%;
    animation-delay: 1.5s;
}

.floating-heart:nth-child(5) {
    left: 50%;
    animation-delay: 2s;
}

.floating-heart:nth-child(6) {
    left: 60%;
    animation-delay: 2.5s;
}

.floating-heart:nth-child(7) {
    left: 70%;
    animation-delay: 3s;
}

.floating-heart:nth-child(8) {
    left: 80%;
    animation-delay: 3.5s;
}

@keyframes floatUpCelebration {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0px) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(10px) rotate(45deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-20px) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 0.8;
        transform: translateX(30px) rotate(315deg) scale(0.8);
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-10px) rotate(360deg) scale(0.3);
    }
}

/* Efecto de brillo en el modal de celebración */
.celebration-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: celebrationShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes celebrationShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1500;
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    margin-bottom: 20px;
}

.heart-spinner {
    font-size: 3rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #ff6b9d;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Floating Hearts Background */
.floating-hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: floatUp 12s linear infinite;
}

.floating-heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-heart:nth-child(2) { left: 25%; animation-delay: 2s; }
.floating-heart:nth-child(3) { left: 50%; animation-delay: 4s; }
.floating-heart:nth-child(4) { left: 75%; animation-delay: 6s; }
.floating-heart:nth-child(5) { left: 90%; animation-delay: 8s; }
.floating-heart:nth-child(6) { left: 15%; animation-delay: 10s; }

@keyframes floatUp {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0px) rotate(0deg);
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(100px) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .years-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .photo-navigation {
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .celebration-content {
        padding: 30px 20px;
    }
    
    .celebration-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .years-container {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-container {
        max-width: 95%;
    }
}

/* Nuevas funcionalidades - Mejoras */

/* Photo Card Improvements */
.photo-card.favorite::before {
    content: '💕';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    z-index: 3;
    animation: heartbeat 2s infinite;
}

.photo-card .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-card .quick-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.photo-card:hover .quick-actions {
    opacity: 1;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Enhanced Photo Modal */
.modal-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
}

.modal-controls {
    display: flex;
    gap: 10px;
}

.modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-btn.active {
    background: var(--primary-color);
}

.modal-image {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.modal-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

/* Photo Filters */
.photo-filters {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    min-width: 400px;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.filter-group label {
    min-width: 80px;
    font-size: 0.9rem;
}

.filter-group input[type="range"] {
    flex: 1;
    height: 5px;
    background: #333;
    border-radius: 5px;
    outline: none;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.filter-presets {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.filter-presets button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-presets button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Slideshow Modal */
.slideshow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

.slideshow-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-slideshow {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-slideshow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slideshow-container {
    text-align: center;
    max-width: 90%;
    max-height: 90%;
}

.slideshow-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.slideshow-info {
    color: white;
    margin-bottom: 20px;
}

.slideshow-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Dancing Script', cursive;
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.slideshow-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slideshow-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slideshow-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* Timeline Modal */
.timeline-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.timeline-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
}

.close-timeline {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-timeline:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.timeline-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    width: 45%;
    color: white;
    border: 1px solid var(--primary-color);
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-item::before {
    content: '💕';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    z-index: 2;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.share-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    min-width: 300px;
    text-align: center;
}

.close-share {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-share:hover {
    color: var(--primary-color);
}

.share-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.share-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.copy {
    background: var(--primary-color);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline FAB */
.timeline-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 100;
}

.timeline-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow);
}

/* Responsive improvements for new features */
@media (max-width: 768px) {
    .nav-controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .theme-toggle,
    .music-toggle,
    .slideshow-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .counter-number {
        font-size: 3rem;
    }
    
    .counter-content h3 {
        font-size: 2rem;
    }
    
    .search-filters {
        flex-wrap: wrap;
    }
    
    .photo-filters {
        min-width: 300px;
        padding: 15px;
    }
    
    .filter-controls {
        gap: 10px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .timeline-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-content-item {
        width: 100%;
    }
    
    .timeline-date {
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .timeline-item::before {
        left: 20px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .love-counter {
        padding: 20px;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .modal-controls {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .modal-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .photo-filters {
        min-width: 250px;
        padding: 10px;
    }
    
    .filter-presets {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .filter-presets button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Shimmer animation for counter */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
/* ============ ESTILOS PARA FUNCIONALIDADES ADICIONALES ============ */

/* Botón de pantalla completa */
.fullscreen-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff9a9e);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    margin-left: 10px;
}

.fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.fullscreen-btn:active {
    transform: translateY(0);
}

/* Botones de descarga */
.download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    margin-left: 5px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* Botón de descarga en modal */
.modal-download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin-left: 10px;
}

.modal-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.modal-download-btn:active {
    transform: translateY(0);
}

/* Mejoras en las acciones rápidas de las fotos */
.quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.photo-card:hover .quick-actions {
    opacity: 1;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quick-action-btn.download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

/* Animaciones para pantalla completa */
:fullscreen {
    background: var(--bg-color);
}

:fullscreen .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"]:fullscreen .header {
    background: rgba(30, 30, 30, 0.95);
}

/* Responsive para funcionalidades adicionales */
@media (max-width: 768px) {
    .fullscreen-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .quick-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .modal-download-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}