/*
Theme Name: IRM Elkartea
Theme URI: https://irmelkartea.org
Author: IRM Elkartea
Author URI: https://irmelkartea.org
Description: Tema moderno y ligero para IRM Elkartea (maker, impresión 3D y Arduino). Compatible con WooCommerce.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: irmelkartea
Tags: custom-background, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, e-commerce
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --brand: #b6f0ff;      /* pastel cyan */
  --brand2:#f7c6e6;      /* pastel pink */
  --brand3:#c8f7d2;      /* pastel green */
  --border: rgba(255,255,255,.14);
  --shadow: 0 14px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(182,240,255,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(247,198,230,.14), transparent 55%),
              radial-gradient(900px 600px at 80% 90%, rgba(200,247,210,.10), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height:1.5;
}

a{color:inherit}
img{max-width:100%;height:auto}
.container{max-width:var(--max); margin:0 auto; padding: 0 18px}
.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.8rem 1.05rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(182,240,255,.22), rgba(247,198,230,.22));
  border:1px solid var(--border);
  text-decoration:none;
  box-shadow: var(--shadow);
}
.btn:hover{transform: translateY(-1px)}
.btn.secondary{background: transparent; box-shadow:none}
.badge{
  display:inline-flex; gap:.4rem; align-items:center;
  padding:.35rem .7rem;
  border-radius:999px; border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size:.9rem;
}

.site-header{
  position: sticky; top:0; z-index:999;
  backdrop-filter: blur(14px);
  background: rgba(11,16,32,.62);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0}
.brand{
  display:flex; align-items:center; gap:.7rem; text-decoration:none;
  font-weight: 750; letter-spacing:.2px;
}
.brand-mark{
  width:36px;height:36px;border-radius:12px;
  background: linear-gradient(135deg, rgba(182,240,255,.9), rgba(247,198,230,.85));
  box-shadow: 0 8px 28px rgba(182,240,255,.14);
}
.nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.nav a{padding:.55rem .7rem; border-radius:999px; text-decoration:none; color:var(--muted)}
.nav a:hover{background: rgba(255,255,255,.06); color: var(--text)}

.hero{
  padding: 56px 0 30px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
}
.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card.pad{padding: 22px}
.hero h1{
  margin:.2rem 0 .7rem;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height:1.1;
}
.hero p{margin:0 0 1rem; color: var(--muted); font-size:1.05rem}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px}
.hero-media{
  min-height: 380px;
  background:
    linear-gradient(180deg, rgba(11,16,32,.2), rgba(11,16,32,.75)),
    url(assets/img/hero.webp) center/cover no-repeat;
}
.hero-media .overlay{
  padding: 18px;
  display:flex;
  height:100%;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
}
.kpis{display:grid; grid-template-columns: repeat(3,1fr); gap:12px}
.kpi{
  padding:14px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.kpi .n{font-weight:800; font-size:1.25rem}
.kpi .t{color:var(--muted); font-size:.92rem}

.section{padding: 34px 0}
.section h2{margin:0 0 10px; font-size:1.7rem}
.section p{color:var(--muted); margin:0 0 14px}
.grid3{display:grid; grid-template-columns: repeat(3,1fr); gap:14px}
@media (max-width: 900px){.grid3{grid-template-columns:1fr}}
.tile{
  padding:16px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
}
.tile h3{margin:0 0 6px}
.tile p{margin:0; color:var(--muted)}
.media{
  height: 190px; border-radius: 16px; border:1px solid rgba(255,255,255,.10);
  background: center/cover no-repeat;
  margin-bottom: 12px;
}
.media.lab{background-image:
  linear-gradient(180deg, rgba(11,16,32,.10), rgba(11,16,32,.78)),
  url(assets/img/lab.webp);}
.media.wall{background-image:
  linear-gradient(180deg, rgba(11,16,32,.10), rgba(11,16,32,.78)),
  url(assets/img/wall.webp);}

.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  padding: 22px 0;
  margin-top: 30px;
}
.footer small{color: var(--muted)}
/* Basic WP defaults */
.wp-block{max-width: var(--max)}
.wp-site-blocks{padding:0}
