/* ========================================================
   CicloNoticias - El Periódico de los Latinos
   Paleta extraída del logo
======================================================== */
:root{
  --sky-blue: #4A90C4;
  --sky-blue-light: #6FA8D4;
  --navy: #1B3A5C;
  --navy-dark: #10263D;
  --green-light: #8BC34A;
  --green-dark: #4E7A2E;
  --gray: #6E6E6E;
  --gray-dark: #333940;
  --white: #ffffff;
  --border-light: #cfe0ee;

  --grad-header: linear-gradient(135deg, var(--sky-blue) 0%, var(--navy) 100%);
  --grad-green: linear-gradient(135deg, var(--green-light) 0%, var(--green-dark) 100%);
  --grad-footer: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  --grad-sky-navy: linear-gradient(90deg, var(--sky-blue) 0%, var(--navy) 100%);

  --radius: 8px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family:'Roboto', Arial, Helvetica, sans-serif;
  color: var(--gray);
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
}
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
h1,h2,h3,h4{ color: var(--gray-dark); margin:0 0 8px; font-weight:700; }

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

/* ===================== TOP BANNER AD ===================== */
.top-banner{
  width:100%;
  background:#eef3f8;
  border-bottom:1px solid var(--border-light);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color: var(--gray);
  font-size:13px;
  letter-spacing:1px;
}

/* ===================== TOPBAR ===================== */
.topbar{
  background: var(--navy-dark);
  color:#dbe6f0;
  font-size:12.5px;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:34px;
}
.topbar-left{ display:flex; align-items:center; gap:6px; }
.topbar-divider{ opacity:.4; margin:0 4px; }
.topbar-right{ display:flex; align-items:center; gap:14px; }
.topbar-right a{ color:#fff; opacity:.85; transition:opacity .2s, color .2s; }
.topbar-right a:hover{ opacity:1; color: var(--green-light); }
.icon-sm{ width:15px; height:15px; vertical-align:middle; }

/* ===================== HEADER PRINCIPAL ===================== */
.site-header{
  background: var(--grad-header);
  padding:18px 0;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.logo-wrap{
  background: var(--white);
  padding:10px 18px;
  border-radius: var(--radius);
  display:inline-block;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
}
.logo-img{ height:52px; width:auto; }
.header-ad{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius: var(--radius);
}

/* ===================== NAV ===================== */
.main-nav{
  background: var(--navy);
  border-bottom:3px solid var(--green-light);
}
.nav-inner{ display:flex; align-items:center; }
.nav-menu{
  display:flex;
  flex-wrap:wrap;
}
.nav-menu a{
  display:block;
  padding:14px 18px;
  color:#dbe6f0;
  text-transform:uppercase;
  font-size:13px;
  font-weight:500;
  letter-spacing:.5px;
  transition: background .2s, color .2s;
}
.nav-menu a:hover, .nav-menu a.active{
  background: var(--green-light);
  color: var(--navy-dark);
}
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:14px 4px;
}
.nav-toggle span{
  width:24px; height:2px; background:#fff; display:block;
}

/* ===================== TICKER ===================== */
.news-ticker{
  background: var(--grad-green);
}
.ticker-inner{
  display:flex;
  align-items:center;
  height:42px;
  gap:14px;
}
.ticker-label{
  background: var(--navy-dark);
  color:#fff;
  font-weight:700;
  font-size:12px;
  letter-spacing:1px;
  padding:6px 12px;
  border-radius:4px;
  flex-shrink:0;
}
.ticker-track-wrap{
  flex:1;
  overflow:hidden;
  height:100%;
  display:flex;
  align-items:center;
}
.ticker-track{
  display:flex;
  gap:60px;
  white-space:nowrap;
  animation: ticker-scroll 28s linear infinite;
  color:#fff;
  font-weight:500;
  font-size:13.5px;
}
.ticker-track li{ flex-shrink:0; }
@keyframes ticker-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}
.ticker-search{
  flex-shrink:0;
  background: var(--navy-dark);
  border:none;
  color:#fff;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .2s;
}
.ticker-search:hover{ background: var(--navy); }

