/* =============================================================================
   CSS SIMPLIFICADO Y FUNCIONAL - BODA DANI Y ANA
   ============================================================================= */

/* Variables básicas */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --gold-color: #d4af37;
    --cream: #faf9f6;
    --light-gray: #ecf0f1;
    --medium-gray: #95a5a6;
    --dark-gray: #34495e;
    --white: #ffffff;
    
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    --border-radius: 12px;
    --transition: 0.3s ease;
}

/* =============================================================================
   ANIMACIONES MODERNAS
   ============================================================================= */

/* Keyframes para animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes urgentGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 20px rgba(255, 107, 107, 0.3);
    }
}

@keyframes numberChange {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #ff6b6b;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successParticle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.5);
    }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Clases de animación - TEMPORALMENTE DESACTIVADAS */
/*
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-in {
    animation: slideInFromLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-card {
    animation: cardFloat 0.8s ease-out forwards;
    opacity: 0;
}
*/

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: floating 3s ease-in-out infinite;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    min-height: 100vh;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Login */
body.login-active {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/img_story3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-header h2 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 20px 0;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.decorative-line {
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--gold-color));
    margin: 20px auto;
    width: 60px;
    border-radius: 3px;
}

.input-group {
    position: relative;
    margin: 20px 0;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

.elegant-button {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: var(--transition);
}

.elegant-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body:not(.login-active) #login-container {
    display: none;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.wedding-logo {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.nav-container {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-group {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.98), rgba(184, 134, 11, 0.98));
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(-100%);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    transform: scale(0.9);
    transition: transform 0.4s ease 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: scale(1);
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.5s ease forwards;
}

.mobile-nav-overlay.active .mobile-nav-btn {
    animation-delay: 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(8) {
    animation-delay: 0.45s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(9) {
    animation-delay: 0.5s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(10) {
    animation-delay: 0.55s;
}

.mobile-nav-overlay.active .mobile-nav-btn:nth-child(11) {
    animation-delay: 0.6s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mobile-nav-btn .nav-icon {
    font-size: 1.4rem;
    min-width: 30px;
}

.mobile-nav-btn .nav-text {
    font-size: 1rem;
    font-weight: 500;
}

.nav-btn {
    background: transparent;
    color: var(--dark-gray);
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.nav-btn:hover {
    color: white;
    background-color: #C0A080;
}

.nav-btn.active-nav-button {
    color: white;
    background-color: #A07C5B;
    font-weight: 600;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.7rem;
    line-height: 1;
}

/* Main content */
main {
    padding: 1rem;
}

section {
    margin: 2rem auto;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

section h2 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--gold-color));
    border-radius: 3px;
}

/* Hero section */
.landing-hero {
    margin: 0;
    max-width: none;
    padding: 0;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)), url('images/img_story3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border-radius: 0;
    animation: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 0 0 2rem 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.countdown-label {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.hero-countdown {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: var(--gold-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    letter-spacing: 0.05em;
    perspective: 1000px;
}

/* Estilos refinados para el countdown estilo premium */
.countdown-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.countdown-item:hover::before {
    left: 100%;
}

.countdown-item:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.countdown-number {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: var(--gold-color);
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.9),
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3);
    line-height: 1;
    min-width: 2ch;
    text-align: center;
    background: linear-gradient(135deg, #ffd700, #d4af37, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: goldShimmer 3s ease-in-out infinite, numberGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.countdown-label {
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

/* Separadores modernos entre elementos del countdown */
.countdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 2px;
}

/* Animaciones mejoradas para el countdown */
@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes separatorPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes numberGlow {
    0%, 100% {
        text-shadow: 
            2px 2px 0 rgba(0, 0, 0, 0.9),
            0 0 10px rgba(212, 175, 55, 0.5),
            0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 
            2px 2px 0 rgba(0, 0, 0, 0.9),
            0 0 15px rgba(212, 175, 55, 0.8),
            0 0 30px rgba(212, 175, 55, 0.5),
            0 0 40px rgba(212, 175, 55, 0.3);
    }
}

/* Efecto especial cuando quedan pocos días */
.countdown-item[data-value="0"] .countdown-number,
.countdown-item[data-value="1"] .countdown-number,
.countdown-item[data-value="2"] .countdown-number,
.countdown-item[data-value="3"] .countdown-number {
    color: #ff6b6b;
    animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        color: #ff6b6b;
    }
    50% {
        transform: scale(1.05);
        color: #ff4757;
    }
}

/* Animaciones premium para countdown */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(212, 175, 55, 0.3),
            0 0 20px rgba(212, 175, 55, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes countdownParticle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.number-changed .countdown-number {
    animation: numberChangeEffect 0.5s ease-out;
}

@keyframes numberChangeEffect {
    0% {
        transform: scale(1) rotateY(0deg);
    }
    50% {
        transform: scale(1.2) rotateY(180deg);
        color: #FFD700;
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6);
    }
    100% {
        transform: scale(1) rotateY(360deg);
    }
}

.countdown-ended {
    text-align: center;
    animation: celebrationPulse 1s ease-in-out infinite;
}

.celebration-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--gold-color);
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.9),
        0 0 20px rgba(212, 175, 55, 0.8);
    margin-bottom: 1rem;
}

.celebration-emoji {
    font-size: clamp(2rem, 5vw, 3rem);
    animation: celebrationBounce 0.8s ease-in-out infinite;
}

.celebration-emojis {
    font-size: 2rem;
    margin: 1.5rem 0;
    animation: celebrationFloat 2s ease-in-out infinite;
}

.quiz-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--quiz-color, #27ae60);
}

