/* front-page.css — Blankslate (staging) versión corregida */

/* ====== Utilidades ====== */
.text-white{color:#fff;}
.text-black{color:#000;}
.w-100{width:100%;}
.h-100{height:100%;}
.mt-1{margin-top:1rem;}
.self-center{align-self:center;}
.flow-column{flex-direction:column;}
p{margin:0}

/* ====== Contenedores globales ====== */
:root{
  --wrap:1200px;
  --wrap-wide:1350px;
  --gutter:16px;
  --article-gap:16px;
}

.site-main > *:not(.full-bleed){
  width:100%;
  max-width:calc(var(--wrap) + var(--gutter)*2);
  padding-left:var(--gutter);
  padding-right:var(--gutter);
  margin-left:auto;
  margin-right:auto;
}
.site-main > .banner{ /* hero si lo quieres algo más ancho */
  max-width:calc(var(--wrap-wide) + var(--gutter)*2);
}

/* ====== Hero + logos (grid) ====== */
.section-row-container{padding:0;margin: 0;}
.home-hero-grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:24px;
  align-items:stretch;
}
@media (max-width:1024px){
  .home-hero-grid{ grid-template-columns:1fr; }
}

/* Hero */
.hero{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  min-height:56vh;
  display:flex;align-items:center;
  color:#fff;
}
.hero-img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  z-index:0;
}
.hero-content{
  position:relative;z-index:1;
  background:#001433;
  max-width:min(780px, 90%);
  padding:16px 20px;
  margin:12px;
  border-radius:10px;
}
.hero h1,.hero p{font-size:1.8rem;font-weight:600;line-height:1.2;margin:0 0 .25rem}
.hero span{font-weight:800;font-size:2.4rem}