/* ===================== LAYOUT PRINCIPAL 3 COLUMNAS ===================== */
.main-layout{
  display:grid;
  grid-template-columns: 200px 1fr 300px;
  gap:24px;
  padding-top:28px;
  padding-bottom:10px;
}
.col{ display:flex; flex-direction:column; gap:18px; }

/* Widgets / Ads laterales */
.widget-ad{
  border-radius: var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
}

.widget-box{
  border:1px solid var(--border-light);
  border-radius: var(--radius);
  padding:14px;
}
.widget-title{
  font-size:14px;
  text-transform:uppercase;
  border-bottom:2px solid var(--green-light);
  padding-bottom:8px;
  margin-bottom:10px;
}
.most-read{ padding-left:18px; margin:0; }
.most-read li{ margin-bottom:10px; font-size:13px; }
.most-read a{ color: var(--gray-dark); transition:color .2s; }
.most-read a:hover{ color: var(--sky-blue); }

/* Columna central */
.featured-img{
  display:block;
  width:100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  position:relative;
  margin-bottom:14px;
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--green-light) 60%, var(--navy) 100%);
}
.badge-cat{
  position:absolute;
  top:14px; left:14px;
  background: var(--green-light);
  color: var(--navy-dark);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  padding:5px 10px;
  border-radius:4px;
}
.featured-title{
  font-size:28px;
  line-height:1.25;
  color: var(--gray-dark);
}
.meta-row{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:13px;
  color: var(--gray);
  margin-bottom:12px;
}
.meta-row.small{ font-size:12px; margin-bottom:0; }
.meta-comments{ display:flex; align-items:center; gap:5px; color: var(--green-dark); font-weight:600; }
.icon-comment{ width:15px; height:15px; }
.featured-excerpt{ font-size:15px; margin-bottom:10px; }
.read-more{
  color: var(--sky-blue);
  font-weight:700;
  font-size:14px;
}
.read-more:hover{ color: var(--navy); }

/* Contenido enriquecido del cuerpo de la noticia (editor de texto) */
.article-body{ font-size:16px; line-height:1.8; color: var(--gray-dark); }
.article-body p{ margin:0 0 18px; }
.article-body img{ max-width:100%; height:auto; border-radius: var(--radius); margin:10px 0; display:block; }
.article-body h1, .article-body h2, .article-body h3{ color: var(--gray-dark); margin:24px 0 12px; }
.article-body ul, .article-body ol{ margin:0 0 18px; padding-left:24px; }
.article-body a{ color: var(--sky-blue); text-decoration:underline; }
.article-body blockquote{ border-left:3px solid var(--green-light); margin:0 0 18px; padding:4px 18px; color:var(--gray); font-style:italic; }

/* Imágenes alineadas/flotantes insertadas con el editor de texto (para que el texto las rodee) */
.article-body::after{ content:""; display:table; clear:both; }
.article-body{
  --blot-align-left-margin: 0.5rem 1rem 0.5rem 0;
  --blot-align-center-margin: 1rem auto;
  --blot-align-right-margin: 0.5rem 0 0.5rem 1rem;
}
.article-body [class^="ql-image-align-"]{ display:flex; flex-wrap:wrap; width:var(--resize-width); max-width:100%; }
.article-body [class^="ql-image-align-"] > img{ flex:1 1 auto; margin:0; }
.article-body .ql-image-align-left{ margin:var(--blot-align-left-margin); float:left; }
.article-body .ql-image-align-center{ margin:var(--blot-align-center-margin); }
.article-body .ql-image-align-right{ margin:var(--blot-align-right-margin); float:right; }

/* Videos incrustados (YouTube / Facebook / Vimeo) pegados con el editor de texto */
.article-body iframe.ql-video{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  border:0;
  border-radius: var(--radius);
  display:block;
  margin:14px 0;
}

