/* --- Loadscreen Animado --- */
#loadscreen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #0a1931;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  transition: opacity 0.6s ease;
  overflow: hidden;
}

#loadscreen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Fondo tipo Lava Lamp */
.lava-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0d47a1 0%, #0a1931 100%);
}

.lava-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3e92cc, #1565c0);
  filter: blur(40px);
  opacity: 0.6;
  animation: lavaFloat 8s ease-in-out infinite;
}

.lava-bubble:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-duration: 10s;
  animation-delay: 0s;
}

.lava-bubble:nth-child(2) {
  width: 250px;
  height: 250px;
  bottom: -125px;
  right: -125px;
  animation-duration: 12s;
  animation-delay: 1s;
}

.lava-bubble:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  animation-duration: 15s;
  animation-delay: 2s;
}

.lava-bubble:nth-child(4) {
  width: 180px;
  height: 180px;
  top: 20%;
  right: 10%;
  animation-duration: 11s;
  animation-delay: 0.5s;
}

.lava-bubble:nth-child(5) {
  width: 220px;
  height: 220px;
  bottom: 20%;
  left: 15%;
  animation-duration: 13s;
  animation-delay: 1.5s;
}

@keyframes lavaFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -100px) scale(1.1);
  }
  50% {
    transform: translate(-80px, 50px) scale(0.9);
  }
  75% {
    transform: translate(100px, 80px) scale(1.05);
  }
}

/* Destello blanco tipo pelota */
.light-beam {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  box-shadow: 0 0 60px 30px rgba(255, 255, 255, 0.5);
  animation: beamBounce 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  z-index: 2;
}

@keyframes beamBounce {
  0% {
    top: -10%;
    left: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  25% {
    top: 20%;
    left: 80%;
  }
  50% {
    top: 80%;
    left: 70%;
  }
  75% {
    top: 30%;
    left: 10%;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 110%;
    left: 110%;
    opacity: 0;
  }
}

/* Logo con rotación y animaciones */
.loadscreen-logo-animated {
  position: relative;
  max-width: 220px;
  z-index: 3;
  animation: logoSpin 4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite, 
             logoBounce 2s ease-in-out infinite,
             logoGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.5));
}

@keyframes logoSpin {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
  }
  25% { 
    transform: rotate(5deg) scale(1.05); 
  }
  50% { 
    transform: rotate(-5deg) scale(1.1); 
  }
  75% { 
    transform: rotate(3deg) scale(1.05); 
  }
}

@keyframes logoBounce {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-25px); 
  }
}

