/* Corina Films · MAQUETA · estilos del sitio actual (style.css) para lo que ya existe:
   encabezado y filtros del panel, catálogo, pie del panel, pop ups. Copiado del sitio. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Space Mono', monospace; min-height: 100vh; overflow-x: hidden; background: #F6F5F0; }

.sidebar-header { margin-bottom: 40px; }
.sidebar-header h1 { width: min-content; max-width: 100%; font-family: 'Slackey', cursive; font-weight: 400; font-size: min(3.5rem, 5vw); color: #000; line-height: 1.1; text-transform: uppercase; }
.sidebar-header p { font-family: 'Special Elite', monospace; font-size: min(1.2rem, 1.75vw); font-weight: bold; color: #000; margin-top: 10px; }
.logo-link { color: inherit; text-decoration: none; }

.filter-group { margin-bottom: 25px; }
.filter-group label { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: #000; }
.brutalist-input { width: 100%; padding: 15px; font-family: 'Space Mono', monospace; font-size: 1rem; color: #000; background: #F6F5F0; border: 3px solid #000; box-shadow: 4px 4px 0px #000; transition: all 0.2s; }
.brutalist-input:focus { outline: none; transform: translate(2px, 2px); box-shadow: 2px 2px 0px #000; }
.desplegable { position: relative; }
.desplegable-boton { text-align: left; cursor: pointer; color: #000; padding-right: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.desplegable-boton[aria-expanded="true"] { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.desplegable-lista { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 60vh; overflow-y: auto; background: #F6F5F0; border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 4px 0; }
.desplegable-lista button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #000; cursor: pointer; font-family: 'Space Mono', monospace; font-size: 0.9rem; padding: 7px 14px; }
.desplegable-lista .opcion-materia { font-weight: 700; }
.desplegable-lista .con-niveles::after { content: " ▸"; }
.desplegable-lista .con-niveles[aria-expanded="true"]::after { content: " ▾"; }
.desplegable-lista .opcion-nivel { padding-left: 32px; }
.desplegable-lista button:focus { background: #000; color: #F6F5F0; outline: none; }
.niveles-materia { border-left: 3px solid #FF5E00; margin: 0 14px 4px; }
.niveles-materia .opcion-nivel { padding-left: 14px; }
.desplegable-lista[hidden], .niveles-materia[hidden] { display: none; }

.btn-subir { display: block; background: #000; color: #FF5E00; text-align: center; padding: 15px; font-family: 'Slackey', cursive; font-size: 1.2rem; text-decoration: none; border: 3px solid #000; margin-top: 40px; transition: all 0.2s ease; box-shadow: 4px 4px 0px rgba(0,0,0,0.5); cursor: pointer; }
.btn-subir:hover { background: #F6F5F0; color: #000; box-shadow: 6px 6px 0px #000; transform: translate(-2px, -2px); }
.btn-volver { margin-top: 30px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; align-items: start; }
/* Catálogo por filas (8/11): las tarjetas horizontales van de a pares/filas alineadas; una vertical ocupa el alto de dos filas
   y queda centrada entre las dos horizontales de al lado (dense rellena huecos sin dejar espacios vacíos) */
.video-grid.filas { grid-auto-flow: row dense; align-items: start; }
/* Opción D (9/11): la tarjeta vertical se estira hasta el alto exacto de las dos horizontales de al lado (sin aire),
   y el afiche llena ese alto recortando apenas los costados. En la ficha el afiche se sigue viendo entero. */
