@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ===== SISTEMA DE TÍTULOS BASE ===== */

.section-title,
.live-text,
.programacion-title h2,
.youtube-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;          /* 👈 tamaño base */
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--dark);
}

/* Paleta basada en el logo */
:root {
    --primary: #EC9C1C;   /* Naranja TV */
    --secondary: #8BC34A; /* Verde campos */
    --dark: #222222;
    --gray: #555555;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --radius: 16px;
    --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        /* NUEVO: verde institucional del canal */
    --tv-green: #6FAF3D; /* ajusta si tienes el hex exacto del logo */
    --tv-green-dark: #5a8f31;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: linear-gradient(
        180deg,
        #f8f8f8 0%,
        #f2f2f2 100%
    );
    color: var(--dark);
    line-height: 1.6;
    padding-top: 84px;
}

h1, h2, h3, h4, h5, h6,
.section-header h2,
.programacion-title h2,
.youtube-title {
    text-transform: uppercase;
}
.nav a {
    font-family: var(--font-heading);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* Fondo sólido (no transparente) */
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f4f8f2 100%
    );

    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ===== REDES SOCIALES HEADER ===== */

.header-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Botón */
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    transition: transform .2s ease, box-shadow .2s ease;
}

/* SVG base */
.social-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Facebook */
.social-btn.facebook svg {
    fill: #1877F2;
}

/* Instagram */
.social-btn.instagram svg {
    fill: #C13584;
}

/* YouTube */
.social-btn.youtube svg {
    fill: #FF0000;
}

/* Fuerza el color del ícono */
.social-btn svg path {
    fill: currentColor;
}

/* Hover general */
.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Colores oficiales */
.social-btn.facebook:hover {
    background: rgba(24,119,242,0.12);
}
.social-btn.facebook:hover svg {
    fill: #1877F2;
}

.social-btn.instagram:hover {
    background: rgba(193,53,132,0.12);
}
.social-btn.instagram:hover svg {
    fill: #C13584;
}

.social-btn.youtube:hover {
    background: rgba(255,0,0,0.12);
}
.social-btn.youtube:hover svg {
    fill: #FF0000;
}

/* Mobile */
@media (max-width: 600px) {
    .social-btn {
        width: 32px;
        height: 32px;
    }

    .social-btn svg {
        width: 16px;
        height: 16px;
    }
}

.header-inner {
    max-width: 1400px;
    margin: auto;
    padding: 16px 24px;   /* más aire vertical */
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px; /* asegura altura suficiente para logo 72px */
}

.logo img {
    display: block;     /* evita comportamiento inline */
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: left center;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* NAV */

.nav {
    display: none; /* mobile: oculto por defecto */
    flex-direction: column;
    gap: 10px;
    background: var(--white);
    position: absolute;
    top: 60px;
    right: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--primary);
}

/* Botón menú mobile */

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark);
}

/* MAIN */

.main {
    max-width: 1200px;
    margin: 20px auto 10px;
    padding: 0 16px;
}

/* SECCIONES */

.section {
    margin-bottom: 32px;
}

.section-alt,
.programacion-lista {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f9f9f9 100%
    );
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 8rem;
    margin-bottom: 4px;
    font-weight: 700;
}

h3 {
    font-weight: 600;
}

.section-header p,
.programacion-subtitle,
.live-info p {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray);
    margin-top: 4px;
}

/* LIVE */

.live-section {
    margin-bottom: 12px;
}

@media (min-width: 1024px) {
  .live-section {
    margin-top: 30px; /* un poco más elegante en desktop */
  }
}

.live-player-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.live-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.live-info {
    margin-top: 14px;
}

.live-info h3 {
    font-size: 8rem;
    margin-bottom: 4px;
}

.live-info p {
    font-size: 0.7rem;
    color: var(--gray);
}

.live-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* CARDS */

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.card p {
    font-size: 0.9rem;
    color: var(--gray);
}