/* Logos (sidebar) */
.event-main{
  border:2px solid #00143333;
  border-radius:16px;
  padding:12px;
  display:flex;flex-direction:column;gap:12px;
  background:#fff;
}
.event-content p{
  font-size:1.05rem;font-weight:600;color:#000;text-align:center;
}
.icon-container{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.event-icon{width:120px;height:auto;max-width:100%}

/* Botones portada */
.discover-buttons,.discover-buttons-phone{display:flex;gap:12px;justify-content:center;margin:14px 0}
.exp-btn,.boost-btn{
  padding:10px 16px;border:2px solid #001344;border-radius:14px;
  background:#001344;color:#fff;text-decoration:none;font-weight:600
}
.exp-btn:hover,.boost-btn:hover{background:#fff;color:#001344}

/* ====== Featured News ====== */
.section-container{padding:12px 0}
.section-container h2{color:#1D3B6C;font-size:1.5rem;font-weight:700;margin:0 0 .75rem}
.news-grid-container{
  display:grid;grid-template-columns:1fr 40%;gap:24px;align-items:start
}
@media (max-width:920px){ .news-grid-container{grid-template-columns:1fr} }
.featured-news{display:flex;flex-direction:column;gap:1rem}
.news-item{
  display:flex;gap:1rem;align-items:center;background:#fff;border-radius:8px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);overflow:hidden
}
.news-item:hover{background:#f6f7fb}
.news-item img{height:169px;object-fit:cover;display:block}
.news-content-featured{padding:.5rem}
.news-content-featured h3{font-size:1rem;margin:0 0 .25rem}
.news-content-featured p{font-size:.85rem;line-height:1.3;font-weight:600}
.category{
  position:absolute;transform:translate(10px,-50px);background:#06f;color:#fff;
  padding:.2rem .5rem;border-radius:4px;font-size:.8rem
}
@media (max-width:768px){
  .category{position:relative;transform:none;width:max-content}
}
.main-news{position:relative;border-radius:12px;overflow:hidden;min-height:420px}
.main-news-image img{width:100%;height:100%;min-height:420px;object-fit:cover}
.main-news-content{position:absolute;inset:auto 0 0 0;padding:.5rem;background:rgba(0,0,0,.7);color:#fff}
.date{color:#ccc;font-size:.9rem}

/* ====== Categorías ====== */
.categories__flex{display:flex;gap:1.5rem;flex-wrap:wrap}
.category-card{display:flex;flex-direction:column;border-radius:8px;background:#fff;overflow:hidden;transition:.3s}
.category-card:hover{transform:translateY(-4px)}
.category-card__image-wrapper{aspect-ratio:4/3;overflow:hidden}
.category-card__image{width:100%;height:100%;object-fit:cover}
.category-card__title{color:#050588;background:#f1f1f1;padding:1rem 1.25rem;text-align:center;font-weight:700;margin:0}

/* ====== Inspenet TV (Desktop) ====== */
.video-section{max-width:var(--wrap)}
.video-slider{position:relative;overflow:hidden;margin-bottom:16px}
.video-slider__container{position:relative;width:100%}
.video-slider__slide{display:none;opacity:0;transition:opacity .25s ease}
.video-slider__slide--active{display:block;opacity:1}
.video-slider__thumbnail{
  position:relative;width:100%;height:0;aspect-ratio:16/9;
  background:#082a4a;border-radius:10px;overflow:hidden
}
.video-slider__thumbnail img{position:absolute;inset:0;width:100%;height:100%;display:block}
.video-slider__content{padding:12px 0}
.video-slider__title{font-size:20px;margin:0 0 .25rem;font-weight:700;color:#333}
.video-slider__date{color:#333;font-size:14px;margin:.5rem 0}
.video-slider__controls{
  display:flex;align-items:center;justify-content:center;gap:10px
}
.video-slider__nav{
  background:#fff;border:1px solid #ddd;border-radius:50%;width:30px;height:30px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;color:#333
}
.video-slider__nav:hover{background:#0033ff;color:#fff;border-color:#0033ff}
.video-slider__indicators{display:flex;align-items:center;gap:8px}
.video-slider__indicator{
  width:16px;height:16px;border-radius:50%;background:#ddd;border:none;cursor:pointer
}
.video-slider__indicator--active{background:#0033ff;width:18px;height:18px}
.video-section__more{text-align:center;margin-top:12px}
.video-section__more-link{
  display:inline-block;text-decoration:none;color:#0033ff;border:1px solid #0033ff;
  border-radius:20px;padding:8px 30px;font-weight:700
}
.video-section__more-link:hover{background:#0033ff;color:#fff}

/* ====== Inspenet TV (Móvil) ====== */
@media (max-width:768px){
  .videos-slider-desktop{display:none}
  .videos-slider-phone{display:block;width:100%}
  .videos-slider-phone .slider-item,
  .videos-slider-phone .video-card,
  .videos-slider-phone .video-thumbnail{height:100%}
  .videos-slider-phone .video-thumbnail{position:relative}
  .videos-slider-phone .video-thumbnail img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:25%;border:none;background:rgba(255,255,255,.8);font-weight:700}
  .slider-arrow-prev{left:10px}
  .slider-arrow-next{right:10px}
  .slider-dots{display:flex;justify-content:center;gap:8px;margin:10px 0;list-style:none;padding:0}
  .dot{width:10px;height:10px;border-radius:50%;background:#ccc}
  .dot.active{background:#0033cc}
}

/* ====== News / Allies (tablet+) ====== */
.news-section{display:grid;grid-template-columns:1fr 22%;gap:1rem}
@media (max-width:920px){ .news-section{grid-template-columns:1fr} }

/* ====== Academia banner ====== */
.banner{
  background:#f0f2f5;border-radius:20px;padding:32px;width:100%;overflow:hidden
}

/* ====== Newsletter ====== */
.newsletter-section{
  width:100%;background:#f5f5f5;display:flex;align-items:center;padding:2rem
}
@media (max-width:520px){ .newsletter-section{flex-direction:column} }
.newsletter-container{width:100%;max-width:600px;padding:2rem}
.newsletter-title{font-size:2.2rem;font-weight:800;color:#000;margin:0 0 1rem}

/* ====== Carrusel de ARTÍCULOS ====== */
/* viewport */
.articles{
  position:relative;
  width:100%;
  max-width:100%;
  overflow:hidden;           /* clave: oculta los cards laterales */
  transform:none;            /* elimina desplazamiento “hack” previo */
  margin:0 auto;
}
/* carril */
.articles__container{
  display:flex;
  flex-wrap:nowrap;          /* no saltar de línea */
  gap:var(--article-gap);
  will-change:transform;
  transition:transform .5s ease-in-out;
}
/* card individual: ancho lo fija el JS */
.article-card{
  background:#fff;border-radius:8px;overflow:hidden;
  box-shadow:0 2px 4px rgba(0,0,0,.1);
  flex:0 0 auto;             /* el JS setea minWidth/flex-basis */
  transform:scale(.98);transition:transform .25s
}
.article-card:hover{transform:scale(1)}
.article-card__image{width:100%;height:200px;object-fit:cover;display:block}
.article-card__content{padding:1rem}
.article-card__tag{display:inline-block;background:#06f;color:#fff;border-radius:4px;padding:.2rem .6rem;font-size:.85rem}
.article-card__title{font-size:1.15rem;margin:1rem 0 .5rem}
.article-card__date{color:#666;font-size:.85rem;margin:.25rem 0}

/* navegación */
.articles__navigation{
  display:flex;justify-content:center;gap:.75rem;margin:1rem 0 2rem
}
.articles__nav-button{
  background:#e7e7e7;border:1px solid #e0e0e0;border-radius:12px;width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;cursor:pointer
}
.articles__nav-button:hover{background:#0066ff;color:#fff;border-color:#0066ff}

/* ====== Ajustes móviles generales ====== */
@media (max-width:520px){
  .hero{min-height:70vh}
  .hero-content{background:#00134499;max-width:100%;margin:0;border-radius:0}
  .hero h1,.hero p{font-size:1.6rem;text-align:center}
  .hero span{font-size:2rem}
  .discover-buttons{display:none}
  .discover-buttons-phone{flex-direction:column}
}

/* === MOBILE: HERO full-bleed sin afectar a las demás secciones === */
@media (max-width: 520px){
  /* Quita el contenedor del main SOLO para este bloque */
  .site-main > .mobile-full-bleed{
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 50% !important;
    transform: translateX(-50%);
  }
  .home-hero .hero{ border-radius: 0; }
  .home-hero picture[hero-pic],
  .home-hero .hero-img{
    width: 100%;
    height: 100%;
  }
}

/* === Artículos: carrusel en desktop, lista en mobile === */

/* Asegura overflow en desktop para ocultar las tarjetas extra */
.articles{
  width: 100%;
  position: relative;
  overflow: hidden;        /* clave para que se oculten las que no caben */
  transform: none;         /* evitamos desplazamientos raros heredados */
}

.articles__container{
  display: flex;
  gap: 16px;               /* mantener en sync con JS */
  transition: transform .5s ease-in-out;
  will-change: transform;
}

/* Fallback de 3 columnas por CSS (JS las fija exactamente) */
.article-card{
  flex: 0 0 calc(33.333% - 10.67px);
  min-width: calc(33.333% - 10.67px);
}

/* Mobile: desactiva carrusel y pone lista vertical 100% */
@media (max-width: 920px){
  .articles{ overflow: visible; }
  .articles__container{ transform: none !important; }
  .article-card{
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
  }
}



/* === CTA: centrados en desktop y con buen espaciado === */
.discover-buttons{
  display: flex;                /* antes heredaba y no siempre era flex */
  justify-content: center;      /* centrado */
  gap: 16px;                    /* separación entre botones */
  width: 100%;
  margin: 16px auto 28px;       /* separarlos del hero y del resto */
}

.exp-btn,
.boost-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;             /* tamaño cómodo */
  padding: 12px 20px;
  border-radius: 16px;
  text-decoration: none;
}

/* === Eliminar “scroll” horizontal invisible en móvil === */
html, body{
  max-width: 100%;
  overflow-x: hidden;           /* fuerza sin barra horizontal */
}

/* Algunos contenedores pueden desbordar: mejor recortar */
.site-main, .main-container{
  overflow-x: clip;
}

/* OJO: En tu CSS original había una traslación que generaba overflow */
.articles{
  width: 100%;                  /* antes: 100vw */
  transform: none;              /* antes: translate(-2.7vw, 0) */
  overflow: hidden;             /* para esconder las tarjetas extras del carrusel */
}

/* Las imágenes nunca deben exceder el ancho del viewport */
img, video{
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Héroe full-bleed SOLO en móvil (sin afectar el resto) === */
@media (max-width: 520px){
  /* cualquier hijo directo de .site-main con .full-bleed será 100vw */
  .site-main > .full-bleed{
    width: 100vw;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
    margin-left: 50%;           /* truco para centrar el 100vw dentro del contenedor */
    transform: translateX(-50%);
  }

  /* bordes limpios para el hero en móvil */
  .hero{ border-radius: 0; }
}


/* === MOVIDO DESDE style.css → front-page.css (afecta SOLO a la portada) === */

/* Contenedores y secciones de portada */
.main-container{
  display:flex;
  flex-direction: column;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100vw;
}
.section-container{
  display: flex;
  flex-direction:column;
  justify-content: center;
  padding: 1rem;
}
.section-container-categories{
  display: flex;
  flex-direction:column;
  justify-content: center;
  max-width: 1200px;
  padding: 1rem;
  margin: 0px;
}
.section-container h2{
  color: #1D3B6C;
  font-size: 1.5rem;
  font-weight: bold;
  /*margin-bottom: 0rem;/*/
}
.section-row-container{
  display: flex;
  flex-direction:row;
  justify-content: space-between;
  padding: 1rem;
  gap: 15px;
}
.phone-container { display: flex; min-width: 70%; }
.main-news-container { display: flex; align-items:center; }
.mb-1{ margin-bottom: 1rem; }

/* HERO */
.hero {
  flex: 1;
  background-size: cover;
  border-radius: 1rem;
  padding: 1rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height:65vh;
}
.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-content {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding: 0.5rem;
  position: absolute;
  left: 0px;
  background: #001433;
  width:70.4%;
}
.hero-pic { min-height:40vh; }

/* Eventos / logos */
.event-content, .event-main { display: flex; justify-content: center; }
.event-main {
  flex-direction: column;
  border-style: solid;
  border-width: 2px;
  border-radius: 1rem;
  min-height:65vh;
  row-gap: 15px;
}
.event-main > .event-content > p {
  font-size: 1.1rem;
  font-weight: 600;
  color:#000;
  margin: 0px;
  padding: 10px;
  text-align:center;
}
.icon-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px; }
.event-icon { max-width: 100%; height: auto; width: 120px; }

/* CTAs portada */
.discover-buttons { /*display: inherit;*/ justify-content: space-evenly; margin: 10px 0px; }
.discover-buttons-phone { display: none; }
.exp-btn, .boost-btn {
  padding: 10px;
  border-style: solid;
  border-width: 2px;
  border-radius: 1rem;
  color: #fff;
  background-color: #001344;
}
.exp-btn:hover, .boost-btn:hover { color: #001344; background-color: #fff; }

/* Visibilidad en móvil */
.title.phone-hide, .news-card--featured__date.phone-hide, .category.phone-hide, .news-item.phone-hide { display: none; }

/* ====== Media queries portada ====== */
@media (max-width:1024px) {
  .section-row-container{ flex-direction: column; padding: 0; }
  .event-main { min-height: 30vh; margin: 0px 10px; }
  .event-main > .event-content > p { font-size: 1rem; }
  .hero { padding: 1rem; min-height: 40vh; border-radius: 0; max-width: 100vw; }
}

/** phone mq */
@media (max-width: 768px) {
  body{ max-width: 100vw !important; }
  .container { flex-direction: column; padding: 0; }
  .section-container > h2 {
    border-radius: 20px 20px 0px 0px;
    border: 2px;
    background-color: white;
    padding: 0.5rem;
    z-index: 0;
    margin-top: 2%;
  }
  .phone-hide{ display: block!important; }
  .news-item.phone-hide { display: flex!important; }
  .tablet-show{ display: none !important; }
  .section-container-categories{ display: none; }
  .featured-news{ max-width: 100vw; gap: 0; }
  .featured-news .news-item:nth-child(1){ border-radius: 0; }
  .section-container{ max-width: 100vw; padding: 0rem; position: relative; top: 0; }
  .phone-container { display:flex; padding: 0; margin: 0 auto; }
  .news-feed { width: 100%; }
  .hero h1, .hero p { font-size: 1.6rem; color:#fff; }
  .news-feed{ display: none; }
  .news-item {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    top: -100px; padding: 1rem; border-radius: 0; background-color: white; box-shadow: none;
    grid-template-columns: 1fr 120px;
  }
  .news-item img{ order: 1; width: 35%; height: 120px; border-radius: 10px; }
  .news-item__extract{ display: none; }
  .news-item .news-content{ order: -1; }
  .main-news{ display: none!important; }
  .explore-btn{ display: none; }
  .categories{ display: none; }
  .banner{ padding: 0; margin-top: 5% }
  .banner__cta-button{ display: block; width: fit-content; margin: 0 auto; }
  .tv-slider { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
  .tv-slide {
    position: relative; height: 560px;
    background-image: url('https://hebbkx1anhila5yf.public.blob.vercel-storage.com/inspenet_tv-section-aHam7G1uz8xJ0xvRcUoEC77P6MFnIi.png');
    background-size: cover; background-position: center; color: white; padding: 1.5rem;
    display: flex; flex-direction: column; justify-content: flex-end; border-radius: 12px; overflow: hidden;
  }
  .tv-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%); z-index: 1;
  }
  .tv-slide__brand { position: absolute; top: 24px; left: 24px; font-size: 1rem; font-weight: 700; z-index: 2; }
  .tv-slide__content { position: relative; z-index: 2; }
  .tv-slide__meta-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .tv-slide__tag { font-size: 0.875rem; padding: 4px 8px; background: rgba(255,255,255,0.15); border-radius: 4px; font-weight: 500; }
  .tv-slide__profile { margin-bottom: 24px; }
  .tv-slide__name { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
  .tv-slide__position { font-size: 0.875rem; opacity: 0.9; }
  .tv-slide__title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin: 0 0 16px 0; }
  .tv-slide__date { display: block; font-size: 0.875rem; margin-bottom: 24px; opacity: 0.9; }
  .tv-slide__link {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    padding: 12px 24px; background: white; color: black; text-decoration: none; border-radius: 4px; font-weight: 600; transition: opacity 0.3s ease;
  }
  .pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px 0; }
  .pagination__button { width: 40px; height: 40px; border-radius: 8px; }
  .pagination__button--prev { background-color: #f3f4f6; }
  .pagination__button--next { background-color: #2563eb; }
  .pagination__list { gap: 4px; }
  .pagination__link { width: 36px; height: 36px; font-size: 0.875rem; }
  .categories__flex { flex-direction: column; }
  .news-section { display: flex; flex-direction: column; }
  .articles{ transform: none; }
  .articles__container{ flex-direction: column; gap: 0; }
  .article-card{
    display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center;
    position: relative; padding: 1rem; border-radius: 0; background-color: #fff; gap: .5rem; transform: scale(1);
  }
  .article-card__content { padding: .5rem; max-width: 65%; }
  .article-card__image { width: 100%; height: 120px; border-radius: 10px; }
  .article-card__title { font-size: 1rem!important; margin-bottom: .5rem; font-weight: 500!important; font-style: normal; }
  .article-card__description{ display: none; }
  .article-card__date{ color: #000000cf; background: #fff; font-size: .7rem; font-weight: 700; border-radius: 4px; padding: 1px; }
}

@media (max-width:520px) {
  .hero { min-height: 90vh; }
  .hero-img { object-fit: cover; }
  .hero-content {
    margin-top: 0px; flex-direction: column; justify-content: center;
    width: 100%; height: 90vh; background-color: #00134463;
  }
  .hero h1, .hero p { font-size: 2.8rem; color: #fff; text-align: center; }
  .hero span { font-weight: 800; font-size: 3.4rem; }
  .discover-buttons { display: none; }
  .discover-buttons-phone{ display: flex; flex-direction: column; gap: 10px; margin: 10px; }
  .exp-btn, .boost-btn { font-size: 1.6rem; text-align: center; }
}

/* Títulos dentro del HERO */
.hero h1, .hero p {
  font-size: 1.8rem;
  font-weight:600;
  margin-bottom: 0rem;
  line-height: 1.2;
  color:#fff;
}
.hero span { font-weight:800; font-size:2.4rem; }

/* Badge / tarjetas genéricas de noticias (home) */
.badge-news {
  box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 4px 16px; gap: 27px; width: 96px; height: 38px;
  border: 1px solid #192EEC; border-radius: 16px; font-size: 14px; color: #192EEC; font-weight: 500; margin-bottom: .5rem;
}

.news-card {
  position: relative; border-radius: 8px 8px 0 0; overflow: hidden; background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.news-card a { text-decoration: none; color: inherit; display: block; }
.news-card img { width: 100%; height: 180px; display: block; }
.news-content {
  padding: .2rem; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(to bottom, #ffffff87, rgb(255 255 255 / 90%) 30%, rgb(255 255 255));
}
.tag { margin-left: 5px; display: block; font-size: 14px; color: #3b3b3b; }
.news-title { font-size: 12px; font-weight: bold; color: #000; line-height: 1.3; margin: 10px 0 0 5px; }
@media (max-width: 768px){ .news-title { font-size: 18px; } }
@media (max-width: 480px){
  .news-content { padding: 15px; }
  .news-title { font-size: 16px; }
}

/* Bloques de Featured News + listado */
.news-container {
  max-width: 1200px; margin: 2rem auto; padding: 0 1rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem;
}
.featured-news { display: flex; flex-direction: column; }
.featured-news h2 { font-size: 1.5rem; font-weight:bold; color: #001344; margin-bottom: 0.5rem; }
.news-item:hover { background-color: #f3f1f1; }
.news-content-featured { padding: .5rem; }
.news-content-featured h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.news-content-featured p { font-size: 0.8rem; line-height:normal; font-weight: 600; }
.news-grid-container { display: grid; grid-template-columns: 1fr 40%; gap: 2rem; align-items: start; }
.featured-news { display: flex; flex-direction: column; gap: 1.5rem; }
.main-news { position: relative; border-radius: 12px; overflow: hidden; min-height: 500px; }
.main-news-image img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.main-news-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: rgba(0,0,0,0.7); color: white; }
.news-item {
  display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.news-item img { height: 169px; object-fit: cover; border-radius: 4px 0 0 4px; }
.category {
  display: inline-block; position: absolute; transform: translate(10px, -50px);
  background-color: #06f; width: fit-content; color: #fff; padding: .2rem .5rem; border-radius: 4px; font-size: .8rem; margin-bottom: .5rem;
}
@media (max-width: 768px){
  .news-grid-container { grid-template-columns: 1fr; }
  .main-news { order: -1; min-height: 300px; }
  .news-item { grid-template-columns: 1fr; }
  .category{ position: relative; transform: translate(0, 0); width: fit-content; }
}
.main-news { display: grid; grid-template-rows: 1fr auto; border-radius: 12px; overflow: hidden; position: relative; min-height: 400px; }
.main-news-image { grid-row: 1 / -1; grid-column: 1; }
.main-news-content h2 { font-size: 1.4rem; color: #fff; margin: 0; }
.date { color: #ccc; display: block; font-size: 0.9rem; margin-bottom: 2%}

/* CATEGORÍAS */
.categories { flex: 1; }
.categories-section h1{ text-align: left; }
.categories__title {
  color: #050588; padding: 1rem; font-size: 1.125rem; font-weight: bold; margin: 0;
  min-height: 60px; text-wrap: balance; overflow: hidden; text-overflow: ellipsis;
}
.categories__flex { display: flex; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; padding-bottom: 20px; padding-top: 20px; }
.category-card { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; transition: transform 0.3s ease; background-color: #fff; }
.category-card:hover { transform: translateY(-5px); }
.category-card__image-wrapper { aspect-ratio: 4/3; overflow: hidden; flex-shrink: 0; }
.category-card__image { width: 100%; height: 100%; object-fit: cover; }
.category-card__title { color: #050588; padding: 1.5rem; text-align: center; font-size: 1.125rem; font-weight: bold; background-color: #f1f1f1; margin: 0px; overflow: hidden; text-overflow: ellipsis; }
.alternative-title { grid-row-start: 2; }

/* TV Slider Section (desktop) */
.slider { position: relative; width: 100%; height: 600px; margin-bottom: 40px; }
.slider__slides { position: relative; width: 100%; height: 100%; }
.slider__slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; border-radius: 8px; overflow: hidden; }
.slider__slide.active { opacity: 1; }
.slider__slide > .slider__image{ display: none; }
.slider__slide.active > .slider__image{ display: block; }
.slider__slide { display: none; }
.slider__slide.active{ display: block; }
.slider__image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slider__overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom,rgb(0 0 0 / .1),rgb(0 0 0 / .8));
  padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end;
}
.slider__logo {
  z-index: 1; border: 1px solid white; border-radius: 32px; padding: .5rem;
  position: absolute; top: 2rem; left: 80%; color: white; font-size: 1.5rem; font-weight: bold; color: #fff !important;
}
.slider__date { color: white; margin-bottom: 1rem; font-size: 1rem; }
.slider__title { color: white; font-size: 2rem; font-weight: bold; margin-bottom: 1rem; max-width: 800px; }
.slider__description { color: white; font-size: 1.2rem; max-width: 600px; margin-bottom: 2rem; }
.slider__navigation { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; justify-content: center; }
.slider__arrow { width: 40px; height: 40px; border-radius: 12px; background-color: #978b8b; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }
.slider__arrow:hover { background-color: #1b47e9; }
.slider__dots { display: flex; gap: 1rem; }
.slider__dot { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background-color: rgba(255, 255, 255, 0.3); color: gray; font-size: 1.2rem; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.slider__dot--active { background-color: #2563EB; color: white; }
.allies-section { display: flex; flex-direction: column; }
@media (max-width: 768px){
  .slider { height: 450px; }
  .slider__title { font-size: 1.8rem; }
  .slider__description { font-size: 1rem; }
}
@media (max-width: 480px){
  .slider { height: 350px; }
  .slider__title { font-size: 1.5rem; }
  .slider__logo { font-size: 1.2rem; }
  .slider__dot { width: 30px; height: 30px; font-size: 1rem; }
  .slider__arrow { width: 30px; height: 30px; }
}

/* TV (móvil) slider “phone” */
.videos-slider-phone{ display: none; }
.videos-slider-desktop{ display: block; }
@media (max-width: 768px){
  .videos-slider{ display: flex; align-items: center; }
  .videos-slider-desktop{ display: none; }
  .videos-slider-phone{ display: block; width: 100%; }
  .video-header { margin-bottom: 20px; }
  .video-title { font-size: 28px; font-weight: bold; color: #0033cc; }
  .video-slider { position: relative; }
  .slider-item { display: none; }
  .slider-item.active { display: block; }

  /* (bloque duplicado en original, se mantiene para fidelidad) */
  .videos-slider-phone{ display: none; }
  .videos-slider-desktop{ display: block; }
  .videos-slider{ display: flex; align-items: center; }
  .videos-slider-desktop{ display: none; }
  .videos-slider-phone{ display: block; width: 100%; }
  .video-header { margin-bottom: 20px; }
  .video-title { font-size: 28px; font-weight: bold; color: #0033cc; }
  .video-slider { position: relative; }
  .slider-container {
    position: relative; padding: .5rem; overflow: hidden; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .slider-item { display: none; }
  .slider-item.active { display: block; }
  .video-card { background-color: white; overflow: hidden; }
  .video-thumbnail {
    position: relative; min-height: 200px; border-radius: 14px 14px 0 0;
    background-color: #1a237e; color: white; background-image: linear-gradient(to right, #1a237e, #3949ab); overflow: hidden;
  }
  .slider-arrow {
    position: absolute; top: 40%; transform: translateY(-50%); width: 40px; height: 40px;
    background-color: rgba(255, 255, 255, 0.7); border: none; border-radius: 25%;
    font-size: 20px; font-weight: bold; color: #000; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: background-color 0.3s, color 0.3s;
  }
  .slider-arrow:hover { background-color: rgba(255, 255, 255, 0.9); color: #1a237e; }
  .slider-arrow-prev { left: 10px; }
  .slider-arrow-next { right: 10px; }
  .slider-navigation { margin-top: 15px; text-align: center; }
  .slider-dots { display: flex; justify-content: center; list-style: none; padding: 0; margin: 0; }
  .dot { width: 14px; height: 14px; background-color: #ccc; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: background-color 0.3s; }
  .dot.active { background-color: #0033cc; }

  /* Conference banner dentro del slider móvil */
  .conference-banner { display: flex; align-items: center; margin-bottom: 30px; position: relative; z-index: 2; }
  .conference-logo {
    width: 40px; height: 40px; background-color: #6a1b9a; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-right: 15px;
  }
  .logo-text { color: white; font-weight: bold; font-size: 12px; }
  .conference-info { flex: 1; }
  .conference-name { font-size: 18px; font-weight: bold; margin: 0; }
  .conference-tagline { font-size: 14px; margin: 0; }
  .badge-container { position: absolute; top: 0; right: 0; }
  .badge { background-color: white; color: #1a237e; padding: 5px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; }
  .presenter-info { position: absolute; bottom: 15px; left: 15px; z-index: 2; }
  .presenter-name { font-size: 16px; font-weight: bold; margin: 2% auto; width: 85%; color: black; }
  .presenter-title { font-size: 12px; margin: 0; }
  .video-heading { font-size: 18; margin-bottom: 10px; line-height: 1.3; }
  .video-timestamp { color: #333; font-size: 14px; width: 85%; margin: 2% auto; }
  .slider-navigation { display: flex; justify-content: center; margin: 15px 0; }
  .slider-dots { display: flex; list-style: none; gap: 8px; }
  .dot { width: 10px; height: 10px; border-radius: 50%; background-color: #ccc; cursor: pointer; }
  .dot.active { background-color: #0033cc; }
  .slider-actions { display: flex; justify-content: center; margin-top: 15px; }
  .action-button {
    background-color: transparent; color: #0033cc; border: 1px solid #0033cc;
    border-radius: 25px; padding: 10px 40px; font-size: 16px; cursor: pointer; transition: all 0.3s ease;
  }
  .action-button:hover { background-color: #0033cc; color: white; }
  .conference-name { font-size: 16px; }
  .video-heading { font-size: 16px; }
}

/* NEW TV (desktop simplificado) */
:root {
  --primary-color: #0033ff;
  --dark-blue: #000080;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --white: #fff;
  --transition-speed: 0.3s;
}
.video-section { max-width: 1200px; }
.video-section__title { color: var(--primary-color); font-size: 32px; margin-bottom: 20px; }
.video-slider { position: relative; overflow: hidden; margin-bottom: 20px; }
.video-slider__container { position: relative; width: 100%; }
.video-slider__slide { display: none; opacity: 0; transition: opacity var(--transition-speed) ease; }
.video-slider__slide--active { display: block; opacity: 1; }
.video-slider__thumbnail {
  position: relative; width: 95%; height: 576px; padding: 0;
  background-color: var(--dark-blue); color: var(--white); border-radius: 10px; overflow: hidden; 
  background-image: linear-gradient(to right, #000080, #0033aa); margin: 15px auto;
}
.video-slider__badge {
  position: absolute; top: 15px; right: 15px;
  background-color: rgba(255, 255, 255, 0.9); color: var(--dark-blue);
  padding: 5px 10px; border-radius: 5px; font-weight: bold; font-size: 14px;
}
.video-slider__info { position: absolute; bottom: 20px; left: 20px; max-width: 70%; }
.video-slider__conference { font-size: 24px; font-weight: bold; margin-bottom: 5px; }
.video-slider__conference-subtitle { font-size: 18px; margin-bottom: 20px; }
.video-slider__presenter { border-left: 3px solid var(--white); padding-left: 10px; margin-top: 15px; }
.video-slider__presenter-name { font-weight: bold; font-size: 14px; }
.video-slider__presenter-title { font-size: 12px; opacity: 0.8; }
.video-slider__content { padding: 15px 0; margin: 0 auto; width: 95%; }
.video-slider__title { font-size: 20px; margin-bottom: 5px; font-weight: bold; color: var(--dark-gray); }
.video-slider__date { color: #333; font-size: 14px; margin: .5rem 0; }
.video-slider__controls { display: flex; align-items: center; justify-content: center; }
.video-slider__nav {
  background: none; border: 1px solid #ddd; padding: 0; border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: var(--dark-gray);
  margin: 0 10px; transition: all var(--transition-speed) ease;
}
.video-slider__nav:hover { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.video-slider__indicators { display: flex; align-items: center; justify-content: center; gap: 8px; }
.video-slider__indicator {
  width: 16px; height: 16px; padding: 0; border-radius: 50%; background-color: #ddd; border: none; cursor: pointer; transition: all var(--transition-speed) ease;
}
.video-slider__indicator--active { background-color: var(--primary-color); width: 18px; height: 18px; }
.video-section__more { text-align: center; margin-top: 20px; }
.video-section__more-link {
  display: inline-block; text-decoration: none; color: var(--primary-color);
  border: 1px solid var(--primary-color); border-radius: 20px; padding: 8px 30px; font-weight: bold; transition: all var(--transition-speed) ease; text-align:center;
}
.video-section__more-link:hover { background-color: var(--primary-color); color: var(--white); }

/* News Section (layout de portada) */
.news-section { display: grid; grid-template-columns: 1fr 20%; gap: 1rem; align-items: center; }
.news-section__title { color: #0040ff; font-size: 1.5rem; margin-bottom: 1.5rem; }
.news-section__content { display: flex; flex-direction: row; align-items: center; gap: 1rem; }

/* News Card (portada) */
.news-card { position: relative; border-radius: 8px; overflow: hidden; }
.news-card--featured{
  position: relative; border-radius: 8px 8px 0 0; height: 323px; overflow: hidden; background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card--featured__date{ display: inline; color: #000000cf; font-size: .7rem; font-weight: 700; border-radius: 0 0 0 4px; padding: 0px; }
.news-card--featured__date-float{
  text-indent: 5px; width: 300px; position: absolute; transform: translate(0px, 70px); background: #0000004a; color: white; height: 25px; align-content: center;
}
.news-card-hf { height: 323px; }
.news-card__image { width: 100%; height: 200px; object-fit: cover; }
.news-card__content { position: absolute; background-color: #fff; bottom: 0; padding: 0rem 0rem 1.5rem 0rem; color: black; }
.news-card__tag { display: inline-block; background-color: #0040ff; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; margin-bottom: 0.5rem; width: 100%; text-align: center; font-weight: 600; }
.news-card__title { font-size: 1rem; margin: 0; }

/* News List (portada) */
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-list__item {
  display: flex; gap: 1rem; padding: 0.5rem; border-radius: 8px; background-color: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.news-list__image { width: 80px; height: auto; object-fit: cover; border-radius: 4px; }
.news-list__content { flex: 1; }
.news-list__tag { display: inline-block; background-color: #0040ff; color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; margin-bottom: 0.5rem; width: 232px; text-align: center; }
.news-list__title { font-size: 0.9rem; margin: 0; color: #333; }

/* Allies Section */
.allies-section__title { color: #0040ff; font-size: 1.5rem; margin-bottom: 1.5rem; }
.allies-row { display: flex; justify-content: space-between; gap: 1rem; padding:10px; }
.allies-row__logo { width: 100%; height: auto; object-fit: contain; }
.news-card:hover, .news-list__item:hover { transform: translateY(-2px); transition: transform 0.2s ease; }
.allies-row a{ width: 50%; }
.allies-row__logo:hover { opacity: 0.8; transition: opacity 0.2s ease; }

/* BANNER academia (portada) */
.banner {
  background-color: #f0f2f5; padding: 40px; border-radius: 20px; width: 100%; overflow: hidden;
}
.banner__container {
  max-width: 1200px; margin: 0 auto; padding: 20px 20px;
  display: flex; align-items: center;
}
.banner__content { flex: 1; min-width: 300px; padding-right: 20px; }
.banner__brand { display: block; color: #2233ff; font-weight: bold; font-size: 18px; margin-bottom: 20px; letter-spacing: 1px; }
.banner__heading {
  display: inline; padding: 0 !important; color: #222 !important; font-size: 36px !important;
  line-height: 1.2 !important; margin-bottom: 30px !important; font-weight: 700 !important;
}
.banner__logo { display: inline; max-width: 300px; margin-top: 10px; }
.banner__logo-image { max-width: 100%; height: auto; }
.banner__features { list-style: none; margin: 30px 0; }
.banner__feature-item { position: relative; padding-left: 30px; margin-bottom: 15px; }
.banner__feature-item::before { content: "✓"; position: absolute; left: 0; color: #222; }
.banner__cta-button {
  display: inline-block; background-color: #2233ff; color: white; text-decoration: none;
  padding: 15px 30px; border-radius: 30px; font-weight: bold; transition: background-color 0.3s ease;
}
.banner__cta-button:hover { background-color: #1a29cc; color: #d1d7fa; }

/* Media section banner */
.banner__media { position: relative; flex: 1; min-width: 300px; max-width: 450px; }
.banner__video-player { background-color: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.banner__video-dots { padding: 10px; background-color: #f8f8f8; display: flex; gap: 5px; }
.banner__video-dot { width: 10px; height: 10px; border-radius: 50%; }
.banner__video-dot--red { background-color: #ff6b6b; }
.banner__video-dot--yellow { background-color: #ffd93d; }
.banner__video-dot--green { background-color: #6bcb77; }
.banner__video-content { background-color: #6c7ae0; height: 250px; display: flex; align-items: center; justify-content: center; }
.banner__video-play-button { width: 80px; height: 80px; background-color: rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.banner__video-play-icon {
  width: 0; height: 0; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent white; margin-left: 5px;
}
.banner__thumbnail { position: absolute; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.banner__thumbnail--top-right { top: -20px; right: -20px; }
.banner__thumbnail--bottom-left { bottom: -20px; left: -20px; }
.banner__thumbnail-image { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px){
  .banner__container { flex-direction: column; }
  .banner__content { margin-bottom: 40px; padding-right: 0; }
  .banner__media { width: 100%; }
  .banner__heading { font-size: 28px; }
}

/* ARTICLES – carrusel portada */
.articles {
  width: 100vw; position: relative; overflow: hidden; transform: translate(-0.7vw, 0);
}
.articles__heading { font-size: 1.5rem; font-weight: bold; margin-bottom: 2rem; }
.article-card {
  background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); }
.article-card__top { display: flex; flex-direction: column; }
.article-card__top__inner { position: absolute; margin: 10px; }
.article-card__image { width: 100%; height: 200px; object-fit: cover; }
.article-card__content { padding: 1.5rem; }
.article-card__tag {
  display: inline-block; background-color: #0066ff; width: fit-content; color: white; padding: 0.70rem 0.75rem; border-radius: 4px; font-size: 0.875rem; margin-bottom: 1rem;
}
.article-card__tag::first-letter { text-transform: uppercase; }
.article-card__date { display: block; color: #666; font-size: 0.875rem; margin-bottom: 0.5rem; }
.article-card__title { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.5rem; color: #333; }
.article-card__description { color: #666; font-size: 0.875rem; line-height: 1.5; }
.articles__navigation { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.articles__nav-button {
  background-color: #b1aeae; border: 1px solid #e5e5e5; border-radius: 12px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease;
}
.articles__nav-button:hover { background: #0066ff; color: white; border-color: #0066ff; }
.articles__nav-button--prev { margin-right: 0.5rem; }
.articles__nav-button--next { margin-left: 0.5rem; }

/* articles slider carril */
.articles__container { display: flex; transition: transform 0.5s ease-in-out; width: 90%;}
.article-card {
  flex: 0 0 calc(33.333% - 40px); /* 3 tarjetas visibles */
  transition: transform 0.3s ease; box-sizing: border-box; transform: scale(0.9); transition: all 0.3s ease;
}
.article-card.active { opacity: 1; transform: scale(1); }

/* Newsletter (portada) */
.newsletter-section {
  width: 100%; background-color: #f5f5f5; display: flex; align-items: center; padding: 2rem; background-size: cover; background-position: center; border-radius: 15px;
}
@media (max-width: 520px) { .newsletter-section { flex-direction:column; margin-top: 5%; } }
.newsletter-container { width: 100%; max-width: 600px; padding: 2rem; }
/*.newsletter-title {
  font-family: Arial, sans-serif; font-size: 2.5rem; font-weight: bold; color: #000; margin-bottom: 1.5rem; text-transform: uppercase; line-height: 1.2;
}*/
.newsletter-form { display: flex; width: 100%; border: 1px inset black; border-radius: 5px; }
.newsletter-input {
  flex: 1; padding: 1rem; border: 1px solid #e0e0e0; border-radius: 4px 0 0 4px; font-size: 1rem; height: auto; outline: none; transition: border-color 0.3s ease;
}
.newsletter-input:focus { border-color: #4040ff; }
.newsletter-submit { padding: 1rem 1.5rem; color: white; border: none; border-radius: 0 3px 3px 0; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; }
.newsletter-submit__span{ transform: rotate(45); }

@media (max-width: 520px) {
  .container{ padding: 0; }
  .section-container{ top: 0; }
  .main-container{ padding-left: 0 !important; padding-right: 0 !important; }
  .phone-container { display: flex; padding: 0; min-height: 220px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-title { font-size: 2rem; }
  .newsletter-submit { width: 100%; }
  .news-feed{ display: none; }
}

/* Helpers varios */
.tablet-show{ display: block; }
@media (max-width: 920px) {
  .news-grid-container{ display: flex; }
  .news-section{ display: flex; gap: 1rem; flex-direction: column; }
}

/*PARCHES MANUALES*/

.category {
    padding: 0.7rem .5rem;
}

.news-card__tag {
    padding: 1em 0.7rem;
}

.news-card__content {
    color: none; <----------QUITAR
}

.news-list__tag {
    display: inline-block;
    background-color: #0040ff;
    color: white;
    padding: 0.6rem;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    width: 232px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .articles__navigation {
        display: none;
    }
}



