.container-completo {
    width: 100%;
    height: 100vh; /* Usa toda la altura de la pantalla */
    margin: 0;
    position: relative; /* Asegura que los elementos hijos respeten la capa */

}

/* Fondo con superposición oscura */
.container-completo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/Fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(30%); /* Oscurece la imagen */
    z-index: -1; /* Envía la imagen de fondo detrás del contenido */
}

/* Hero section */

.Hero-section {
    width: 100%; /* Ocupa el 100% del ancho de la pantalla */
    height: 93vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centra el contenido verticalmente */
    text-align: center;
}

.Hero-section .T-nombre {
    font-size: 50px;
    color: #b30009;
    font-family: 'Poppins';
    font-weight: bold;
    opacity: 0; /* Inicia invisible */
    animation: fadeInUp 1s ease-out forwards;
}

.Hero-section .P-frase {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-style: italic;
    color: white;
    max-width: 60%; /* Limita el ancho del texto para que no se vea muy largo en pantallas grandes */
    opacity: 0; /* Inicia invisible */
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s; /* Se retrasa para que aparezca después del título */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specialty-section */

.Specialty-section {
    background-color: rgb(255, 255, 247);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.T-Specialty {
    font-size: 28px;
    font-family: 'Poppins';
    font-weight: bold;
    margin-bottom: 20px;
    color: #b30009; /* Un color de título vibrante */
}

.specialty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px 0;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
}

.T-specialty-item {
    background-color: transparent;
    padding: 20px;
    width: 90%;
    max-width: 350px; /* Limita el tamaño máximo para las tarjetas */
    text-align: center;
    margin: 10px;
    transition: transform 0.3s ease;
}

.T-specialty-item:hover {
    transform: scale(1.05); /* Agranda ligeramente la tarjeta al pasar el mouse */
}

.specialty-img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Bordes curvados para la imagen */
    margin-bottom: 15px;
}

.T-Nombre-especialidad {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-size: 20px;
    color: #0b0b0b;
    margin-bottom: 10px;
}

.description {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-size: 12px;
    color: #000000;
    margin-bottom: 20px;
}

.btn-proyectos{
    border: 1px solid #b30009;
    border-radius: 8px;
    background: none;
    padding: 10px 15px;
    font-family: "Poppins", serif;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    margin: 10px;
    transition: 0.8s;
    position: relative;
    overflow: hidden;
}

.btn-proyectos{
    color: #212121;
}

.btn-proyectos:hover{
color: #ffffff;
}

.btn-proyectos::before{
content: "";
position: absolute;
left: 0;
width: 100%;
height: 0%;
background: #b30009;
z-index: -1;
transition: 0.8s;
}

.btn-proyectos::before{
bottom: 0;
border-radius: 8px;
}

.btn-proyectos:hover::before{
height: 100%;
}

/* Learning Section */
.learn-with-we {
    position: relative;
    width: 90%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
    overflow: hidden;
}

/* Agrega la imagen como un pseudo-elemento */
.learn-with-we::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/Aprende.png') no-repeat center center/cover;
    filter: brightness(40%); /* Oscurece solo la imagen */
    z-index: -1; /* Lo envía detrás del contenido */
}

/* Contenedor del contenido para que no se oscurezca */
.learn-content {
    position: relative;
    z-index: 1;
}

.T-learn-title {
    font-size: 21px;
    font-family: 'Poppins';
    font-weight: bold;
    margin-bottom: 20px;
}

.learn-description {
    font-size: 12px;
    font-family: "Poppins", serif;
    margin-bottom: 20px;
}

/* Botón */
.learn-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(45deg, #b30009, #ff4f5e); /* Degradado de rojo */
    border: none;
    border-radius: 15px 50px 15px 50px;
    cursor: pointer;
    transition: 
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        border-radius 0.3s cubic-bezier(0.76, 0, 0.24, 1),
        box-shadow 0.3s ease-in-out;
}

.learn-btn:hover {
    border-radius: 50px 10px 50px 15px;
    color: #212021;
    background: linear-gradient(45deg, #ff4f5e, #b30009); /* Invertir el degradado */
    transform: scale(1.07); /* Ligero aumento al pasar el mouse */
    box-shadow: 0 8px 15px rgba(255, 79, 94, 0.3); /* Sombra suave */
}

/* Sección Cursos */
.courses-container {
    text-align: center;
    width: 90%;
    padding: 40px 20px;
    background: #212021; /* Fondo oscuro */
}

/* Título y descripción */
.courses-title {
    font-family: 'Poppins';
    font-weight: bold;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 10px;
}

.courses-description {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-size: 16px;
    color: #bfbfbf;
    margin-bottom: 30px;
}

/* Contenedor de cursos */
.course-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Tarjetas de los cursos */
.course-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1e1e1e;
    color: white;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animación de escala y sombra */
.course-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(255, 77, 77, 0.6);
}

/* Imagen del curso */
.course-img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

/* Contenido de la tarjeta */
.course-content {
    width: 90%;
    text-align: center;
}

.course-content h2 {
    font-size: 17px;
    font-family: 'Poppins';
    font-weight: bold;
    margin-bottom: 5px;
}

.course-content p {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    font-size: 13px;
    color: #bfbfbf;
}



/* Diseño responsivo para PC */
@media (min-width: 1024px) {
    .Hero-section {
        height: 92vh;
    }
    
    .Specialty-section{
        justify-content: center;
        padding: 20px;
        height: 100vh;
    }

    .container-specialty-all{
        display: flex;
        flex-direction: row;
    }
    
    .T-Nombre-especialidad {
        font-size: 27px;
        color: #000000;
        margin-bottom: 10px;
    }
    
    .description {
        font-size: 15px;
        color: #000000;
    }
    
    .learn-with-we {
        width: 96.85%;
    }

    .T-learn-title {
        font-size: 53px;
    }
    
    .learn-description {
        font-size: 19px;
    }

    .courses-container {
        width: 96.85%;
    }
    .course-all {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columnas */
        gap: 20px;
        justify-items: center;
        justify-content: center;
    }

    .course-card {
        width: 100%;
        max-width: 350px;
    }

}