/* ===================== GALERIA DE FOTOS (dentro de una noticia) ===================== */
.photo-gallery{ margin:30px 0; padding-top:20px; border-top:1px solid var(--border-light); }
.photo-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:10px;
  margin-top:12px;
}
.photo-gallery-thumb{
  border:none;
  padding:0;
  aspect-ratio:1/1;
  border-radius:6px;
  background-size:cover;
  background-position:center;
  background-color: var(--border-light);
  cursor:pointer;
  transition: transform .15s;
}
.photo-gallery-thumb:hover{ transform:scale(1.03); }

.photo-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  z-index:1000;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:30px 70px;
}
.photo-lightbox-img{ max-width:100%; max-height:80vh; border-radius:6px; display:block; }
.photo-lightbox-caption{ color:#fff; margin-top:14px; font-size:14px; text-align:center; max-width:700px; }
.photo-lightbox-close{
  position:absolute; top:16px; right:20px;
  background:none; border:none; color:#fff; font-size:34px; line-height:1; cursor:pointer;
}
.photo-lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.15); border:none; color:#fff;
  font-size:34px; width:50px; height:50px; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.photo-lightbox-nav:hover{ background:rgba(255,255,255,.3); }
.photo-lightbox-prev{ left:16px; }
.photo-lightbox-next{ right:16px; }

@media (max-width:600px){
  .photo-lightbox{ padding:70px 16px; }
  .photo-lightbox-nav{ width:40px; height:40px; font-size:26px; }
}

