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

body {
    font-family: 'Arial', sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo día */
body.day-mode {
    background: white;
    color: #333;
}

/* Modo noche */
body.night-mode {
    background: #000;
    color: #e0e0e0;
}

body.night-mode .footer {
    color: #999;
    border-top-color: #333;
}

body.night-mode .quote-date {
    color: #aaa;
}

/* Botón de cambio de tema */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

body.night-mode .theme-toggle {
    background: #222;
    border-color: #444;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

body.night-mode .theme-toggle .sun-icon {
    display: block;
}

body.night-mode .theme-toggle .moon-icon {
    display: none;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-space {
    height: 15vh;
    min-height: 80px;
}

.quote-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 0; /* Permite que flex funcione correctamente */
}

.quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.quote-text {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    width: 100%;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out, gradientShift 12s ease-in-out infinite;
    transition: all 0.5s ease;
}

.quote-date {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: #888;
    text-align: center;
    margin-top: 10px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.3s both;
    letter-spacing: 0.5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(45deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    12.5% {
        background: linear-gradient(90deg, #764ba2 0%, #f093fb 50%, #f5576c 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    25% {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    37.5% {
        background: linear-gradient(180deg, #f5576c 0%, #4facfe 50%, #00f2fe 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(225deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    62.5% {
        background: linear-gradient(270deg, #00f2fe 0%, #43e97b 50%, #38f9d7 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    75% {
        background: linear-gradient(315deg, #43e97b 0%, #38f9d7 50%, #fa709a 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    87.5% {
        background: linear-gradient(360deg, #38f9d7 0%, #fa709a 50%, #fee140 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(45deg, #fa709a 0%, #fee140 50%, #667eea 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}



.footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 16px;
    font-weight: 300;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

body.night-mode .footer a {
    color: #a8b3ff;
}

body.night-mode .footer a:hover {
    color: #c5ceff;
}

/* SEO Content Section - Hidden visually but accessible to search engines */
.seo-content {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alternative: Show SEO content below the fold for better UX */
@media screen {
    .seo-content {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        max-width: 900px;
        margin: 100vh auto 0;
        padding: 60px 20px;
        background: inherit;
    }
    
    body.night-mode .seo-content {
        color: #e0e0e0;
    }
    
    .seo-content article {
        line-height: 1.8;
    }
    
    .seo-content h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 20px;
        color: #333;
        font-weight: 700;
    }
    
    body.night-mode .seo-content h1 {
        color: #fff;
    }
    
    .seo-content h2 {
        font-size: clamp(1.4rem, 3vw, 2rem);
        margin-top: 40px;
        margin-bottom: 15px;
        color: #444;
        font-weight: 600;
    }
    
    body.night-mode .seo-content h2 {
        color: #f0f0f0;
    }
    
    .seo-content p {
        margin-bottom: 20px;
        font-size: 1.1rem;
        color: #555;
    }
    
    body.night-mode .seo-content p {
        color: #ccc;
    }
    
    .seo-content ul {
        margin: 20px 0 20px 30px;
        list-style: disc;
    }
    
    .seo-content li {
        margin-bottom: 12px;
        font-size: 1.05rem;
        color: #555;
        line-height: 1.7;
    }
    
    body.night-mode .seo-content li {
        color: #ccc;
    }
    
    .seo-content a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .seo-content a:hover {
        color: #764ba2;
        text-decoration: underline;
    }
    
    body.night-mode .seo-content a {
        color: #a8b3ff;
    }
    
    body.night-mode .seo-content a:hover {
        color: #c5ceff;
    }
    
    .seo-content .cta-text {
        margin-top: 40px;
        font-size: 1.15rem;
        font-weight: 500;
        text-align: center;
        padding: 20px;
        background: rgba(102, 126, 234, 0.05);
        border-radius: 10px;
    }
    
    body.night-mode .seo-content .cta-text {
        background: rgba(168, 179, 255, 0.1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .header-space {
        height: 10vh;
        min-height: 60px;
    }
    
    .quote-container {
        padding: 20px 15px;
    }
    
    .quote-text {
        font-size: clamp(1.2rem, 5vw, 2.5rem);
        margin-bottom: 15px;
    }
    
    .quote-date {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
}

/* Mejoras adicionales para centrado perfecto */
@media (max-width: 480px) {
    .quote-container {
        padding: 15px 10px;
    }
    
    .quote-content {
        width: 100%;
    }
    
    .quote-text {
        margin-bottom: 12px;
    }
}

/* Asegurar centrado en pantallas muy grandes */
@media (min-width: 1400px) {
    .quote-container {
        padding: 60px 40px;
    }
}
/* An
imación adicional para movimiento del gradiente */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Clase alternativa para gradientes más dinámicos */
.quote-text.dynamic-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #38f9d7);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out, gradientMove 8s ease-in-out infinite, gradientShift 15s linear infinite;
}