.card-horizontal .link-more {
    margin-top: 6px;
}

/* BOTONES Y LINKS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(236,156,28,0.1);
}

.link-more {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

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

.section-actions {
    margin-top: 10px;
}

/* FOOTER */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 16px;
    margin-top: 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
}

/* RESPONSIVE – Tablets y escritorio */

@media (min-width: 768px) {

    .header-inner {
        padding: 16px 24px; /* antes era 10px */
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        display: flex !important;
        flex-direction: row;
        gap: 18px;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav a {
        font-size: 0.95rem;
    }

    .main {
        padding: 0 24px;
    }

    .live-player-card {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
        gap: 16px;
        align-items: flex-start;
    }

    .live-info {
        margin-top: 0;
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

/* RESPONSIVE – Escritorio grande */

@media (min-width: 1024px) {
    .header-inner {
        padding: 18px 32px; /* un poco más para escritorio grande */
    }

    .main {
        padding: 0 32px;
    }
}

/* UTILIDADES */

.nav.open {
    display: flex;
}

.player-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 Ajuste perfecto al contenedor */
    border-radius: 12px;
    background: #000;
}

@media (max-width: 600px) {
    .logo img {
        height: 56px;
        max-width: 160px;
    }
}

/* LIVE INDICATOR */

.live-indicator {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.live-indicator-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6px 24px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

/* Punto rojo parpadeante */
.live-pulse {
    width: 10px;
    height: 10px;
    background: green;
    border-radius: 50%;
    animation: pulse 1.2s infinite ease-in-out;
}

/* Ícono LIVE */
.live-icon {
    height: 18px;
    width: auto;
}

/* Texto */
.live-text {
    letter-spacing: 0.3px;
}

/* Animación */
@keyframes pulse {
    0%   { opacity: 0.3; }
    50%  { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Mobile */
@media (max-width: 600px) {
    .live-indicator-inner {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .live-icon {
        height: 16px;
    }
}

/* REDES SOCIALES */

.redes-sociales {
    text-align: center;
}

.redes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.red-social-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.social-icon.instagram { color: #C13584; }
.social-icon.youtube   { color: #FF0000; }
.social-icon.facebook  { color: #1877F2; }

/* Íconos sin fondo */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #444; /* visible sobre fondo claro */
    transition: opacity .2s ease, transform .2s ease;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* Hover sutil */
.social-icon:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 600px) {
    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .header-social {
        gap: 14px;
    }
}

.red-social-icon {
    height: 48px;
    width: auto;
}

.red-social-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.red-social-card p {
    font-size: 0.95rem;
    color: var(--gray);
    max-width: 420px;
}

/* Desktop */
@media (min-width: 768px) {
    .redes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
    }
}

.redes-headlines {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.redes-headlines li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.redes-headlines a {
    margin-left: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* YOUTUBE SECTION */

.youtube-section {
    text-align: center;
}

.youtube-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.youtube-main {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

.youtube-main iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Desktop */
@media (min-width: 768px) {
    .youtube-grid {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

.youtube-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.youtube-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
}

.youtube-card img {
    width: 100%;
    display: block;
}

.youtube-card h3 {
    font-size: 0.9rem;
    padding: 10px 12px;
    line-height: 1.3;
}

.youtube-card a {
    text-decoration: none;
    color: var(--dark);
}

@media (min-width: 768px) {
    .youtube-cards {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 600px) {

    body {
        font-weight: 300;           /* texto más liviano */
        line-height: 1.7;
    }

    .section-header h2 {
        font-weight: 600;           /* menos pesado que desktop */
        font-size: 1.1rem;
    }

    h3 {
        font-weight: 500;
    }

    .nav a {
        font-weight: 500;           /* menú más fino */
    }

    .btn {
        font-weight: 500;
    }

    p,
    .card p,
    .live-info p,
    .red-social-card p {
        font-weight: 300;           /* 👈 clave para “texto fino” */
    }
}

/* PROGRAMACIÓN – REDISEÑO */

.programacion {
    padding: 0 16px;
}

/* HEADER */

.programacion-header {
    margin-bottom: 20px;
}

.programacion-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.programacion-title h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.programacion-title .icon {
    font-size: 1.6rem;
}

.programacion-line {
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 8px 0;
}

.programacion-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}

/* NAVEGACIÓN DE DÍAS */

.programacion-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px 14px;
}

.day-arrow {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.day-current {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

/* LISTA */

.programacion-lista {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: left;
}

/* ITEM */

.programacion-item {
    padding: 10px 14px;   /* antes 14px 16px */
    gap: 12px;
}

.programacion-item.zebra-0 {
    background: #ffffff;
}

.programacion-item.zebra-1 {
    background: #f7f7f7;
}

.programacion-item .hora {
    font-size: 0.9rem;
}

.programacion-item .contenido {
    display: flex;
    flex-direction: column;
}

.programacion-item .contenido span {
    font-size: 0.75rem;
}

.programacion-item strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

/* FOOTER TV */

.footer-tv {
    background: var(--tv-green);
    color: var(--white);
    font-family: var(--font-body);
}

/* ===== SPONSORS ===== */

.footer-sponsors {
    padding: 32px 16px 20px;
    background: var(--white);
    text-align: center;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 6px 18px;          /* ⬇ menos alto */
    border-radius: 999px;

    background: var(--tv-green);
    color: var(--white);

    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;          /* ⬇ texto un poco más chico */

    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Ícono 🤝 más grande */
.footer-pill span {
    font-size: 1.25rem;         /* ⬆ mano más grande */
    line-height: 1;
}

/* MARQUEE */

.sponsors-marquee {
    overflow: hidden;
    position: relative;
}

.sponsors-track {
    display: flex;
    gap: 48px;                  /* un poco más aire */
    width: max-content;

    animation: scrollSponsors 18s linear infinite;
}

.s-logo {
    flex: 0 0 auto;
    height: 68px;               /* ⬆ más grandes */
    display: flex;
    align-items: center;
}

.s-logo img {
    max-height: 100%;
    max-width: 140px;           /* evita logos gigantes */
}

.s-logo img:hover {
    opacity: 1;
}

@keyframes scrollSponsors {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== CONTENT ===== */

.footer-content {
    padding: 32px 16px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-about h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-about p,
.footer-hint {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* FORM */

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-form input,
.footer-form textarea {
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-body);
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.footer-hint {
    font-size: 0.75rem;
    color: #aaa;
}

/* ===== BOTTOM ===== */

.footer-bottom {
    text-align: center;
    padding: 12px 16px;
    font-size: 0.75rem;
    background: var(--tv-green-dark);
    color: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* DESKTOP */

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.youtube-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yt-icon {
    color: #ff0000;
    font-size: 1.4rem;
}

.youtube-card-body {
    padding: 10px 12px 14px;
}

.youtube-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 6px;
}

.youtube-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--gray);
}

/* PROGRAMACIÓN – alto fijo con scroll interno */
.programacion-lista {
    max-height: 260px;        /* 🔥 ajustable: ~3–4 bloques */
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Scroll elegante (mobile friendly) */
.programacion-lista::-webkit-scrollbar {
    width: 6px;
}

.programacion-lista::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.programacion-lista::-webkit-scrollbar-track {
    background: transparent;
}

/* Altura fija + scroll */
.programacion-scroll {
    max-height: 260px; /* ≈ 3–4 bloques */
    overflow-y: auto;
}

/* Scroll bonito (opcional) */
.programacion-scroll::-webkit-scrollbar {
    width: 6px;
}
.programacion-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

/* ===============================
   AJUSTE DEFINITIVO ESPACIADO
================================ */

/* Anula margen global de sections */
#programacion.section {
    margin-bottom: 6px !important;
}

/* Reduce padding inferior real */
.tv-programacion {
    padding-bottom: 8px;
}

/* Compacta YouTube */
.youtube-section {
    margin-top: 6px;
}

/* Reduce aire bajo header de YouTube */
.youtube-header-intro {
    margin: 6px 0 10px;
}

/* =====================================================
   DESKTOP FIXES – SAN NICOLÁS TV
   SOLO ESCRITORIO (no afecta mobile)
===================================================== */
@media (min-width: 1024px) {

  /* =========================
     CONTENEDOR GENERAL
  ========================= */

  .main {
    max-width: 1280px;
    margin: 24px auto;
  }

  .section {
    margin-bottom: 48px;
  }

  /* =========================
     HEADERS DE SECCIÓN (IMAGEN)
     Reduce altura y evita cortes
  ========================= */

  .programacion-header-image,
  .youtube-header-image,
  .actualidad-header-image {
    height: 140px;              /* antes 110–115 */
  }

  .programacion-header-image img,
  .youtube-header-image img,
  .actualidad-header-image img {
    object-fit: contain;        /* 👈 clave: NO se corta el texto */
    background: #000;           /* relleno elegante si sobra espacio */
  }

  /* =========================
     TÍTULOS Y JERARQUÍA
  ========================= */

  .section-header h2 {
    font-size: 2.2rem;          /* antes 8rem (demasiado) */
    letter-spacing: 1px;
  }

  .programacion-title h2 {
    font-size: 1.6rem;
  }

  .youtube-title {
    font-size: 1.4rem;
  }

  .live-info h3 {
    font-size: 1.4rem;
  }

  /* =========================
     LIVE SECTION
  ========================= */

  .live-player-card {
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
    padding: 20px;
  }

  .live-info p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* =========================
     PROGRAMACIÓN
  ========================= */

  .tv-programacion {
    padding-bottom: 24px;
  }

  .programacion-content {
    padding: 24px 0;
  }

  .programacion-scroll {
    max-height: 420px;          /* más horas visibles */
  }

  .programacion-item {
    padding: 14px 18px;
  }

  .programacion-item strong {
    font-size: 1rem;
  }

  .programacion-item span {
    font-size: 0.8rem;
  }

  /* =========================
     ACTUALIDAD (NOTICIAS)
  ========================= */

  .actualidad-container {
    max-width: 1280px;
    padding: 24px 0;
  }

  .actualidad-cards {
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
  }

  .actualidad-body h3 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  /* =========================
     YOUTUBE
  ========================= */

  .youtube-grid {
    grid-template-columns: 2.5fr 1.5fr;
    gap: 24px;
  }

  .youtube-cards {
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 20px;
  }

  .youtube-card h3 {
    font-size: 0.9rem;
  }

  /* =========================
     FOOTER
  ========================= */

  .footer-content {
    padding: 48px 0;
  }

  .footer-grid {
    max-width: 1280px;
    gap: 48px;
  }

  .footer-about p {
    max-width: 520px;
  }

}


/* =====================================================
   DESKTOP LAYOUT 70% CENTRADO
===================================================== */
@media (min-width: 1024px) {

  body {
    background: #f2f2f2; /* marco visual suave */
  }

  .main,
  .header-inner,
  .live-indicator-inner,
  .footer-grid {
    width: 70%;
    max-width: none;     /* 👈 MUY IMPORTANTE */
    margin-left: auto;
    margin-right: auto;
  }

}


@media (min-width: 1024px) {

  .live-player-card {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75% / 25% */
    gap: 24px;
    align-items: flex-start;
  }

  .player-wrapper {
    padding-top: 56.25%; /* mantiene 16:9 perfecto */
  }

  .live-info {
    padding-top: 6px;
  }

}

@media (min-width: 1024px) {

  .programacion-header-image,
  .youtube-header-image,
  .actualidad-header-image {
    width: 70%;
    margin-left: auto;
    margin-right: auto;

    height: auto;            /* 👈 no forzar */
    max-height: 220px;       /* límite elegante */
    overflow: hidden;
  }

  .programacion-header-image img,
  .youtube-header-image img,
  .actualidad-header-image img {
    width: 100%;
    height: auto;
    object-fit: contain;     /* 👈 nunca corta texto */
    background: #000;        /* relleno si sobra */
  }

}

@media (min-width: 1024px) {

  .section {
    margin-bottom: 56px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .tv-programacion,
  .youtube-section,
  .actualidad-section {
    padding-left: 0;
    padding-right: 0;
  }

}

/* =====================================================
   LAYOUT DESKTOP REAL – 70% CENTRADO
===================================================== */
@media (min-width: 1024px) {

  /* Marco general */
  body {
    background: #eaeaea;
  }

  /* Contenedor padre */
  .layout-desktop {
    display: flex;
    justify-content: center;
  }

  /* Área central real */
  .layout-desktop > .main {
    width: 70%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }

}

@media (min-width: 1024px) {

  .live-player-card {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75 / 25 */
    gap: 32px;
    align-items: flex-start;
  }

}

@media (min-width: 1024px) {

  .programacion-header-image,
  .youtube-header-image,
  .actualidad-header-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    overflow: hidden;
  }

  .programacion-header-image img,
  .youtube-header-image img,
  .actualidad-header-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* nunca corta texto */
    background: #000;
  }

}

/* =====================================================
   LAYOUT DESKTOP 70% – DEFINITIVO
===================================================== */

@media (min-width: 1024px) {

  /* CONTENEDOR CENTRAL */
  .layout-desktop {
    width: 70%;
    margin: 0 auto;
  }

  /* HEADER */
  .header-inner {
    width: 70%;
    max-width: none;
    margin: 0 auto;
  }

  /* LIVE INDICATOR */
  .live-indicator-inner {
    width: 70%;
    max-width: none;
    margin: 0 auto;
  }

  /* FOOTER */
  .footer-grid {
    width: 70%;
    max-width: none;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {

  .programacion-header-image,
  .youtube-header-image,
  .actualidad-header-image {
    width: 100%;
    margin: 0 auto;
    height: auto;
    max-height: 220px;
    overflow: hidden;
  }

  .programacion-header-image img,
  .youtube-header-image img,
  .actualidad-header-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* 👈 legible SIEMPRE */
    background: #000;
  }
}

@media (min-width: 1024px) {
  .live-player-card {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75 / 25 */
    gap: 24px;
  }
}

/* =====================================================
   FIX DEFINITIVO: IMÁGENES DENTRO DEL 70% (SOLO DESKTOP)
   NO afecta mobile
===================================================== */
@media (min-width: 1024px) {

  /* Desactiva comportamiento full-width */
  .programacion-header-image,
  .youtube-header-image,
  .actualidad-header-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    /* 🔴 elimina el truco del 100vw */
    margin-left: 0;
    margin-right: 0;

    /* altura automática y legible */
    height: auto;
    max-height: 220px;

    overflow: hidden;
  }

  /* Imagen real */
  .programacion-header-image img,
  .youtube-header-image img,
  .actualidad-header-image img {
    width: 100%;
    height: auto;

    /* 👈 CLAVE: nunca corta texto */
    object-fit: contain;

    display: block;
    background: transparent;
  }
}

/* =====================================================
   FIX FINAL: CENTRAR IMÁGENES DENTRO DEL 70% (DESKTOP)
   Anula cualquier full-width residual
===================================================== */
@media (min-width: 1024px) {

  .programacion-header-image,
  .youtube-header-image,
  .actualidad-header-image {
    width: 100% !important;
    max-width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    left: auto !important;
    right: auto !important;

    transform: none !important;

    height: auto;
    max-height: 220px;
    overflow: hidden;
  }

  .programacion-header-image img,
  .youtube-header-image img,
  .actualidad-header-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
