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

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER ELEGANTE - Diseño mejorado */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 75%, #533483 100%);
    color: white;
    padding: 25px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Efecto de cristal moderno */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 0%, transparent 40%),
        linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    backdrop-filter: blur(2px);
}

/* Partículas flotantes elegantes */
header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: sparkleMove 25s linear infinite;
}

@keyframes sparkleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-150px, -150px); }
}

.logo {
    text-align: center;
    position: relative;
    z-index: 3;
    margin-bottom: 25px;
}

.logo-icon {
    display: inline-block;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: logoElegantFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

@keyframes logoElegantFloat {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-10px) scale(1.08) rotate(5deg); }
}

/* Footer logo */
.footer-logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(1.2);
}

.logo h1 {
    font-size: 3.2em;
    margin: 0;
    background: linear-gradient(45deg, #fff, #e0e0e0, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: none;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: 1.3em;
    margin-top: 8px;
    opacity: 0.95;
    color: #e0e0e0;
}

/* NAVEGACIÓN ELEGANTE */
nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: heroBackground 10s ease-in-out infinite alternate;
}

@keyframes heroBackground {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
    100% { text-shadow: 2px 2px 20px rgba(255,255,255,0.5); }
}

.hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    font-family: 'Comic Neue', cursive;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ff5252, #ff9800);
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2em;
    animation: float 6s ease-in-out infinite;
}

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

.floating-icon:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Secciones */
section {
    padding: 80px 0;
    position: relative;
}

/* QUIENES SOMOS - Diseño elegante */
#quienes {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 25%, #2980b9 75%, #3498db 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#quienes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: sectionFloat 15s ease-in-out infinite alternate;
}

@keyframes sectionFloat {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* CARACTERÍSTICAS - Diseño elegante */
#caracteristicas {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 25%, #3498db 75%, #2980b9 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#caracteristicas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: characteristicsFloat 12s ease-in-out infinite alternate;
}

@keyframes characteristicsFloat {
    0% { transform: translateX(-10px); opacity: 0.8; }
    100% { transform: translateX(10px); opacity: 1; }
}

#programas {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

#tips {
    background: linear-gradient(135deg, #55a3ff, #003d82);
    color: white;
}

/* Títulos de sección elegantes */
section h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 50px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

/* Cards del equipo con diseño elegante */
.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.team-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    padding: 35px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: white;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.team-card:hover::before {
    opacity: 1;
    animation: cardShine 1.5s ease-in-out;
}

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

.team-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
}

.team-emoji {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.team-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: white;
}

.team-card p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1em;
}

/* Grid de características elegante */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    padding: 35px;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Grid de programas */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #ff6b6b;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.program-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #2d3436;
}

.program-card p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.program-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.program-btn {
    background: linear-gradient(45deg, #00cec9, #00b894);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Comic Neue', cursive;
}

.program-btn:hover {
    background: linear-gradient(45deg, #00b894, #00a085);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Tips container */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-10px);
}

.tip-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

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

.footer-logo h3 {
    font-size: 1.5em;
}

.footer-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5em;
}

.footer-icons span {
    animation: sparkle 2s ease-in-out infinite;
}

.footer-icons span:nth-child(2) { animation-delay: 0.4s; }
.footer-icons span:nth-child(3) { animation-delay: 0.8s; }
.footer-icons span:nth-child(4) { animation-delay: 1.2s; }
.footer-icons span:nth-child(5) { animation-delay: 1.6s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 0.8; }
}

/* Contenido introductorio */
.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.intro-content p {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5em;
    }
    
    #hero h1 {
        font-size: 2.5em;
    }
    
    section h2 {
        font-size: 2.2em;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .programs-grid,
    .features-grid,
    .team-cards,
    .tips-container {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-btn {
        padding: 12px 24px;
        font-size: 1em;
    }
    
    .team-card,
    .feature-card {
        padding: 25px;
    }
}