.container1 {
    font-family: Arial, sans-serif;
    margin: 50px auto;
    padding: 10px;
}

.welcome-hero2 {
    background-image: url('../images/servicios.jpeg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.welcome-hero2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.726);
}

.welcome-hero-txt {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s ease forwards;
}

.welcome-hero-txt h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.welcome-hero-txt h2 {
    color: white;
    text-shadow: 
    0 0 10px cyan,
    0 0 20px cyan,
    0 0 4px ;
}

.welcome-hero-txt p {
    font-size: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




h1 {
    width: 100%;
    font-size: 3.5em;
    color: #1e3a5f;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 7px;
    background-color: #ff6600;
}

.container1 p {
    color: #040404;
    font-size: 1.2em;
    line-height: 1.6;
    text-align: justify;
}

p {
    color: #040404;
    font-size: 1.2em;
    line-height: 1.6;

}

.filtros {
    margin-bottom: 30px;
    text-align: center;
}

.filtro-btn {
    background-color: #ff6600a9;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: bold;
}

.filtro-btn:hover, .filtro-btn.activo {
    background-color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.curso {
    width: 300px;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.curso:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.curso img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.curso-info {
    padding: 13px;
}

.curso-titulo {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.curso-descripcion {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(226, 132, 74, 0.9);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.curso-descripcion p {
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.curso-descripcion .solicitar-btn {
    background-color: white;
    color: #e2844a;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

.curso-descripcion .solicitar-btn:hover {
    background-color: #1e3a5f;
    color: white;
}

.curso:hover .curso-descripcion {
    opacity: 1;
}

@keyframes aparecer {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.curso {
    animation: aparecer 0.5s ease-out;
}

/* Reglas responsivas */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 2.5em;
        margin-top: 1rem;
    }

    .header p {
        font-size: 1em;
    }

    .filtro-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .galeria {
        gap: 20px;
    }

    .curso {
        width: 100%;
        max-width: 300px;
    }

    .curso-titulo {
        font-size: 1.1em;
    }

    .curso-descripcion {
        font-size: 14px;
    }
}

/* Para pantallas aún más pequeñas */
@media (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }

    .header h1::after {
        width: 150px;
    }

    .filtro-btn {
        padding: 8px 16px;
        font-size: 0.8em;
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .whatsapp-button img {
    width: 60px;
    height: 60px;
  }


