*{box-sizing:border-box}
:root{
  --blue-950:#041c31;
  --blue-900:#073151;
  --blue-800:#0a4772;
  --blue-700:#12669a;
  --gold:#f1ad2b;
  --green:#68d34f;
  --white:#fff;
  --muted:#c9d7e2;
  --glass:rgba(5,39,65,.78);
  --line:rgba(255,255,255,.16);
}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--white);
  background:
    linear-gradient(180deg,#0d527f 0,#07395e 48%,#041f36 100%);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
a{color:inherit;text-decoration:none}
img{display:block;width:100%;height:100%;object-fit:cover}
.topbar{
  position:fixed;z-index:1000;top:0;left:0;right:0;
  height:84px;padding:0 6vw;
  display:flex;align-items:center;justify-content:space-between;
  background:linear-gradient(90deg,rgba(5,57,92,.94),rgba(3,43,72,.91));
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(14px);
}
.brand{display:flex;align-items:center;gap:12px}
.brand>img{width:60px;height:60px;border-radius:50%;object-fit:contain;background:#fff}
.brand-mark{
  width:55px;height:55px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,#fff,#f3c65e);color:#073151;font-size:28px
}
.brand-copy{display:flex;flex-direction:column;line-height:1}
.brand-copy strong{font-family:Georgia,serif;font-size:21px;letter-spacing:.04em}
.brand-copy b{color:var(--gold);font-size:24px;margin-top:3px}
.brand-copy small{font-size:8px;letter-spacing:.1em;margin-top:4px}
.main-nav{display:flex;align-items:center;gap:36px;font-size:12px;font-weight:800}
.main-nav a{padding:31px 0 27px;border-bottom:2px solid transparent}
.main-nav a:hover,.main-nav a.active{color:#fff;border-color:var(--gold)}
.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:25px}

.hero{
  position:relative;
  min-height:760px;
  padding:150px 5vw 36px;
  overflow:hidden;
}
.hero-bg,.hero-bg::after,.hero-overlay{position:absolute;inset:0}
.hero-photo{
  position:absolute;inset:0;opacity:0;transition:opacity 1.6s ease,transform 12s ease;
  transform:scale(1.02)
}
.hero-photo.active{opacity:1;transform:scale(1.08)}
.hero-overlay{
  background:
    linear-gradient(90deg,rgba(4,28,49,.35),rgba(3,31,54,.08) 50%,rgba(2,26,44,.18)),
    linear-gradient(0deg,rgba(4,28,49,.92),rgba(4,28,49,.05) 55%);
}
.hero-layout{
  position:relative;z-index:3;
  display:grid;grid-template-columns:minmax(0,1.18fr) minmax(380px,.82fr);
  gap:44px;align-items:center;
}
.hero-copy{padding:10px 0 0 1vw;max-width:760px;text-shadow:0 2px 18px rgba(0,0,0,.28)}
.eyebrow{color:var(--gold);font-size:13px;font-weight:900;letter-spacing:.13em}
.hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(48px,5.7vw,86px);line-height:.9;font-weight:400;
  margin:18px 0 18px;letter-spacing:-.035em
}
.hero h1 em{font-style:normal;color:var(--gold);font-weight:700}
.hero-copy>p{max-width:650px;font-size:20px;line-height:1.45;margin:0 0 28px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:54px;padding:0 25px;border-radius:7px;font-size:13px;font-weight:900;
  border:1px solid rgba(255,255,255,.55);box-shadow:0 8px 28px rgba(0,0,0,.18)
}
.btn-primary{background:linear-gradient(180deg,#ffc347,#eba51f);color:#071d2d;border:0}
.btn-ghost{background:rgba(5,43,71,.42);backdrop-filter:blur(10px)}
.live-card{
  padding:17px;border-radius:18px;background:linear-gradient(135deg,rgba(7,54,88,.88),rgba(3,31,53,.9));
  border:1px solid rgba(255,255,255,.48);box-shadow:0 25px 70px rgba(0,0,0,.28);
  backdrop-filter:blur(14px)
}
.live-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.badge-live,.badge-stable{
  padding:8px 12px;border-radius:7px;font-size:12px;font-weight:900
}
.badge-live{background:#d92a28}
.badge-stable{background:rgba(18,88,70,.92);color:#dfffd9}
.live-title{display:flex;flex-direction:column;margin:19px 0 12px}
.live-title strong{font-size:20px}
.live-title small{color:#d5e1ea;margin-top:4px}
.live-body{display:grid;grid-template-columns:155px 1fr;gap:18px;align-items:center}
.live-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.live-modes div{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:11px 3px;border-right:1px solid rgba(255,255,255,.16)
}
.live-modes div:last-child{border-right:0}
.live-modes span{font-size:24px;color:var(--gold)}
.live-modes small{font-size:10px;font-weight:800}
.player-mini{
  position:relative;min-height:170px;border-radius:12px;overflow:hidden;background:#021522
}
.player-mini video{position:absolute;inset:0}
.play-circle{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:70px;height:70px;border-radius:50%;display:grid;place-items:center;
  background:rgba(1,24,40,.64);border:2px solid rgba(255,255,255,.9);
  color:#fff;font-size:28px;cursor:pointer;z-index:4;
  box-shadow:0 8px 30px rgba(0,0,0,.35);transition:.2s ease
}
.play-circle:hover{transform:translate(-50%,-50%) scale(1.08);background:rgba(241,173,43,.92);color:#071d2d}
.player-unconfigured{
  position:absolute;left:14px;right:14px;bottom:14px;
  padding:12px 14px;border-radius:10px;background:rgba(3,29,49,.78);
  backdrop-filter:blur(8px);display:flex;flex-direction:column;gap:3px
}
.player-unconfigured strong{font-size:13px}
.player-unconfigured small{font-size:10px;color:#d5e1ea}
.player-placeholder{height:170px;display:grid;place-items:center;padding:20px;color:#d8e3ea;text-align:center}

.category-strip{
  position:relative;z-index:4;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;margin-top:36px
}
.category-card{
  position:relative;min-height:145px;border-radius:13px;overflow:hidden;
  border:1px solid rgba(255,255,255,.45);background:#082f50;
  box-shadow:0 14px 30px rgba(0,0,0,.2);transition:.25s ease
}
.category-card:hover{transform:translateY(-5px);border-color:var(--gold)}
.category-image{position:absolute;inset:0}
.category-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,27,46,.98),rgba(2,27,46,.08) 70%)}
.category-icon{
  position:absolute;left:14px;top:12px;width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;background:linear-gradient(135deg,#356cff,#8c45f3);
  box-shadow:0 8px 20px rgba(0,0,0,.25);font-size:20px
}
.category-card:nth-child(3n+2) .category-icon{background:linear-gradient(135deg,#0fa6ff,#3167ed)}
.category-card:nth-child(3n) .category-icon{background:linear-gradient(135deg,#12be82,#167f61)}
.category-card:nth-child(4n) .category-icon{background:linear-gradient(135deg,#ffb23f,#f27b17)}
.category-copy{position:absolute;left:14px;bottom:13px;display:flex;flex-direction:column;gap:3px}
.category-copy strong{font-size:15px}
.category-copy small{font-size:11px;color:#d7e3ea}
.category-arrow{position:absolute;right:12px;bottom:18px;font-size:27px}

.featured-section,.dynamic-sections,.identity-gallery{
  padding:34px 5vw 42px;
  background:linear-gradient(180deg,#07385d,#052b49);
}
.section-title{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.section-title h2{
  margin:0;font-family:Georgia,serif;font-size:30px;font-weight:400
}
.section-title>span{width:48px;height:2px;background:var(--gold)}
.section-title>a{margin-left:auto;font-size:11px;font-weight:900;color:#fff}
.featured-grid,.content-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:15px
}
.featured-card,.content-card{
  overflow:hidden;border-radius:10px;background:#083757;border:1px solid rgba(255,255,255,.22);
  transition:.22s ease
}
.featured-card:hover,.content-card:hover{transform:translateY(-4px);border-color:var(--gold)}
.featured-image,.content-image{position:relative;height:145px}
.content-label,.content-image>span{
  position:absolute;left:9px;top:9px;padding:5px 8px;border-radius:5px;
  background:#12a05b;font-size:9px;font-weight:900
}
.featured-card:nth-child(3n+2) .content-label{background:#2f7ef4}
.featured-card:nth-child(3n) .content-label{background:#63a72a}
.featured-copy,.content-copy{display:flex;flex-direction:column;gap:5px;padding:12px}
.featured-copy strong,.content-copy strong{font-size:14px}
.featured-copy small,.content-copy small{color:#cddce6;font-size:11px;line-height:1.35}
.content-section{
  margin:0 auto 28px;padding:28px;border-radius:20px;
  background:linear-gradient(135deg,rgba(10,72,114,.76),rgba(6,48,80,.8));
  border:1px solid rgba(255,255,255,.14)
}
.content-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px}
.content-section-head h2{font-family:Georgia,serif;font-size:36px;margin:5px 0 0;font-weight:400}
.content-section-head p{color:#d4e0e8;max-width:700px}
.content-section-head>a{font-size:11px;font-weight:900;color:var(--gold)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.chips span{
  padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.15);font-size:11px
}
.empty-content{padding:25px;border:1px dashed rgba(255,255,255,.25);border-radius:10px;color:#d5e2ea}

.identity-gallery{background:#062b48}
.gallery-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.gallery-row figure{margin:0;height:140px;overflow:hidden;border-radius:9px;border:1px solid rgba(255,255,255,.16)}
.identity-band{
  display:grid;grid-template-columns:repeat(4,1fr) 2fr;align-items:center;
  gap:0;padding:30px 5vw;
  background:linear-gradient(90deg,#16395b,#0d3151 65%,#082843);
  border-top:1px solid rgba(255,255,255,.16)
}
.identity-band>div{
  display:flex;align-items:center;justify-content:center;gap:13px;min-height:58px;
  border-right:1px solid rgba(255,255,255,.22)
}
.identity-band span{font-size:31px}
.identity-band strong{font-size:13px}
.identity-band blockquote{
  margin:0;padding-left:38px;font-family:Georgia,serif;font-size:23px;font-style:italic;
  line-height:1.1;transform:rotate(-2deg)
}
.identity-band blockquote strong{font-size:25px;color:#fff}
footer{
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:24px;padding:34px 5vw;
  background:#031d31;border-top:1px solid rgba(255,255,255,.1)
}
.footer-brand{display:flex;flex-direction:column;gap:5px}
.footer-brand>strong{font-family:Georgia,serif;font-size:20px}
.footer-brand b{color:var(--gold)}
.footer-brand small{color:#bacbd7}
.footer-links,.footer-social{display:flex;gap:18px;align-items:center;justify-content:flex-end;font-size:12px}
.footer-links a:hover,.footer-social a:hover{color:var(--gold)}

@media(max-width:1000px){
  .main-nav{gap:18px}
  .hero-layout{grid-template-columns:1fr}
  .live-card{max-width:720px}
  .identity-band{grid-template-columns:repeat(2,1fr)}
  .identity-band blockquote{grid-column:1/-1;text-align:center;padding:24px 0 0}
}
@media(max-width:760px){
  .topbar{height:72px;padding:0 4vw}
  .main-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#063657;padding:18px;flex-direction:column;gap:5px}
  .main-nav.open{display:flex}
  .main-nav a{padding:10px;border:0}
  .menu-toggle{display:block}
  .brand-copy strong{font-size:16px}.brand-copy b{font-size:18px}
  .hero{padding:120px 4vw 28px;min-height:auto}
  .hero h1{font-size:53px}
  .hero-copy>p{font-size:17px}
  .live-body{grid-template-columns:1fr}
  .live-modes{max-width:320px}
  .category-strip{grid-template-columns:repeat(2,1fr)}
  .featured-section,.dynamic-sections,.identity-gallery{padding-left:4vw;padding-right:4vw}
  .content-section{padding:20px}
  .identity-band{grid-template-columns:1fr 1fr;padding:24px 4vw}
  footer{grid-template-columns:1fr}
  .footer-links,.footer-social{justify-content:flex-start;flex-wrap:wrap}
}


/* Corrección reproductor AATV */
.player-mini video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Fuente actualmente al aire */
.on-air-source {
    margin-top: 12px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    width: fit-content;
    border-left: 3px solid var(--gold);
    background: rgba(2, 29, 49, .38);
    border-radius: 0 7px 7px 0;
}

.on-air-source span {
    color: #bcd1df;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.on-air-source strong {
    color: #fff;
    font-size: 12px;
}

/* AATV CONTACT MODULE */

.contact-section {
  position: relative;
  padding: 72px 5%;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );
  color: var(--text);
}

.contact-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  margin: 8px 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.contact-info > p {
  max-width: 560px;
  line-height: 1.7;
  opacity: 0.86;
}

.contact-cards {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration: none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(255,255,255,.09);
}

.contact-card small,
.contact-card strong {
  display: block;
}

.contact-card small {
  opacity: .65;
  margin-bottom: 4px;
}

.contact-card strong {
  word-break: break-word;
}

.contact-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 1.35rem;
  font-weight: 900;
}

.contact-form-panel {
  padding: 30px;
  background: rgba(5,17,28,.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.contact-form-panel h3 {
  margin: 0 0 22px;
  font-size: 1.55rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  margin-bottom: 16px;
}

.contact-field label {
  display: block;
  margin-bottom: 7px;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.16);
  outline: none;
  background: rgba(255,255,255,.075);
  color: #fff;
  font: inherit;
  transition:
    border-color .18s ease,
    background .18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.46);
}

.contact-form textarea {
  resize: vertical;
  min-height: 145px;
}

.contact-submit {
  border: 0;
  cursor: pointer;
  margin-top: 4px;
}

.contact-success,
.contact-error {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  line-height: 1.45;
}

.contact-success {
  background: rgba(39,174,96,.16);
  border: 1px solid rgba(39,174,96,.48);
}

.contact-error {
  background: rgba(220,53,69,.15);
  border: 1px solid rgba(220,53,69,.42);
}

.field-error {
  display: block;
  margin-top: 5px;
  color: #ffb8b8;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 34px rgba(0,0,0,.42);
}

@media (max-width: 850px) {
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-section {
    padding: 54px 20px;
  }

  .contact-form-panel {
    padding: 22px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
}


/* Icono WhatsApp */
.whatsapp-icon-svg {
  width: 30px;
  height: 30px;
  display: block;
}

.contact-icon-whatsapp {
  background: #25d366;
  color: #fff;
}

.whatsapp-logo {
  display: grid;
  place-items: center;
}

.whatsapp-float .whatsapp-icon-svg {
  width: 34px;
  height: 34px;
  color: #fff;
}


/* ===== WhatsApp icon real ===== */

.contact-icon-whatsapp {
  background: #25d366 !important;
  color: #fff !important;
}

.wa-glyph,
.wa-float-glyph {
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'>\
<path fill='white' d='M19.11 17.21c-.27-.13-1.58-.78-1.83-.87-.24-.09-.42-.13-.6.14-.18.27-.69.87-.85 1.05-.15.18-.31.2-.58.07-.27-.13-1.13-.42-2.16-1.35-.8-.71-1.35-1.58-1.5-1.85-.16-.27-.02-.41.11-.55.12-.12.27-.31.4-.47.13-.16.18-.27.27-.45.09-.18.04-.34-.02-.47-.07-.13-.6-1.45-.82-1.98-.22-.53-.44-.45-.6-.46h-.51c-.18 0-.47.07-.71.34-.25.27-.94.92-.94 2.24 0 1.31.96 2.58 1.09 2.76.13.18 1.89 2.89 4.57 4.05.64.28 1.14.44 1.53.56.64.2 1.22.17 1.68.1.51-.08 1.58-.65 1.8-1.28.22-.62.22-1.16.15-1.27-.07-.11-.24-.18-.51-.31z'/>\
<path fill='white' d='M16.01 5.33c-5.82 0-10.55 4.67-10.55 10.42 0 1.84.49 3.64 1.43 5.22L5.33 26.7l5.92-1.54a10.6 10.6 0 0 0 4.76 1.13h.01c5.82 0 10.55-4.67 10.55-10.42S21.84 5.33 16.01 5.33zm0 19.18h-.01a8.84 8.84 0 0 1-4.5-1.23l-.32-.19-3.51.91.94-3.41-.21-.35a8.62 8.62 0 0 1-1.32-4.57c0-4.76 3.92-8.64 8.74-8.64 4.82 0 8.74 3.88 8.74 8.64 0 4.76-3.92 8.64-8.73 8.64z'/>\
</svg>");
}

.wa-glyph {
  width: 26px;
  height: 26px;
}

.wa-float-glyph {
  width: 34px;
  height: 34px;
}

.whatsapp-float {
  background: linear-gradient(180deg, #4ee96f 0%, #11c63f 100%) !important;
  color: #fff !important;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* limpiar estilos viejos si quedaron */
.whatsapp-logo,
.whatsapp-icon-svg {
  display: none !important;
}

/* ===== Detalle de publicaciones responsive ===== */

.detail-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 24px;
    object-fit: contain;

.detail-image {
    display: block;
    width: 100%;
    max-width: 800px;
    max-height: 520px;
    height: auto;
    margin: 24px auto 30px;
    object-fit: contain;
}


.detail-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto 24px;
    object-fit: contain;
    background: #000;
}

.detail-body {
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .detail-container {
        padding: 14px;
    }
}



/* ==========================================================
   DETALLE DE PUBLICACIÓN - TEXTO + PRESENTACIÓN
   ========================================================== */

.detail-container {
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 60px;
}

.publication-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(350px, .8fr);
    gap: 42px;
    align-items: start;
}

.publication-content {
    min-width: 0;
}

.publication-gallery {
    min-width: 0;
}

.gallery-card {
    position: sticky;
    top: 25px;
}

.gallery-stage {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #071b26;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.gallery-slide {
    display: none;
    margin: 0;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img {
    display: block;
    width: 100%;
    max-height: 580px;
    object-fit: contain;
    background: #071b26;
}

.gallery-slide figcaption {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #e8edf0;
    background: rgba(0,0,0,.65);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.gallery-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.gallery-controls button:hover {
    background: rgba(255,255,255,.25);
}

.gallery-counter {
    min-width: 55px;
    text-align: center;
    font-size: 14px;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    opacity: .6;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #ffffff;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rich-content {
    font-size: 18px;
    line-height: 1.7;
}

.rich-content p {
    margin: 0 0 18px;
}

.rich-content h2 {
    margin: 30px 0 12px;
    font-size: 28px;
    line-height: 1.25;
}

.rich-content h3 {
    margin: 26px 0 10px;
    font-size: 23px;
}

.rich-content ul,
.rich-content ol {
    padding-left: 28px;
    margin: 15px 0 22px;
}

.rich-content a {
    text-decoration: underline;
}

.detail-summary {
    margin-bottom: 25px;
    font-size: 20px;
    line-height: 1.55;
}

.detail-video {
    width: 100%;
    max-width: 100%;
    margin: 10px 0 25px;
    border-radius: 8px;
}


/* TABLET Y TELÉFONO */

@media (max-width: 900px) {

    .detail-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .publication-layout {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .publication-gallery {
        order: -1;
        width: 100%;
    }

    .gallery-card {
        position: static;
    }

    .gallery-slide img {
        max-height: 500px;
    }

    .rich-content {
        font-size: 17px;
    }

    .detail-summary {
        font-size: 18px;
    }
}

/* =========================================================
   CORRECCION PUBLICACION MULTIMEDIA AATV
   ========================================================= */

.detail-page {
    width: 100%;
    margin: 0;
}

.detail-container {
    width: calc(100% - 60px) !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 30px !important;
    box-sizing: border-box;
}

.detail-container h1 {
    width: 100%;
    margin: 0 0 25px;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.1;
}

.publication-layout {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 440px !important;
    gap: 40px !important;
    align-items: start !important;
}

.publication-content {
    width: 100% !important;
    min-width: 0 !important;
}

.publication-gallery {
    width: 440px !important;
    max-width: 100% !important;
}

.gallery-card {
    width: 100% !important;
    position: sticky !important;
    top: 20px !important;
}

/* PRESENTACION */

.gallery-stage {
    width: 100% !important;
    height: 560px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #071b26 !important;
    border-radius: 10px !important;
}

/* MUY IMPORTANTE:
   solamente se muestra UNA imagen */

.gallery-slide {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery-slide.active {
    display: flex !important;
    flex-direction: column !important;
}

.gallery-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

.gallery-slide figcaption {
    flex: 0 0 auto;
    padding: 10px 14px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* CONTROLES */

.gallery-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 12px 0 !important;
}

.gallery-controls button {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    font-size: 26px !important;
}

/* MINIATURAS */

.gallery-thumbnails {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    padding: 5px 0 10px !important;
}

.gallery-thumb {
    display: block !important;
    flex: 0 0 70px !important;
    width: 70px !important;
    height: 52px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.gallery-thumb img {
    display: block !important;
    width: 70px !important;
    height: 52px !important;
    object-fit: cover !important;
}

/* TEXTO */

.detail-summary {
    font-size: 20px !important;
    line-height: 1.55 !important;
    margin-bottom: 25px !important;
}

.detail-body,
.rich-content {
    font-size: 18px !important;
    line-height: 1.7 !important;
}

.detail-video {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 25px;
}

/* MOVIL */

@media (max-width: 900px) {

    .detail-container {
        width: 100% !important;
        padding: 18px !important;
    }

    .publication-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    .publication-gallery {
        width: 100% !important;
        order: -1 !important;
    }

    .gallery-card {
        position: static !important;
    }

    .gallery-stage {
        height: 430px !important;
    }
}

/* Corrección: título debajo del encabezado */
.detail-container {
    padding-top: 70px !important;
}

.detail-container h1 {
    margin-top: 0 !important;
    margin-bottom: 35px !important;
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 900px) {
    .detail-container {
        padding-top: 40px !important;
    }
}

/* Separación correcta bajo la barra superior */
.detail-container {
    padding-top: 120px !important;
}

.detail-breadcrumb {
    display: block !important;
    margin: 0 0 16px 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.detail-container h1 {
    margin-top: 0 !important;
}

@media (max-width: 900px) {
    .detail-container {
        padding-top: 90px !important;
    }
}


/* =========================================================
   TARJETAS EDITORIALES DE PROGRAMACION
   ========================================================= */

.content-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
}

.content-card.editorial-card {
    width: 100% !important;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: rgba(4,49,78,.55);
    transition: transform .2s ease, border-color .2s ease;
}

.content-card.editorial-card:hover {
    transform: translateY(-3px);
    border-color: #ffad21;
}

.content-card.editorial-card > a {
    display: grid !important;
    grid-template-columns: minmax(360px, 42%) 1fr !important;
    min-height: 280px;
    text-decoration: none;
    color: inherit;
}

/* IMAGEN */

.editorial-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 280px !important;
    position: relative;
    overflow: hidden;
    background: #071d2a;
}

.editorial-image img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain !important;
    object-position: center;
    background: #071d2a;
}

/* TEXTO */

.editorial-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 34px 38px !important;
}

.editorial-category {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,173,33,.14);
    color: #ffad21;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
}

.editorial-copy strong {
    display: block !important;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 2vw, 34px) !important;
    line-height: 1.15 !important;
}

.editorial-copy p {
    margin: 0 !important;
    color: #d8e5ed;
    font-size: 16px;
    line-height: 1.55;
    max-width: 720px;
}

.editorial-button {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 11px 17px;
    border-radius: 7px;
    background: #ffad21;
    color: #082d47;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .3px;
}

/* TABLET */

@media (max-width: 1000px) {

    .content-card.editorial-card > a {
        grid-template-columns: 44% 1fr !important;
    }

    .editorial-copy {
        padding: 25px !important;
    }
}

/* MOVIL */

@media (max-width: 700px) {

    .content-card.editorial-card > a {
        display: block !important;
    }

    .editorial-image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9;
    }

    .editorial-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .editorial-copy {
        padding: 22px !important;
    }

    .editorial-copy strong {
        font-size: 25px !important;
    }
}

/* =========================================================
   AATV WEATHER BEGIN
   ========================================================= */

.hero-layout{
  grid-template-columns:
    minmax(0,1.05fr)
    176px
    minmax(380px,.82fr);
  gap:18px;
}

.weather-mini-stack{
  position:relative;
  z-index:5;
  align-self:center;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.weather-mini-card{
  appearance:none;
  width:100%;
  min-height:50px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;

  border-radius:10px;
  border:1px solid rgba(255,255,255,.38);

  background:
    linear-gradient(
      135deg,
      rgba(7,54,88,.88),
      rgba(3,31,53,.92)
    );

  color:#fff;
  cursor:pointer;

  box-shadow:0 8px 24px rgba(0,0,0,.18);
  backdrop-filter:blur(12px);

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.weather-mini-card:hover{
  transform:translateX(-3px);
  border-color:var(--accent,#f1ad2b);
  background:
    linear-gradient(
      135deg,
      rgba(10,70,112,.94),
      rgba(3,34,58,.96)
    );
}

.weather-mini-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;

  font-size:11px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:.015em;
  text-align:left;
}

.weather-mini-reading{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:5px;
}

.weather-mini-reading strong{
  font-size:18px;
  line-height:1;
  font-weight:800;
}

.weather-mini-icon{
  font-size:19px;
  line-height:1;
}

/* MODAL */

body.weather-modal-open{
  overflow:hidden;
}

.weather-modal[hidden]{
  display:none;
}

.weather-modal{
  position:fixed;
  inset:0;
  z-index:2147483647;
  display:grid;
  place-items:center;
  padding:20px;
}

.weather-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,12,22,.76);
  backdrop-filter:blur(5px);
}

.weather-modal-panel{
  position:relative;
  z-index:2;

  width:min(620px,100%);
  max-height:90vh;
  overflow:auto;

  padding:30px;

  border-radius:20px;
  border:1px solid rgba(255,255,255,.25);

  background:
    linear-gradient(
      145deg,
      #093b60,
      #041f35
    );

  color:#fff;

  box-shadow:
    0 35px 100px rgba(0,0,0,.55);
}

.weather-modal-close{
  position:absolute;
  top:10px;
  right:14px;

  width:38px;
  height:38px;

  border:0;
  border-radius:50%;

  background:rgba(255,255,255,.1);
  color:#fff;

  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.weather-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-right:35px;
  margin-bottom:25px;
}

.weather-detail-head h3{
  margin:0 0 5px;
  font-size:28px;
}

.weather-detail-head p{
  margin:0;
  color:#c9dbe7;
}

.weather-detail-current{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.weather-detail-symbol{
  font-size:43px;
}

.weather-detail-temp{
  font-size:45px;
  font-weight:800;
  line-height:1;
}

.weather-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.weather-detail-item{
  padding:13px 14px;
  border-radius:11px;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.09);
}

.weather-detail-item span{
  display:block;
  margin-bottom:4px;
  color:#afc5d4;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.weather-detail-item strong{
  font-size:17px;
}

.weather-detail-footer{
  margin-top:18px;
  font-size:11px;
  color:#a9becd;
}

.weather-modal-loading{
  padding:50px 20px;
  text-align:center;
  color:#d8e6ee;
}

/* TABLET */

@media(max-width:1120px){
  .hero-layout{
    grid-template-columns:1fr;
  }

  .weather-mini-stack{
    display:grid;
    grid-template-columns:
      repeat(5,minmax(130px,1fr));
    overflow-x:auto;
    width:100%;
  }

  .weather-mini-card:hover{
    transform:translateY(-2px);
  }
}

/* TELEFONO */

@media(max-width:760px){
  .weather-mini-stack{
    display:flex;
    flex-direction:row;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }

  .weather-mini-card{
    flex:0 0 150px;
    min-width:150px;
  }

  .weather-detail-grid{
    grid-template-columns:1fr;
  }

  .weather-detail-head{
    flex-direction:column;
  }

  .weather-modal-panel{
    padding:24px 18px;
  }
}

/* =========================================================
   AATV WEATHER END
   ========================================================= */


/* AATV WEATHER MODAL TOP LAYER */
.weather-modal{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  z-index:2147483647 !important;
  isolation:isolate;
}

.weather-modal-backdrop{
  position:absolute !important;
  inset:0 !important;
  z-index:0;
}

.weather-modal-panel{
  position:relative !important;
  z-index:1;
}

body.weather-modal-open{
  overflow:hidden !important;
}
