/* Banner Secuencial Ecológico - Estilo Green Software Foundation */

.sequential-banner {
    position: relative;
    width: 100%;
    height: 35vh;
    min-height: 320px;
    max-height: 380px;
    background: linear-gradient(135deg, #0D2818, #1B5E20, #2E7D32, #388E3C);
    background-size: 400% 400%;
    animation: gradientFlow 10s ease infinite;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

/* Fases del Banner */
.banner-phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-in-out;
    color: white;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.banner-phase.active {
    opacity: 1;
    transform: translateY(0);
}

.phase-content {
    width: 100%;
    max-width: 1200px;
}

/* Ajuste específico para fase 3 */
#phase-3 .phase-content {
    margin-top: -5rem;
}

#phase-3 h3 {
    margin-bottom: 0.3rem;
}

/* Fase 1: Título Principal */
.platform-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    margin-top: -1rem;
}

.platform-logo {
    animation: platformLogoGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(76, 175, 80, 0.3));
    transition: transform 0.3s ease;
    object-fit: contain;
    width: 300px !important;
    height: 200px !important;
    max-width: none !important;
    max-height: none !important;
}

.platform-logo:hover {
    transform: scale(1.1);
}

@keyframes platformLogoGlow {
    0%, 100% { 
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(76, 175, 80, 0.3));
    }
    50% { 
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 25px rgba(76, 175, 80, 0.6));
    }
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    margin-top: -1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.title-green { 
    color: #E8F5E8; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
.title-carbon { 
    color: #FFFFFF; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}
.title-verde { 
    color: #C8E6C9; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.main-subtitle {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    margin-top: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Animaciones Fase 1 */
.floating-leaf {
    position: absolute;
    font-size: 3rem;
    animation: floatLeaf 4s ease-in-out infinite;
    z-index: 999;
    opacity: 1;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
    pointer-events: none;
}

.leaf-1 { top: 10%; left: 5%; animation-delay: 0s; transform: scale(1.2); }
.leaf-2 { top: 70%; right: 10%; animation-delay: 1s; transform: scale(1.1); }
.leaf-3 { top: 25%; right: 25%; animation-delay: 2s; transform: scale(1.3); }
.leaf-4 { display: none !important; visibility: hidden !important; }
.leaf-5 { top: 80%; left: 20%; animation-delay: 4s; transform: scale(1.2); }
.leaf-6 { top: 50%; left: 2%; animation-delay: 5s; transform: scale(1.1); }

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

.phase-1-animations .floating-leaf {
    display: block !important;
    visibility: visible !important;
}

/* Fase 2: GREENSOFT */
.greensoft-section {
    text-align: center;
}

.greensoft-section h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.5rem;
}

.greensoft-section p {
    color: #E8F5E8;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.greensoft-logo-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.greensoft-logo {
    animation: greensoft-glow 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 15px rgba(76, 175, 80, 0.4));
    transition: transform 0.3s ease;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    width: 170px !important;
    max-width: 170px !important;
    height: auto !important;
}

.greensoft-logo:hover {
    transform: scale(1.08);
}

@keyframes greensoft-glow {
    0%, 100% { 
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 15px rgba(76, 175, 80, 0.4));
    }
    50% { 
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 25px rgba(139, 195, 74, 0.7));
    }
}

.greensoft-stages {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem 0;
    justify-content: center;
    height: 100%;
}

.stage-item {
    background: transparent;
    padding: 0.1rem 0;
    border: none;
    transform: translateX(-100px);
    opacity: 0;
    animation: slideInStage 0.6s ease-out forwards;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.stage-item:nth-child(1) { animation-delay: 0.2s; }
.stage-item:nth-child(2) { animation-delay: 0.4s; }
.stage-item:nth-child(3) { animation-delay: 0.6s; }
.stage-item:nth-child(4) { animation-delay: 0.8s; }
.stage-item:nth-child(5) { animation-delay: 1.0s; }

@keyframes slideInStage {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Efectos hover simplificados para iconos */
.stage-item:hover {
    transform: translateX(5px);
}

.stage-item:hover .stage-icon {
    transform: scale(1.1);
}

.stage-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #66BB6A, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stage-content {
    flex: 1;
}

.stage-content h4 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(139, 195, 74, 0.6);
    }
}

