/*
Theme Name: 50 y Más
Theme URI: https://example.com/50-y-mas
Author: Anahi Aranda
Author URI: https://example.com
Description: Tema editorial elegante y moderno para compartir vivencias, aprendizajes y legado de personas contemporáneas que inspiran a las nuevas generaciones.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cincuenta-y-mas
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --navy: #10263f;
  --navy-2: #173652;
  --gold: #b99346;
  --gold-soft: #d8c093;
  --cream: #f8f4ed;
  --paper: #fffdf9;
  --ink: #1c2b38;
  --muted: #6f777e;
  --line: #e8dfd2;
  --shadow: 0 18px 50px rgba(16, 38, 63, .10);
  --radius: 18px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,253,249,.94);
  border-bottom: 1px solid rgba(185,147,70,.18);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; margin-right: auto; }
.custom-logo { max-height: 58px; width: auto; }
.text-logo { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--serif); color: var(--navy); }
.text-logo .logo-50 { font-size: 3rem; line-height: .8; }
.text-logo .logo-plus { color: var(--gold); font-style: italic; font-size: 1.35rem; }
.primary-menu { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; }
.primary-menu a { font-size: .84rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.menu-toggle { display: none; border: 0; background: var(--navy); color: white; padding: 9px 12px; border-radius: 8px; }
.header-search { color: var(--navy); font-size: 1.2rem; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--cream) 0 50%, rgba(16,38,63,.02) 50% 100%);
}
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 75% 20%, rgba(185,147,70,.16), transparent 32%); }
.hero-inner { position: relative; z-index: 1; min-height: 660px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; }
.hero-copy { padding: 92px 7vw 82px 0; align-self: center; }
.eyebrow { color: var(--gold); font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-title { margin: 12px 0 18px; font-family: var(--serif); color: var(--navy); font-size: clamp(4.5rem, 10vw, 8.5rem); line-height: .78; font-weight: 500; letter-spacing: -.06em; }
.hero-title span { display: block; color: var(--gold); font-size: .38em; font-style: italic; margin-left: 1.4em; letter-spacing: -.02em; }
.hero-tagline { max-width: 520px; margin: 34px 0 0; color: var(--navy); font-weight: 800; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-description { max-width: 540px; color: var(--muted); font-size: 1.05rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--navy); color: white; font-weight: 800; font-size: .9rem; border: 1px solid var(--navy); transition: .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--gold); border-color: var(--gold); color: white; }
.button-outline { background: transparent; color: var(--navy); margin-left: 8px; }
.hero-media { position: relative; min-height: 660px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream), transparent 26%); z-index: 1; }
.hero-quote { position: absolute; z-index: 2; right: 42px; top: 70px; width: 260px; color: var(--navy); font-family: var(--serif); font-size: 1.25rem; }
.hero-quote::before { content: '“'; color: var(--gold); font-size: 4rem; line-height: .5; display: block; }
.hero-placeholder { height: 100%; min-height: 660px; background: linear-gradient(135deg, #d9d1c3, #8994a0); position: relative; }
.hero-placeholder::after { content: 'Tu historia también puede inspirar'; position:absolute; inset:auto 8% 10%; color:white; font-family:var(--serif); font-size:2.2rem; text-shadow:0 2px 20px rgba(0,0,0,.3); }

.value-strip { background: var(--navy); color: white; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-item { padding: 24px 18px; text-align: center; border-right: 1px solid rgba(216,192,147,.35); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; font-weight: 800; }
.value-item:last-child { border: 0; }
.value-icon { color: var(--gold-soft); font-size: 1.35rem; margin-right: 8px; }

.section { padding: 88px 0; }
.section-soft { background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 500; }
.section-heading p { margin: 0; max-width: 560px; color: var(--muted); }
.gold-line { width: 64px; height: 2px; background: var(--gold); margin: 13px 0; }

.featured-story { display: grid; grid-template-columns: 1.12fr .88fr; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-media { min-height: 490px; background: #ded8cf; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-content { padding: 58px; align-self: center; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.category-pill { color: var(--gold); font-weight: 800; }
.featured-content h3 { font-family: var(--serif); color: var(--navy); font-weight: 500; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; margin: 16px 0; }
.excerpt { color: var(--muted); }
.text-link { display: inline-flex; margin-top: 16px; color: var(--navy); font-weight: 800; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; background: #ddd6cc; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.post-card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 25px; }
.card-body h3 { font-family: var(--serif); color: var(--navy); font-size: 1.55rem; line-height: 1.2; margin: 12px 0; }

.quote-band { background: var(--navy); color: white; text-align: center; padding: 78px 20px; }
.quote-band blockquote { max-width: 860px; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.25; font-style: italic; }
.quote-band blockquote::before { content: '“'; display: block; color: var(--gold); font-size: 5rem; line-height: .5; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { padding: 28px; border: 1px solid var(--line); background: white; min-height: 150px; display:flex; flex-direction:column; justify-content:end; border-radius:12px; }
.category-card span { color:var(--gold); font-size:.8rem; font-weight:800; text-transform:uppercase; }
.category-card h3 { margin:6px 0 0; font-family:var(--serif); color:var(--navy); font-size:1.55rem; }

.newsletter { display:grid; grid-template-columns:1fr auto; gap:30px; align-items:center; background:linear-gradient(135deg, #eee4d5, #fbf8f2); padding:50px; border-radius:var(--radius); }
.newsletter h2 { margin:0; font-family:var(--serif); color:var(--navy); font-size:2.4rem; }
.newsletter p { color:var(--muted); margin:7px 0 0; }
.newsletter-form { display:flex; gap:10px; }
.newsletter-form input { min-width:300px; padding:13px 18px; border:1px solid var(--line); border-radius:999px; background:white; }

.content-area { padding: 70px 0; }
.archive-header { margin-bottom: 38px; }
.archive-header h1 { font-family:var(--serif); color:var(--navy); font-size:clamp(2.5rem,6vw,4.5rem); font-weight:500; margin:0; }
.pagination { margin-top:42px; display:flex; gap:10px; justify-content:center; }
.page-numbers { border:1px solid var(--line); padding:8px 13px; border-radius:6px; }
.page-numbers.current { background:var(--navy); color:white; }

.single-hero { padding: 70px 0 38px; text-align:center; }
.single-hero h1 { max-width:960px; margin:12px auto 18px; color:var(--navy); font-family:var(--serif); font-size:clamp(2.8rem,7vw,5.8rem); line-height:1; font-weight:500; }
.single-featured { width:min(1320px, calc(100% - 40px)); margin:0 auto; border-radius:18px; overflow:hidden; max-height:720px; }
.single-featured img { width:100%; max-height:720px; object-fit:cover; }
.single-layout { display:grid; grid-template-columns:minmax(0, 760px) 300px; justify-content:center; gap:70px; padding:65px 0 90px; }
.entry-content { font-family:var(--serif); font-size:1.18rem; color:#303942; }
.entry-content > p:first-of-type::first-letter { float:left; font-size:4.8rem; line-height:.8; padding:12px 10px 0 0; color:var(--gold); }
.entry-content h2, .entry-content h3 { color:var(--navy); font-weight:500; line-height:1.15; margin-top:2em; }
.entry-content h2 { font-size:2.3rem; }
.entry-content blockquote { margin:2em 0; padding:28px 34px; background:var(--cream); border-left:4px solid var(--gold); color:var(--navy); font-size:1.45rem; font-style:italic; }
.entry-content img { border-radius:12px; }
.article-sidebar { font-size:.92rem; }
.author-box { position:sticky; top:120px; background:var(--cream); padding:30px; border-radius:14px; text-align:center; }
.author-avatar img { border-radius:50%; margin:0 auto 18px; }
.author-box h3 { font-family:var(--serif); color:var(--navy); font-size:1.5rem; margin:0; }
.author-box p { color:var(--muted); }
.share-links { display:flex; justify-content:center; gap:10px; margin-top:18px; }
.share-links a { width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; }

.comments-area { max-width:760px; margin:0 auto 80px; }
.comment-list { list-style:none; padding:0; }
.comment-body { border-bottom:1px solid var(--line); padding:20px 0; }
.comment-form input, .comment-form textarea { width:100%; border:1px solid var(--line); border-radius:8px; padding:12px; }

.search-form { display:flex; }
.search-form input[type='search'] { flex:1; border:1px solid var(--line); padding:11px 14px; border-radius:8px 0 0 8px; }
.search-form button { border:0; background:var(--navy); color:white; padding:0 16px; border-radius:0 8px 8px 0; }

.site-footer { background:#0d2035; color:rgba(255,255,255,.78); padding:64px 0 26px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:50px; }
.site-footer h3 { color:white; font-family:var(--serif); font-size:1.4rem; }
.footer-menu { list-style:none; padding:0; }
.footer-menu li { margin:8px 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:45px; padding-top:22px; display:flex; justify-content:space-between; gap:20px; font-size:.82rem; }

.alignwide { width:min(1100px, calc(100vw - 40px)); margin-left:50%; transform:translateX(-50%); }
.alignfull { width:100vw; margin-left:50%; transform:translateX(-50%); }

@media (max-width: 960px) {
  .menu-toggle { display:block; }
  .main-navigation { display:none; position:absolute; left:0; right:0; top:82px; background:white; padding:22px; border-bottom:1px solid var(--line); }
  .main-navigation.is-open { display:block; }
  .primary-menu { flex-direction:column; gap:14px; }
  .hero-inner, .featured-story, .single-layout { grid-template-columns:1fr; }
  .hero-copy { padding:72px 0 54px; }
  .hero-media, .hero-placeholder { min-height:480px; }
  .hero-media::before { background:linear-gradient(180deg, var(--cream), transparent 20%); }
  .post-grid { grid-template-columns:repeat(2,1fr); }
  .category-grid { grid-template-columns:repeat(2,1fr); }
  .newsletter { grid-template-columns:1fr; }
  .article-sidebar { order:-1; }
  .author-box { position:static; }
}
@media (max-width: 640px) {
  .container { width:min(100% - 28px,1180px); }
  .header-inner { min-height:70px; }
  .text-logo .logo-50 { font-size:2.45rem; }
  .hero-inner { min-height:auto; }
  .hero-title { font-size:5rem; }
  .hero-quote { right:22px; top:38px; width:210px; }
  .value-grid { grid-template-columns:repeat(2,1fr); }
  .value-item:nth-child(2) { border-right:0; }
  .post-grid, .category-grid, .footer-grid { grid-template-columns:1fr; }
  .featured-content { padding:32px 25px; }
  .section { padding:62px 0; }
  .section-heading { align-items:start; flex-direction:column; }
  .newsletter { padding:32px 22px; }
  .newsletter-form { flex-direction:column; }
  .newsletter-form input { min-width:0; width:100%; }
  .single-layout { gap:35px; padding-top:40px; }
  .entry-content { font-size:1.08rem; }
  .footer-bottom { flex-direction:column; }
}
