* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #050a14;
  background-image: linear-gradient(rgba(5, 10, 20, 0.45), rgba(5, 10, 20, 0.65)), url('fondo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.2rem;
}

.contenedor {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.redes {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  transition: transform 0.2s, opacity 0.2s;
}

.redes a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.descripcion {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  margin-bottom: 1.1rem;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-naranja {
  background-color: #f99b45;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(249, 155, 69, 0.35);
}

.btn-naranja:hover {
  background-color: #e88932;
}

.btn-borde {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-borde:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.formulario {
  width: 100%;
  text-align: left;
  margin-top: 1rem;
}

.campo {
  margin-bottom: 1.1rem;
}

.campo label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #f1f5f9;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.campo input:focus,
.campo textarea:focus {
  border-color: #f99b45;
}

.campo textarea {
  min-height: 120px;
  resize: vertical;
}

.volver {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Galería de Videos */
body.pagina-videos {
  background-image: none;
  background-color: #000000;
  padding: 0;
}

.header-banner {
  width: 100%;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.95)), url('fondo.jpg');
  background-size: cover;
  background-position: center;
  padding: 1.5rem 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contenedor-grid {
  width: 100%;
  max-width: 720px;
  padding: 1rem 0.8rem 3rem 0.8rem;
}

.grid-3-columnas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 10px;
  width: 100%;
}

.item-video {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s;
}

.item-video:hover {
  transform: scale(1.03);
}

.titulo-arriba {
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 6px;
  min-height: 2.3em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.15;
}

.miniatura-caja {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1.5px solid #ffffff;
  overflow: hidden;
  background-color: #111;
}

.miniatura-caja img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icono-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.2s;
}

.item-video:hover .icono-play {
  opacity: 1;
}

/* Modal Reproductor Cloudflare Stream */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.modal-overlay.activo {
  display: flex;
}

.modal-contenido {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 1.2rem;
  margin: auto;
  text-align: left;
  position: relative;
}

.cerrar-modal {
  position: absolute;
  top: 12px;
  right: 15px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}

.stream-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 62vh;
  margin: 0.8rem auto 1.2rem auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.stream-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-descripcion {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.seccion-comentarios {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
}

.seccion-comentarios h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #f99b45;
}

.lista-comentarios {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.comentario-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.comentario-item strong {
  color: #f99b45;
  display: block;
  margin-bottom: 0.2rem;
}

.footer-banner {
  width: 100%;
  background-image: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.95)), url('fondo.jpg');
  background-size: cover;
  background-position: bottom;
  padding: 2rem 1rem;
  margin-top: auto;
  text-align: center;
}
