/* ==========================
   GENERAL STYLES
   ========================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3 {
    margin: 0.5em 0;
    text-align: center;
}

p {
    margin: 1em 0;
    text-align: center;
}

a {
    text-decoration: none;
    color: #db002c;
}

a:hover {
    text-decoration: underline;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.5em 1em;
    color: white;
    background: #db002c;
    text-decoration: none;
    margin-top: 1em;
    border-radius: 5px;
    text-align: center;
}

.btn:hover {
    background: #333;
}

/* ==========================
   NAVBAR STYLES (MENÚ HAMBURGUESA)
   ========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #db002c;
    color: black;
    position: relative;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 1em;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: inline;
}

.nav-list a {
    color: black;
    font-weight: bold;
}

.nav-list a:hover {
    text-decoration: underline;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: white;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: 0.4s;
}

/* Responsive Design for Navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background-color: #db002c;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .nav-list.active {
        display: flex;
    }
}

/* ==========================
   HEADER STYLES
   ========================== */
header {
    background: #db002c;
    color: white;
    text-align: center;
    padding: 2em 0;
}

header h1 {
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
}

/* ==========================
   INDEX PAGE STYLES
   ========================== */
#about, #features {
    padding: 2em;
    text-align: center;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.feature {
    border: 1px solid #ddd;
    padding: 1em;
    width: 30%;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: #db002c;
}

.imagen-responsiva {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Efecto de desenfoque */
.desenfocada {
  filter: blur(10px); /* Puedes cambiar 4px por el nivel de desenfoque que quieras */
}

/* ==========================
   SECTION: CURSOS
   ========================== */
#exams {
    padding: 2em;
    text-align: center;
}

.exam-list {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.exam {
    border: 1px solid #ddd;
    padding: 1em;
    width: 30%;
    background: #ffffff;
    border-radius: 5px;
}

.exam h3 {
    color: #db002c;
}


.tabla-central {
  margin: 50px auto;
  border-collapse: collapse;
  width: 60%;
  max-width: 600px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tabla-central th,
.tabla-central td {
  border: 1px solid #dddddd;
  text-align: center;
  padding: 12px;
}

.tabla-central th {
  background-color: #db002c;
  color: white;
}

.tabla-central tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* ==========================
   SECTION: CÓMO TRABAJAMOS
   ========================== */
#how-it-works {
    padding: 2em;
    background: #f4f4f4;
    text-align: center;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 0.5em 0;
    padding: 0.5em;
    background: #f5e8e8;
    border-left: 5px solid #db002c;
}

/* ==========================
   SECTION: SELECCIONAR Y PAGAR
   ========================== */
#payment {
    padding: 2em;
    text-align: center;
}

ol {
    padding-left: 1.5em;
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
}

ol li {
    margin: 0.5em 0;
}

ul li ul {
    margin-top: 0.5em;
}

/* ==========================
   SECTION: TESTIMONIOS
   ========================== */
#testimonials {
    padding: 2em;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 imagen por fila en móviles */
    gap: 1em;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em;
}

.testimonials-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* En pantallas medianas y grandes: hasta 3 imágenes por fila */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================
   WHATSAPP
   ========================== */

.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
}

.btn-whatsapp img {
  width: 100%;
  height: auto;
}