/*
Theme Name: ADBIA Wire
Theme URI: https://revistaadbia.com.ar/
Description: Revista editorial deportiva. Layout magazine completo: portada con destacados, bloques por categoria, sidebar de tendencias y pie de pagina editorial.
Version: 1.0
Author: Revista ADBIA
Text Domain: adbia
Tags: news, magazine, blog
*/

:root {
  --ink: #1a2026;
  --paper: #ffffff;
  --bg: #f4f5f7;
  --line: #e4e7ec;
  --muted: #6b7280;
  --accent: #2f80c9;
  --accent-dark: #1f5f99;
  --navy: #0a1628;
  --gold: #f5b50a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1860px; margin: 0 auto; padding: 0 36px; }
h1, h2, h3, h4 { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; letter-spacing: -0.4px; font-weight: 800; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===== Top header ===== */
.topbar { background: var(--navy); color: #aab6cc; font-size: 15px; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #aab6cc; margin-left: 16px; }
.topbar a:hover { color: #fff; }
.topbar .headline { color: #d6dde8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.topbar .headline b { color: var(--accent); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; margin-right: 8px; }
.topbar .social a { margin-left: 12px; font-weight: 700; }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.logo { font-weight: 700; font-size: 44px; letter-spacing: -1px; }
.logo em { font-style: normal; color: var(--accent); }
.logo small { display: block; font-family: Helvetica, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.masthead .custom-logo { max-height: 52px; width: auto; }
.masthead .logo a:has(.custom-logo) { display: inline-block; }
.masthead .logo .custom-logo-link { display: inline-block; line-height: 0; }
.masthead .logo .custom-logo-link + small { margin-top: 6px; }

/* ===== Migas de pan (Rank Math) ===== */
.rank-math-breadcrumb { font-size: 14px; color: var(--muted); margin: 22px 0 -8px; }
.rank-math-breadcrumb a { color: var(--accent-dark); font-weight: 600; }
.rank-math-breadcrumb a:hover { color: var(--accent); }
.rank-math-breadcrumb .separator { margin: 0 6px; color: #b6bcc7; }
.single-wrap .rank-math-breadcrumb { margin: 0 0 14px; }
.masthead .search { display: flex; align-items: center; gap: 8px; }
.masthead .search input[type=search] { border: 1px solid var(--line); padding: 10px 14px; font-size: 15px; min-width: 220px; }
.masthead .search button { border: 0; background: var(--ink); color: #fff; padding: 11px 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; cursor: pointer; }
.masthead .search button:hover { background: var(--accent); }

/* ===== Category nav ===== */
.catnav { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.catnav ul { display: flex; flex-wrap: wrap; list-style: none; }
.catnav a { display: block; padding: 17px 19px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.catnav a:hover, .catnav .current a, .catnav .current-menu-item > a, .catnav .current-cat > a { border-color: var(--accent); color: var(--accent); }

/* ===== Breaking bar ===== */
.breaking { background: var(--navy); color: #fff; font-size: 19px; overflow: hidden; border-bottom: 3px solid var(--accent); }
.breaking .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.breaking .tag { background: var(--accent); color: #fff; font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: 1px; padding: 5px 12px; flex-shrink: 0; }
.breaking a { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking .ticker { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.breaking .ticker-track { display: flex; width: max-content; animation: adbia-marquee 120s linear infinite; }
.breaking .ticker-track .ticker-item { margin-right: 56px; }
.breaking .ticker:hover .ticker-track { animation-play-state: paused; }
.breaking .ticker-item .arrow { font-size: 14px; opacity: .8; }
.breaking .ticker-item:hover { text-decoration: underline; }
@keyframes adbia-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* La cinta se mueve para todos, también con "reducir movimiento" activado en el sistema:
   es una decisión del sitio. Queda igualmente pausable con el puntero encima, y cada
   titular sigue siendo un enlace normal, alcanzable con el teclado. */

/* ===== Section headings ===== */
.sec-head { display: flex; align-items: center; gap: 14px; margin: 36px 0 18px; }
.sec-head h2 { font-size: 28px; text-transform: uppercase; font-family: Helvetica, sans-serif; letter-spacing: 1px; font-weight: 800; }
.sec-head .rule { flex: 1; height: 3px; background: var(--ink); }
.sec-head .more { font-size: 15px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Cards ===== */
.thumb { aspect-ratio: 16/9; background: var(--navy); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgba(255,255,255,.25); }
.thumb .cat-flag { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; }

.card { background: var(--paper); border: 1px solid var(--line); }
.card .pad { padding: 16px 18px 18px; }
.card h3 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.card h3 a:hover, .hero h1 a:hover, .trend h4 a:hover { color: var(--accent); }
.byline { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.byline b { color: var(--ink); font-weight: 600; }
.excerpt { font-size: 16px; color: #3f4654; }
.excerpt p { margin: 0; }

/* ===== Featured grid ===== */
.featured { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 24px; }
.featured .hero { grid-row: 1 / 3; position: relative; }
.featured .hero .thumb { aspect-ratio: auto; height: 100%; min-height: 540px; }
.featured .hero .overlay { position: absolute; inset: 0 0 auto 0; padding: 28px; background: linear-gradient(rgba(8,12,20,.92), rgba(8,12,20,.55) 60%, transparent); color: #fff; }
.featured .hero h1 { font-size: 42px; line-height: 1.15; margin: 8px 0; }
.featured .hero .byline { color: #c8cfdb; }
.featured .hero .byline b { color: #fff; }
.featured .hero .cat-pill, .cat-pill { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; }

/* ===== Main layout ===== */
.main-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1400px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Trending sidebar ===== */
.sidebar .panel { background: var(--paper); border: 1px solid var(--line); padding: 20px; margin-bottom: 24px; }
.panel-title { font-family: Helvetica, sans-serif; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); margin-bottom: 14px; }
.trend { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trend:last-child { border-bottom: 0; }
.trend .n { font-weight: 900; font-size: 36px; color: var(--line); line-height: 1; min-width: 40px; text-align: center; }
.trend h4 { font-size: 18px; line-height: 1.3; }
.trend .byline { margin: 4px 0 0; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist a { border: 1px solid var(--line); padding: 7px 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
.taglist a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Category sections ===== */
.cat-section { margin-top: 8px; }
.cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== Newsletter ===== */
.newsletter { background: var(--navy); color: #fff; margin: 48px 0 0; }
.newsletter .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.newsletter h2 { font-size: 34px; }
.newsletter p { color: #aab6cc; font-size: 17px; margin-top: 6px; max-width: 460px; }
.newsletter form { display: flex; gap: 10px; flex: 1; max-width: 440px; }
.newsletter input { flex: 1; padding: 15px 18px; border: 0; font-size: 16px; }
.newsletter button { background: var(--accent); color: #fff; border: 0; padding: 15px 30px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; cursor: pointer; }
.newsletter button:hover { background: var(--accent-dark); }

/* ===== Footer ===== */
.site-footer { background: #0a0e14; color: #8b93a3; font-size: 15.5px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 32px; }
.site-footer h5 { color: #fff; font-family: Helvetica, sans-serif; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer li { list-style: none; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .flogo { font-weight: 700; font-size: 32px; color: #fff; }
.site-footer .flogo em { font-style: normal; color: var(--accent); }
.disclaimer { border-top: 1px solid #1c2330; padding: 22px 0; font-size: 14px; line-height: 1.7; color: #6b7484; }
.copyright { border-top: 1px solid #1c2330; padding: 16px 0; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== Single / archive ===== */
.single-wrap { background: var(--paper); border: 1px solid var(--line); padding: 48px 56px; margin-top: 28px; }
.single-wrap h1 { font-size: 48px; line-height: 1.12; margin: 12px 0; }
.single-wrap .lead-thumb { margin: 20px 0; }
.single-wrap .subtitle { font-size: 22px; color: var(--muted); line-height: 1.45; margin: 10px 0 6px; font-weight: 400; }
.single-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 12px 0 6px; }
.single-meta b { color: var(--ink); }
.single-meta .rt { background: var(--bg); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.post-body { font-size: 19px; max-width: 100%; }
.post-body p { margin-bottom: 18px; }
.post-body h2 { font-size: 30px; margin: 30px 0 12px; }
.post-body h3 { font-size: 24px; margin: 24px 0 10px; }
.post-body ul, .post-body ol { margin: 0 0 18px 24px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote { border-left: 4px solid var(--accent); padding: 6px 20px; margin: 0 0 18px; color: #3f4654; font-style: italic; }
.post-body img, .post-body figure { margin-bottom: 18px; }
.post-body a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--navy); }
.photo-credit { font-size: 12px; color: #8a919c; margin: 6px 0 18px; text-align: right; line-height: 1.4; }
.archive-title { margin: 32px 0 0; font-size: 34px; }
.archive-title span { color: var(--accent); }
.archive-desc { color: var(--muted); margin-top: 6px; max-width: 760px; }
.taglist-inline { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.taglist-inline a { border: 1px solid var(--line); padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.taglist-inline a:hover { border-color: var(--accent); color: var(--accent); }
.related { margin-top: 40px; border-top: 3px solid var(--ink); padding-top: 18px; }
.related h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.related .cat-row { grid-template-columns: repeat(3, 1fr); }
.empty-state { background: var(--paper); border: 1px solid var(--line); padding: 40px; margin-top: 24px; color: var(--muted); }
.empty-state h2 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }

/* author box + author page */
.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 36px 0 8px; padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.author-box .author-avatar { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.author-box .author-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }
.author-box h4 { font-size: 20px; margin: 2px 0 6px; }
.author-box p { font-size: 15.5px; color: #3f4654; margin: 0 0 8px; line-height: 1.55; }
.author-box .author-more { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.author-box .author-more:hover { color: var(--navy); }
.author-header { display: flex; gap: 24px; align-items: center; margin: 32px 0 8px; padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.author-header .author-avatar-lg img { width: 110px; height: 110px; border-radius: 50%; display: block; }
.author-header h1 { font-size: 34px; margin: 4px 0 8px; }
.author-header .author-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; }
.author-header .author-bio { font-size: 15.5px; color: #3f4654; margin: 6px 0 0; line-height: 1.55; max-width: 640px; }

/* pagination */
.pagination { margin: 32px 0 8px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid rgba(128,128,128,.35); border-radius: 8px; font-weight: 600; line-height: 1; background: var(--paper); }
.pagination .page-numbers.current { color: #fff; background: var(--ink); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; min-width: 24px; background: none; }

/* comments */
.comments-area { margin-top: 40px; border-top: 3px solid var(--ink); padding-top: 18px; }
.comments-area h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.comments-area ol { list-style: none; }
.comments-area .comment-body { border-bottom: 1px solid var(--line); padding: 14px 0; }
.comments-area input[type=text], .comments-area input[type=email], .comments-area input[type=url], .comments-area textarea { width: 100%; max-width: 560px; border: 1px solid var(--line); padding: 10px 12px; font-size: 16px; font-family: inherit; }
.comments-area .submit { background: var(--accent); color: #fff; border: 0; padding: 12px 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr 1fr; }
  .featured .hero { grid-column: 1 / 3; grid-row: 1; }
  .main-grid { grid-template-columns: 1fr; }
  .cat-row, .latest-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .related .cat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) { .masthead .search { display: none; } }
@media (max-width: 768px) { .wrap { padding: 0 16px; } .single-wrap { padding: 24px 20px; } }
@media (max-width: 780px) { .topbar .headline { display: none; } }
@media (max-width: 520px) {
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .social a:first-child { margin-left: 0; }
}
@media (max-width: 768px) {
  .masthead .wrap { padding-top: 16px; padding-bottom: 16px; }
  .logo { font-size: 30px; }
  .logo small { font-size: 12px; letter-spacing: 1.8px; }
  .catnav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .catnav ul::-webkit-scrollbar { display: none; }
  .catnav a { padding: 13px 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 400px) { .logo { font-size: 25px; } }
@media (max-width: 600px) {
  .breaking { font-size: 16px; }
  .breaking .wrap { gap: 12px; }
  .breaking .tag { font-size: 13px; padding: 4px 10px; }
  .sec-head { margin: 26px 0 14px; }
  .sec-head h2 { font-size: 21px; }
  .trend { gap: 16px; }
  .trend .n { font-size: 30px; min-width: 32px; }
  .single-wrap h1 { font-size: 28px; }
  .single-wrap .subtitle { font-size: 18px; }
  .post-body { font-size: 17.5px; }
  .post-body h2 { font-size: 24px; }
  .archive-title { font-size: 25px; }
}
@media (max-width: 620px) {
  .featured { grid-template-columns: 1fr; grid-template-rows: none; }
  .featured .hero { grid-column: auto; grid-row: auto; }
  .featured .hero .thumb { min-height: 300px; }
  .featured .hero .overlay { padding: 18px; }
  .featured .hero h1 { font-size: 26px; }
  .card h3 { font-size: 20px; }
}
@media (max-width: 640px) {
  .newsletter .wrap { padding-top: 30px; padding-bottom: 30px; }
  .newsletter h2 { font-size: 25px; }
  .newsletter form { flex-direction: column; max-width: 100%; width: 100%; }
  .newsletter button { padding: 14px; }
}
@media (max-width: 560px) { .related .cat-row { grid-template-columns: 1fr; } }
@media (max-width: 500px) {
  .author-box { flex-direction: column; gap: 12px; padding: 18px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 24px; }
  .copyright { justify-content: center; text-align: center; }
}
