/*
Theme Name: Bioenergia Research
Theme URI: https://bioenergia.me
Author: Alberto Araya
Description: Tema rápido, limpio y científico para Bioenergia.me
Version: 3.0
*/

:root{
  --bg:#f7f7f3;
  --card:#ffffff;
  --text:#18211f;
  --muted:#5e6864;
  --accent:#0b6b57;
  --accent2:#e7b94a;
  --border:#dfe4df;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

img{
  max-width:100%;
  height:auto;
}

/* HEADER */

.site-header{
  background:#081915;
  color:#fff;
  padding:24px 20px;
  border-bottom:4px solid var(--accent2);
}

.header-inner{
  max-width:1180px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}

.site-branding{
  display:flex;
  align-items:center;
  gap:18px;
}

.logo-link{
  display:flex;
  align-items:center;
}

.site-logo{
  width:78px;
  height:78px;
  object-fit:contain;
  border-radius:50%;
}

.branding-text{
  display:flex;
  flex-direction:column;
}

.site-title{
  margin:0;
  font-size:52px;
  line-height:1;
  letter-spacing:-0.04em;
  font-weight:800;
}

.site-title a{
  color:#ffffff;
  text-decoration:none;
}

.site-description{
  margin-top:8px;
  color:#d8e1dc;
  font-size:18px;
}

/* SEARCH */

.header-search form{
  display:flex;
  gap:10px;
}

.header-search input[type="search"]{
  width:320px;
  padding:14px;
  border-radius:10px;
  border:none;
  font-size:16px;
}

.header-search input[type="submit"]{
  padding:14px 18px;
  border:none;
  border-radius:10px;
  background:var(--accent2);
  color:#111;
  font-weight:700;
  cursor:pointer;
}

/* NAVIGATION */

.main-navigation{
  background:#fff;
  border-bottom:1px solid var(--border);
}

.main-navigation .menu{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
  list-style:none;
  display:flex;
  gap:28px;
  flex-wrap:wrap;
}

.main-navigation li{
  padding:16px 0;
}

.main-navigation a{
  color:#17201d;
  font-weight:700;
  font-size:17px;
}



/* LAYOUT */

.container{
  max-width:1180px;
  margin:8px auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:minmax(0,760px) 320px;
  gap:20px;
}

/* HERO */

.hero{
  background:linear-gradient(135deg,#ffffff,#eef5ef);
  border:1px solid var(--border);
  border-radius:20px;
  padding:18px;
  margin-top:8px;
  margin-bottom:10px;
}

.hero h2{
  margin:0 0 10px;
  font-size:46px;
  line-height:1.05;
  letter-spacing:-0.04em;
}

.hero p{
  margin:0;
  color:var(--muted);
  font-size:20px;
}

/* POSTS */

.post-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:30px;
  margin-bottom:22px;
  box-shadow:0 4px 14px rgba(0,0,0,.035);
}

.post-card h2{
  margin:0 0 12px;
  font-size:44px;
  line-height:1.08;
  letter-spacing:-0.04em;
}

.post-meta{
  color:var(--muted);
  font-size:15px;
  margin-bottom:16px;
}

.post-excerpt{
  color:#2c3834;
  font-size:20px;
}

.read-more{
  display:inline-block;
  margin-top:18px;
  font-weight:800;
  font-size:18px;
}

/* SIDEBAR */

.widget{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  margin-bottom:20px;
}

.widget-title{
  margin-top:0;
  font-size:30px;
  line-height:1.1;
}

.widget ul{
  padding-left:20px;
}

.widget li{
  margin-bottom:8px;
}

.widget_search input[type="search"]{
  width:100%;
  padding:14px;
  border:1px solid var(--border);
  border-radius:10px;
  margin-bottom:10px;
  font-size:16px;
}

.widget_search input[type="submit"]{
  width:100%;
  padding:14px;
  border:none;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  font-size:17px;
}

/* SINGLE POST */

.single-post article{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:34px;
}

.entry-title{
  font-size:52px;
  line-height:1.05;
  letter-spacing:-0.04em;
  margin-top:0;
}

.entry-content{
  font-size:21px;
}

.entry-content h2{
  font-size:38px;
  margin-top:40px;
}

.entry-content h3{
  font-size:30px;
  margin-top:34px;
}

.entry-content blockquote{
  border-left:5px solid var(--accent2);
  margin:24px 0;
  padding:10px 18px;
  background:#fff8df;
  border-radius:10px;
}

.disclaimer{
  margin-top:34px;
  background:#fff8df;
  border:1px solid #ead58f;
  border-radius:12px;
  padding:18px;
  font-size:15px;
}

/* FOOTER */

.site-footer{
  margin-top:40px;
  background:#081915;
  color:#d8e1dc;
  padding:28px 20px;
}

.footer-inner{
  max-width:1180px;
  margin:auto;
}

.site-footer a{
  color:#fff;
}

/* MOBILE */

@media(max-width:980px){

  .container{
    grid-template-columns:1fr;
  }

  .header-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .header-search{
    width:100%;
  }

  .header-search form{
    width:100%;
  }

  .header-search input[type="search"]{
    width:100%;
  }

  .site-title{
    font-size:38px;
  }

  .hero h2{
    font-size:34px;
  }

  .post-card h2{
    font-size:34px;
  }

  .entry-title{
    font-size:38px;
  }

}
