/* videos.gonzalodev.es — estilos comunes de la galería y de las páginas de vídeo */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borde { to { --ang: 360deg; } }
@keyframes sube { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes flota { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -30px); } }

:root {
  --negro: #050d0b; --verde: #2ee6a0; --verde-marca: #2BD67B; --menta: #9ff5d2; --violeta: #8b7bff;
  --texto: #e9f5f1; --suave: rgba(233,245,241,.66); --tenue: rgba(233,245,241,.45); --linea: rgba(255,255,255,.09);
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; min-height: 100vh; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--negro); color: var(--texto); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.cont { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.cont > * { min-width: 0; }

.aurora { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .4; animation: flota 18s ease-in-out infinite; }
.aurora span:nth-child(1) { width: 560px; height: 560px; left: -180px; top: -160px; background: #13a86a; }
.aurora span:nth-child(2) { width: 520px; height: 520px; right: -220px; top: 35%; background: #4a3fd6; opacity: .26; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 480px; height: 480px; left: 25%; bottom: -280px; background: #a3264f; opacity: .18; animation-delay: -12s; }

/* barra superior */
nav { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: rgba(5,13,11,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--linea); }
nav .cont { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(240,245,242,.14); flex: none; }
.logo span { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.04em; white-space: nowrap; }
.logo b { color: var(--verde-marca); }
.logo small { font-family: Inter, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--tenue); margin-left: 4px; }
nav .derecha { margin-left: auto; display: flex; gap: 8px; }

.boton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; transition: transform .3s var(--ease), background .3s; -webkit-tap-highlight-color: transparent; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: scale(.97); transition-duration: .12s; }
.boton.primario { background: var(--verde); color: #04201a; box-shadow: 0 10px 34px -8px rgba(46,230,160,.6); }
.boton.cristal { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.boton.cristal:hover { background: rgba(255,255,255,.12); }
.boton.pequeno { min-height: 38px; padding: 8px 15px; font-size: 14px; }

main { position: relative; z-index: 1; }
.anim { animation: sube .8s var(--ease) both; animation-delay: var(--d, 0s); }
.pre { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(46,230,160,.35); background: rgba(46,230,160,.08); color: var(--menta); font-size: 13.5px; font-weight: 600; }
.pre i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 12px var(--verde); }
h1 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 18px 0 14px; }
.degradado { background: linear-gradient(100deg, var(--verde), var(--menta) 45%, var(--violeta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(46,230,160,.12); color: var(--menta); }

/* galería */
.cabecera { padding: 56px 0 34px; }
.cabecera h1 { font-size: clamp(38px, 6vw, 68px); }
.cabecera p { color: var(--suave); font-size: 18px; max-width: 620px; margin: 0; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.filtros button { all: unset; cursor: pointer; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--suave); background: rgba(255,255,255,.04); border: 1px solid var(--linea); transition: all .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.filtros button:hover { color: var(--texto); border-color: rgba(46,230,160,.4); }
.filtros button[aria-pressed="true"] { background: var(--verde); color: #04201a; border-color: var(--verde); }
.galeria { columns: 3 300px; column-gap: 22px; padding: 10px 0 90px; }
.tarjeta { display: block; break-inside: avoid; margin: 0 0 22px; border-radius: 26px; background: rgba(255,255,255,.035); border: 1px solid var(--linea); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, opacity .4s, box-shadow .45s var(--ease); -webkit-tap-highlight-color: transparent; }
.tarjeta:hover { transform: translateY(-6px); border-color: rgba(46,230,160,.35); box-shadow: 0 30px 70px -30px rgba(46,230,160,.35); }
.tarjeta:active { transform: scale(.985); }
.tarjeta.oculta { display: none; }
.miniatura { position: relative; background: #0a1513; overflow: hidden; }
.miniatura img, .miniatura video { display: block; width: 100%; height: 100%; object-fit: cover; }
.miniatura video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.miniatura.reproduce video { opacity: 1; }
.miniatura .dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(5,13,11,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.miniatura .icono-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; font-size: 22px; color: #04201a; background: var(--verde); box-shadow: 0 10px 34px -6px rgba(46,230,160,.7); transition: opacity .35s, transform .45s var(--ease); }
.miniatura.reproduce .icono-play { opacity: 0; transform: scale(.7); }
.tarjeta .info { padding: 18px 20px 22px; }
.tarjeta h2 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1.15; margin: 10px 0 6px; }
.tarjeta p { margin: 0; color: var(--suave); font-size: 14.5px; }
.tarjeta .meta { margin-top: 10px; font-size: 13px; color: var(--tenue); }
.vacio { padding: 60px 0; color: var(--tenue); }

/* página de un vídeo */
.ficha { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; padding: 50px 0 70px; }
.ficha.horizontal { grid-template-columns: 1fr; gap: 34px; }
.reproductor { position: relative; justify-self: center; }
.marco { position: relative; padding: 2px; border-radius: 34px; background: conic-gradient(from var(--ang), var(--verde), var(--violeta), transparent 40%, var(--menta), var(--verde)); animation: borde 7s linear infinite, sube 1s var(--ease) .15s both; box-shadow: 0 50px 120px -40px rgba(46,230,160,.45); }
.marco video { display: block; border-radius: 32px; background: #050d0b; object-fit: cover; cursor: pointer; }
.vertical .marco video { width: min(380px, 82vw); aspect-ratio: 9 / 16; height: auto; max-height: calc(100svh - 150px); }
.horizontal .marco video { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.cuadrado .marco video { width: min(560px, 88vw); aspect-ratio: 1; height: auto; }
.marco .centro { position: absolute; inset: 2px; display: grid; place-items: center; border: 0; border-radius: 32px; background: rgba(5,13,11,.28); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .35s; }
.marco .centro span { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; padding-left: 5px; background: var(--verde); color: #04201a; font-size: 28px; box-shadow: 0 12px 40px -8px rgba(46,230,160,.7); }
.marco.parado .centro { opacity: 1; pointer-events: auto; }
.marco .sonido { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(5,13,11,.6); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.barra { margin-top: 14px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.barra i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--verde), var(--menta), var(--violeta)); }
.texto h1 { font-size: clamp(34px, 5vw, 58px); }
.texto .desc { color: var(--suave); font-size: 18px; max-width: 560px; margin: 0 0 14px; }
.texto .meta { color: var(--tenue); font-size: 14px; margin-bottom: 28px; }
.botones { display: flex; flex-wrap: wrap; gap: 10px; }
.aviso { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 50; padding: 11px 18px; border-radius: 999px; background: var(--verde); color: #04201a; font-weight: 600; font-size: 14px; transition: all .4s var(--ease); pointer-events: none; white-space: nowrap; }
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }
.mas { padding: 10px 0 90px; }
.mas h2 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -.03em; margin: 0 0 22px; }
.mas .galeria { padding-bottom: 0; }

footer { position: relative; z-index: 1; border-top: 1px solid var(--linea); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--tenue); font-size: 14px; }

@media (max-width: 860px) {
  .ficha { grid-template-columns: 1fr; gap: 30px; padding: 26px 0 56px; }
  .texto { text-align: left; }
  .cabecera { padding: 38px 0 22px; }
}
@media (max-width: 600px) {
  .galeria { columns: 1; }
  .botones .boton { flex: 1 1 auto; }
  nav .derecha .largo, nav .solo-ancho, .logo small { display: none; }
  nav .derecha .boton.cristal { min-width: 44px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
