/* ---- RESET ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
  color: #333;
}

/* ---- HEADER ---- */
.header {
  background-color: #3d90f9;
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-bottom: 1px solid #ffffff;
}

/* ----------- Desktop Layout ----------- */
.header-desktop-layout {
  display: flex;
  justify-content: space-between; /* logo izq + texto / logo der */
  align-items: center;
  width: 100%;          /* ocupa todo el ancho */
  padding: 0 20px;      /* solo un poquito de espacio interno */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-text {
  text-align: left;
}

.header-desktop-layout .header-logo-left img {
  height: 90px;
}

.header-desktop-layout .header-logo-right img {
  height: 90px;
}


/* ----------- Mobile Layout ----------- */
.header-mobile-layout {
  display: none;
}

@media (max-width: 768px) {
  .header-desktop-layout {
    display: none;
  }

  .header-mobile-layout {
    display: flex;
    justify-content: space-between; /* logos en las esquinas */
    align-items: center;
    gap: 10px;
  }

  .header-mobile-layout .header-logo-left img,
  .header-mobile-layout .header-logo-right img {
    height: 55px;
  }

  .header-mobile-layout .header-text {
    flex: 1;
    text-align: center;
  }
}

/* ---- Tipografía ---- */
.header-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0;
}

.header-subtitle {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .header-title {
    font-size: 22px;
  }

  .header-subtitle {
    font-size: 14px;
  }
}

/* ---- BANNER ---- */
.banner {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.banner video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.banner::after {
  content: "";
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: transparent;
}
/* ---- MAIN ---- */
.main-content {
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
}
.container {
  max-width: 700px;
  width: 100%;
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from {opacity:0; transform: translateY(20px);}
  to {opacity:1; transform: translateY(0);}
}
/* Progreso */
.progress-container {
  margin-bottom: 20px;
  text-align: center;
}
.progress-bar {
  width: 0%;
  height: 10px;
  background: #2563eb;
  border-radius: 6px;
  transition: width 0.3s ease;
}
.progress-container p {
  font-size: 14px;
  margin-top: 5px;
  color: #333;
}
/* Tarjeta */
.card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: slideUp 0.6s ease;
}
@keyframes slideUp {
  from {opacity:0; transform: translateY(30px);}
  to {opacity:1; transform: translateY(0);}
}
.card h2 {
  color: #2563eb;
}
.card .sub {
  font-size: 14px;
  margin-bottom: 15px;
}
/* ==== CONTADOR ==== */
.contador {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}
#contador-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 600px;
  width: 100%;
}
#contador-titulo {
  font-size: 22px;
  margin-bottom: 18px;
  color: #1d4ed8;
  font-weight: 600;
}
.tiempo {
  display: flex;
  justify-content: center;
  gap: 25px;
}
.tiempo div {
  background: #f9fafb;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  padding: 20px 15px;
  border-radius: 10px;
  min-width: 90px;
}
.tiempo span {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tiempo small {
  font-size: 14px;
  color: #444;
  text-transform: uppercase;
  font-weight: 500;
}
/* Condiciones */
.checklist label {
  display: block;
  background: #f8fafc;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: 0.3s;
}
.checklist label:hover {
  background: #e0f2fe;
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(37,99,235,0.15);
}
.checklist input {
  margin-right: 10px;
}
/* Botones */
.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn.volver {
  background: #6b7280;
  color: white;
}
.btn.volver:hover {
  background: #4b5563;
}
.btn.continuar {
  background: #2563eb;
  color: white;
}
.btn.continuar:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}
.btn.continuar:hover:enabled {
  background: #1d4ed8;
  transform: scale(1.05);
}
/* ---- FOOTER ---- */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 60px;
  padding: 25px 50px 14px;
  border-top: 1px solid #ccc;
  background: #4299ff;
  color: #fff;
}
.footer-info {
  justify-self: start;
  font-size: 14px;
  line-height: 1.6;
}
.footer-info a {
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.anim-link::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0;
  height:2px;
  background:#fff;
  transition:width 0.3s ease;
}
.anim-link:hover::after { width:100%; }
.logo-footer { justify-self: center; margin-top: 20px; }
.logo-footer img.logo-estatico {
  width:110px; height:110px; object-fit:contain;
  margin-right: 15px;
}
.footer-social { justify-self: end; text-align: right; }
.footer-social .icons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.footer-social img {
  width:40px; height:40px;
  margin-top: 15px;
  border-radius:50%;
}
.footer-social img:hover { transform:scale(1.2); }
.site-footer .copyright {
  grid-column: 1 / -1;
  text-align:center;
  margin-top:6px;
  font-size:12px;
  color:#eee;
}
.mensaje {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0.9;
}
/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .banner { max-height: 300px; }
  .inscripciones-content { 
    flex-direction: column; 
    padding: 2rem; 
    text-align: center; 
  }
  .inscripciones-text { margin: 0 0 2rem; }
  .inscripciones-img { text-align: center; }
  .inscripciones-img img { width: 80%; }
  .site-footer { 
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
  }
  .footer-info, 
  .footer-social {
    justify-self: center;
    text-align: center;
  }
  .footer-social .icons {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .banner { max-height: 300px; }
  .inscripciones-content { 
    flex-direction: column; 
    padding: 2rem; 
    text-align: center; 
  }
  .inscripciones-text { margin: 0 0 2rem; }
  .inscripciones-img { text-align: center; }
  .inscripciones-img img { width: 80%; }
  .site-footer { 
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
  }
  .footer-info, 
  .footer-social {
    justify-self: center;
    text-align: center;
  }
  .footer-social .icons {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .banner { max-height: 200px; }
  .inscripciones-title { font-size: 2rem; }
  .inscripciones-text p { font-size: 1rem; }
  .inscripciones-btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
  .cuadros { grid-template-columns: 1fr; gap: 30px; }
  .cuadro { width: 200px; height: 200px; }
}
@media (max-width: 600px) {
  .tiempo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
  }
  .tiempo div {
    min-width: unset;
    width: 100px;
  }
}