/* Estilos para el modal minimalista - CORREGIDO */
.w3-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
}

.w3-modal-content {
    background-color: #fff;
    width: 450px;
    max-width: 95%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.w3-container.w3-teal {
    background-color: #fff;
    color: #333;
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
}

.w3-container.w3-teal h2 {
    margin: 30px 0 0 0; /* Ajustado para que baje un poco pero sin exagerar */
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

.w3-button.w3-large {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.w3-button.w3-large:hover {
    color: #333;
}

/* Form container */
.form-container {
    padding: 20px;
    width: 100%;
}

/* Minimalist inputs */
.form-container label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.form-container input {
    width: calc(100% - 90px);
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fafafa;
    transition: border 0.2s, box-shadow 0.2s;
    display: block;
}

.form-container input:focus {
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Clean, minimalist button */
.button_slide {
    background: #555;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    width: 90%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.button_slide:hover {
    background: #333;
}

/* Iconos minimalistas en los inputs */
.form-container input {
    padding-left: 40px;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
}

#nombre {
    background-image: url('https://cdn-icons-png.flaticon.com/512/1077/1077114.png');
}

#correo {
    background-image: url('https://cdn-icons-png.flaticon.com/512/561/561127.png');
}

#telefono, #telefono_e {
    background-image: url('https://cdn-icons-png.flaticon.com/512/159/159832.png');
}

#fecha_nacimiento {
    background-image: url('https://cdn-icons-png.flaticon.com/512/747/747310.png');
}

/* Diseño de las tarjetas de cursos - Ajustadas para ser más pequeñas */


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Se ajusta dinámicamente */
    gap: 10px; /* Reduce el espacio entre las tarjetas */
    justify-content: center;
    padding-top: 0px; /* Reduce el padding general */
    padding-bottom: 100px;

}


.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s;
    max-width: 250px;
    margin: 0 auto;
    width: 600px;
    height: 350px;
}

.card:hover {
    transform: scale(1.05);
}

.card__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.card__content {
    padding: 12px;
    text-align: center;
    background-color: #ffffff;
}

.card__header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #6d4c41;
}

.card__text {
    font-size: 13px;
    color: #795548;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card__btn {
    background: #91b8ff;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
    display: inline-block;
}

.card__btn:hover {
    background: #438eff;
}


@media (min-width: 1200px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* 5 columnas fijas */
        gap: 15px; /* Espacio entre tarjetas */
        justify-content: center;
    }
}