/* ===== RESET ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Poppins', sans-serif; background:#f5f7fa; color:#222; }
a { text-decoration:none; }

/* ===== HERO ===== */
.prep-hero {
    padding:120px 20px 60px;
    background:linear-gradient(135deg,#003d83,#0057b8);
    text-align:center;
    color:white;
}
.prep-hero-content h1 {
    font-size:2.5rem;
    margin-bottom:10px;
}
.prep-hero-content p{
    font-size:1.2rem;
}
.prep-hero-content span{
    display:block;
    margin-top:8px;
    font-weight:700;
    color:#ffda44;
}

/* ===== BOTONES ===== */
.hero-buttons{
    margin:40px auto;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
}
.btn{
    padding:18px 28px;
    font-size:1.1rem;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    transition:.25s ease;
}
.btn-primary{
    background:#ffba00; color:#000;
}
.btn-primary:hover{ background:#e5a600; }
.btn-secondary{
    background:#fff; border:2px solid #0056b3;color:#0056b3;
}
.btn-secondary:hover{
    background:#e6f1ff;
}
.btn-highlight{
    background:#ff4c4c;color:white;
    animation:pulse 1.5s infinite;
}
@keyframes pulse{
    0%{ transform:scale(1); }
    50%{ transform:scale(1.05); }
    100%{ transform:scale(1); }
}

/* ===== SECCIONES ===== */
.section{
    display:none;
    max-width:1500px;
    margin:20px auto;
    background:white;    
    padding:30px;
    border-radius:16px;
    box-shadow:0 6px 24px rgba(0,0,0,.08);
}
.section h2{
    font-size:2rem;
    text-align:center;
    margin-bottom:20px;
}

/* ===== LISTAS ===== */
.features{
    width:85%;
    margin:auto;
}
.features li{
    margin-bottom:10px;
    padding-left:24px;
    position:relative;
}
.features li::before{
    content:"✔";
    position:absolute;
    left:0;
    top:0;
    color:#ff7a00;
    font-weight:700;
}
/* ====== CARDS ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}
.cards-grid.centered {
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
}

.card-item {
    background: #F3F4F6; 
    color: #1A1A1A;          
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08); 
}
.card-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #111; 
}
.card-item p {
    opacity: 0.9;
    line-height: 1.55;
    color: #1A1A1A;
}
/* ===== ALERTA ===== */
.alert-info{
    background:#fff3cd;
    padding:25px;
    border-radius:14px;
    border:1px solid #ffe599;
    text-align:center;
}
.alert-buttons a{
    padding:12px 20px;
    border-radius:10px;
    display:inline-block;
    margin:10px;
}
.btn-alert-blue{ background:#0056b3; color:white; }
.btn-alert-yellow{ background:#ffba00; color:#000; }
/* ===== tabla ===== */
 .tabla-cursos {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1rem;
    }
    .tabla-cursos th, .tabla-cursos td {
        padding: 0.8rem;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }
    .tabla-cursos th {
        background: #004080;
        color: white;
    }
  section .tabla-cursos tr {
  background: none;
}
    .tabla-cursos tr:hover {
        background: #f1f5ff;
    }
.tabla-cursos td::before {
    display:none;
}

    /* ===== BOTONES ===== */
    .btn-table {
        display: inline-block;
        background: #ff6600;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-weight: 600;
        transition: background 0.2s ease;
    }
    .btn-table:hover {
        background: #e65500;
    }
@media (max-width: 767px) {
.tabla-cursos thead {
            display: none;
        }
        .tabla-cursos tr {
            display: block;
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: white;
        }
        .tabla-cursos td {
            display: flex;
            justify-content: space-between;
            padding: 0.8rem 1rem;
        }
        .tabla-cursos td::before {
            display: inline-block;
            font-weight: bold;
            color: #004080;
            content: attr(data-label);
        }
      td[data-label]:before {
 		 white-space: pre-line; /* respeta saltos de línea */
		}
    }
/*==========================
        FORMULARIO
===========================*/

#sec-horarios-precios {
  display: none;
  padding: 30px 15px;
}

.modal-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px 35px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  position: relative;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   TÍTULOS
============================ */
.modal-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #003366;
  text-align: center;
}

.form-modal h4 {
  margin: 25px 0 10px;
  font-size: 16px;
  color: #0d6efd;
  border-left: 4px solid #0d6efd;
  padding-left: 10px;
}

/* ============================
   FORMULARIO
============================ */
.form-modal {
  display: flex;
  flex-direction: column;
}

.form-modal label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.form-modal input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-modal input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.2);
}

/* ============================
   SEPARADOR
============================ */
.form-modal hr {
  border: none;
  height: 1px;
  background: #e5e5e5;
  margin: 20px 0;
}

/* ============================
   BOTÓN ENVIAR
============================ */
.btn-guardar-modal {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0d6efd, #003f9e);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-guardar-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.btn-guardar-modal:active {
  transform: scale(0.97);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 480px) {
  .modal-card {
    padding: 25px 20px;
  }

  .modal-card h2 {
    font-size: 22px;
  }
}

