/* style.css – compatible con Opera Mobile 12 (sin flexbox) */
/*@font-face {
    font-family: 'PressStart2P';
    src: url('fonts/PressStart2P-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}*/

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    text-align: center;
}

.titulo {
    /*font-family: PressStart2P, monospace;*/
    font-size: 20px;
}

.topbar {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    padding: 5px;
    background: white;
    text-align: center;
    z-index: 10;
    color: #374353;
}

/* En PC el topbar (logo) va en flujo normal y se va al hacer scroll;
   el menu de abajo queda fijo (sticky) para no perder la referencia.
   relative: para anclar el selector de idioma a la derecha. */
.topbarHD {
    position: relative;
    z-index: 60;   /* por encima del menu sticky (z-index 50) para que el popup de idioma no quede detras */
}

/* el logo es un enlace: sin subrayado ni borde (esos pixeles negros molestos) */
.topbar a { text-decoration: none; border: 0; outline: 0; }
.topbar a img { border: 0; }

.logo {
    opacity: 0;
    width: 32px;
    height: 32px;

    /* transición simple y segura */
    -o-transition: opacity 1.4s linear;
    transition: opacity 1.4s linear;
}

.logo-hd {
    width: 48px;
    height: 48px;

    /* estado inicial */
    transform: translateX(-200px) rotate(-220deg);

    /* transición */
    transition: transform 1.4s ease-out, opacity 1.4s linear;
}

.dante-8bit-HD {
    height: 48px;
}

/* estado visible */
.logo.visible {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
}

.banner .portada.visible {
    transform: translateX(0);
    opacity: 1;
}

.banner {
    justify-items: center;
    width: 100%;
    background-color: #ffdd0a;
    padding: 0px;
    margin: 0px;
    margin-top: 0px;
}

