/* =============================
   ESTILOS GENERALES - PÁGINAS HTML
   ============================= */
html, body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #0a1224 0%, #0e1a34 40%, #121b2d 100%);
  color: #1c1c1c;
  line-height: 1.6;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* =============================
   ENCABEZADO
   ============================= */
header {
  text-align: center;
  background: linear-gradient(135deg, #001933, #00397a);
  color: #ffffff;
  padding: 30px 15px;
  border-bottom: 3px solid #004aad;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

nav a {
  color: #ffdf5c;
  text-decoration: none;
  font-weight: 600;
  padding: 0 12px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffffff;
}

/* =============================
   SECCIONES PRINCIPALES
   ============================= */
main {
  max-width: 1100px;
  margin: 50px auto;
  background: #dde3f3;
  padding: 45px;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

section {
  margin-bottom: 50px;
}

.centrado {
  text-align: center;
}

.centrado h2 {
  text-align: center;
  color: #003a8c;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

section h2 {
  color: #004aad;
  border-left: 5px solid #007bff;
  padding-left: 10px;
  margin-bottom: 15px;
}

/* =============================
   GALERÍA DE IMÁGENES
   ============================= */
.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.responsive {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsive:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* =============================
   RECUADRO DEL VIDEO
   ============================= */
.video-section {
  background: linear-gradient(145deg, #cbd5ec, #d9e3f5);
  border: 2px solid #a9bce6;
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 0 0 35px rgba(31, 111, 235, 0.25);
}

/* =============================
   VIDEO RESPONSIVO Y CENTRADO
   ============================= */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  margin: 40px auto;
  max-width: 850px;
  box-shadow: 0 0 30px rgba(31, 111, 235, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: scale(1.03);
  box-shadow: 0 0 45px rgba(31, 111, 235, 0.6);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================
   TEXTO BAJO EL VIDEO
   ============================= */
.video-text {
  text-align: center;
  margin-top: 18px;
  font-size: 1.05rem;
  color: #2a2a2a;
  font-style: italic;
}

/* =============================
   FORMULARIOS Y BOTONES
   ============================= */
form {
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

label {
  font-weight: bold;
}

input, button {
  padding: 10px 14px;
  border: 1px solid #007bff;
  border-radius: 8px;
  font-size: 1rem;
}

input {
  background-color: #f7f9ff;
}

button {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #0056d6;
  transform: translateY(-2px);
}

/* =============================
   RESULTADOS
   ============================= */
.resultado {
  margin-top: 18px;
  font-weight: bold;
  color: #004aad;
  text-align: center;
  background-color: #f1f5ff;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 0 10px rgba(0, 91, 255, 0.15);
}

/* =============================
   PIE DE PÁGINA
   ============================= */
footer {
  text-align: center;
  background: linear-gradient(135deg, #001933, #00397a);
  color: white;
  padding: 25px;
  border-top: 3px solid #004aad;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
}

footer a {
  color: #ffdf5c;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* =============================
   ADAPTACIÓN MÓVIL
   ============================= */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  main {
    padding: 25px;
  }

  .responsive {
    max-width: 100%;
  }

  .video-container {
    max-width: 100%;
  }
}
/* Formularios y botones */
form {
  background: rgba(0, 40, 100, 0.3);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

input, select {
  width: 80%;
  margin: 10px auto;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: 0.3s;
}

input:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 100, 255, 0.5);
}

button {
  margin-top: 15px;
  background: linear-gradient(135deg, #0050ff, #00bfff);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #00bfff, #0050ff);
  transform: scale(1.05);
}

/* Recuadro del resultado */
.resultado {
  margin-top: 20px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 80, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 14px 25px;
  border-radius: 10px;
  display: none;
  box-shadow: 0 6px 20px rgba(0, 80, 255, 0.3);
  transition: all 0.3s ease;
  animation: aparecer 0.5s ease forwards;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




