/*
Theme Name: MásObras
Theme URI: https://masobras.com.ar
Author: MásObras
Author URI: https://masobras.com.ar
Description: Tema oficial de MásObras — Publicación de arquitectura argentina y mundial.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: masobras
*/

/* ── VARIABLES ── */
:root {
  --negro: #0d0d0d;
  --blanco: #f5f3ef;
  --dorado: #c8a96e;
  --dorado-osc: #a8893e;
  --gris: #666;
  --gris-claro: #e8e5df;
  --gris-fondo: #f0ede8;
  --serif: 'Source Serif 4', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--negro); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── PUB TOP ── */
.pub-top { background: var(--negro); display: flex; align-items: center; justify-content: center; padding: 8px 16px; min-height: 96px; }
.pub-top .ad { width: 728px; max-width: 100%; height: 90px; border: 1px dashed #333; display: flex; align-items: center; justify-content: center; color: #444; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* ── HEADER ── */
header { background: var(--negro); border-bottom: 2px solid var(--dorado); position: sticky; top: 0; z-index: 200; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-svg { height: 54px; width: auto; }

/* NAV */
.nav-main { display: flex; align-items: center; }
.nav-main a { color: #bbb; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; padding: 8px 14px; transition: color .2s; border-right: 1px solid #222; }
.nav-main a:first-child { border-left: 1px solid #222; }
.nav-main a:hover, .nav-main a.current-menu-item > a, .nav-main .current-menu-item > a { color: var(--dorado); }
.btn-pub { background: var(--dorado); color: var(--negro); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; padding: 9px 20px; transition: background .2s; white-space: nowrap; }
.btn-pub:hover { background: var(--dorado-osc); color: var(--negro); }

/* ── TABS ARGENTINA / MUNDIAL ── */
.tabs-bar { background: var(--negro); border-bottom: 1px solid #1a1a1a; }
.tabs-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; }
.tab-btn { background: none; border: none; border-bottom: 3px solid transparent; color: #666; font: 500 11px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; padding: 13px 22px; cursor: pointer; transition: all .2s; margin-bottom: -1px; }
.tab-btn.active { color: var(--dorado); border-bottom-color: var(--dorado); }
.tab-btn:hover:not(.active) { color: #bbb; }

/* ── LAYOUT PRINCIPAL ── */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 20px; }
.main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── NOTA HÉROE ── */
.nota-hero { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--gris-claro); margin-bottom: 28px; overflow: hidden; }
.nota-hero__img { aspect-ratio: 4/3; overflow: hidden; background: #1e1e1e; }
.nota-hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nota-hero__img:hover img { transform: scale(1.03); }
.nota-hero__body { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; }
.kicker { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--dorado-osc); font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--dorado); flex-shrink: 0; }
.nota-hero__titulo { font-family: var(--display); font-size: clamp(20px, 2.2vw, 32px); font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.nota-hero__titulo:hover { color: var(--dorado-osc); }
.nota-hero__bajada { font-family: var(--serif); font-size: 15px; color: var(--gris); line-height: 1.65; margin-bottom: 20px; flex-grow: 1; }
.nota-hero__meta { font-size: 11px; color: #aaa; border-top: 1px solid var(--gris-claro); padding-top: 12px; }

/* ── GRILLA 3 COLUMNAS ── */
.notas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.nota-card { border: 1px solid var(--gris-claro); overflow: hidden; background: #fff; transition: box-shadow .2s; }
.nota-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.09); }
.nota-card__img { aspect-ratio: 16/9; overflow: hidden; background: #e0ddd6; }
.nota-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nota-card__img:hover img { transform: scale(1.04); }
.nota-card__body { padding: 14px 16px 18px; }
.nota-card__kicker { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dorado-osc); font-weight: 500; margin-bottom: 6px; }
.nota-card__titulo { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.nota-card__titulo:hover { color: var(--dorado-osc); }
.nota-card__bajada { font-family: var(--serif); font-size: 13px; color: var(--gris); line-height: 1.55; margin-bottom: 10px; }
.nota-card__meta { font-size: 10px; color: #aaa; }

/* ── SECCIÓN TÍTULO ── */
.sec-tit { display: flex; align-items: center; gap: 12px; margin: 28px 0 16px; }
.sec-tit::before { content: ''; width: 4px; height: 18px; background: var(--dorado); flex-shrink: 0; }
.sec-tit h2 { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.sec-tit::after { content: ''; flex: 1; height: 1px; background: var(--gris-claro); }

/* ── LISTA COMPACTA ── */
.notas-lista { margin-bottom: 28px; }
.nota-li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--gris-claro); align-items: center; }
.nota-li__img { aspect-ratio: 4/3; overflow: hidden; background: #e0ddd6; }
.nota-li__img img { width: 100%; height: 100%; object-fit: cover; }
.nota-li__kicker { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--dorado-osc); margin-bottom: 3px; }
.nota-li__titulo { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.3; }
.nota-li__titulo:hover { color: var(--dorado-osc); }
.nota-li__meta { font-size: 10px; color: #aaa; margin-top: 3px; }

/* ── PUB INLINE ── */
.pub-inline { margin: 24px 0; background: var(--gris-fondo); display: flex; align-items: center; justify-content: center; min-height: 90px; border: 1px dashed #ccc; }
.pub-inline span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #bbb; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.pub-sb { background: var(--gris-fondo); border: 1px dashed #d0ccc4; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; }
.pub-sb span { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: #bbb; line-height: 2; }
.pub-sb.g { min-height: 250px; }
.pub-sb.m { min-height: 160px; }
.pub-sb.s { min-height: 90px; }
.sb-bloque { border-top: 2px solid var(--negro); }
.sb-bloque h3 { font-family: var(--display); font-size: 14px; font-weight: 700; padding: 10px 0 12px; }
.sb-item { display: grid; grid-template-columns: 68px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gris-claro); }
.sb-item__img { aspect-ratio: 1; overflow: hidden; background: var(--gris-claro); }
.sb-item__img img { width: 100%; height: 100%; object-fit: cover; }
.sb-item__titulo { font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1.3; }
.sb-item__titulo:hover { color: var(--dorado-osc); }
.sb-item__meta { font-size: 10px; color: #aaa; margin-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 4px; margin-top: 10px; }
.tag { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: var(--gris-fondo); color: #555; padding: 5px 11px; border: 1px solid var(--gris-claro); cursor: pointer; transition: all .2s; }
.tag:hover { background: var(--negro); color: var(--dorado); border-color: var(--negro); }

/* ── PÁGINA INTERNA DE OBRA ── */
.obra-header { max-width: 860px; margin: 40px auto 0; padding: 0 20px; }
.obra-kicker { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--dorado-osc); font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.obra-kicker::before { content: ''; width: 22px; height: 2px; background: var(--dorado); }
.obra-titulo { font-family: var(--display); font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.1; margin-bottom: 18px; }
.obra-bajada { font-family: var(--serif); font-size: 18px; color: var(--gris); line-height: 1.65; margin-bottom: 20px; }
.obra-meta { font-size: 12px; color: #aaa; border-top: 1px solid var(--gris-claro); border-bottom: 1px solid var(--gris-claro); padding: 12px 0; margin-bottom: 32px; display: flex; gap: 24px; flex-wrap: wrap; }
.obra-img-principal { max-width: 1280px; margin: 0 auto 32px; padding: 0 20px; }
.obra-img-principal img { width: 100%; max-height: 600px; object-fit: cover; }
.obra-content { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }
.obra-content p { font-family: var(--serif); font-size: 17px; line-height: 1.8; margin-bottom: 22px; color: #333; }
.obra-content h2 { font-family: var(--display); font-size: 24px; font-weight: 700; margin: 36px 0 14px; }
.obra-galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.obra-galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── FOOTER ── */
footer { background: var(--negro); color: #555; padding: 48px 20px 28px; margin-top: 48px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-logo { margin-bottom: 20px; }
.footer-logo svg { height: 38px; width: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 24px 0; border-top: 1px solid #1e1e1e; border-bottom: 1px solid #1e1e1e; margin-bottom: 24px; }
.footer-col h4 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: #555; margin-bottom: 7px; transition: color .2s; }
.footer-col a:hover { color: var(--dorado); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 11px; color: #3a3a3a; flex-wrap: wrap; gap: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .nota-hero { grid-template-columns: 1fr; } .notas-grid { grid-template-columns: 1fr 1fr; } .nav-main { display: none; } }
@media (max-width: 520px) { .notas-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; } }
