/*
Theme Name: Garaje Claro
Theme URI: https://garajeclaro.es
Author: Corandar
Description: Tema editorial ligero para guías de compra de equipo de coche y garaje.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: garaje-claro
*/

:root {
  --ink: #15231d;
  --muted: #5c6b64;
  --cream: #f5f2e9;
  --paper: #fffefa;
  --line: #d9ddd5;
  --green: #1f5b43;
  --green-dark: #123b2c;
  --lime: #c9f368;
  --orange: #ff6b3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { height: auto; max-width: 100%; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }

.notice { align-items: center; background: var(--ink); color: #f4f7f1; display: flex; font-size: 12px; gap: 12px; justify-content: center; min-height: 36px; padding: 8px 24px; }
.notice span { background: var(--lime); border-radius: 999px; color: var(--ink); font-weight: 800; padding: 4px 9px; text-transform: uppercase; }
.site-header { align-items: center; backdrop-filter: blur(16px); background: rgba(255,254,250,.94); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; min-height: 82px; padding: 0 clamp(24px,6vw,92px); position: sticky; top: 0; z-index: 20; }
.brand, .footer-brand { align-items: center; display: flex; gap: 12px; }
.brand-mark { align-items: center; display: inline-flex; flex: 0 0 auto; height: 48px; justify-content: center; width: 58px; }
.brand-mark img { display: block; height: 48px; object-fit: contain; width: 58px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .08em; margin-top: 2px; text-transform: uppercase; }
.site-header nav { display: flex; font-size: 13px; font-weight: 700; gap: 34px; }
.site-header nav a:hover { color: var(--green); }
.header-cta { background: var(--green); border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; justify-self: end; padding: 13px 20px; }

.hero { align-items: center; background: radial-gradient(circle at 10% 10%,rgba(201,243,104,.22),transparent 28%),var(--cream); display: grid; gap: clamp(50px,8vw,120px); grid-template-columns: 1.06fr .94fr; min-height: 650px; overflow: hidden; padding: 74px clamp(24px,7vw,110px) 88px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .14em; margin: 0 0 18px; text-transform: uppercase; }
.hero h1 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(46px,5.5vw,78px); font-weight: 500; letter-spacing: -.055em; line-height: .98; margin: 0; max-width: 760px; }
.hero-lead { color: var(--muted); font-size: clamp(16px,1.4vw,20px); line-height: 1.62; margin: 28px 0 0; max-width: 640px; }
.hero-actions { align-items: center; display: flex; gap: 28px; margin-top: 34px; }
.primary-button, .amazon-button { background: var(--orange); border: 0; border-radius: 5px; color: #fff; display: inline-block; font-size: 13px; font-weight: 900; padding: 16px 23px; }
.text-link { align-items: center; display: inline-flex; font-size: 13px; font-weight: 800; gap: 8px; }
.text-link span, .guide-content a span { color: var(--orange); }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 24px; list-style: none; margin: 36px 0 0; padding: 0; }
.trust-list li { color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-list span { color: var(--green); margin-right: 5px; }
.hero-visual { background: var(--green-dark); border-radius: 8px; box-shadow: 0 34px 80px rgba(24,46,37,.24); min-height: 465px; overflow: hidden; padding: 30px; position: relative; transform: rotate(1.5deg); }
.garage-grid { background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 28px 28px; inset: 0; position: absolute; }
.visual-label { color: rgba(255,255,255,.58); font-size: 10px; font-weight: 800; letter-spacing: .16em; position: relative; text-transform: uppercase; }
.tool-card { align-items: center; background: var(--paper); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; box-shadow: 0 16px 32px rgba(0,0,0,.18); display: flex; gap: 14px; position: absolute; }
.tool-card small, .tool-card strong { display: block; }
.tool-card small { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.tool-card strong { font-size: 16px; }
.tool-card p { color: var(--muted); font-size: 10px; margin: 7px 0 0; }
.tool-card-main { left: 13%; padding: 24px; right: 13%; top: 29%; }
.tool-card-left, .tool-card-right { bottom: 22%; padding: 16px 18px; width: 42%; }
.tool-card-left { left: 6%; } .tool-card-right { right: 6%; }
.tool-icon, .mini-icon { align-items: center; background: var(--lime); border-radius: 7px; display: flex; justify-content: center; }
.tool-icon { font-size: 26px; height: 64px; width: 64px; }
.mini-icon { font-size: 18px; height: 42px; width: 42px; }
.score { align-items: center; background: var(--green); border-radius: 50%; color: #fff; display: flex; font-weight: 900; height: 38px; justify-content: center; margin-left: auto; width: 38px; }
.visual-footer { bottom: 26px; color: rgba(255,255,255,.72); display: flex; font-size: 10px; justify-content: space-between; left: 30px; position: absolute; right: 30px; }
.pulse-dot { background: var(--lime); border-radius: 50%; display: inline-block; height: 6px; margin-left: auto; margin-right: 5px; width: 6px; }

.section-shell { padding: 96px clamp(24px,7vw,110px); }
.section-heading { align-items: end; display: flex; gap: 40px; justify-content: space-between; margin-bottom: 46px; }
.section-heading h2, .newsletter h2 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(34px,4vw,54px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 380px; }
.selector-layout { display: grid; gap: 54px; grid-template-columns: .82fr 1.18fr; }
.need-grid { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.need-button { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; display: flex; font-size: 15px; font-weight: 800; gap: 16px; padding: 18px 20px; text-align: left; transition: .2s ease; width: 100%; }
.need-button span { align-items: center; background: var(--cream); border-radius: 5px; display: flex; font-size: 19px; height: 38px; justify-content: center; width: 38px; }
.need-button:hover, .need-button.active { background: var(--green); border-color: var(--green); color: #fff; transform: translateX(5px); }
.need-button.active span { background: var(--lime); color: var(--ink); }
.recommendation { background: var(--cream); border-radius: 8px; min-height: 360px; padding: clamp(28px,4vw,48px); }
.recommendation-top { align-items: center; display: flex; gap: 18px; }
.recommendation-icon { align-items: center; background: var(--lime); border-radius: 7px; display: flex; font-size: 27px; height: 62px; justify-content: center; width: 62px; }
.recommendation small { color: var(--muted); font-size: 10px; }
.recommendation h3 { font-family: Georgia,"Times New Roman",serif; font-size: 32px; font-weight: 500; margin: 4px 0 0; }
.recommendation > p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 24px 0; }
.check-title { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.recommendation ul { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 14px 0 26px; padding: 0; }
.recommendation li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 8px 11px; }
.affiliate-note { color: var(--muted); display: block; font-size: 10px; line-height: 1.45; margin-top: 12px; }
.selector-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; }
.selector-actions .text-link { color: var(--green); }
.method-strip { background: var(--green); color: #fff; display: grid; grid-template-columns: repeat(3,1fr); padding: 66px clamp(24px,7vw,110px); }
.method-strip > div { border-right: 1px solid rgba(255,255,255,.18); padding: 0 44px; }
.method-strip > div:first-child { padding-left: 0; } .method-strip > div:last-child { border: 0; padding-right: 0; }
.method-number { color: var(--lime); font-size: 11px; font-weight: 900; }
.method-strip h3 { font-size: 17px; margin: 16px 0 10px; }
.method-strip p { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.6; margin: 0; max-width: 310px; }
.guides { background: var(--cream); }
.guide-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
.guide-card { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.guide-art { align-items: flex-end; display: flex; height: 190px; justify-content: space-between; overflow: hidden; padding: 22px; position: relative; }
.guide-art::before { border: 1px solid rgba(21,35,29,.14); border-radius: 50%; content: ""; height: 210px; position: absolute; right: -60px; top: -70px; width: 210px; }
.guide-art > span { align-items: center; background: var(--paper); border-radius: 50%; display: flex; font-size: 38px; height: 90px; justify-content: center; position: relative; width: 90px; }
.guide-art small { font-weight: 900; letter-spacing: .12em; position: relative; }
.art-1 { background: var(--lime); } .art-2 { background: #b7d8cd; } .art-3 { background: #ffc4a9; }
.guide-content { padding: 24px; }
.guide-meta { color: var(--muted); display: flex; font-size: 10px; font-weight: 800; justify-content: space-between; text-transform: uppercase; }
.guide-content h3 { font-family: Georgia,"Times New Roman",serif; font-size: 23px; font-weight: 500; line-height: 1.2; margin: 17px 0 12px; }
.guide-content p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 22px; }
.guide-content a { font-size: 12px; font-weight: 900; }
.newsletter { align-items: center; background: var(--lime); display: grid; gap: 80px; grid-template-columns: 1fr 1fr; padding: 76px clamp(24px,7vw,110px); }
.newsletter > div > p:last-child { line-height: 1.6; max-width: 560px; }
.newsletter .status-card { background: var(--paper); border: 1px solid var(--ink); border-radius: 7px; padding: 26px; }
.newsletter .status-card strong { display: block; margin-bottom: 8px; }
.newsletter .status-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.home-editorial { background: var(--paper); }
.shopping-routes { background: #edf5f0; }
.pillar-grid { display: grid; gap: 18px; grid-template-columns: repeat(4,1fr); }
.pillar-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px; transition: .2s ease; }
.pillar-card:hover { border-color: var(--green); transform: translateY(-4px); }
.pillar-card > span { align-items: center; background: var(--lime); border-radius: 7px; display: flex; font-size: 22px; height: 48px; justify-content: center; width: 48px; }
.pillar-card h3 { font-family: Georgia,"Times New Roman",serif; font-size: 24px; font-weight: 500; margin: 22px 0 10px; }
.pillar-card p { color: var(--muted); font-size: 13px; line-height: 1.6; min-height: 64px; }
.pillar-card strong { color: var(--green); font-size: 12px; }
.editorial-grid { display: grid; gap: 22px; grid-template-columns: repeat(2,1fr); }
.editorial-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.editorial-grid h3 { font-family: Georgia,"Times New Roman",serif; font-size: 28px; font-weight: 500; margin: 0 0 14px; }
.editorial-grid p { color: var(--muted); line-height: 1.7; }
.home-faq { background: var(--paper); }
.site-footer { background: var(--ink); color: #fff; display: grid; gap: 34px; grid-template-columns: 1fr auto; padding: 62px clamp(24px,7vw,110px) 36px; }
.footer-brand .brand-mark { filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.footer-brand p { color: rgba(255,255,255,.58); font-size: 11px; margin: 5px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; font-size: 11px; font-weight: 800; gap: 24px; }
.footer-disclosure, .copyright { border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.58); font-size: 10px; grid-column: 1/-1; line-height: 1.6; margin: 0; padding-top: 22px; }
.copyright { border: 0; padding: 0; }

.content-shell { margin: 0 auto; max-width: 900px; padding: 76px 24px 110px; }
.content-shell .kicker { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.content-shell h1 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(38px,5vw,62px); font-weight: 500; letter-spacing: -.045em; line-height: 1.03; margin: 16px 0 22px; }
.content-shell h2 { font-family: Georgia,"Times New Roman",serif; font-size: 31px; font-weight: 500; margin-top: 46px; }
.content-shell h3 { font-size: 18px; margin-top: 34px; }
.content-shell p, .content-shell li { color: #3c4c45; font-size: 17px; line-height: 1.78; }
.content-shell .post-meta { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-bottom: 36px; padding-bottom: 18px; }
.content-shell .affiliate-box { background: var(--cream); border-left: 4px solid var(--orange); margin: 30px 0; padding: 22px; }
.product-comparison { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin: 50px 0; padding: 44px 0; }
.product-comparison > h2 { margin-top: 0; }
.selection-disclaimer { background: #edf5f0; border-radius: 6px; font-size: 13px !important; padding: 16px 18px; }
.product-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 28px 0 20px; }
.product-card { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; padding: 20px; }
.product-card h3 { font-family: Georgia,"Times New Roman",serif; font-size: 22px; line-height: 1.2; margin: 14px 0 12px; }
.product-card h4 { font-size: 11px; letter-spacing: .08em; margin: 18px 0 6px; text-transform: uppercase; }
.product-card p, .product-card li { font-size: 13px; line-height: 1.5; }
.product-card ul { margin: 0; padding-left: 18px; }
.product-card .amazon-button { margin-top: auto; text-align: center; }
.product-label { align-self: flex-start; background: var(--lime); border-radius: 999px; font-size: 10px; font-weight: 900; padding: 7px 10px; text-transform: uppercase; }
.product-limits { margin-bottom: 22px !important; }
.pillar-lead { color: var(--ink) !important; font-family: Georgia,"Times New Roman",serif; font-size: 23px !important; }
.pillar-link-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 30px 0 48px; }
.pillar-link-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.pillar-link-grid h3 { margin-top: 0; }
.pillar-link-grid p { font-size: 14px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.content-shell a:not(.amazon-button) { color: var(--green); text-decoration: underline; text-decoration-color: rgba(31,91,67,.32); text-underline-offset: 3px; }
.content-shell a:not(.amazon-button):hover { text-decoration-color: var(--green); }
.breadcrumbs { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px; margin-bottom: 26px; }
.breadcrumbs a { color: var(--green); }
.article-intro { border-bottom: 1px solid var(--line); margin-bottom: 30px; padding-bottom: 12px; }
.article-intro p:first-child { color: var(--ink); font-size: 20px; line-height: 1.7; }
.article-toc, .quick-summary, .source-box, .related-reading { border: 1px solid var(--line); border-radius: 8px; margin: 28px 0; padding: 24px 26px; }
.article-toc { background: #f8faf6; }
.article-toc strong, .quick-summary strong, .source-box strong, .related-reading strong { display: block; font-size: 14px; margin-bottom: 10px; }
.article-toc ol, .quick-summary ul, .related-reading ul { margin: 10px 0 0; padding-left: 22px; }
.article-toc li, .quick-summary li, .related-reading li { font-size: 14px; line-height: 1.55; margin: 6px 0; }
.quick-summary { background: var(--cream); border-color: transparent; }
.source-box { background: #edf5f0; }
.source-box p { font-size: 14px; margin: 0; }
.faq-list { display: grid; gap: 10px; margin: 24px 0 38px; }
.faq-list details { border: 1px solid var(--line); border-radius: 7px; padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-size: 15px; font-weight: 800; }
.faq-list details p { font-size: 15px; margin-bottom: 0; }
.archive-intro { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 760px; }
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; }
.nav-links .current { background: var(--green); color: #fff; }
.archive-grid { display: grid; gap: 22px; grid-template-columns: repeat(2,1fr); margin-top: 40px; }
.archive-card { border: 1px solid var(--line); border-radius: 7px; padding: 26px; }
.archive-card h2 { font-size: 27px; margin: 10px 0 12px; }
.archive-card p { font-size: 14px; line-height: 1.6; }
.blog-hero { background: var(--cream); padding: 76px clamp(24px,7vw,110px) 64px; }
.blog-hero h1 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(44px,5vw,68px); font-weight: 500; letter-spacing: -.05em; margin: 0 0 18px; }
.blog-hero p:last-child { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 760px; }
.blog-shell { padding: 70px clamp(24px,7vw,110px) 110px; }
.blog-grid { display: grid; gap: 22px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.blog-card { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; padding: 28px; }
.blog-card-image { aspect-ratio: 16/9; border-radius: 6px; display: block; margin: -28px -28px 24px; overflow: hidden; padding: 0 !important; }
.blog-card-image img { display: block; height: 100%; object-fit: cover; transition: transform .25s ease; width: 100%; }
.blog-card-image:hover img { transform: scale(1.025); }
.blog-card time { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.blog-card h2 { font-family: Georgia,"Times New Roman",serif; font-size: 27px; font-weight: 500; line-height: 1.18; margin: 16px 0 12px; }
.blog-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.blog-card > a { color: var(--green); font-size: 12px; font-weight: 900; margin-top: auto; padding-top: 12px; }
.article-hero { margin: 0 0 38px; }
.article-hero img { border-radius: 10px; display: block; height: auto; width: 100%; }
.article-hero figcaption { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 9px; }
.longform-guide h2 { scroll-margin-top: 110px; }
.longform-list { margin: 0 0 34px; padding-left: 25px; }
.longform-list li { margin-bottom: 15px; padding-left: 5px; }
.longform-list p { margin: 0; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; width: 100%; }
  .selector-layout, .newsletter { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .method-strip { gap: 34px; grid-template-columns: 1fr; }
  .method-strip > div, .method-strip > div:first-child, .method-strip > div:last-child { border-bottom: 1px solid rgba(255,255,255,.18); border-right: 0; padding: 0 0 30px; }
  .method-strip > div:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 650px) {
  .notice { align-items: flex-start; font-size: 10px; justify-content: flex-start; line-height: 1.4; }
  .site-header { min-height: 70px; padding: 0 18px; }
  .brand small, .header-cta { display: none; }
  .brand-mark, .brand-mark img { height: 42px; width: 50px; }
  .hero { min-height: auto; padding: 56px 20px 64px; }
  .hero h1 { font-size: 46px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 390px; padding: 22px; transform: none; }
  .tool-card-main { left: 7%; right: 7%; }
  .tool-card-left, .tool-card-right { width: 44%; }
  .tool-card strong { font-size: 13px; }
  .section-shell { padding: 68px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
  .need-grid, .pillar-grid, .pillar-link-grid { grid-template-columns: 1fr; }
  .guide-grid, .archive-grid, .blog-grid { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .newsletter { gap: 34px; padding: 62px 20px; }
  .site-footer { grid-template-columns: 1fr; padding: 52px 20px 28px; }
}

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