.video-grid.filas .video-card.v { grid-row: span 2; align-self: stretch; display: flex; flex-direction: column; }
.video-grid.filas .video-card.v .video-placeholder.vertical { flex: 1 1 auto; min-height: 0; height: auto; object-fit: cover; object-position: center; }
.video-card { background: #fff; border: 4px solid #000; padding: 15px; box-shadow: 8px 8px 0px #000; transition: all 0.2s ease; }
.video-card.activa, .video-card:focus-within { transform: translate(-4px, -4px); box-shadow: 12px 12px 0px #000; }
.video-placeholder { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background-color: #ddd; border: 2px solid #000; margin-bottom: 15px; filter: grayscale(100%); transition: filter 0.3s ease; }
.video-placeholder.vertical { aspect-ratio: auto; height: auto; }
.caratula-default { display: flex; align-items: flex-end; padding: 15px; background-color: #FF5E00; background-image: var(--ruido); font-family: 'Slackey', cursive; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; color: #000; }
.video-card.activa .video-placeholder, .video-card:focus-within .video-placeholder { filter: grayscale(0%); }
@media (hover: hover) {
  .video-card:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0px #000; }
  .video-card:hover .video-placeholder { filter: grayscale(0%); }
}
.video-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; margin-bottom: 10px; text-transform: uppercase; }
.video-meta { font-size: 0.9rem; color: #444; margin-bottom: 15px; }
.video-link { display: inline-block; background: #FF5E00; color: #000; text-decoration: none; padding: 8px 15px; border: 2px solid #000; font-weight: bold; text-transform: uppercase; box-shadow: 3px 3px 0px #000; }
.video-link:hover { background: #000; color: #FF5E00; }
.sin-resultados { font-family: 'Special Elite', monospace; font-size: 1.2rem; padding: 20px 0; }

.link-persona { color: inherit; text-decoration: underline; text-decoration-color: #FF5E00; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.link-persona:hover, .link-persona:focus-visible { background: #FF5E00; }

/* Pie del panel naranja (todas las pantallas) */
.pie-panel { margin-top: auto; padding-top: 30px; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; line-height: 1.5; color: rgba(0, 0, 0, 0.68); text-align: center; }
.pie-acerca { color: #000; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.pie-acerca:hover, .pie-acerca:focus-visible { background: #000; color: #FF5E00; }
.pie-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; }
.pie-copy { margin-top: 6px; }
.pie-instalar { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.pie-email { color: #000; text-decoration: underline; overflow-wrap: anywhere; }
.pie-email:hover, .pie-email:focus-visible { background: #000; color: #FF5E00; }

/* Pop ups del sitio actual (envío recibido, descargar la app) */
.popup-exito { margin: auto; width: calc(100% - 32px); max-width: 600px; max-height: calc(100% - 32px); overflow-y: auto; background: #fff; color: #000; border: 3px solid #000; box-shadow: 8px 8px 0px #000; padding: 25px; text-align: center; }
.popup-titulo { display: inline-block; font-family: 'Slackey', cursive; font-weight: normal; font-size: clamp(1.4rem, 5vw, 1.8rem); line-height: 1.15; background: #FF5E00; color: #000; border: 3px solid #000; padding: 6px 16px; margin-bottom: 20px; }
.popup-imagen { display: block; width: 100%; height: auto; border: 3px solid #000; margin-bottom: 18px; }
.popup-texto { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; line-height: 1.4; margin-bottom: 10px; }
.popup-gracias { font-size: clamp(1.4rem, 5vw, 1.8rem); line-height: 1.25; text-decoration: underline; text-decoration-color: #FF5E00; text-decoration-thickness: 3px; text-underline-offset: 5px; margin-bottom: 14px; }
.popup-revision { font-family: 'Special Elite', monospace; font-weight: normal; margin-bottom: 0; }
.popup-exito .btn-volver { margin-top: 25px; }
.popup-exito button.btn-volver { width: 100%; cursor: pointer; }
.popup-icono { display: block; margin: 0 auto 16px; border: 3px solid #000; box-shadow: 4px 4px 0px #000; }
.instalar-pasos { text-align: left; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.05rem; line-height: 1.5; margin: 14px auto 0; max-width: 440px; padding-left: 26px; }
.instalar-pasos li { margin-bottom: 8px; padding-left: 4px; }
.instalar-pasos li::marker { font-family: 'Slackey', cursive; color: #FF5E00; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 900px) {
  .sidebar-header { margin-bottom: 16px; }
  .sidebar-header h1 { font-size: clamp(1.25rem, 6.2vw, 2.4rem); }
  .sidebar-header p { font-size: clamp(0.68rem, 2.6vw, 1rem); margin-top: 3px; }
  .filter-group { margin-bottom: 12px; }
  .filter-group label { font-size: 0.78rem; margin-bottom: 4px; }
  .brutalist-input { padding: 8px 6px; font-size: 0.78rem; border-width: 2px; box-shadow: 3px 3px 0px #000; }
  .desplegable-lista button { font-size: 0.75rem; padding: 6px 8px; }
  .niveles-materia { margin: 0 6px 4px; }
  .desplegable-boton { padding-right: 24px; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; }
  .btn-subir { margin-top: 18px; padding: 10px 6px; font-size: 0.9rem; }
  .btn-volver { margin-top: 16px; padding: 9px 4px; font-size: 0.82rem; }
  .pie-panel { font-size: 0.62rem; padding-top: 16px; }
  .pie-email { font-size: 0.56rem; overflow-wrap: normal; }
  .pie-links { gap: 3px 8px; }
  .instalar-pasos { font-size: 0.92rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .video-card { padding: 8px; border-width: 3px; box-shadow: 5px 5px 0px #000; }
  .video-card.activa, .video-card:focus-within { transform: translate(-2px, -2px); box-shadow: 7px 7px 0px #000; }
  .video-placeholder { margin-bottom: 8px; }
  .caratula-default { font-size: 1rem; padding: 8px; }
  .video-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
  .video-meta { font-size: 0.72rem; margin-bottom: 8px; }
  .video-link { font-size: 0.68rem; padding: 6px 8px; box-shadow: 2px 2px 0px #000; }
  .sin-resultados { font-size: 0.95rem; }
}

::-webkit-scrollbar { width: 18px; height: 18px; }
::-webkit-scrollbar-track { background: #F6F5F0; border-left: 3px solid #000; }
::-webkit-scrollbar-thumb { background: #000; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: #F6F5F0; }
.desplegable-lista::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 12px; }
.pag-panel::-webkit-scrollbar { width: 14px; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: #000 #F6F5F0; } }
.red-persona { font-family: 'Special Elite', monospace; font-size: 0.9em; color: #444; }
.aviso-previa { font-family: 'Space Grotesk', sans-serif; font-weight: 700; text-align: center; background: #000; color: #FF5E00; border: 3px solid #000; padding: 10px; }

/* Pie rediseñado (20/11): sello más grande, íconos de mail e Instagram negros sobre el naranja,
   "Descarga" solo en su renglón y abajo Acerca de · Bases y condiciones · Política de privacidad */
.pie-panel .pie-sello { width: 88%; max-width: 380px; margin: 0 auto 18px; }
.pie-redes { display: flex; justify-content: center; align-items: center; gap: 64px; margin: 0 0 18px; }
.pie-red { display: block; line-height: 0; padding: 6px; transition: transform 0.15s ease; }
.pie-red img { display: block; height: 44px; width: auto; }
.pie-red:hover, .pie-red:focus-visible { transform: translateY(-3px); }
.pie-red:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.pie-panel .pie-links { flex-direction: column; align-items: center; gap: 10px; }
.pie-panel .pie-legales { flex-wrap: wrap; white-space: normal; gap: 4px 18px; }
.pie-panel .pie-legales a { white-space: nowrap; }
@media (max-width: 900px) {
  .pie-panel .pie-sello { width: 82%; max-width: 260px; margin-bottom: 12px; }
  .pie-redes { gap: clamp(16px, 6vw, 56px); margin-bottom: 12px; }
  .pie-red { padding: 3px; }
  .pie-red img { height: clamp(24px, 7.5vw, 40px); }
  .pie-panel .pie-links { gap: 6px; }
  .pie-panel .pie-legales { gap: 3px 10px; }
}
@media (prefers-reduced-motion: reduce) { .pie-red { transition: none; } .pie-red:hover, .pie-red:focus-visible { transform: none; } }