@keyframes logoGlow {
  0%, 100% { 
    filter: drop-shadow(0 15px 40px rgba(62, 146, 204, 0.4)) brightness(1);
  }
  50% { 
    filter: drop-shadow(0 20px 60px rgba(62, 146, 204, 0.8)) brightness(1.2);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Reset y Variables --- */
:root {
  --nav-h: 72px;
  --sidebar-w: 240px;
  --brand-blue: #0d47a1;
  --brand-red: #d32f2f;
  --bg-dark: #08204b;
  --text-main: #ffffff;
  --text-muted: #b0bec5;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.portfolio-body {
  font-family: 'Montserrat', sans-serif;
  background: #020617;
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Contenedor para el lienzo (canvas) - Fondo Lava optimizado */
.lava-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: radial-gradient(
    circle at top,
    #1d4ed8 0%,
    #0f172a 45%,
    #020617 100%
  );
}

#lavaCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(28px) contrast(1.15);
}

/* Asegurar que el contenido esté encima */
.pf-layout {
  position: relative;
  z-index: 2;
}

/* --- NAVBAR (Copiado de Servicios para consistencia) --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 72px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: background .3s, box-shadow .3s, transform .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1500;
}
.navbar.hidden {
  transform: translateY(-100%);
}
.navbar.hidden .nav-links,
.navbar.hidden .hamburger {
  opacity: 0;
  pointer-events: none;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.logo { 
  font-weight: 700; 
  color: #0d47a1; 
  font-size: 22px; 
  letter-spacing: 1px; 
  transition: opacity .3s;
  z-index: 1600;
}
.logo span { color: #d32f2f; font-weight: 800; margin-left: 6px; }

.nav-links { 
  display: flex; 
  gap: 22px; 
  transition: opacity .3s;
  align-items: center;
}
.nav-links a {
  text-decoration: none; color: #263238; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; position: relative;
  transition: background .22s, color .22s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.nav-links a::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: 4px;
  height: 3px; width: 0; background: linear-gradient(90deg, #d32f2f, #0d47a1);
  border-radius: 3px; transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 80%; }

/* === BOTÓN ADMIN EN NAVBAR (ESCRITORIO) === */
.admin-access-btn {
  background: transparent;
  border: 2px solid rgba(13, 71, 161, 0.3);
  color: #0d47a1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0.6;
}
.admin-access-btn:hover {
  opacity: 1;
  background: rgba(13, 71, 161, 0.1);
  border-color: #0d47a1;
  transform: scale(1.1) rotate(5deg);
}
.admin-access-btn i {
  font-size: 16px;
}

.scroll-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #d32f2f, #0d47a1);
  box-shadow: 0 0 6px rgba(13,71,161,0.5);
  transition: width .15s linear; pointer-events: none;
}

/* === HAMBURGUESA (VISIBLE EN MÓVIL) === */
.hamburger { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  cursor: pointer; 
  z-index: 1600;
  padding: 8px;
}
.hamburger span { 
  width: 28px; 
  height: 3px; 
  background: #0d47a1; 
  border-radius: 3px; 
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animación hamburguesa activa */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* === MENÚ LATERAL MÓVIL (MEJORADO) === */
.side-menu {
  position: fixed; 
  top: 0; 
  right: -100%; 
  width: 280px; 
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: -4px 0 20px rgba(13, 71, 161, 0.15);
  z-index: 1550; 
  display: flex; 
  flex-direction: column; 
  padding: 80px 30px 30px;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}
.side-menu.open { 
  right: 0; 
}
.side-menu a { 
  margin-bottom: 20px; 
  font-weight: 700; 
  color: #0d47a1; 
  text-decoration: none; 
  font-size: 18px;
  padding: 14px 20px;
  border-radius: 12px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.side-menu a:hover {
  background: rgba(13, 71, 161, 0.1);
  transform: translateX(-5px);
}
.side-menu a i {
  width: 24px;
  font-size: 18px;
}

/* === BOTÓN ADMIN EN MENÚ MÓVIL === */
.side-menu-admin {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff !important;
  margin-top: 20px;
  padding: 16px 20px !important;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}
.side-menu-admin:hover {
  background: linear-gradient(135deg, #1565c0, #1976d2);
  transform: translateX(-5px) scale(1.02);
  box-shadow: 0 6px 16px rgba(13, 71, 161, 0.5);
}

.close-btn { 
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px; 
  color: #d32f2f; 
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  background: rgba(211, 47, 47, 0.1);
}
.close-btn:hover {
  background: rgba(211, 47, 47, 0.2);
  transform: rotate(90deg);
}

/* Overlay oscuro cuando menú está abierto */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1540;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Layout Portafolio --- */
.pf-layout {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
  position: relative;
}

/* Botón Hamburguesa para Sidebar (OCULTO en escritorio) */
.sidebar-toggle {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  left: 16px;
  z-index: 1600;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* CAMBIO: Oculto en escritorio */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: pulseButton 2s ease-in-out infinite;
}
.sidebar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.6);
}
.sidebar-toggle i {
  color: #fff;
  font-size: 20px;
  transition: transform 0.3s;
}
.sidebar-toggle.active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
}
.sidebar-toggle.active i {
  transform: rotate(180deg);
}

