/* RESET Y GLOBAL */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- FONDO VISUAL --- */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at top left, #1e3c72, #2a5298);
}

/* Capa de partículas suaves animadas */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 200% 200%;
  opacity: 0.25;
  animation: moveGradient 20s ease infinite alternate;
}

/* Capa 1 (azul / púrpura) */
body::before {
  background-image: radial-gradient(circle at 30% 30%, #6a11cb, transparent 60%),
                    radial-gradient(circle at 80% 70%, #2575fc, transparent 60%);
  filter: blur(40px);
}

/* Capa 2 (rosa / celeste) */
body::after {
  background-image: radial-gradient(circle at 70% 20%, #ff0080, transparent 60%),
                    radial-gradient(circle at 20% 80%, #00d4ff, transparent 60%);
  filter: blur(60px);
  mix-blend-mode: screen;
}

/* Animación del fondo */
@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
    opacity: 0.3;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.4;
  }
  100% {
    background-position: 50% 0%;
    opacity: 0.3;
  }
}

/* HEADER GENERAL */
.site-header {
  width: 100%;
  background: rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo + animación */
.logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-origin: center;
}

/* Hover suave con resplandor dorado */
.logo-link:hover .logo {
  transform: translateY(-3px) scale(1.06) rotate(-1.5deg);
  filter: drop-shadow(0 0 6px rgba(255, 203, 5, 0.7))
          drop-shadow(0 0 12px rgba(255, 203, 5, 0.3));
  animation: logo-wiggle 0.5s ease-out;
}

@keyframes logo-wiggle {
  0%   { transform: translateY(0) scale(1.0) rotate(0deg); }
  25%  { transform: translateY(-1px) scale(1.04) rotate(-1deg); }
  50%  { transform: translateY(-2px) scale(1.06) rotate(1deg); }
  100% { transform: translateY(-3px) scale(1.06) rotate(-1.5deg); }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffcb05;
  transition: width 0.3s;
}

.main-nav a:hover {
  color: #ffcb05;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* LOGIN HEADER */
.header-login-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.header-login-link:hover {
  background: rgba(0,0,0,0.4);
  border-color: #ffcb05;
  color: #ffcb05;
}

/* CONTENIDO GENERAL */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 40px;
}

.hero {
  padding: 40px 0;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hero-text p {
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.accent {
  color: #ffcb05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* BOTONES */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffcb05;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s, transform 0.1s, box-shadow 0.2s;
}

.button:hover,
button:hover {
  background: #e0b004;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 203, 5, 0.6);
}

.button-outline {
  background: transparent;
  color: #ffcb05;
  border: 1px solid #ffcb05;
}

.button-outline:hover {
  background: rgba(0,0,0,0.3);
}

.button-small {
  padding: 8px 14px;
  font-size: 13px;
}

/* SECCIONES Y TARJETAS */
.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  padding: 18px 20px 20px;
  box-shadow: 0 0 18px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card p {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.6);
}

/* PÁGINAS INTERNAS */
.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.page-header p {
  opacity: 0.9;
}

.text-section p {
  margin-bottom: 12px;
  line-height: 1.6;
  max-width: 800px;
}

/* EDICIÓN DESCRIPCIÓN */
#descripcionTextarea {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  outline: none;
  margin-top: 6px;
  font-family: inherit;
  resize: vertical;
}

.descripcion-edit-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* CLIPS */
.clips-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* En pantallas medianas: 2 columnas */
@media screen and (max-width: 900px) {
  .clips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* En móvil: 1 columna */
@media screen and (max-width: 600px) {
  .clips-grid {
    grid-template-columns: 1fr;
  }
}

.clips-admin {
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 0 18px rgba(0,0,0,0.55);
  margin-bottom: 18px;
}

.clips-admin h2 {
  margin-bottom: 4px;
}

.clips-admin-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.clips-admin-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.clips-admin-form input[type="text"],
.clips-admin-form input[type="url"],
.clips-admin-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  outline: none;
}

.clips-hint {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.clip-card {
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 10px 12px 12px;
  box-shadow: 0 0 18px rgba(0,0,0,0.5);
}

.clip-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;  /* formato vertical tipo TikTok */
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
}

/* El iframe ocupa todo el contenedor */
.clip-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  z-index: 1;
}

/* Por si algún día usas <video> */
.clip-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  object-fit: cover;
}

/* Overlay con "Ver clip" por encima */
.clip-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: radial-gradient(circle at center, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
  z-index: 2;
  cursor: pointer;
}

.clip-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.clip-description {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.clip-link {
  font-size: 0.8rem;
  color: #ffcb05;
  text-decoration: none;
}

.clip-link:hover {
  text-decoration: underline;
}

/* Botones admin dentro de cada clip */
.clip-admin-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* MODAL DE EDICIÓN DE CLIPS */
.clip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
}

.clip-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 301;
  max-width: 420px;
  width: 90%;
}

.clip-modal-inner {
  background: rgba(0,0,0,0.9);
  border-radius: 16px;
  padding: 16px 18px 18px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
}

.clip-modal-inner h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

#clipEditForm label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

#clipEditForm input[type="text"],
#clipEditForm input[type="url"],
#clipEditForm textarea {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  outline: none;
}

.clip-edit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Texto apagado */
.muted {
  opacity: 0.8;
}

/* CALENDARIO CONTENEDOR + TOOLBAR */
.calendar-section {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.calendar-toolbar {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* FOOTER */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 12px 10px;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.4);
}

/* UTIL */
.hidden {
  display: none;
}

/* RESPONSIVE GENERAL */
@media screen and (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .header-right {
    flex-direction: column;
    gap: 8px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .logo {
    max-width: 150px;
    max-height: 60px;
  }

  .hero-text h1 {
    font-size: 2rem;
    text-align: center;
  }

  .hero-text p {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

.hero-socials {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link img.social-icon {
  width: 24px;
  height: 24px;
}

.social-link.kick {
  background: #53FC18;
  color: #000;
}

.social-link.kick:hover {
  background: #3cc510;
  transform: translateY(-3px);
}

.social-link.tiktok {
  background: linear-gradient(90deg, #25F4EE, #FE2C55);
  color: white;
}

.social-link.tiktok:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}