/* ===================== COMENTARIOS ===================== */
.comments-section{ margin-top:40px; padding-top:24px; border-top:1px solid var(--border-light); }
.fb-comments-wrap{ margin:14px 0; min-height:40px; }
.comments-divider{ display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--gray); font-size:13px; }
.comments-divider::before, .comments-divider::after{ content:""; flex:1; height:1px; background:var(--border-light); }
.comment-form{
  background:#f8fafc;
  border:1px solid var(--border-light);
  border-radius:8px;
  padding:16px;
  margin:14px 0 24px;
}
.comment-form .form-group{ margin-bottom:12px; }
.comment-form label{ display:block; font-size:13px; font-weight:700; color:var(--gray-dark); margin-bottom:5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea{
  width:100%;
  border:1px solid var(--border-light);
  border-radius:6px;
  padding:9px 11px;
  font-family:inherit;
  font-size:14px;
  color:var(--gray-dark);
  resize:vertical;
}
.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form textarea:focus{ outline:2px solid var(--sky-blue-light); outline-offset:1px; }
/* Campo trampa para bots: invisible para personas, pero un bot que rellena todos los campos lo llena igual */
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

.comment-list{ display:flex; flex-direction:column; gap:14px; }
.comment-empty{ color:var(--gray); font-size:14px; padding:10px 0; }
.comment-item{ border-bottom:1px solid var(--border-light); padding-bottom:14px; }
.comment-item:last-child{ border-bottom:none; padding-bottom:0; }
.comment-head{ display:flex; align-items:center; gap:10px; margin-bottom:4px; flex-wrap:wrap; }
.comment-author{ font-weight:700; font-size:14px; color:var(--gray-dark); }
.comment-date{ font-size:12px; color:var(--gray); }
.comment-body{ margin:0; font-size:14.5px; line-height:1.6; color:var(--gray-dark); white-space:pre-line; }
.comment-avatar{ width:30px; height:30px; border-radius:50%; object-fit:cover; }

.btn-fb-login{
  display:inline-flex; align-items:center; gap:8px; background:#1877F2; color:#fff;
  border:none; border-radius:6px; padding:10px 18px; font-size:13.5px; font-weight:700;
  margin:14px 0 0;
}
.btn-fb-login:hover{ background:#166fe0; }
.fb-comment-identity{
  display:flex; align-items:center; gap:10px; background:#eef4fb; border:1px solid var(--border-light);
  border-radius:6px; padding:8px 12px; margin:14px 0 0; font-size:13.5px; color:var(--gray-dark); flex-wrap:wrap;
}
.fb-comment-identity img{ width:28px; height:28px; border-radius:50%; }
.fb-comment-identity a{ color:var(--sky-blue); text-decoration:underline; margin-left:auto; font-size:12.5px; }

/* ===================== COMPARTIR EN REDES SOCIALES ===================== */
.share-box{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  background:#f8fafc;
  border:1px solid var(--border-light);
  border-radius:8px;
  padding:12px 14px;
  margin:16px 0 20px;
}
.share-label{
  font-weight:700;
  font-size:13px;
  color: var(--gray-dark);
  text-transform:uppercase;
  letter-spacing:.4px;
}
.share-buttons{ display:flex; flex-wrap:wrap; gap:8px; }
.share-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:none;
  border-radius:6px;
  padding:8px 13px;
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  color:#fff;
  cursor:pointer;
  line-height:1;
  transition: filter .15s, transform .15s;
}
.share-btn svg{ width:16px; height:16px; flex-shrink:0; }
.share-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); color:#fff; }
.share-btn[hidden]{ display:none; }
.share-fb{ background:#1877F2; }
.share-wa{ background:#25D366; }
.share-x{ background:#000000; }
.share-tg{ background:#229ED9; }
.share-mail{ background:#6E6E6E; }
.share-copy{ background: var(--navy); }
.share-copy.copied{ background: var(--green-dark); }
.share-native{ background: var(--sky-blue); }

@media (max-width: 600px){
  .share-box{ gap:8px; }
  .share-label{ width:100%; }
  .share-buttons{ width:100%; }
  .share-btn{ flex:1 1 auto; justify-content:center; padding:10px 12px; }
  .share-btn span{ display:none; }
  .share-btn svg{ width:18px; height:18px; }
}

.tts-controls{
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#f8fafc;
  border:1px solid var(--border-light);
  border-radius:8px;
  padding:14px 16px;
  margin:14px 0 20px;
}
.tts-label{ font-weight:700; font-size:14px; color: var(--gray-dark); }
.tts-buttons{ display:flex; gap:10px; flex-wrap:wrap; }
.btn-tts{
  border:none;
  border-radius:6px;
  padding:9px 22px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  transition: filter .15s;
}
.btn-tts:hover{ filter:brightness(0.92); }
.btn-tts-play{ background: var(--sky-blue); color:#fff; }
.btn-tts-pause{ background:#4b5563; color:#fff; }
.btn-tts-stop{ background:#dc3545; color:#fff; }

.secondary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--border-light);
}
.mini-card h3{ font-size:16px; margin-bottom:6px; }
.mini-card h3 a{ color: var(--gray-dark); }
.mini-card h3 a:hover{ color: var(--sky-blue); }
.mini-img{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  border-radius: var(--radius);
  margin-bottom:8px;
}

/* Placeholder gradient variants (stand-ins for photography) */
.ph-1{ background: linear-gradient(135deg,#4A90C4,#8BC34A); }
.ph-2{ background: linear-gradient(135deg,#1B3A5C,#4A90C4); }
.ph-3{ background: linear-gradient(135deg,#4E7A2E,#8BC34A); }
.ph-4{ background: linear-gradient(135deg,#1B3A5C,#4E7A2E); }
.ph-hero{ background: linear-gradient(135deg, var(--sky-blue) 0%, var(--green-light) 60%, var(--navy) 100%); }

/* ===================== SECCIONES TEMÁTICAS ===================== */
.theme-section{ margin-top:10px; }
.section-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 0;
  max-width:1200px;
  margin:0 auto;
  border-radius:6px;
}
.section-header h2{
  color:#fff;
  margin:0;
  font-size:18px;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.icon-section{ width:22px; height:22px; color:#fff; }
.section-header .container{
  display:flex;
  align-items:center;
  gap:10px;
}
.bar-sky{ background: var(--sky-blue); }
.bar-navy{ background: var(--navy); }
.bar-green{ background: var(--grad-green); }

.section-body{
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap:34px;
  padding:24px 16px;
  align-items:start;
}
.section-feature{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.section-feature-img{
  display:block;
  width:100%;
  border-radius: var(--radius);
  aspect-ratio:16/8.5;
}
.section-feature-text h3{ font-size:21px; line-height:1.3; }
.section-feature-text h3 a{ color: var(--gray-dark); }
.section-feature-text h3 a:hover{ color: var(--sky-blue); }
.section-feature-text p{ font-size:14.5px; margin:0; }

.article-list{ max-height:none; }
.article-list li{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border-light);
}
.article-list li:last-child{ border-bottom:none; }
.list-thumb{
  display:block;
  width:80px;
  height:60px;
  flex-shrink:0;
  border-radius:6px;
}
.list-text h4{ font-size:14.5px; margin-bottom:5px; }
.list-text h4 a{ color: var(--gray-dark); }
.list-text h4 a:hover{ color: var(--sky-blue); }
.meta-row.small .meta-comments{ color: var(--green-dark); }

/* ===================== FOOTER ===================== */
.site-footer{ background: var(--grad-footer); color:#c7d6e3; margin-top:30px; }
.footer-main{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:30px;
  padding:44px 16px 30px;
}
.footer-logo{ height:48px; width:auto; margin-bottom:14px; background:#fff; padding:8px 14px; border-radius:8px; display:inline-block; }
.footer-brand p{ font-size:13.5px; line-height:1.6; margin:0 0 14px; }
.footer-social{ display:flex; gap:12px; margin-bottom:14px; }
.footer-social a{ color:#fff; opacity:.85; transition:opacity .2s, color .2s; }
.footer-social a:hover{ opacity:1; color: var(--green-light); }
.footer-contact{ font-size:13px; color:#a9bccc; }
.footer-col h4{
  color:#fff;
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:.5px;
  margin-bottom:14px;
  border-bottom:2px solid var(--green-light);
  padding-bottom:8px;
}
.footer-col ul li{ margin-bottom:9px; }
.footer-col ul li a{ font-size:13.5px; color:#c7d6e3; transition:color .2s; }
.footer-col ul li a:hover{ color: var(--green-light); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:16px 0;
  font-size:12.5px;
  color:#8fa3b5;
  text-align:center;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px){
  .main-layout{ grid-template-columns: 1fr 260px; }
  .col-left{ grid-column: 1 / -1; flex-direction:row; flex-wrap:wrap; }
  .col-left .widget-ad{ flex:1; min-width:220px; }
  .col-left .widget-box{ flex:1; min-width:220px; }
  .section-body{ grid-template-columns:1fr; }
  .footer-main{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
  .main-layout{ grid-template-columns: 1fr; }
  .col-center{ order:1; }
  .col-left{ order:2; }
  .col-right{ order:3; }
  .col-right{ flex-direction:row; flex-wrap:wrap; }
  .col-right .widget-ad{ flex:1; min-width:220px; }
  .secondary-grid{ grid-template-columns:1fr; }
  .section-feature{ flex-direction:column; }
  .section-feature-img{ width:100%; }
  .nav-toggle{ display:flex; }
  .nav-menu{
    display:none;
    flex-direction:column;
    width:100%;
  }
  .nav-menu.open{ display:flex; }
  .nav-inner{ flex-wrap:wrap; }
  .header-ad{ display:none; }
  .footer-main{ grid-template-columns: 1fr; }
  .featured-title{ font-size:22px; }
  .top-banner{ height:60px; font-size:11px; }
}

@media (max-width: 480px){
  .topbar-left span:not(#today-date){ display:none; }
  .topbar-divider{ display:none; }
  .logo-img{ height:38px; }
  .ticker-track{ font-size:12px; }
}