/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comfortaa', cursive;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header superior */
.top-header {
    background: linear-gradient(135deg, #46bc96, #1ec9a8);
    width: 100%;
}

.top-header .social-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 18px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Barra de navegación principal */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 999;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #27ae60;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Hero image */
.hero-image {
    width: 100%;
    margin-top: -80px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Secciones generales */
.section {
    padding: 60px 0;
    width: 100%;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.section h2.sub {
    font-size: 20px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 24px;
    color: #27ae60;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.sup {
    font-size: 36px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #5f5f5f;
    text-align: center;
    font-size: 18px;
}

/* Sección Conócenos */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.team-member img {
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Sección Candidato */
.candidato {
    background: linear-gradient(135deg, #46bc96, #1ec9a8);
    color: white;
}

.candidato h2 {
    color: white;
}

.candidate-content {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 40px auto 0;
    gap: 40px;
}

.candidate-image {
    flex: 1;
}

.candidate-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 5px solid white;
}

.candidate-info {
    flex: 2;
    text-align: left;
}

.candidate-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Sección Programa */
#programa {
    text-align: center; /* Centra todo el contenido de la sección */
}

.programa-top-image, .programa-bottom-image {
    max-width: 100%;
    margin: 0 auto 30px;
    display: block;
    border-radius: 8px;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #46bc96, #1ec9a8);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin: 20px ;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.download-button i {
    margin-right: 8px;
}

/* Sección Redes Sociales */
.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.social-grid a {
    color: #46bc96;
    font-size: 40px;
    transition: transform 0.3s, color 0.3s;
}

.social-grid a:hover {
    transform: scale(1.2);
    color: #016A4D;
}

/* Sección Contacto */
#contacto {
    text-align: center; /* Centra todo el contenido de la sección */
}

.contact-button {
    display: inline-block;
    background: linear-gradient(135deg, #46bc96, #1ec9a8);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin: 20px 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #46bc96, #1ec9a8);
    color: white;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    text-align: center;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #f1c40f;
}

.footer-column img {
    margin-right: 15px;
    margin-bottom: 15px;
    max-width: 250px;
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .candidate-content {
        flex-direction: column;
        text-align: center;
    }
    
    .candidate-info {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}