.index-page {
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

.institucional-page {
    min-height: calc(100vh - 140px);
}


.hero-section {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 74, 109, 0.7) 0%, rgba(29, 192, 214, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.hero-section h5 {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--secondary-accent);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    opacity: 0.95;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(247, 239, 174, 0.5), rgba(241, 238, 26, 0.952));
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


.content-section {
    padding: 3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary-accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-accent), var(--primary-dark));
    margin: 0 auto;
    border-radius: 2px;
}


.content-block {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.content-block p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.intro-text {
    font-size: 1.2rem !important;
    color: var(--primary-dark) !important;
    font-weight: 500;
}


.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.mission-card { border-top-color: var(--primary-accent); }
.vision-card { border-top-color: var(--success-green); }
.values-card { border-top-color: var(--secondary-accent); }

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--white);
}

.mission-card .value-icon { background: var(--primary-accent); }
.vision-card .value-icon { background: var(--success-green); }
.values-card .value-icon { background: var(--secondary-accent); }

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--medium-gray);
    margin: 0;
}


.quote-block {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 650px;
    border-left: 4px solid var(--primary-accent);
}

.quote-block blockquote {
    margin: 0;
    text-align: center;
}

.quote-block p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.quote-block cite {
    font-size: 0.9rem;
    color: var(--primary-accent);
    font-weight: 600;
}


.energy-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 50%, var(--light-gray) 100%);
    margin: 2rem 0;
    border-radius: 20px;
    border: none;
}

.energy-sources {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.energy-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    min-width: 120px;
}

.energy-source:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.energy-source i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-accent);
}

.energy-source .energy-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.energy-source span {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 200px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        white-space: normal;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }
    
    .hero-section h5 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .energy-sources {
        gap: 1.5rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0;
        min-height: 200px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        white-space: normal;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
        padding: 0 1rem;
    }
    
    .hero-section h5 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .quote-block {
        padding: 1.5rem;
    }
    
    .quote-block p {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding: 1.2rem 0;
        min-height: 200px;
    }
    
    .hero-title {
        font-size: 1.4rem;
        white-space: normal;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
        padding: 0 1rem;
    }
    
    .hero-section h5 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
}

/* Mejora específica para el manejo del título en dispositivos móviles */
@media (max-width: 768px) {
    .hero-title {
        text-align: center;
        display: block;
        white-space: normal !important;
        word-spacing: normal;
        letter-spacing: normal;
    }
}