/* Sidebar Izquierdo (Filtros) - VISIBLE en escritorio */
.pf-sidebar {
  position: fixed; 
  top: var(--nav-h); 
  left: 0; 
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(8, 32, 75, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid var(--glass-border);
  padding: 20px 12px; 
  overflow-y: auto; 
  z-index: 2000;
  /* CAMBIO: Visible por defecto en escritorio */
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

/* Contenido Principal - Ajustado automáticamente en escritorio */
.pf-content {
  flex: 1; 
  margin-left: 0;
  padding: 24px 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* CORRECCIÓN: Ajustar contenido cuando sidebar está visible EN ESCRITORIO */
@media(min-width: 769px) {
  /* El sidebar siempre está visible en escritorio, así que el contenido SIEMPRE debe tener margen */
  .pf-content {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
  }
}

/* === RESPONSIVE === */
@media(max-width: 768px) { 
  /* Ocultar nav-links y admin-access-btn en móvil */
  .nav-links { 
    display: none; 
  } 
  
  /* Mostrar hamburguesa */
  .hamburger { 
    display: flex; 
  }
  
  .navbar {
    padding: 18px 20px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  /* Mostrar botón de filtros en móvil */
  .sidebar-toggle { 
    display: flex; 
  }
  
  /* Ocultar sidebar por defecto */
  .pf-sidebar { 
    transform: translateX(-100%); 
    opacity: 0;
    pointer-events: none;
  }
  
  /* Mostrar sidebar cuando está abierto */
  .pf-sidebar.open { 
    transform: translateX(0); 
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Ajustar contenido */
  .pf-content { 
    margin-left: 0 !important; 
    width: 100% !important; 
    padding: 20px 16px;
  }
  
  /* Modal adaptado a móvil */
  .modal-window { 
    flex-direction: column; 
    height: 100%; 
    border-radius: 0; 
    max-width: 100%;
    width: 100%;
  }
  
  .modal-media-container { 
    flex: 0 0 40vh; 
  }
  
  .modal-details { 
    border-left: none; 
    border-top: 1px solid #333; 
  }
}

@media (max-width: 600px) {
  .video-grid { 
    grid-template-columns: 1fr; 
  }
  
  .short-card { 
    flex: 0 0 140px; 
    height: 240px; 
  }
  
  .search-wrapper { 
    margin-bottom: 12px; 
  }
  
  .chips-row { 
    padding-bottom: 4px; 
  }
  
  .sidebar-toggle {
    width: 44px;
    height: 44px;
    top: calc(var(--nav-h) + 12px);
    left: 12px;
  }
  
  /* Ajustar header para móvil */
  .pf-header {
    margin-bottom: 20px;
  }
  
  .search-wrapper input {
    font-size: 14px;
    padding: 14px 16px 14px 44px;
  }
  
  .search-icon {
    left: 14px;
    font-size: 16px;
  }
  
  /* Ajustar modal en móviles pequeños */
  .modal-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .action-pill {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* === OVERLAY PARA SIDEBAR === */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* OPTIMIZACIÓN: Lazy Loading de Imágenes */
.lazy-img {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: scale(0.95);
}
.lazy-img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Animaciones de entrada progresiva */
.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }
.video-card:nth-child(7) { animation-delay: 0.35s; }
.video-card:nth-child(8) { animation-delay: 0.4s; }
.video-card:nth-child(9) { animation-delay: 0.45s; }

/* Efecto de rebote en badges */
.vc-badge, .vc-type {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}
@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- NUEVOS ESTILOS AGREGADOS --- */

@keyframes pulseButton {
  0%, 100% { box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(211, 47, 47, 0.8); }
}

/* === ESTILOS DEL SIDEBAR FILTROS === */
.sidebar-inner {
  padding: 10px 0;
}

.pf-nav-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: 'Montserrat', sans-serif;
}

.pf-nav-btn i {
  font-size: 18px;
  width: 20px;
}

.pf-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(5px);
}

.pf-nav-btn.active {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  color: #fff;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.4);
}

.sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

.sidebar-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 16px 5px;
  margin-top: 10px;
}

/* === HEADER DE BÚSQUEDA === */
.pf-header {
  margin-bottom: 30px;
}

.search-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.search-wrapper input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}

.search-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(13, 71, 161, 0.3);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  pointer-events: none;
}

/* Sugerencias de búsqueda */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(8, 32, 75, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-suggestions.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggestion-group-title {
  padding: 12px 20px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  letter-spacing: 1px;
}

.suggestion-item {
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--brand-red);
  color: #fff;
}

.suggestion-item i {
  color: var(--brand-blue);
  width: 20px;
}

.suggestion-badge {
  background: linear-gradient(135deg, #ffeb3b, #ffc107);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 6px;
}

/* === CHIPS DE FILTROS === */
.chips-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.chips-row::-webkit-scrollbar {
  height: 6px;
}

.chips-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.chips-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.pf-chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: 'Montserrat', sans-serif;
}

.pf-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.pf-chip.active {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.4);
}