.stage-item[data-stage="1"] .stage-icon {
    animation-delay: 0s;
    background: linear-gradient(135deg, #FFC107, #FF9800, #F57C00);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.stage-item[data-stage="2"] .stage-icon {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, #4CAF50, #66BB6A, #2E7D32);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.stage-item[data-stage="3"] .stage-icon {
    animation-delay: 0.8s;
    background: linear-gradient(135deg, #2196F3, #03A9F4, #0277BD);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.stage-item[data-stage="4"] .stage-icon {
    animation-delay: 1.2s;
    background: linear-gradient(135deg, #9C27B0, #BA68C8, #7B1FA2);
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.stage-item[data-stage="5"] .stage-icon {
    animation-delay: 1.6s;
    background: linear-gradient(135deg, #00BCD4, #26C6DA, #0097A7);
    box-shadow: 0 3px 10px rgba(0, 188, 212, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* Fase 3: Energía */
#phase-3 h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 1rem;
}

.energy-animations {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.energy-circle {
    text-align: center;
    position: relative;
}

.energy-bolt {
    font-size: 3rem;
    animation: energyPulse 1.5s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { transform: scale(1); color: #FFF700; }
    50% { transform: scale(1.2); color: #FFD700; }
}

.efficiency-text {
    margin-top: 1rem;
    font-weight: bold;
    color: #E8F5E8;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.code-optimization {
    text-align: center;
}

.code-optimization span {
    color: #E8F5E8;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.code-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 150px;
    position: relative;
    overflow: hidden;
}

.code-line.optimized {
    background: #4CAF50;
    animation: codeOptimize 2s ease-in-out infinite;
}

@keyframes codeOptimize {
    0% { width: 150px; }
    50% { width: 100px; }
    100% { width: 80px; }
}

.carbon-reduction {
    text-align: center;
}

.co2-icon {
    font-size: 2rem;
    color: #FF6B6B;
    margin-bottom: 0.5rem;
}

.reduction-arrow {
    font-size: 2rem;
    color: #4CAF50;
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reduction-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

/* Fase 4: Sostenibilidad Digital */
#phase-4 h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.5rem;
}

.sustainability-message {
    font-size: 1rem;
    margin: 1rem 0;
    line-height: 1.4;
    color: #E8F5E8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.impact-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.metric-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 120px;
    animation: metricFloat 3s ease-in-out infinite;
}

.metric-item:nth-child(1) { animation-delay: 0s; }
.metric-item:nth-child(2) { animation-delay: 0.5s; }
.metric-item:nth-child(3) { animation-delay: 1s; }

.metric-item .metric-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes metricFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #C8E6C9;
    animation: countUp 2s ease-out;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

@keyframes countUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Fase 5: UNIMINUTO */
.uniminuto-section {
    text-align: center;
}

.uniminuto-section h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.5rem;
}

.uniminuto-section p {
    color: #E8F5E8;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    margin-bottom: 1rem;
}

.uniminuto-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.uniminuto-logo-img {
    animation: uniminutoGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(255, 193, 7, 0.3));
    transition: transform 0.3s ease;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

.uniminuto-logo-img:hover {
    transform: scale(1.05);
}

@keyframes uniminutoGlow {
    0%, 100% { 
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(255, 193, 7, 0.3));
    }
    50% { 
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 25px rgba(255, 193, 7, 0.6));
    }
}

.uniminuto-highlight {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.institution-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    color: #1B5E20;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: badgePulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.institution-badge i {
    font-size: 1rem;
    color: #1B5E20;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    }
}

.university-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 5rem;
    margin-left: 3rem;
    transform: translateX(2rem);
}

.value-item {
    background: transparent;
    padding: 0.3rem 0;
    border: none;
    animation: fadeInValue 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 0.9rem;
}

.value-item:nth-child(1) { animation-delay: 0.2s; }
.value-item:nth-child(2) { animation-delay: 0.4s; }
.value-item:nth-child(3) { animation-delay: 0.6s; }
.value-item:nth-child(4) { animation-delay: 0.8s; }
.value-item:nth-child(5) { animation-delay: 1.0s; }

@keyframes fadeInValue {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fase 6: Mensaje Final */
#phase-6 h3 {
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.5rem;
}

.final-message {
    font-size: 1rem;
    margin: 1rem 0;
    color: #E8F5E8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Indicadores de Progreso */
.phase-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #C8E6C9;
    transform: scale(1.2);
}

/* Control de Audio */
.audio-control-fixed {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.eco-audio-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.eco-audio-button.active {
    background: rgba(76, 175, 80, 0.8);
    animation: audioPulse 1s ease-in-out infinite;
}

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

/* Responsivo */
@media (max-width: 768px) {
    .sequential-banner {
        height: 80vh;
        min-height: 600px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .main-subtitle {
        font-size: 1.2rem;
    }
    
    .energy-animations {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .impact-metrics {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem auto;
        width: 200px;
    }
}
}

/* Partículas Flotantes Animadas */
.eco-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.leaf-1 { top: 20%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 60%; left: 85%; animation-delay: 1s; }
.leaf-3 { top: 30%; left: 70%; animation-delay: 2s; }
.leaf-4 { top: 80%; left: 20%; animation-delay: 3s; }
.leaf-5 { top: 10%; left: 50%; animation-delay: 4s; }
.energy-1 { top: 40%; left: 90%; animation-delay: 1.5s; }
.energy-2 { top: 70%; left: 60%; animation-delay: 2.5s; }
.code-1 { top: 15%; left: 80%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

/* Contenido del Banner */
.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner-title .eco-gradient {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #FFFFFF, #E8F5E8, #C8E6C9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.banner-description {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.eco-icon {
    color: #C8E6C9;
    margin-right: 0.5rem;
    animation: leafSway 2s ease-in-out infinite;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

/* Badge de Universidad */
.university-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    animation: badgeGlow 4s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }
}

.badge-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Información GREENSOFT */
.greensoft-info {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #C8E6C9;
}

.greensoft-logo {
    margin-right: 1rem;
}

.greensoft-icon {
    width: 50px;
    height: 50px;
    animation: logoSpin 8s linear infinite;
}

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

.greensoft-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Fase 3: Eficiencia Energética Mejorada */
.energy-showcase {
    display: block;
    margin: -1rem 0 0 0;
    padding: 0.5rem;
    max-height: 15vh;
    overflow: visible;
    position: relative;
    top: -1rem;
}

.energy-showcase h4 {
    color: #FFFFFF;
    font-size: 0.5rem;
    margin-bottom: 0.02rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Comparación de lenguajes */
.language-comparison {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.05rem;
    border-radius: 2px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.language-bars {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.lang-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLang 0.8s ease-out forwards;
    opacity: 0;
}

.lang-bar:nth-child(1) { animation-delay: 0.2s; }
.lang-bar:nth-child(2) { animation-delay: 0.4s; }
.lang-bar:nth-child(3) { animation-delay: 0.6s; }
.lang-bar:nth-child(4) { animation-delay: 0.8s; }

.lang-name {
    width: 60px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-size: 0.8rem;
}

.energy-bar {
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.energy-fill {
    height: 100%;
    border-radius: 10px;
    animation: fillEnergy 2s ease-out forwards;
    position: relative;
}

.c-energy { background: linear-gradient(90deg, #4CAF50, #8BC34A); }
.python-energy { background: linear-gradient(90deg, #FF5722, #F44336); }
.java-energy { background: linear-gradient(90deg, #FF9800, #FF5722); }
.js-energy { background: linear-gradient(90deg, #FFC107, #FF9800); }

.energy-value {
    width: 60px;
    text-align: right;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* Optimización de código */
.code-optimization-showcase {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.05rem;
    border-radius: 2px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.optimization-comparison {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0.1rem 0;
}

.code-block {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1px;
    padding: 0.02rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
    animation: pulseBlock 3s ease-in-out infinite;
    min-height: 6px;
}

.code-block.before {
    border-color: rgba(255, 87, 34, 0.5);
    animation-delay: 0s;
}

.code-block.after {
    border-color: rgba(76, 175, 80, 0.5);
    animation-delay: 1.5s;
}

.code-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.code-title {
    color: #FFFFFF;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.lines-count {
    color: #8BC34A;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.code-visual {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1rem 0;
}

.code-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: typeLine 2s ease-in-out infinite;
}

.code-line.short { width: 60%; }
.code-line.medium { width: 80%; }
.code-line.long { width: 100%; }

.code-line.optimized {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.optimization-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.optimization-text {
    color: #8BC34A;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.arrow {
    font-size: 2rem;
    color: #8BC34A;
    animation: pulseArrow 1.5s ease-in-out infinite;
}

.savings-text {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.energy-meter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.energy-meter.high {
    background: rgba(255, 87, 34, 0.2);
    border: 1px solid rgba(255, 87, 34, 0.5);
}

.energy-meter.low {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.energy-icon {
    font-size: 1.2rem;
}

.energy-text {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* Métricas en tiempo real */
.energy-metrics {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.03rem;
    border-radius: 2px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    animation: floatCard 3s ease-in-out infinite;
    min-width: 40px;
    font-size: 0.7rem;
}

.metric-card:nth-child(1) { animation-delay: 0s; }
.metric-card:nth-child(2) { animation-delay: 1s; }
.metric-card:nth-child(3) { animation-delay: 2s; }

.metric-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.metric-number {
    display: block;
    font-size: 0.7rem;
    font-weight: bold;
    color: #8BC34A;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    margin: 0.02rem 0;
    line-height: 1;
}

.metric-label {
    color: #FFFFFF;
    font-size: 0.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    line-height: 1;
}

/* Animaciones para eficiencia energética */
@keyframes slideInLang {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fillEnergy {
    from { width: 0; }
    to { width: var(--target-width, 100%); }
}

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

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

@keyframes typeLine {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== ANIMACIÓN ESPECTACULAR FASE 4: SOSTENIBILIDAD DIGITAL ===== */
/* Inspirada en greensoftware.foundation y educaambienteweb.com */

#phase-4 {
    position: relative;
    overflow: hidden;
}

.digital-sustainability-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Edificios animados de sostenibilidad digital */
.building {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #263238, #37474F, #455A64);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.4);
    animation: buildingGlow 3s ease-in-out infinite alternate;
}

.building-1 { left: 8%; width: 35px; height: 70px; animation-delay: 0s; }
.building-2 { left: 18%; width: 30px; height: 100px; animation-delay: 0.5s; }
.building-3 { left: 28%; width: 40px; height: 85px; animation-delay: 1s; }
.building-4 { right: 28%; width: 32px; height: 75px; animation-delay: 1.5s; }
.building-5 { right: 18%; width: 38px; height: 95px; animation-delay: 2s; }
.building-6 { right: 8%; width: 30px; height: 80px; animation-delay: 2.5s; }

@keyframes buildingGlow {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 150, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 35px rgba(0, 255, 150, 0.8);
        transform: scale(1.03);
    }
}

/* Ventanas inteligentes de los edificios */
.building::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 85%;
    background: linear-gradient(to bottom, 
        rgba(0, 255, 150, 0.9) 0%, 
        rgba(0, 255, 150, 0.9) 8%, 
        transparent 8%, 
        transparent 16%,
        rgba(0, 255, 150, 0.9) 16%,
        rgba(0, 255, 150, 0.9) 24%,
        transparent 24%,
        transparent 32%,
        rgba(0, 255, 150, 0.9) 32%,
        rgba(0, 255, 150, 0.9) 40%,
        transparent 40%,
        transparent 48%,
        rgba(0, 255, 150, 0.9) 48%,
        rgba(0, 255, 150, 0.9) 56%,
        transparent 56%);
    animation: smartWindows 4s infinite;
}

@keyframes smartWindows {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Montañas verdes tecnológicas */
.tech-mountain {
    position: absolute;
    bottom: 0;
    border-style: solid;
    border-color: transparent transparent #2E7D32 transparent;
    opacity: 0.8;
}

.tech-mountain-1 { left: 0; border-width: 0 0 120px 80px; animation: mountainFloat 8s ease-in-out infinite; }
.tech-mountain-2 { left: 60px; border-width: 0 0 100px 70px; animation: mountainFloat 8s ease-in-out infinite; animation-delay: 1s; }
.tech-mountain-3 { right: 60px; border-width: 0 0 110px 75px; animation: mountainFloat 8s ease-in-out infinite; animation-delay: 2s; }
.tech-mountain-4 { right: 0; border-width: 0 0 90px 60px; animation: mountainFloat 8s ease-in-out infinite; animation-delay: 3s; }

@keyframes mountainFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Pájaros digitales volando */
.digital-bird {
    position: absolute;
    font-size: 14px;
    color: #81C784;
    animation: flyDigitalBird 10s linear infinite;
}

.digital-bird-1 { top: 18%; left: -40px; animation-delay: 0s; }
.digital-bird-2 { top: 28%; left: -40px; animation-delay: 3s; }
.digital-bird-3 { top: 23%; left: -40px; animation-delay: 6s; }

@keyframes flyDigitalBird {
    0% { left: -40px; transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-2deg); }
    100% { left: calc(100% + 40px); transform: rotate(0deg); }
}

/* Código sostenible flotante */
.floating-sustainable-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(129, 199, 132, 0.9);
    animation: floatSustainableCode 12s linear infinite;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.sustainable-code-1 { top: 12%; left: -120px; animation-delay: 0s; }
.sustainable-code-2 { top: 35%; left: -140px; animation-delay: 4s; }
.sustainable-code-3 { top: 55%; left: -130px; animation-delay: 8s; }

@keyframes floatSustainableCode {
    0% { left: -150px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 150px); opacity: 0; }
}

/* Hojas verdes tecnológicas */
.tech-leaf {
    position: absolute;
    font-size: 18px;
    color: #4CAF50;
    animation: techLeafFall 15s linear infinite;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.tech-leaf-1 { top: -25px; left: 12%; animation-delay: 0s; }
.tech-leaf-2 { top: -25px; left: 32%; animation-delay: 4s; }
.tech-leaf-3 { top: -25px; left: 52%; animation-delay: 8s; }
.tech-leaf-4 { top: -25px; left: 72%; animation-delay: 12s; }

@keyframes techLeafFall {
    0% { top: -25px; transform: rotate(0deg); opacity: 1; }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
    100% { top: calc(100% + 25px); transform: rotate(360deg); opacity: 0; }
}

/* Sol de energía sostenible */
.sustainable-sun {
    position: absolute;
    top: 12%;
    right: 12%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #FFC107, #FF8F00);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
    animation: sustainableSunPulse 5s ease-in-out infinite;
}

.sustainable-sun::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 50%;
    animation: sustainableSunRays 4s linear infinite;
}

@keyframes sustainableSunPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 40px rgba(255, 193, 7, 1);
    }
}

@keyframes sustainableSunRays {
    0% { transform: rotate(0deg); opacity: 1; }
    50% { opacity: 0.6; }
    100% { transform: rotate(360deg); opacity: 1; }
}

/* Nubes inteligentes */
.smart-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    animation: smartCloudFloat 18s linear infinite;
}

.smart-cloud::before,
.smart-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
}

.smart-cloud-1 {
    top: 8%;
    width: 40px;
    height: 16px;
    left: -70px;
    animation-delay: 0s;
}

.smart-cloud-1::before {
    top: -8px;
    left: 8px;
    width: 24px;
    height: 24px;
}

.smart-cloud-1::after {
    top: -4px;
    right: 8px;
    width: 20px;
    height: 20px;
}

.smart-cloud-2 {
    top: 22%;
    width: 35px;
    height: 14px;
    left: -60px;
    animation-delay: 6s;
}

.smart-cloud-2::before {
    top: -6px;
    left: 6px;
    width: 20px;
    height: 20px;
}

.smart-cloud-2::after {
    top: -3px;
    right: 6px;
    width: 16px;
    height: 16px;
}

@keyframes smartCloudFloat {
    0% { left: -80px; }
    100% { left: calc(100% + 80px); }
}

/* Conexiones de red sostenible */
.network-connection {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, rgba(129, 199, 132, 0.8), rgba(129, 199, 132, 0.2));
    animation: networkPulse 3s ease-in-out infinite;
}

.connection-1 { top: 40%; left: 15%; height: 30px; animation-delay: 0s; }
.connection-2 { top: 35%; left: 25%; height: 40px; animation-delay: 1s; }
.connection-3 { top: 45%; right: 25%; height: 25px; animation-delay: 2s; }
.connection-4 { top: 38%; right: 15%; height: 35px; animation-delay: 1.5s; }

@keyframes networkPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Datos sostenibles flotantes */
.floating-data {
    position: absolute;
    font-size: 12px;
    color: rgba(129, 199, 132, 0.8);
    animation: floatData 8s ease-in-out infinite;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

.data-1 { top: 20%; left: 40%; animation-delay: 0s; }
.data-2 { top: 60%; left: 60%; animation-delay: 2s; }
.data-3 { top: 40%; left: 80%; animation-delay: 4s; }

@keyframes floatData {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    25% { transform: translateY(-15px) rotate(2deg); opacity: 1; }
    50% { transform: translateY(-10px) rotate(-2deg); opacity: 1; }
    75% { transform: translateY(-20px) rotate(1deg); opacity: 1; }
}

/* Asegurar que el contenido esté por encima de la animación */
#phase-4 .phase-content {
    position: relative;
    z-index: 10;
}

/* Visual del Banner */
.banner-visual {
    position: relative;
}

.sustainability-circle {
    width: 150px;
    height: 150px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: circleRotate 10s linear infinite;
    position: relative;
}

@keyframes circleRotate {
    0% { transform: rotate(0deg); border-color: rgba(255, 255, 255, 0.3); }
    25% { border-color: rgba(200, 230, 201, 0.5); }
    50% { transform: rotate(180deg); border-color: rgba(255, 255, 255, 0.3); }
    75% { border-color: rgba(129, 199, 132, 0.5); }
    100% { transform: rotate(360deg); border-color: rgba(255, 255, 255, 0.3); }
}

.circle-content {
    text-align: center;
    color: white;
}

.circle-content i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: globePulse 2s ease-in-out infinite;
}

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

.circle-content span {
    font-size: 0.9rem;
    font-weight: bold;
}

/* Métricas Ecológicas */
.eco-metrics {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.metric {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.metric-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #C8E6C9;
    animation: numberCount 3s ease-out;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    display: block;
}

@keyframes numberCount {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Control de Audio */
.audio-control {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.eco-audio-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.eco-audio-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.eco-audio-button.active {
    background: rgba(76, 175, 80, 0.8);
    animation: audioPulse 1s ease-in-out infinite;
}

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

/* Responsivo */
@media (max-width: 768px) {
    .eco-banner {
        padding: 2rem 1rem;
        min-height: 250px;
    }
    
    .banner-title .eco-gradient {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .greensoft-info {
        flex-direction: column;
        text-align: center;
    }
    
    .greensoft-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .sustainability-circle {
        width: 120px;
        height: 120px;
    }
    
    .circle-content i {
        font-size: 2rem;
    }
    
    .eco-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .banner-title .eco-gradient {
        font-size: 1.5rem;
    }
    
    .university-badge {
        padding: 0.75rem;
    }
    
    .badge-text {
        font-size: 0.85rem;
    }
}

/* Audio controls removed - no longer needed */