.quiz-actions {
    margin-top: 2rem;
}

@keyframes celebrationFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* =============================================================================
   TIMELINE INTERACTIVO MODERNO - SECCIÓN TIMELINE
   ============================================================================= */

/* Keyframes específicos para timeline */
@keyframes timelineItemSlide {
    from {
        opacity: 0;
        transform: translateX(-100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes timelineProgressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes sparkleAnimation {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    }
}

@keyframes markerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes emotionFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Contenedor principal del timeline */
#timeline {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--cream) 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

#timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23d4af37" fill-opacity="0.05"><path d="M30 30c0-6.627-5.373-12-12-12s-12 5.373-12 12 5.373 12 12 12 12-5.373 12-12zm0 0c0-6.627 5.373-12 12-12s12 5.373 12 12-5.373 12-12 12-12-5.373-12-12z"/></g></g></svg>');
    pointer-events: none;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header del timeline */
.timeline-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.timeline-title {
    font-family: var(--font-script);
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

.timeline-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.2em;
    color: var(--medium-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Barra de progreso del timeline */
.timeline-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.timeline-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-color), #f1c40f);
    border-radius: 2px;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
}

.timeline-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* Área interactiva del timeline */
.timeline-interactive {
    position: relative;
    padding: 60px 0;
}

/* Línea principal del timeline */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, 
        rgba(212, 175, 55, 0.3) 0%,
        var(--gold-color) 20%,
        var(--gold-color) 80%,
        rgba(212, 175, 55, 0.3) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--gold-color), #f1c40f);
    border-radius: 2px;
    transition: height 1s ease-out;
}

/* Items del timeline */
.timeline-item {
    position: relative;
    margin: 80px 0;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
    z-index: 2;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
    animation: timelineItemSlide 0.8s ease-out;
}

.timeline-item:nth-child(even) {
    transform: translateX(100px);
}

.timeline-item:nth-child(even).animate {
    transform: translateX(0);
}

/* Marcadores del timeline */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 4px solid var(--gold-color);
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.timeline-marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
    animation: markerPulse 1s infinite;
}

.timeline-marker-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--white), #f8f9fa);
}

.timeline-icon {
    font-size: 1.5em;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
}

/* Marcadores especiales */
.special-marker {
    width: 80px;
    height: 80px;
    border-width: 6px;
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--white), #ffe6e6);
    position: relative;
}

.special-marker .timeline-icon {
    font-size: 2em;
    animation: pulse 2s infinite;
}

.timeline-sparkles {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold-color);
    border-radius: 50%;
    animation: sparkleAnimation 2s infinite;
}

.sparkle:nth-child(1) {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    bottom: 15%;
    left: 10%;
    animation-delay: 0.7s;
}

.sparkle:nth-child(3) {
    top: 60%;
    right: 10%;
    animation-delay: 1.4s;
}

/* Marcadores futuros */
.future-marker {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white), #e8f4f8);
    position: relative;
}

.timeline-pulse {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulseGlow 2s infinite;
}

/* Fechas del timeline */
.timeline-date {
    position: absolute;
    top: 0;
    right: calc(50% + 100px);
    background: var(--white);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 2px solid var(--gold-color);
    min-width: 140px;
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: calc(50% + 100px);
}

.timeline-year {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.timeline-month {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.9em;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-day {
    display: block;
    font-family: var(--font-secondary);
    font-size: 0.8em;
    color: var(--gold-color);
    font-weight: bold;
    margin-top: 5px;
}

/* Fechas especiales */
.special-date {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--white), #ffe6e6);
}

.future-date {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white), #e8f4f8);
}

