/* ---- 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;
}


/* ===== CONTENIDO PRINCIPAL ===== */
main {
  width: 92%;
  max-width: 1000px;
  margin: 40px auto 80px;
  font-size: 16px;
  color: #333;
  line-height: 1.7;
}

/* ===== TARJETAS (CARDS) ===== */
.card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Encabezado de tarjeta */
.card-header {
  background: #2f80ed;
  color: #ffffff;
  padding: 18px 24px;
}
.card-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Cuerpo de tarjeta */
.card-body {
  padding: 24px;
}
.card-body h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  color: #1e3a8a;
}
.card-body p {
  margin: 0 0 16px;
}
.card-body ul {
  margin: 0;
  padding-left: 20px;
}
.card-body ul li {
  margin-bottom: 10px;
}
.card-body .alert {
  margin-top: 18px;
  font-weight: 600;
  color: #c53030;
}

/* ===== IMÁGENES DENTRO DE CARDS ===== */
.fotoprimaria,
.fotosecundaria,
.fotoenviar {
  display: block;
  margin: 26px auto;
  max-width: 85%;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ===== BOTÓN VOLVER ===== */
.volver {
  text-align: center;
  margin: 60px 0;
}
.Atras {
  display: inline-block;
  background: #2f80ed;
  color: #fff;
  text-decoration: none;
  padding: 14px 34px;
  font-size: 17px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.Atras:hover {
  background: #1e40af;
  transform: translateY(-3px);
}

/* ==================== 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;
}
@media (max-width: 768px){
  .site-footer{ grid-template-columns: 1fr; text-align:center; }
  .footer-info, .footer-social{ justify-self:center; text-align:center; }
  .footer-social .icons{ justify-content:center; }
}
.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) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100dvh;
    background: #4299ff;
    padding: 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1200;
    gap: 12px;

    /* 🔹 Marco y sombra */
    border-right: 3px solid #1e4fa1;   /* borde lateral derecho */
    box-shadow: 4px 0 12px rgba(0,0,0,0.25); /* sombra hacia el contenido */
  }


  nav.show { left: 0; }
  nav a { display: block; padding: 12px; width: 100%; }
  .dropdown:hover .dropdown-content {
    position: static; box-shadow: none; background: none; display: none;
  }
  .dropdown.open .dropdown-content { display: block; }
  .dropdown-content a { padding-left: 20px; }
  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1300;
  }
}
@media (max-width: 768px) {
  header .logo { flex-direction: column; }
  header h1 { font-size: 24px; text-align: center; }
  header h2 { font-size: 14px; text-align: center; }
  header .logo img { height: 60px; margin: 0; }
  nav { gap: 16px; }
  .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) {
  header h1 { font-size: 20px; }
  header h2 { font-size: 12px; }
  header .logo img { height: 50px; }
  nav { gap: 10px; }
  .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; }
}