:root {
  --color-principal: #00bda6;
  --color-secundario: #ff7a00;
  --fondo: #f7f9fb;
  --texto: #222;
  --acento: #ffffff;
  --fuente: 'Segoe UI', sans-serif;
  --hero-color: var(--color-principal);
}

/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--fuente);
  background-color: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   ENCABEZADO
   ========================= */
.sticky-header {
  position: sticky;
  top: 0;
  background: var(--acento);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 1.3em;
  color: var(--color-principal);
  white-space: nowrap;
}

.btn-inscribete {
  background: var(--color-secundario);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

/* =========================
   HERO
   ========================= */
.hero {
  margin-top: 20px;
  padding: 60px 20px;
  background: linear-gradient(to right, #00bda6, #008b76);
  color: #fff;
  text-align: center;
}

.hero .titulo-diplomado {
  font-size: 2rem !important;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero .descripcion-diplomado {
  font-size: 1.25rem !important;
  margin-bottom: 20px;
}

.btn-cta {
  background: #fff;
  color: #00bda6;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s;
}

.btn-cta:hover {
  transform: scale(1.05);
}

/* =========================
   SECCIONES DE CONTENIDO (GENERIC)
   ========================= */
.beneficios {
  padding: 40px 20px;
  text-align: center;
}

.beneficios .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
}

/* =========================
   TESTIMONIOS (si se usa)
   ========================= */
.testimonios {
  background: #eef4f6;
  padding: 40px 20px;
  text-align: center;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 0;
}

.testimonial {
  background: #fff;
  padding: 20px;
  min-width: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* =========================
   BOTÓN FLOTANTE
   ========================= */
.cta-fijo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-principal);
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 999;
}

/* =========================
   FORMULARIO
   ========================= */
.formulario {
  padding: 50px 20px;
  background: #fff;
  text-align: center;
}

.formulario form {
  margin-top: 20px;
  display: grid;
  gap: 15px;
  max-width: 400px;
  margin-inline: auto;
}

.formulario input,
.formulario button {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

.formulario button {
  background: var(--color-secundario);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.formulario button:hover {
  background: #e56600;
}

/* =========================
   PIE DE PÁGINA
   ========================= */
footer {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

footer a {
  color: var(--color-principal);
  text-decoration: underline;
  margin-left: 10px;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 8px;
}

/* =========================
   LO QUE VAS A LOGRAR / LOGROS
   ========================= */
.logros {
  background: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.logros h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #222;
}

.logros .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.logros .card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logros .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.logros .icono {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.logros h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.logros p {
  font-size: 0.95em;
  color: #666;
}

/* =========================
   CERTIFICACIÓN
   ========================= */
.certificacion {
  padding: 50px 20px;
  background: #fff;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 1100px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.certificacion .contenedor {
  max-width: 1000px;
  margin: 0 auto;
}

.certificacion h2 {
  font-size: 1.8rem;
  color: var(--color-principal);
  margin-bottom: 18px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.cert-text p {
  color: var(--texto);
  margin-bottom: 12px;
  line-height: 1.55;
}

.cert-text .duracion {
  font-size: 1.05rem;
  color: var(--color-principal);
  margin-bottom: 12px;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px 0;
}

.cert-list li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
  color: #444;
}

.cert-list li::before {
  content: "•";
  color: var(--color-secundario);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.nota {
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

/* ACTION CARD */
.cert-accion .cert-card {
  background: linear-gradient(180deg, rgba(0,189,166,0.08), #ffffff);
  border: 1px solid rgba(0,189,166,0.12);
  padding: 18px;
  border-radius: 10px;
  text-align: center;
}

.cert-accion h3 {
  margin-top: 0;
  color: var(--color-principal);
  margin-bottom: 10px;
}

.cert-accion p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 16px;
}

.btn-cta-small {
  display: inline-block;
  background: var(--color-principal);
  color: var(--acento);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   VALOR PROGRAMA
   ========================= */
.valor-programa {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
}

.valor-programa h2 {
  color: var(--color-secundario);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.valor-total {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.oferta-especial {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-principal);
  margin: 0.5rem 0;
}

.precio-oferta {
  font-size: 1.5rem;
  color: var(--color-acento);
}

.opciones-pago {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.opciones-pago .opcion-titulo {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.opciones-pago ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.opciones-pago li {
  padding: 0.4rem 0;
}

.opciones-pago .nota {
  display: block;
  font-size: 0.95rem;
  font-style: italic;
  color: #555;
}

.llamado-accion {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-principal);
}

/* =========================
   FAQ (PREGUNTAS Y RESPUESTAS)
   Consolidated: use grid + gap, ensure width parity with .card
   ========================= */
.faq-section {
  background: linear-gradient(to right, #00bda6, #008b76) !important;
  padding: 40px 20px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* If you keep .faq-container in HTML, display: contents makes cards participate in parent grid */
.faq-container {
  display: contents;
}

.faq-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px; /* ensures width similar to .card in .beneficios */
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.faq-question {
  color: var(--hero-color);
  font-size: 1.05rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.faq-btn {
  display: inline-block;
  background: var(--hero-color);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

/* =========================
   MODAL
   ========================= */
.faq-modal {
  display: none;               /* hidden by default */
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.58);
  z-index: 1200;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Show modal when JS toggles .is-open */
.faq-modal.is-open {
  display: flex;
}

.faq-modal-content {
  max-width: 520px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
  padding: 22px;
  text-align: center;
}

/* Response text */
#faq-answer-text {
  color: var(--texto);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* We hide legacy .faq-close if present */
.faq-close {
  display: none;
}

/* Footer area of modal with orange background and centered 'Cerrar' button */
.faq-modal-footer {
  /* background-color: var(--color-secundario); */
  text-align: center;
  padding: 12px;
  border-radius: 0 0 8px 8px;
}

#faq-close-btn {
  background-color: var(--hero-color); /* igual que faq-btn */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#faq-close-btn:hover,
#faq-close-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  outline: none;
}

/* hover state for footer button */
#faq-close-btn:hover,
.faq-modal-footer button:hover {
  text-decoration: underline;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-accion {
    order: 2;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 16px;
  }

  .hero .titulo-diplomado {
    font-size: 1.5rem;
  }

  .faq-section {
    grid-template-columns: 1fr;
    padding: 28px 16px;
    gap: 16px;
  }

  .faq-card {
    max-width: 100%;
  }

  .faq-modal-content {
    padding: 16px;
    border-radius: 10px;
  }
}

.hero-image img {
  max-width: 100%;   /* Nunca será más ancha que la pantalla */
  width: 100%;       /* Escala automáticamente al ancho del contenedor */
  height: auto;      /* Mantiene proporción */
  display: block;    /* Elimina espacios indeseados */
  object-fit: cover; /* Ajusta bien en distintos tamaños */
}

/* Miniatura */
.video-thumbnail img {
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Modal base */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Contenido del modal: ocupa todo el ancho disponible */
.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 100%;  /* ocupa todo el ancho del móvil */
  height: auto;
  background: #000;
  border-radius: 0;
  padding: 0;
}

/* Cerrar modal */
.video-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

/* Contenedor del video */
.video-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video responsive vertical */
.video-container video {
  width: 100%;      /* siempre 100% del ancho */
  height: auto;     /* altura automática para mantener proporción */
  max-height: 100%; /* no se sale de la pantalla en vertical */
  border-radius: 0;
}

/* END of style.css */