/* Fuentes Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital@1&display=swap');

:root {
    --primary: #006466;
    --primary-light: #2a9d8f;
    --secondary: #00b4d8;
    --accent: #ffd700;
    --bg-dark: #012a36;
    --bg-light: #f6fff8;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* Navigation */
.nav {
    background: rgba(255,255,255,0.35); /* semi-transparente */
    backdrop-filter: blur(8px);
    padding: 0.5rem 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav a {
    text-decoration: none;
    color: var(--bg-dark);
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: var(--primary-light);
    color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Content sections */
.content-section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-section h1,
.content-section h2,
.content-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.content-section h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.content-section h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

.content-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Quote styles */
.quote {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 10px 10px 0;
}

/* Images */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-item {
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05);
}

.image-caption {
    margin-top: 0.5rem;
    color: #666;
    font-style: italic;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin: 0.5rem 0;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #ffffff;
    text-align: center;
    padding: 0.75rem 0;
    margin-top: auto;
}

.footer p {
    margin: 0.5rem 0;
}

.social-links {
    display: none;
}

.social-links a {
    color: white;
    margin: 0 1rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--bg-dark);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
    }

    .nav-menu.mobile-open {
        display: flex;
    }
    
    .container {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

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

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/**************** Botón flotante WhatsApp ****************/
.whatsapp-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 200;
    transition: transform 0.2s ease;
    background: transparent;
}

.whatsapp-button img {
    width: 60px;
    height: 60px;
}

/**************** Fondo Universo (solo index) ****************/
.universe-bg {
    background-color: #000;
    overflow-x: hidden;
}

.universe-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 3px 3px;
    animation: star-scroll 60s linear infinite;
    z-index: -1;
}

@keyframes star-scroll {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

/* Video de fondo (cobertura completa) */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-bg-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    width: 400vh;
    height: 225vh;
    min-width: 100vw;
    min-height: 56.25vw;
    pointer-events: none;
}

.universe-bg::before { display: none; }

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#music-toggle {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#music-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

#music-toggle.playing {
    animation: pulse 2s infinite;
}

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

/* Overlay de texto sobre vídeo */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-style: italic;
    text-align: center;
    font-size: clamp(1.2rem, 2vw + 1rem, 2rem);
    line-height: 1.6;
    pointer-events: none;
}

/* Glow animación para frases centrales */
@keyframes glow {
    0%,100% { text-shadow: none; }
    50% { text-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent); }
}

.overlay-text p {
    animation: glow 3s ease-in-out infinite;
    color: #ffffff;
}