.banner-HD {
    background-image: url("images/portada-fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0px;
}

.banner .portada {
    display: block;
    opacity: 0;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 240/120;
    padding: 0px;
    margin: 0px;
    /* transición simple y segura */
    -o-transition: opacity 1.4s linear;
    transition: opacity 1.4s linear;
}

.banner-HD .portada {
    max-width: 1024px;
    aspect-ratio: 1024/410;

    /* estado inicial */
    transform: translateX(400px);

    /* transición */
    transition: transform 1.0s ease-out, opacity 0.5s linear;
}

.content {
    padding: 5px;
}

.article {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    /* recorta la imagen a las esquinas redondeadas: adios al borde negro */
    overflow: hidden;
}

.article .portada {
    display: block;
    width: 100%;
}

.article .text {
    padding: 10px;
}

/* ===================================================================
   Estructura compartida (base legacy-safe). Lo "lindo" para PC va
   bajo .hd para no romper Opera Mobile 12 / Nokia N95.
   =================================================================== */

/* --- Navegacion --- */
.nav {
    text-align: center;
    padding: 8px 4px;
    margin-top: 42px;            /* deja lugar al topbar absolute en legacy */
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
}
.nav a {
    display: inline-block;
    vertical-align: middle;
    padding: 4px 10px;
    color: #374353;
    text-decoration: none;
    font-weight: bold;
}

/* --- Tagline / textos --- */
.tagline {
    margin: 4px 10px 14px;
    color: #444;
}
.card-title {
    margin: 0 0 6px;
    font-size: 18px;
}

/* --- Boton "Ver mas" --- */
.btn {
    display: inline-block;
    padding: 6px 14px;
    background-color: #ffdd0a;
    color: #000;
    border: 2px solid #000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* --- Cards en el home (base: apiladas) --- */
.cards .card {
    margin: 0 0 12px;
    text-align: left;
}
.cards .card .text { text-align: center; }

/* --- Galeria (base: apilada). El item es una tarjeta (.article). --- */
.gallery-item { margin: 0 0 12px; text-align: left; }
.gallery-item .text { text-align: center; }
.gallery-img { width: 100%; display: block; }

/* --- Tarjetas de redes / donaciones (base legacy-safe con inline-block) --- */
.section-title {
    font-size: 18px;
    margin: 16px 0 8px;
    color: #374353;
}
.social-grid {
    text-align: center;
    margin-bottom: 10px;
}
.social-card {
    display: inline-block;
    vertical-align: top;
    width: 120px;
    margin: 5px;
    padding: 12px 8px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    text-decoration: none;
    color: #374353;
}
.social-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 6px;
}
.social-name {
    display: block;
    font-weight: bold;
    font-size: 13px;
}
.social-card--support {
    background-color: #fff7cc;
    border-color: #ffdd0a;
}

/* --- Footer (iconos) --- */
.footer {
    margin-top: 20px;
    padding: 16px 10px;
    background-color: #fafafa;
    border-top: 1px solid #e6e6e6;
}
.footer-icons { text-align: center; }
.footer-icon {
    display: inline-block;
    vertical-align: top;
    width: 64px;
    margin: 6px 4px;
    text-decoration: none;
    color: #374353;
}
.footer-icon img { display: block; width: 24px; height: 24px; margin: 0 auto 4px; }
.footer-name { display: block; font-size: 11px; }
.copyright { color: #888; font-size: 12px; margin-top: 12px; }

/* ===================================================================
   Solo PC (.hd) — usa flexbox/grid/max-width que el N95 NO soporta
   =================================================================== */
.hd .nav {
    margin-top: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.hd .content {
    max-width: 1024px;
    margin: 0 auto;
}
.hd .tagline {
    max-width: 800px;
    margin: 4px auto 18px;
    font-size: 18px;
}

/* cards lado a lado en PC */
.hd .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.hd .cards .card {
    width: 300px;
    margin: 10px;
    display: flex;
    flex-direction: column;
}
.hd .cards .card .text { flex: 1; }
/* todas las portadas del inicio en 4:3 uniforme */
.hd .cards .card .portada {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* galeria responsive en PC: 1 col (cel), 2 (tablet), 3-4 (escritorio) */
.hd .gallery,
.hd .obra-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 16px;
    gap: 16px;
}
.hd .gallery-item { width: auto; margin: 0; }
.hd .gallery-img { height: auto; }
.hd .content--wide { max-width: 1320px; }
/* las tomas no se estiran: cada imagen a su alto, con el play centrado en ella */
.hd .obra-gallery { align-items: start; }

@media (min-width: 600px) {
    .hd .gallery, .hd .obra-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
    .hd .gallery, .hd .obra-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .hd .gallery, .hd .obra-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* nav: subrayado amarillo al pasar */
.hd .nav a {
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s linear, color 0.15s linear;
}
.hd .nav a:hover {
    color: #000;
    border-bottom-color: #ffdd0a;
}

/* tarjetas de redes con efecto al pasar */
.hd .social-card {
    transition: box-shadow 0.15s linear, transform 0.15s ease-out, border-color 0.15s linear;
}
.hd .social-card:hover {
    border-color: #374353;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.hd .article {
    transition: box-shadow 0.15s linear;
}
.hd .cards .card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hd .footer { margin-top: 40px; }
.hd .footer-icon img { transition: opacity 0.15s linear; }
.hd .footer-icon:hover img { opacity: 0.55; }
/* ===================================================================
   Ajustes de reestructuracion: nav activo, cards-enlace, footer grupos
   =================================================================== */

/* Nav: pagina activa resaltada (base, sirve tambien en legacy) */
.nav a.active {
    color: #000;
    border-bottom: 2px solid #ffdd0a;
}

/* Las tarjetas ahora son <a>: sin subrayado, heredan color */
a.card {
    display: block;
    color: #374353;
    text-decoration: none;
}
a.card .card-title { color: #374353; }

/* Tagline cuando es lo primero (paginas sin banner): despega del nav */
.tagline--top { margin-top: 14px; }

/* Footer: donaciones y redes separadas en grupos */
.footer-group { margin-bottom: 12px; }
.footer-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

/* En PC, los dos grupos del footer lado a lado */
.hd .footer-group {
    display: inline-block;
    vertical-align: top;
    margin: 0 24px 12px;
}

/* --- GitHub: boton y metadatos de repos --- */
.gh-cta { text-align: center; margin: 0 0 14px; }
.btn-github {
    display: inline-block;
    padding: 8px 16px;
    background-color: #374353;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.btn-github img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 6px;
    /* el icono PNG/SVG es negro: lo aclaro a blanco solo en PC */
}
.hd .btn-github img { filter: invert(1); }
.hd .btn-github:hover { background-color: #2a333f; }

.gh-meta { margin: 0 0 6px; font-size: 12px; color: #888; }
.gh-lang { margin-right: 10px; font-weight: bold; }
.gh-stars { color: #b8860b; }

/* ===================================================================
   Obra (detalle): galeria de imagenes/videos + lightbox
   =================================================================== */
.obra-desc { max-width: 800px; margin: 0 auto 12px; }
.btn-art, .btn-back {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
    margin: 4px 6px;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.btn-art { background-color: #13aff0; color: #fff; padding-left: 11px; }   /* azul ArtStation */
.btn-back { background-color: #eee; color: #374353; padding-left: 10px; }
.btn-ico { width: 18px; height: 18px; margin-right: 6px; }

/* cada toma de la galeria (base legacy: apilada) */
.obra-shot {
    display: block;
    position: relative;
    margin: 0 0 12px;
    text-decoration: none;
}
.obra-shot img {
    display: block;
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}
/* insignia de play sobre los videos */
.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -22px 0 0 -22px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    /* el triangulo ▶ tiene masa visual a la izquierda: lo corro un toque a la derecha */
    padding-left: 4px;
    box-sizing: border-box;
}
/* En PC centramos con flex (mas preciso que line-height) */
.hd .play-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hd .obra-shot { margin: 0; }
.hd .obra-shot img { transition: opacity 0.15s linear; cursor: pointer; }
.hd .obra-shot:hover img { opacity: 0.85; }

/* --- Lightbox (solo PC) --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    text-align: center;
}
.lightbox.open { display: block; }
/* imagen centrada en el medio de la pantalla */
#lb-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 84%;        /* deja lugar a los lados para las flechas */
    max-height: 90%;
    border-radius: 6px;
    z-index: 1;
}
/* botones (cerrar y flechas) en circulos, SIEMPRE por encima de la imagen */
.lb-close,
.lb-nav {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;   /* el borde no agranda: nada de óvalos */
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.15s linear, transform 0.1s ease-out;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(0, 0, 0, 0.85); }
.lb-nav:hover { transform: scale(1.08); }
.lb-close {
    top: 18px; right: 18px;
    width: 48px; height: 48px;
    font-size: 26px;
}
.lb-nav {
    top: 50%;
    margin-top: -30px;
    width: 60px; height: 60px;
    font-size: 30px;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
/* flechas dibujadas con CSS (chevron limpio) */
.lb-nav .chev {
    display: block;
    width: 13px;
    height: 13px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
}
.lb-prev .chev { transform: rotate(135deg); margin-left: 5px; }   /* apunta a la izquierda */
.lb-next .chev { transform: rotate(-45deg); margin-right: 5px; }  /* apunta a la derecha */

/* ===================================================================
   YouTube: tarjetas de video/shorts + reproductor embebido
   =================================================================== */
.btn-yt {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ff0000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.btn-yt img { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }
.hd .btn-yt img { filter: invert(1); }
.hd .btn-yt:hover { background-color: #cc0000; }

/* tarjeta de video (base legacy: apilada) */
.yt-card {
    display: block;
    margin: 0 0 12px;
    text-decoration: none;
    color: #374353;
    text-align: left;
}
.yt-thumb {
    display: block;
    position: relative;
}
.yt-thumb img { display: block; width: 100%; }
.yt-card .text { display: block; padding: 10px; }
.yt-card .card-title { display: block; font-size: 15px; margin: 0 0 4px; }
.yt-meta { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.yt-desc { display: block; font-size: 13px; color: #555; }

/* grid responsive en PC */
.hd .yt-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 16px;
    gap: 16px;
}
.hd .yt-card { margin: 0; }
@media (min-width: 600px) { .hd .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .hd .yt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) {
    .hd .yt-grid { grid-template-columns: repeat(4, 1fr); }
    .hd .yt-grid--shorts { grid-template-columns: repeat(5, 1fr); }
}
.hd .yt-card .play-badge { transition: background 0.15s linear; }
.hd .yt-card:hover .play-badge { background: rgba(255,0,0,0.85); }

/* reproductor embebido (lightbox 16:9) */
.yt-lightbox .yt-embed {
    position: relative;
    width: 90%;
    max-width: 960px;
    margin: 6% auto 0;
    padding-bottom: 50.6%;     /* 16:9 sobre el 90% */
    height: 0;
}
.yt-lightbox .yt-embed > div,
.yt-lightbox .yt-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ===================================================================
   Tarjeta especial de apoyo (Cafecito / Patreon)
   =================================================================== */
.support-card {
    max-width: 640px;
    margin: 6px auto 0;
    padding: 22px 18px;
    text-align: center;
    background-color: #fff7cc;
    border: 1px solid #ffdd0a;
    border-radius: 14px;
}
.support-icons img { width: 24px; height: 24px; margin: 0 6px; vertical-align: middle; }
.support-title { margin: 8px 0 6px; font-size: 20px; color: #374353; }
.support-text { margin: 0 auto 14px; max-width: 480px; color: #555; }
.support-actions { margin: 0; }
.btn-support {
    display: inline-block;
    margin: 5px;
    padding: 9px 18px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
}
.btn-support img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 7px;
    margin-top: -2px;
}
.btn-support--cafe { background-color: #6f4e37; }     /* café */
.btn-support--patreon { background-color: #000; }     /* patreon */
.hd .btn-support { transition: opacity 0.15s linear; }
.hd .btn-support:hover { opacity: 0.85; }

/* --- Shorts en 9:16 (portada vertical) --- */
/* Legacy/celular: una sola, centrada y sin que sea gigante */
.yt-card--short {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}
/* En PC llenan la columna como los videos (sin tope ni centrado raro) */
.hd .yt-card--short {
    max-width: none;
    margin: 0;
}
/* Checklist de estado del proyecto (hecho / pendiente) */
.status-group-title {
    font-weight: bold;
    margin: 14px 0 4px;
}
.status-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 8px;
}
.status-list li {
    padding: 3px 0;
}
.status-list li input {
    margin-right: 8px;
    vertical-align: middle;
}
.status-list li.done {
    color: #1f7a33;
}

/* Recuadro de credito (proyecto basado en obra de otra persona) */
.credit-box {
    border: 1px solid #c9d6e5;
    background: #eef4fb;
    border-left: 4px solid #2f6fb0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 20px;
}
.credit-box p { margin: 8px 0; }
.credit-box .proyecto-links { margin-bottom: 4px; }

/* Short embebido en la pagina de proyecto: centrado y acotado */
.proyecto-video {
    max-width: 300px;
    margin: 18px auto 0;
}
.hd .proyecto-video .yt-card--short .yt-thumb {
    border-radius: 10px;
}
.hd .yt-card--short .yt-thumb {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.hd .yt-card--short .yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shorts: mas columnas que los videos porque son angostos */
.hd .yt-grid--shorts { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px)  { .hd .yt-grid--shorts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px)  { .hd .yt-grid--shorts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .hd .yt-grid--shorts { grid-template-columns: repeat(5, 1fr); } }

/* ===================================================================
   Sobre mi / Manifiesto
   =================================================================== */
.prose {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.55;
    color: #333;
}
.prose .section-title { margin-top: 22px; }
.prose p { margin: 0 0 12px; }

.libres-grid {
    text-align: center;
    margin: 6px 0 8px;
}
.libre-item {
    display: inline-block;
    vertical-align: top;
    width: 104px;
    margin: 5px;
    padding: 12px 6px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    text-decoration: none;
    color: #374353;
    text-align: center;
}
.libre-item img { display: block; width: 24px; height: 24px; margin: 0 auto 6px; }
.libre-item span { font-size: 13px; font-weight: bold; }
.hd .libre-item { transition: border-color 0.15s linear, box-shadow 0.15s linear; }
.hd .libre-item:hover { border-color: #374353; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.objetivos {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}
.objetivos li {
    padding: 9px 14px;
    margin: 6px 0;
    background-color: #fff7cc;
    border-left: 4px solid #ffdd0a;
    border-radius: 0 8px 8px 0;
}

/* ===================================================================
   Sobre mí: figura e-waste, dato destacado, casos reales, cierre
   =================================================================== */
.ewaste-figure { margin: 14px 0; }
.ewaste-figure img {
    display: block;
    width: 100%;
    border-radius: 10px;
}
.ewaste-figure figcaption {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    text-align: center;
}

.stat-callout {
    margin: 16px 0;
    padding: 16px 18px;
    background-color: #fff7cc;
    border-left: 4px solid #ffdd0a;
    border-radius: 0 10px 10px 0;
}
.stat-callout p { margin: 0; }
.stat-callout strong { color: #b8860b; }
.stat-source { margin-top: 8px !important; font-size: 12px; color: #777; }
.stat-source strong { color: #777; }

/* casos reales: tarjetas con icono, texto y fuente */
.case-grid { margin: 12px 0 4px; }
.case-card {
    display: block;
    margin: 0 0 10px;
    padding: 14px 16px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    text-decoration: none;
    color: #374353;
}
.case-icon { float: left; width: 24px; height: 24px; margin: 2px 12px 0 0; }
.case-title { display: block; font-weight: bold; font-size: 16px; margin-bottom: 4px; }
.case-text { display: block; font-size: 14px; color: #555; line-height: 1.5; }
.case-source {
    display: block;
    clear: both;
    margin-top: 6px;
    font-size: 12px;
    color: #13aff0;
    font-weight: bold;
}

.art-line {
    font-size: 18px;
    font-weight: bold;
    color: #374353;
    border-top: 1px solid #e6e6e6;
    padding-top: 12px;
}

/* En PC: casos en 2 columnas y un poco de vida al pasar */
.hd .case-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 14px;
    gap: 14px;
}
@media (min-width: 720px) {
    .hd .case-grid { grid-template-columns: repeat(2, 1fr); }
}
.hd .case-card { margin: 0; transition: box-shadow 0.15s linear, border-color 0.15s linear; }
.hd .case-card:hover { border-color: #374353; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ===================================================================
   Contacto: imagen ilustrativa + lista de redes explicadas
   =================================================================== */
.contact-hero {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 14px auto 0;
    border-radius: 12px;
}
.net-list { padding-top: 6px; }
/* N95: layout de tabla para centrar el icono en vertical (sin flexbox) */
.net-card {
    display: table;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 14px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    text-decoration: none;
    color: #374353;
    text-align: left;
}
.net-icon { display: table-cell; vertical-align: middle; width: 16px; height: 16px; }
.net-text { display: table-cell; vertical-align: middle; padding-left: 12px; }
.net-name { display: block; font-weight: bold; font-size: 15px; }
.net-desc { display: block; font-size: 12px; color: #666; }

.hd .net-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
    gap: 10px;
}
@media (min-width: 720px) {
    .hd .net-list { grid-template-columns: repeat(2, 1fr); }
}
/* PC: flexbox para el centrado, icono 24px */
.hd .net-card {
    margin: 0;
    width: auto;
    min-width: 0;   /* clave: el item del grid puede achicarse y no desbordar sobre el vecino */
    display: flex;
    align-items: center;
    transition: border-color 0.15s linear, box-shadow 0.15s linear;
}
.hd .net-icon { display: block; width: 24px; height: 24px; margin: 0 14px 0 2px; flex-shrink: 0; }
.hd .net-text { display: block; padding-left: 0; min-width: 0; }
.hd .net-card:hover { border-color: #374353; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* tarjetas de red centradas que se acomodan solas (inicio) */
.hd .net-list--social {
    max-width: 920px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* aviso "en desarrollo" en paginas de proyecto */
.dev-notice {
    background-color: #fff7cc;
    border-left: 4px solid #ffdd0a;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 0 0 12px;
    font-weight: bold;
    color: #6b5900;
}
.proyecto-links { margin-top: 12px; }

/* ===================================================================
   Banner de la pagina de Videos (channels4_banner de punta a punta)
   =================================================================== */
.yt-banner {
    width: 100%;
    background-color: #000;
    background-image: url("images/inicio/channels4_banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 46px 16px;
}
.yt-banner-inner {
    display: inline-block;
    max-width: 720px;
    background: rgba(0, 0, 0, 0.72);
    padding: 20px 28px;
    border-radius: 12px;
}
.yt-banner-text {
    color: #fff;
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.4;
}

/* ===================================================================
   Pagina de proyecto: portada + contenido rico (tablas de controles)
   =================================================================== */
.proyecto-cover {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 4px;
    border-radius: 12px;
}
.article .text code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 90%;
}
.article .text h3.ctrl-title {
    font-size: 16px;
    margin: 16px 0 6px;
    color: #374353;
}
.ctrl-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 12px;
    text-align: left;
}
.ctrl-table th,
.ctrl-table td {
    border: 1px solid #e6e6e6;
    padding: 6px 10px;
    font-size: 14px;
}
.ctrl-table th {
    background-color: #f5f5f5;
    color: #374353;
}
.ctrl-table td:first-child {
    font-weight: bold;
    white-space: nowrap;
    color: #374353;
}
.dev-note {
    background-color: #f2f2f2;
    border-left: 4px solid #bbb;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin: 8px 0 0;
    font-size: 14px;
    color: #555;
}

/* ===================================================================
   Selector de idioma (globo + popup). En N95: lista simple visible.
   =================================================================== */
.lang-switch { position: relative; display: inline-block; vertical-align: middle; }
.lang-toggle { display: none; }
/* N95: selector compacto (globo + desplegable nativo) */
.lang-select { display: inline-block; white-space: nowrap; }
.lang-select img { vertical-align: middle; margin-right: 4px; }
.lang-select select { vertical-align: middle; font-size: 13px; }
.lang-flag {
    width: 24px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid #ddd;
}
/* N95: opciones como lista de enlaces */
.lang-opt {
    display: inline-block;
    padding: 3px 6px;
    text-decoration: none;
    color: #374353;
    font-size: 13px;
}
.lang-opt.active { font-weight: bold; }

/* PC: selector arriba a la derecha del topbar, alineado con el logo */
.hd .lang-switch {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}
/* globo arriba, texto "Idioma" abajo */
.hd .lang-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
    color: #374353;
    padding: 4px 6px;
}
.hd .lang-toggle img { width: 22px; height: 22px; margin: 0 0 2px; }
.hd .lang-popup {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 6px;
    z-index: 100;
    min-width: 180px;
    text-align: left;
}
.hd .lang-switch.open .lang-popup { display: block; }
.hd .lang-opt {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.hd .lang-opt:hover { background: #f2f2f2; }
.hd .lang-opt.active { background: #fff7cc; }

/* aviso de traduccion por IA (solo en idiomas != español) */
.trans-notice {
    background-color: #fff7cc;
    border-bottom: 1px solid #ffdd0a;
    color: #6b5900;
    font-size: 13px;
    text-align: center;
    padding: 8px 12px;
}
.trans-text { vertical-align: middle; }
.trans-close {
    vertical-align: middle;
    margin-left: 10px;
    padding: 3px 10px;
    border: 1px solid #d9b800;
    background: #fff;
    color: #6b5900;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}
.hd .trans-close:hover { background: #fffceb; }

/* frase de cierre del bloque de suscripciones (Sobre mí) */
.rent-punch { font-weight: bold; color: #374353; margin-top: 16px; }

/* ===================================================================
   "Loading" de imagenes: shimmer animado + fade-in (solo PC).
   Sin JS las imagenes se ven normal (no se les pone la clase .lz).
   =================================================================== */
@keyframes lzshimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.hd img.lz {
    opacity: 0;
    min-height: 140px;
    transition: opacity 0.4s ease;
    background-color: #dadada;
    background-image: linear-gradient(90deg, #d6d6d6 25%, #efefef 50%, #d6d6d6 75%);
    background-size: 200% 100%;
    animation: lzshimmer 1.2s linear infinite;
}
.hd img.lz.lz-done {
    opacity: 1;
    min-height: 0;
    background: none;
    animation: none;
}

/* spinner girando centrado sobre la imagen que carga (solo PC) */
@keyframes lzspin { to { transform: rotate(360deg); } }
.hd .lzbox { position: relative; display: block; }
.hd .yt-thumb .lzbox { height: 100%; }   /* para el object-fit de los shorts */
.hd .lzbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(0, 0, 0, 0.18);
    border-top-color: #374353;
    border-radius: 50%;
    animation: lzspin 0.8s linear infinite;
    z-index: 2;
}
.hd .lzbox.lzbox--done::after { display: none; }