/* === SECCIÓN SHORTS === */
.shorts-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shorts-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.shorts-track::-webkit-scrollbar {
  height: 8px;
}

.shorts-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.shorts-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.short-card {
  flex: 0 0 160px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.short-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.short-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
}

.short-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.short-views {
  font-size: 11px;
  opacity: 0.8;
}

/* === SECCIÓN DE VIDEOS === */
.videos-section {
  margin-top: 30px;
}

.section-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.vc-thumb-box {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #000;
}

.vc-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .vc-img {
  transform: scale(1.05);
}

.vc-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.vc-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ffeb3b, #ffc107);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vc-info {
  padding: 14px;
  display: flex;
  gap: 12px;
}

.vc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.vc-text {
  flex: 1;
}

.vc-text h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.4;
  font-weight: 600;
}

.vc-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* === MODAL REPRODUCTOR === */
.pf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.pf-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.modal-window {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 1400px;
  background: rgba(8, 32, 75, 0.98);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: rotate(90deg);
}

.modal-media-container {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-media-container video,
.modal-media-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-details {
  width: 400px;
  padding: 30px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.modal-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.action-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}

.action-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.action-pill.liked {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.quote-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-color: transparent;
}

.quote-wa:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.quote-mail {
  background: linear-gradient(135deg, var(--brand-blue), #1976d2);
  border-color: transparent;
}

.quote-mail:hover {
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

.modal-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 14px;
}

.modal-comments h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}

#commentForm {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

#commentInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

#commentInput:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.12);
}

.comments-list {
  max-height: 200px;
  overflow-y: auto;
}

.comment-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.c-user {
  font-weight: 700;
  color: var(--brand-blue);
  margin-right: 8px;
}

/* === MODAL LOGIN ADMIN === */
.admin-login-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.admin-login-modal.open {
  opacity: 1;
  visibility: visible;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.admin-login-box {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.admin-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(211, 47, 47, 0.1);
  border: none;
  color: var(--brand-red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.admin-close-btn:hover {
  background: var(--brand-red);
  color: #fff;
  transform: rotate(90deg);
}

.admin-logo {
  text-align: center;
  margin-bottom: 30px;
}

.admin-logo i {
  font-size: 48px;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.admin-logo h2 {
  color: #263238;
  font-size: 24px;
  font-weight: 700;
}

.admin-error {
  background: #ffebee;
  border: 1px solid #ef5350;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.admin-input-group {
  margin-bottom: 20px;
}

.admin-input-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #263238;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.admin-input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
}

.admin-input-group input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.admin-btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-blue), #1976d2);
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-btn-login:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.4);
  transform: translateY(-2px);
}

.admin-btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-footer {
  text-align: center;
  margin-top: 20px;
  color: #78909c;
  font-size: 12px;
}
