body {
    font-family: 'Poppins', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
}

header {
    background-color: #fff;
    color: #038d4b;
    padding: 15px 50px; /* Aumentado el padding horizontal */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Cambiado a space-between */
    position: fixed; /* Opcional: para que el header quede fijo */
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra sutil */
}

.logo-placeholder {
    width: 300px; /* Reducido el ancho */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineado a la izquierda */
}

.logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

nav {
    margin: 0; /* Quitado el margin-top */
    display: flex;
    align-items: center;
}

nav a {
    color: #038d4b;
    margin: 0 15px;
    text-decoration: none;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:last-child {
    margin-right: 0; /* Quita el margen del último elemento */
}

nav a:hover {
    color: #026937;
    text-decoration: none;
    border-bottom: 2px solid #038d4b;
}

strong {
    margin-top: 20px;
    font-size: 2em;
}

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

.hero {
    background-image: url('../img/portada.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 90px;
    opacity: 1; /* Cambiado a 1 para que siempre sea visible */
    transform: none; /* Sin transformación para el hero */
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.8s forwards; /* Agregamos un delay de 0.5s */
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #45a049;
}

section {
    padding: 20px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

#historia{
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#historia p {
    line-height: 1.6;
    margin: 20px auto;
}

#historia h2 {
    margin-bottom: 30px;
}

#historia p {
    font-size: 1.1em;
    color: #666;
}

#sdp {
    background-color: #fffde7;
}

#acerca_de {
    background-color: white;
}

#contacto {
    background-color: #e8f5e9;
}

.programa {
    display: inline-block;
    width: 30%;
    margin: 1%;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.programa .image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #999;
}

.testimonio {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #038d4b; /* Agregamos el borde verde */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonio:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonio-content {
    display: flex;
    align-items: flex-start; /* Cambiado a flex-start para mejor alineación */
    gap: 20px;
}

.testimonio .image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 50px;
}

.testimonio-texto {
    flex-grow: 1;
}

.testimonio-texto p {
    margin: 0 0 10px 0;
    font-style: italic;
}

.testimonio-texto .autor {
    color: #038d4b;
    font-weight: 600;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobre-image-placeholder {
    width: 800px;
    height: 400px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #999;
}

form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

input,textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
}

button:hover {
    background-color: #45a049;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 20px;

}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
    min-height: 600px; /* Aumentado para más altura */
}

.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
    max-width: 500px; /* Limitar el ancho máximo */
}

.footer-logo-container {
    text-align: left;
    margin-bottom: 20px;
    width: 100%; /* Asegurar que ocupe el ancho de la columna */
}

.footer-logo {
    width: 100%; /* Hacer que la imagen ocupe el ancho del contenedor */
    max-width: 300px; /* Limitar el tamaño máximo */
    height: auto; /* Mantener la proporción */
    /* filter: brightness(0) saturate(50%) invert(95%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(88%) contrast(90%); */
    opacity: 0.85;
    transition: all 0.3s ease;
}

.contact-info h2,
.social-section h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start; /* Alineación a la izquierda */
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-section {
    flex: 1.5; /* Aumentado para dar más espacio al mapa */
    height: 100%;
    min-height: 600px; /* Aumentado la altura mínima */
}

.map-section iframe {
    width: 100%;
    height: 100%;
    min-height: 600px; /* Asegura la altura mínima del iframe */
    border-radius: 8px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-left, 
    .map-section {
        width: 100%;
    }

    .map-section {
        min-height: 300px;
    }

    .contact-info p {
        justify-content: center;
    }

    .testimonio-content {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonio .image-placeholder {
        margin-bottom: 15px;
    }

    .testimonio {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Carrusel básico */
.carrusel-container {
    width: 100%;
    max-width: 1000px;
    /* Aumentado de 800px */
    height: 600px;
    /* Aumentado de 400px */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carrusel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
}

.carrusel-slide.active {
    opacity: 1;
}

.carrusel-slide img {
    width: 100%;
    height: 500px;
    /* Aumentado de 300px */
    object-fit: cover;
    border-radius: 8px;
}

.carrusel-slide p {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

.carrusel-prev,
.carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carrusel-prev:hover,
.carrusel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carrusel-prev {
    left: 20px;
}

.carrusel-next {
    right: 20px;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #038d4b;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #026937;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.scroll-to-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease-in;
}