* {

    max-width: 100%;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #1b2b64, #0874b9);
    color: white;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1a1a1a;
}

.logo img {
    height: 50px;  /* Ajusta el tamaño del logo */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links li {
    padding: 8px;
}

.nav-links ul {
    display: flex;              
    list-style: none;       
    margin: 0;                 
    padding: 0;
    gap: 20px;                  
}

.nav-links .btn {
    margin-left: 10px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    flex-wrap: wrap;
}

.hero-content {
    max-width: 600px;
    overflow: visible;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
}

.hero-content h1 span {
    color: #ffc107; /* Amarillo */
}

.hero-content p {
    font-size: 18px;
    margin-top: 20px;
}

.hero-content .btn-lg {
    margin-top: 30px; /* más separación arriba */
}

.nota {
    font-size: 14px;
    margin-top: 10px;
    color: #ccc;
}

.hero-image img {
    width: 550px;
    max-width: 100%;
    border-radius: 15px;
}

.btn-lg{
    background-color: #ffc107;
    border: 2px solid #ffc107;
    color: #212529;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-lg:hover{
    background-color: #e0a800;
    border-color: #e0a800;
    color: white;
}

.descripcion {
    position: relative;
    display: inline-block; 
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 30px;
}

.descripcion::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 450px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
}
.btn-lg {
    display: inline-block; 
}

.cursos {
    padding: 60px 50px;
    background-color: #0e1a2b;
    color: white;
    text-align: center;
}

.cursos h2 {
    font-size: 55px;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 22px;
    color: #ccc;
    margin-bottom: 40px;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.card.curso {
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 230px;
    height: 380px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card.curso img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card .contenido {
    transition: transform 0.3s ease;
}

.card:hover .contenido {
    transform: translateY(-15px);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
}

.curso-1:hover {
    box-shadow: 0 0 20px #00aaff;
    border-color: #00aaff;
}
.curso-2:hover {
    box-shadow: 0 0 20px #00cc66;
    border-color: #00cc66;
}
.curso-3:hover {
    box-shadow: 0 0 20px #ff3333;
    border-color: #ff3333;
}
.curso-4:hover {
    box-shadow: 0 0 20px #cc33cc;
    border-color: #cc33cc;
}

.card .empezar {
    transition: all 0.3s ease;
    font-size: 15px;
}

.curso-1:hover .empezar {
    color: #00aaff;
    border-bottom-color: #00aaff;
}
.curso-2:hover .empezar {
    color: #00cc66;
    border-bottom-color: #00cc66;
}
.curso-3:hover .empezar {
    color: #ff3333;
    border-bottom-color: #ff3333;
}
.curso-4:hover .empezar {
    color: #cc33cc;
    border-bottom-color: #cc33cc;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
}

.card p {
    font-size: 14px;
    color: #ddd;
}

.empezar {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

.card:hover .empezar {
    opacity: 1;
    transform: translateY(0);
}

.curso-1 {
    background: linear-gradient(to bottom right, #003366, #004080);
}
.curso-2 {
    background: linear-gradient(to bottom right, #003300, #006600);
}
.curso-3 {
    background: linear-gradient(to bottom right, #660000, #990000);
}
.curso-4 {
    background: linear-gradient(to bottom right, #4d004d, #800080);
}

.halo-container {
    position: relative;
    display: inline-block;
}


.halo-container img {
    position: relative;
    z-index: 1;
    border-radius: 10px;
}

.footer {
    background-color: #111;
    color: #ccc;
    padding: 40px 50px 20px;
    text-align: left;
    font-size: 15px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-info,
.footer-social {
    flex: 1 1 250px;
    padding-left: 0;
}

.footer-info h3,
.footer-social h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-social .social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-social .social-icons a {
    color: #ffc107;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social .social-icons a:hover {
    transform: scale(1.2);
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.footer-info p {
    margin: 10px 0;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.footer-info p i {
    color: #ffc107;
    font-size: 18px;
    min-width: 20px;
}

.footer-info a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10;
}

/* Hero */
.hero-nosotros {
    position: relative;
    width: 100%;
    height: 350px; /* Ajusta altura */
    background-image: url(../img/page-header.jpg); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-left: 82px;
    color: white;
}

.hero-nosotros::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
}

.hero-content p {
    font-size: 20px;
}


/* Quiénes Somos */
.quienes-somos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 50px;
    flex-wrap: wrap;
    background-color: #0e1a2b;
}

.quienes-somos .contenido {
    max-width: 600px;
    padding-left: 40px;
}

.quienes-somos h2 {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 20px;
}

.quienes-somos p {
    font-size: 20px;
    line-height: 1.4;
    color: #ddd;
    text-align: justify;
}

.quienes-somos .imagen img {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Propósito Final */
.proposito {
    padding: 60px 50px;
    text-align: center;
    background-color: #142238;
}

.proposito h2 {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 30px;
}

.proposito .cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.proposito .card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.proposito .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.proposito .card i {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 15px;
}

.proposito .card p {
    font-size: 16px;
    color: #ddd;
}

/* Declaración de Fe (Acordeón) */
.declaracion {
    padding: 60px 50px;
    background-color: #0e1a2b;
}

.declaracion h2 {
    font-size: 40px;
    text-align: center;
    color: #ffc107;
    margin-bottom: 30px;
}

.acordeon .item {
    background: #111;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.acordeon-btn {
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 18px 20px;
    font-size: 18px;
    text-align: left;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.acordeon-btn:hover {
    background: #222;
}

.acordeon-btn span {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.acordeon-btn.active span {
    transform: rotate(45deg);
}

.acordeon .contenido {
    max-height: 0;
    overflow: hidden;
    background: #0e1a2b;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px; 
    display: flex;
    align-items: center;
    word-wrap: break-word;
}

.acordeon .contenido p {
    margin: 0;
    padding: 50px 0; 
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px; 
        right: 0;
        width: 100%;
        background-color: #1a1a1a;
        z-index: 5;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .nav-links ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h1 span {
        display: block;
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .descripcion::after {
        width: 80%;
    }

    .hero-image img {
        width: 100%;
        max-width: 350px;
        margin-top: 20px;
    }

    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card.curso {
        max-width: 100%;
        height: auto;
    }

    .hero-nosotros {
        height: 250px; 
        padding-left: 20px;
        text-align: center;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 32px; /* Ajusta tamaño */
    }

    .hero-content p {
        font-size: 16px;
    }

    .quienes-somos {
        flex-direction: column; 
        text-align: center;
        padding: 40px 20px;
    }

    .quienes-somos .contenido {
        max-width: 100%;
        padding-left: 0;
    }

    .quienes-somos h2 {
        font-size: 28px;
    }

    .quienes-somos p {
        font-size: 16px;
        text-align: justify;
    }

    .quienes-somos .imagen img {
        max-width: 100%;
        margin-top: 20px;
    }

    .proposito .cards {
        flex-direction: column;
        align-items: center;
    }

    .proposito .card {
        width: 90%;
    }

    .acordeon-btn.active + .contenido {
        max-height: 70vh !important; 
        overflow-y: auto; 
        padding: 10px 15px;
    }

    .acordeon .contenido p {
        font-size: 14px;
        padding: 10px 0;
        text-align: justify;
    }

    .acordeon-btn {
        font-size: 16px;
        padding: 14px;
    }
}
