/* ---- 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;
}

/* ==================== INSCRIPCIONES ==================== */
.inscripciones-card {
  display: flex;
  justify-content: center;
  padding: 2rem 2rem;
  background-color: #f9fafb;
  margin-top: 0rem;
}
.inscripciones-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem;
}
.inscripciones-text {
  flex: 1;
  margin-right: 2rem;
}
.inscripciones-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1rem;
}
.inscripciones-text p {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.inscripciones-text a {
  text-decoration: none;
  font-weight: 600;
}
.inscripciones-text a:hover {
  text-decoration: underline;
}
.inscripciones-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.7rem;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}
.inscripciones-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}
.inscripciones-img {
  flex: 1;
  max-width: 420px;
  text-align: right;
}
.inscripciones-img img {
  width: 95%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ==================== MODAL CONTACTO ==================== */
#abrirContacto {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
#abrirContacto::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}
#abrirContacto:hover::after {
  width: 100%;
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: fadeInScale 0.3s ease;
  color: #333;
}
@keyframes fadeInScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-content h2 {
  color: #2563eb;
  margin-bottom: 1rem;
}
.modal-content a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.modal-content a:hover {
  text-decoration: underline;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}
.close-btn:hover {
  color: #e63946;
}
.telefono {
  cursor: pointer;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.telefono:hover {
  text-decoration: underline;
}
.mensaje {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: fadeInOut 2s;
}
@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==================== BOTONES ==================== */
.btn-acceso {
  background: linear-gradient(135deg, #4299ff, #2f80ed);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-acceso:hover {
  background: linear-gradient(135deg, #2f80ed, #1c63c1);
  transform: translateY(-3px);
}
.contenedor-boton {
  text-align: center;
  margin: 40px auto;
}
.btn-volver {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  animation: agrandar 0.6s ease forwards;
  animation-delay: 0.2s;
}
.btn-volver:hover {
  background-color: #1d4ed8;
  transform: scale(1.1);
}
@keyframes agrandar {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ==================== CALENDARIO ==================== */
.calendario {
  width: 95%;
  max-width: 800px;
  margin: 30px auto;
  text-align: center;
}
.calendario h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2f80ed;
}
.calendar {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;
}
.calendar-header {
  background: linear-gradient(90deg, #4299ff, #6a5acd);
  color: white;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 15px 15px 0 0;
}
.calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 15px;
}
.day-name {
  font-weight: 600;
  font-size: 14px;
  color: #555;
  text-transform: uppercase;
  text-align: center;
}
.day {
  position: relative;
  padding: 14px 0;
  font-size: 16px;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  cursor: default;
}
.day:hover {
  background: rgba(66,153,255,0.15);
  transform: scale(1.05);
}
.day.marcado1 { background: #4299ff; color: white; font-weight: bold; }
.day.marcado2 { background: #22c55e; color: white; font-weight: bold; }
.day.marcado3 { background: #ef4444; color: white; font-weight: bold; }
.day{background: rgb(178, 176, 176); color: white; font-weight: bold; }
.day.empty { background: transparent; pointer-events: none; }
.tooltip {
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.3s;
  z-index: 10;
}
.day:hover .tooltip { visibility: visible; opacity: 1; }
.leyenda {
  margin: 20px 0 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.leyenda span {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 8px;
}
.leyenda .cuadro-color {
  width: 18px; height: 18px; border-radius: 4px;
}
.color1 { background: #4299ff; }
.color2 { background: #22c55e; }
.color3 { background: #ef4444; }

/* ==================== OPCIONES ==================== */
.opciones {
  width: 90%;
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
}
.titulo-opciones {
  font-size: 26px;
  font-weight: 600;
  color: #2f80ed;
  margin-bottom: 20px;
}
.linea {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #4299ff, #6a5acd);
  margin: 30px 0;
  border-radius: 2px;
}
.cuadros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  justify-items: center;
  align-items: center;
}
.cuadro {
  width: 230px;
  height: 230px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cuadro img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.cuadro:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(66,153,255,0.4);
}
.cuadro:hover img {
  transform: rotate(-3deg) scale(1.1);
}

/* ==================== 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 {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: fadeInOut 2s;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}


/* ==================== 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;
  }
}
