/* ==== Reset & Base ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
} */

/* ==== Utilidades ==== */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 2rem;
    color: #02b6ba;
}

/* ==== Botón ==== */
.btn,
.formulario button {
    display: inline-block;
    background: #061c77;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:hover,
.formulario button:hover {
    background: #02b6ba;
    color:#fff;
}

/* ==== Navbar ==== */
/* .navbar {
    background: #0077cc;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
} */

/* ==== Hero ==== */
.hero {
    background: url('../img/cursos_cortos_comenius.jpg') center/cover no-repeat;
    height: 55vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 1rem;
}

.overlay-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.overlay-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ==== Cards de cursos ==== */
.cursos {
    padding-bottom: 4rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    /* height: auto; */
    height:80;
}

.card-body {
    padding: 1rem;
}

.card-body h3 {
    color: #02b6ba;
    margin-bottom: 0.5rem;
}

.card-body p {
    margin-bottom: 1rem;
    color: #555;
}


/* ==== Efecto en las imágenes de los cursos ==== */
.card img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transition: filter 0.4s ease;
}

/* Al pasar el mouse por la tarjeta */
.card:hover img {
    transform: scale(1.03);
    /* Zoom ligero */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* Sombra más marcada */
    /* Aplica un tinte turquesa y un ligero oscurecimiento */
}

/* CURSOS META **/
.course-meta {
    display: flex;
    flex-direction: column;
    /* cada dato en su propia línea */
    gap: 0.6rem;
    /* espacio vertical entre spans */
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    /* <— interlineado más amplio */
    margin-bottom: 0.9rem;
    
}

.course-meta span strong {
    color: #061c77;
}





/* ==== Sección Beneficios + Contacto ==== */
.beneficios-contacto {
    padding: 4rem 0;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem;
    align-items: start;
}

.beneficios-box,
.contacto-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.benefit-list {
    list-style: disc inside;
    padding-left: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

/* ==== Formulario ==== */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: auto;
}

.formulario input,
.formulario select,
.formulario textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
}

.formulario input:hover,
.formulario select:hover,
.formulario textarea:hover {
    background: #fff;
    border-color: #02b6ba;
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
    background: #fff;
    border-color: #02b6ba;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
}

.formulario select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%230077cc' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><path d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 011.08 1.04l-4.25 4.25a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}


/* ==== Footer ==== */
.footer {
    background: #0077cc;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .overlay-content h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}