/*
Theme Name: AdsKeeper Ready
Description: Tema editorial rápido, adaptable y preparado para monetización con AdsKeeper.
Version: 1.0.0
Text Domain: adskeeper-ready
*/

:root {
  --ark-bg: #f4f7f6;
  --ark-surface: #ffffff;
  --ark-text: #17231e;
  --ark-muted: #64736c;
  --ark-brand: #087f5b;
  --ark-brand-dark: #056344;
  --ark-accent: #f1b24a;
  --ark-border: #dce6e1;
  --ark-shadow: 0 14px 34px rgba(23, 35, 30, .08);
  --ark-radius: 18px;
  --ark-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ark-text);
  background: var(--ark-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ark-brand); text-decoration: none; }
a:hover { color: var(--ark-brand-dark); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ark-wrap { width: min(calc(100% - 32px), var(--ark-width)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ark-border); backdrop-filter: blur(14px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { min-width: 0; }
.custom-logo { max-height: 48px; width: auto; }
.site-title { margin: 0; font-size: clamp(1.28rem, 2vw, 1.72rem); font-weight: 850; letter-spacing: -.04em; }
.site-title a { color: var(--ark-text); }
.site-description { margin: 1px 0 0; color: var(--ark-muted); font-size: .78rem; line-height: 1.25; }
.menu-toggle { display: none; border: 0; border-radius: 10px; padding: 10px 14px; color: #fff; background: var(--ark-brand); font-weight: 750; }
.primary-menu { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: block; padding: 10px 12px; color: var(--ark-text); border-radius: 10px; font-size: .92rem; font-weight: 720; }
.primary-menu a:hover { background: #eaf4f0; color: var(--ark-brand-dark); }

.ark-hero { padding: 54px 0 36px; background: linear-gradient(135deg, #e6f6ef 0%, #fff8eb 100%); border-bottom: 1px solid var(--ark-border); }
.ark-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr); align-items: center; gap: 48px; }
.ark-kicker { display: inline-flex; padding: 6px 11px; border-radius: 999px; color: var(--ark-brand-dark); background: #d4eee4; font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.ark-hero h1 { margin: 14px 0 12px; max-width: 720px; font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.06em; }
.ark-hero p { max-width: 680px; margin: 0; color: var(--ark-muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.ark-hero-card { padding: 28px; border: 1px solid rgba(8,127,91,.18); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: var(--ark-shadow); }
.ark-hero-card strong { display: block; margin-bottom: 7px; font-size: 1.12rem; }
.ark-hero-card span { color: var(--ark-muted); font-size: .92rem; }

.ark-ad-slot { width: 100%; margin: 24px auto; overflow: hidden; text-align: center; }
.ark-ad-slot > * { margin-inline: auto; }
.ark-ad-placeholder { display: grid; min-height: 92px; place-items: center; padding: 18px; border: 1px dashed #9bb8ac; border-radius: 14px; color: #60776d; background: #eef5f2; font-size: .8rem; font-weight: 750; }

.site-main { padding: 42px 0 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--ark-muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; min-width: 0; border: 1px solid var(--ark-border); border-radius: var(--ark-radius); background: var(--ark-surface); box-shadow: 0 6px 20px rgba(23,35,30,.05); transition: transform .22s ease, box-shadow .22s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--ark-shadow); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe9e5; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.035); }
.post-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #cde7dc, #f7dfb5); }
.post-card-body { padding: 21px 22px 23px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-bottom: 9px; color: var(--ark-muted); font-size: .74rem; font-weight: 760; text-transform: uppercase; letter-spacing: .05em; }
.post-card h2 { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.23; letter-spacing: -.025em; }
.post-card h2 a { color: var(--ark-text); }
.post-card p { margin: 0; color: var(--ark-muted); font-size: .92rem; line-height: 1.55; }
.read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-size: .86rem; font-weight: 800; }

.content-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(250px, 330px); justify-content: space-between; gap: 44px; align-items: start; }
.article-card { overflow: hidden; border: 1px solid var(--ark-border); border-radius: 22px; background: var(--ark-surface); box-shadow: var(--ark-shadow); }
.article-header { padding: clamp(26px, 5vw, 52px) clamp(22px, 6vw, 60px) 28px; }
.article-header h1 { margin: 8px 0 15px; font-size: clamp(2rem, 4.8vw, 3.55rem); line-height: 1.05; letter-spacing: -.055em; }
.article-featured { width: 100%; max-height: 560px; object-fit: cover; }
.entry-content { padding: 34px clamp(22px, 6vw, 60px) 50px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.75em; line-height: 1.18; letter-spacing: -.03em; }
.entry-content h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content img { margin: 28px auto; border-radius: 15px; }
.entry-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--ark-accent); border-radius: 0 12px 12px 0; background: #fff8eb; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 10px 12px; border: 1px solid var(--ark-border); }
.post-tags { padding: 0 clamp(22px, 6vw, 60px) 40px; }
.post-tags a { display: inline-block; margin: 4px; padding: 7px 11px; border-radius: 999px; background: #edf4f1; font-size: .78rem; font-weight: 700; }

.sidebar { position: sticky; top: 102px; }
.widget { margin-bottom: 22px; padding: 22px; border: 1px solid var(--ark-border); border-radius: 16px; background: var(--ark-surface); }
.widget-title { margin: 0 0 14px; font-size: 1.02rem; }
.widget ul { margin: 0; padding-left: 18px; }
.widget li { margin-bottom: 8px; }
.widget img { border-radius: 10px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 34px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 0 12px; border: 1px solid var(--ark-border); border-radius: 10px; background: #fff; font-weight: 750; }
.page-numbers.current { color: #fff; background: var(--ark-brand); border-color: var(--ark-brand); }

.site-footer { color: #d5e6df; background: #10251d; }
.footer-main { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; padding: 48px 0 36px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; }
.site-footer a { color: #e5f5ef; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); color: #9fbaaf; font-size: .82rem; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.search-form { display: flex; gap: 8px; }
.search-field { min-width: 0; width: 100%; padding: 12px 13px; border: 1px solid var(--ark-border); border-radius: 10px; font: inherit; }
.search-submit { padding: 12px 16px; border: 0; border-radius: 10px; color: #fff; background: var(--ark-brand); font-weight: 750; cursor: pointer; }
.empty-state { padding: 48px; border: 1px solid var(--ark-border); border-radius: 18px; text-align: center; background: #fff; }
.mobile-ad-slot { display: none; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .widget { margin: 0; }
  .ark-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .ark-hero-card { max-width: 620px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 68px; }
  .site-description { display: none; }
  .menu-toggle { display: block; }
  .site-navigation { position: absolute; inset: 68px 0 auto; display: none; padding: 12px 16px 18px; border-bottom: 1px solid var(--ark-border); background: #fff; }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; }
  .primary-menu a { padding: 12px; }
  .ark-hero { padding: 38px 0 28px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; }
  .article-card { border-radius: 15px; }
  .entry-content { padding-top: 26px; }
  .mobile-ad-slot.has-code { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; display: block; margin: 0; padding: 6px; background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(0,0,0,.12); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
