/*
Theme Name: Smoking Intergroup
Theme URI: https://snokingintergroup.org
Description: Tema personalizado para Intergrupo contra las adicciones
Version: 1.0.0
Author: Smoking Intergroup
Text Domain: smoking-intergroup
*/

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --green:#1B4332;--green-light:#2D6A4F;--green-dark:#081C15;
  --orange:#F4845F;--orange-hover:#e06d48;
  --white:#FFFFFF;--gray-50:#F8F9FA;--gray-100:#F1F3F5;--gray-200:#E9ECEF;--gray-400:#ADB5BD;--gray-600:#6C757D;--gray-800:#343A40;
  --font-sans:'IBM Plex Sans',system-ui,-apple-system,sans-serif;
  --font-heading:'Merriweather Sans','IBM Plex Sans',system-ui,sans-serif;
  --max-w:1140px;--radius:8px;
}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:var(--font-sans);color:var(--gray-800);line-height:1.7;background:var(--white)}
img{max-width:100%;height:auto;display:block}
a{color:var(--green);text-decoration:none;transition:color .2s}
a:hover{color:var(--orange)}
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);color:var(--green);line-height:1.3;margin-bottom:.5em}
h1{font-size:2.4rem}h2{font-size:1.8rem}h3{font-size:1.4rem}h4{font-size:1.2rem}
p{margin-bottom:1rem}
ul,ol{margin:0 0 1rem 1.5rem}
blockquote{border-left:4px solid var(--orange);padding:1rem 1.5rem;margin:1.5rem 0;background:var(--gray-50);font-style:italic}

.container{max-width:var(--max-w);margin:0 auto;padding:0 1.25rem}
.site-content{min-height:60vh;padding:2rem 0}

.site-header{background:var(--green);color:var(--white);padding:1rem 0;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}
.site-branding a{color:var(--white);font-family:var(--font-heading);font-size:1.4rem;font-weight:700}
.site-branding .tagline{font-size:.8rem;opacity:.8;font-weight:400}
.main-nav ul{list-style:none;display:flex;gap:1.5rem;margin:0;padding:0}
.main-nav a{color:var(--white);font-weight:500;font-size:.95rem;padding:.25rem 0;border-bottom:2px solid transparent;transition:border-color .2s}
.main-nav a:hover,.main-nav a[aria-current="page"]{border-color:var(--orange);color:var(--white)}
.nav-toggle{display:none;background:none;border:none;color:var(--white);font-size:1.5rem;cursor:pointer}
@media(max-width:768px){
  .nav-toggle{display:block}
  .main-nav{display:none;width:100%;order:3}
  .main-nav.active{display:block}
  .main-nav ul{flex-direction:column;gap:.5rem}
  .main-nav a{display:block;padding:.5rem 0}
  h1{font-size:1.8rem}h2{font-size:1.4rem}
}

.hero{background:linear-gradient(135deg,var(--green-dark),var(--green));color:var(--white);padding:5rem 0 4rem;text-align:center}
.hero h1{color:var(--white);font-size:2.8rem;margin-bottom:1rem}
.hero p{font-size:1.2rem;opacity:.9;max-width:700px;margin:0 auto 2rem}
.hero .btn{display:inline-block;background:var(--orange);color:var(--white);padding:.9rem 2.2rem;border-radius:var(--radius);font-weight:600;font-size:1.05rem;transition:background .2s,transform .2s}
.hero .btn:hover{background:var(--orange-hover);transform:translateY(-2px);color:var(--white)}
@media(max-width:768px){.hero{padding:3rem 0 2.5rem}.hero h1{font-size:2rem}}

.mission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;padding:3rem 0}
.mission-card{background:var(--gray-50);border-radius:var(--radius);padding:2rem;border-left:4px solid var(--orange);transition:box-shadow .2s}
.mission-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08)}
.mission-card h3{margin-bottom:.5rem}
.mission-card .icon{font-size:2rem;margin-bottom:.75rem}

.posts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:2rem;padding:2rem 0}
.post-card{border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.08);transition:transform .2s,box-shadow .2s;background:var(--white)}
.post-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.post-card img{width:100%;height:200px;object-fit:cover}
.post-card-body{padding:1.5rem}
.post-card-body h2{font-size:1.25rem;margin-bottom:.5rem}
.post-card-body h2 a{color:var(--green)}
.post-card-meta{font-size:.85rem;color:var(--gray-600);margin-bottom:.75rem}
.post-card-excerpt{font-size:.95rem;color:var(--gray-600)}
.read-more{display:inline-block;margin-top:.75rem;color:var(--orange);font-weight:600;font-size:.9rem}
.read-more:hover{color:var(--orange-hover)}