/* Contenido del timeline */
.timeline-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-right: calc(50% + 40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.05));
    pointer-events: none;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: calc(50% + 40px);
    flex-direction: row-reverse;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Contenido especial */
.special-content {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--white), #fff5f5);
}

.future-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white), #f0f8ff);
}

/* Wrapper de imagen */
.timeline-image-wrapper {
    flex: 0 0 300px;
    position: relative;
}

.timeline-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.timeline-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0,0,0,0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-image-container:hover .timeline-image-overlay {
    opacity: 1;
}

.timeline-image-text {
    color: var(--white);
    font-family: var(--font-secondary);
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Texto del timeline */
.timeline-text {
    flex: 1;
    padding: 10px 0;
}

.timeline-text h3 {
    font-family: var(--font-primary);
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.timeline-detail {
    font-family: var(--font-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

/* Etiquetas de emociones */
.timeline-emotion {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.emotion-tag {
    background: linear-gradient(135deg, var(--gold-color), #f1c40f);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-family: var(--font-secondary);
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    animation: emotionFloat 3s ease-in-out infinite;
}

.emotion-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.emotion-tag:nth-child(2) {
    animation-delay: 1s;
}

.emotion-tag:nth-child(3) {
    animation-delay: 2s;
}

.emotion-tag.special {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
}

.emotion-tag.future {
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
}

/* Navegación del timeline */
.timeline-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 80px;
    padding: 30px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-nav-btn {
    background: linear-gradient(135deg, var(--gold-color), #f1c40f);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: var(--font-secondary);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.timeline-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.timeline-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Dots de navegación */
.timeline-dots {
    display: flex;
    gap: 15px;
    align-items: center;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-dot:hover {
    transform: scale(1.2);
}

.timeline-dot.active {
    background: var(--gold-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.timeline-dot.special {
    background: var(--secondary-color);
}

.timeline-dot.special.active {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.timeline-dot.future {
    background: var(--primary-color);
}

.timeline-dot.future.active {
    box-shadow: 0 0 20px rgba(44, 62, 80, 0.5);
}

/* =============================================================================
   MEJORAS DE RENDIMIENTO Y ANTI-SCROLL JUMPING
   ============================================================================= */

/* Scroll suave global */
html {
    scroll-behavior: smooth;
}

/* Prevenir saltos de scroll */
* {
    scroll-margin-top: 100px;
}

/* Optimizaciones para mejor rendimiento de scroll */
.timeline-image-container,
.timeline-content,
.timeline-marker {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Suavizar todas las transiciones relacionadas con scroll */
.timeline-item,
.timeline-line-progress,
.timeline-progress-fill {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reducir motion para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .timeline-image-container {
        transform: none !important;
    }
}

/* Contenedor con scroll suave */
.content-container {
    scroll-behavior: smooth;
}

/* Evitar reflow/repaint innecesarios */
.timeline-interactive {
    contain: layout style paint;
}

/* =============================================================================
   EFECTOS ESPECIALES Y ANIMACIONES AVANZADAS
   ============================================================================= */

/* Efecto parallax sutil para el hero */
.landing-hero {
    background-attachment: fixed;
    will-change: transform;
}

/* Animación del countdown con pulsación */
.hero-countdown {
    animation: pulse 2s ease-in-out infinite;
}

/* Efecto de brillo en el título principal */
.hero-title {
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efectos de loading y transición suave */
.section-transition {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover effect con ondas para botones */
.cta-primary, .cta-secondary {
    position: relative;
    overflow: hidden;
}

.cta-primary:hover, .cta-secondary:hover {
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Animación de entrada para elementos cuando aparecen en viewport */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de gradiente animado para fondos */
.gradient-animation {
    background: linear-gradient(-45deg, #f5f7fa, #c3cfe2, #f8f9fa, #e3edf7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mejoras de performance para animaciones */
.animate-fade-up,
.animate-slide-in,
.animate-scale-in,
.animate-card {
    will-change: opacity, transform;
}

/* Efectos de cristal esmerilado mejorados */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Animación suave para el cambio de secciones */
.main-content {
    transition: all 0.3s ease-in-out;
}

/* Efecto de zoom suave en imágenes */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Scroll suave personalizado */
html {
    scroll-behavior: smooth;
}

/* Efectos de focus mejorados para accesibilidad */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(231, 76, 60, 0.3);
    outline-offset: 2px;
}

/* Optimización para dispositivos con animaciones reducidas */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Efecto ripple para botones */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