.entry-header{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--gray-200)}
.entry-meta{font-size:.9rem;color:var(--gray-600);margin-top:.5rem}
.entry-content{max-width:780px}
.entry-content h2{margin-top:2.5rem;padding-top:1rem}
.entry-content h3{margin-top:2rem}
.entry-content ul,.entry-content ol{margin-bottom:1.5rem}
.entry-content li{margin-bottom:.4rem}
.entry-content table{width:100%;border-collapse:collapse;margin:1.5rem 0}
.entry-content th,.entry-content td{padding:.75rem 1rem;border:1px solid var(--gray-200);text-align:left}
.entry-content th{background:var(--green);color:var(--white);font-weight:600}
.entry-content tr:nth-child(even){background:var(--gray-50)}
.entry-content .highlight-box{background:var(--gray-50);border-left:4px solid var(--orange);padding:1.25rem 1.5rem;margin:1.5rem 0;border-radius:0 var(--radius) var(--radius) 0}
.entry-featured-img{margin-bottom:2rem;border-radius:var(--radius);overflow:hidden}

.author-box{display:flex;gap:1.5rem;align-items:flex-start;background:var(--gray-50);border-radius:var(--radius);padding:1.5rem;margin:3rem 0 2rem}
.author-avatar{width:70px;height:70px;border-radius:50%;background:var(--green);color:var(--white);display:flex;align-items:center;justify-content:center;font-family:var(--font-heading);font-size:1.4rem;font-weight:700;flex-shrink:0}
.author-info h4{margin-bottom:.25rem}
.author-info .author-title{font-size:.85rem;color:var(--gray-600);margin-bottom:.5rem}
.author-info p{font-size:.9rem;margin-bottom:0}

.medical-disclaimer{background:#FFF3E0;border:1px solid #FFE0B2;border-radius:var(--radius);padding:1.25rem 1.5rem;margin:2rem 0;font-size:.85rem;color:#E65100}
.medical-disclaimer strong{display:block;margin-bottom:.25rem}

.toc{background:var(--gray-50);border-radius:var(--radius);padding:1.5rem 2rem;margin:0 0 2.5rem}
.toc h4{margin-bottom:.75rem;font-size:1rem}
.toc ol{margin:0;padding-left:1.25rem}
.toc li{margin-bottom:.4rem;font-size:.9rem}
.toc a{color:var(--green-light)}

.page-header{background:var(--green);color:var(--white);padding:3rem 0;text-align:center}
.page-header h1{color:var(--white);margin-bottom:.5rem}
.page-content{padding:3rem 0;max-width:780px;margin:0 auto}

.contact-form{max-width:600px}
.contact-form label{display:block;font-weight:600;margin-bottom:.25rem;margin-top:1rem;font-size:.95rem}
.contact-form input,.contact-form textarea,.contact-form select{width:100%;padding:.7rem 1rem;border:1px solid var(--gray-200);border-radius:var(--radius);font-family:var(--font-sans);font-size:.95rem;transition:border-color .2s}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--green);outline:none}
.contact-form button{margin-top:1.5rem;background:var(--orange);color:var(--white);border:none;padding:.8rem 2rem;border-radius:var(--radius);font-weight:600;cursor:pointer;font-size:1rem;transition:background .2s}
.contact-form button:hover{background:var(--orange-hover)}

.site-footer{background:var(--green-dark);color:rgba(255,255,255,.7);padding:2.5rem 0 1.5rem;margin-top:3rem}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;margin-bottom:2rem}
.footer-col h4{color:var(--white);font-size:1rem;margin-bottom:.75rem}
.footer-col a{color:rgba(255,255,255,.7);font-size:.9rem;display:block;margin-bottom:.4rem}
.footer-col a:hover{color:var(--orange)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:1rem;text-align:center;font-size:.85rem}

.pagination{display:flex;justify-content:center;gap:.5rem;padding:2rem 0}
.pagination a,.pagination span{padding:.5rem 1rem;border-radius:var(--radius);background:var(--gray-100);color:var(--gray-800);font-size:.9rem}
.pagination .current{background:var(--green);color:var(--white)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.text-center{text-align:center}.mt-2{margin-top:2rem}.mb-2{margin-bottom:2rem}
