
:root{
  --bg:#f5f7f5;
  --surface:#ffffff;
  --surface2:#f0f4f1;
  --text:#15231c;
  --muted:#4b5c54;
  --stroke:#d8e1db;
  --brand:#2f7d57;
  --brand2:#6bbf7a;
  --brandDark:#1f5f44;
  --shadow: 0 14px 38px rgba(17, 34, 26, .10);
  --radius:16px;
  --max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(1000px 700px at 10% -10%, rgba(47,125,87,.10), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(107,191,122,.10), transparent 60%),
    var(--bg);
  line-height:1.6;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Topbar */
.topbar{
  background: rgba(47,125,87,.08);
  border-bottom:1px solid rgba(47,125,87,.14);
}
.topbar .inner{
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color: rgba(21,35,28,.78);
  font-size:13px;
}
.topbar .left, .topbar .right{
  display:flex; gap:14px; align-items:center; flex-wrap:wrap;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(47,125,87,.18);
  background: rgba(255,255,255,.70);
}

/* Header */
header{
  position:sticky; top:0; z-index:50;
  background: rgba(245,247,245,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--stroke);
}
.nav{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:900;
  letter-spacing:-.3px;
  min-width: 260px;
}
.brand .logo{
  height: 84px;
  width:auto;
  border-radius:10px;
}
.brand small{
  display:block;
  font-weight:750;
  letter-spacing:.2px;
  color: rgba(21,35,28,.68);
  margin-top:1px;
}

nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0; margin:0;
}
nav a{
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:750;
  color: rgba(21,35,28,.88);
  padding:10px 12px;
  border-radius:999px;
  transition:.2s ease;
}
nav a:hover{background: rgba(47,125,87,.08)}
nav a.active{background: rgba(47,125,87,.12)}

.nav-cta{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.80);
  color: rgba(21,35,28,.92);
  font-weight:850;
  font-size:14px;
  cursor:pointer;
  transition:.2s ease;
  box-shadow: 0 10px 24px rgba(17,34,26,.06);
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.96)}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#071b12;
  box-shadow: 0 16px 34px rgba(47,125,87,.20);
}
.btn.primary:hover{filter:brightness(1.02)}
.hamburger{
  display:none;
  width:46px; height:46px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.82);
  cursor:pointer;
}
.mobile{
  display:none;
  padding:10px 0 14px;
  border-top:1px solid var(--stroke);
}
.mobile a{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  font-weight:750;
  color: rgba(21,35,28,.92);
}
.mobile a:hover{background: rgba(47,125,87,.08)}
.mobile.open{display:block}

/* Hero */
.hero{padding:44px 0 26px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{
  background: rgba(255,255,255,.88);
  border:1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  padding:26px;
  box-shadow: var(--shadow);
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(47,125,87,.18);
  background: rgba(47,125,87,.06);
  color: rgba(21,35,28,.78);
  font-size:13px;
  font-weight:750;
}
.kicker .dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(47,125,87,.10);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.05;
  letter-spacing:-.9px;
}
.lead{
  margin:0;
  color: rgba(21,35,28,.74);
  font-size: clamp(16px, 1.35vw, 18px);
  max-width: 70ch;
}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.hero-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.meta{
  border:1px solid var(--stroke);
  background: rgba(240,244,241,.70);
  border-radius: 16px;
  padding:12px;
}
.meta .t{font-weight:900; letter-spacing:-.2px}
.meta .d{font-size:13px; color: rgba(21,35,28,.70); margin-top:4px}

.hero-photo{
  border-radius: calc(var(--radius) + 6px);
  border:1px solid var(--stroke);
  overflow:hidden;
  position:relative;
  box-shadow: var(--shadow);
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(245,247,245,.15), rgba(245,247,245,.92)),
    url("portada.jpg") center/cover no-repeat;
}
.hero-photo .cap{
  position:absolute;
  inset:auto 14px 14px 14px;
  background: rgba(255,255,255,.82);
  border:1px solid rgba(47,125,87,.16);
  border-radius: 16px;
  padding:12px 14px;
  box-shadow: 0 10px 24px rgba(17,34,26,.08);
  color: rgba(21,35,28,.82);
  font-size:13px;
}

/* Sections */
.section{padding:40px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:16px;
}
.section-head h2{
  margin:0;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing:-.5px;
}
.section-head p{
  margin:0;
  color: rgba(21,35,28,.70);
  max-width: 78ch;
}

.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap:16px}
.card{
  grid-column: span 12;
  background: rgba(255,255,255,.90);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 12px 30px rgba(17,34,26,.06);
}
.card h3{margin:0 0 10px; font-size:18px}
.card p{margin:0 0 10px; color: rgba(21,35,28,.74)}
.card ul, .card ol{margin:10px 0 0 18px; color: rgba(21,35,28,.74)}
.two{grid-column: span 6}
.three{grid-column: span 4}

.iconbox{display:flex; gap:12px; align-items:flex-start}
.icon{
  width:44px; height:44px;
  border-radius: 16px;
  border:1px solid rgba(47,125,87,.18);
  background: rgba(47,125,87,.08);
  display:grid;
  place-items:center;
  font-weight:900;
  color: var(--brandDark);
  flex: 0 0 auto;
}
.tagrow{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.tag{
  font-size:12px;
  font-weight:750;
  color: rgba(21,35,28,.78);
  border:1px solid var(--stroke);
  background: rgba(240,244,241,.85);
  padding:8px 10px;
  border-radius:999px;
}

/* Photos */
.photo-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
  margin-top:10px;
}
.figure{
  grid-column: span 4;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(17,34,26,.06);
}
.figure img{width:100%; height:220px; object-fit:cover}
.figure figcaption{
  padding:10px 12px;
  font-size:13px;
  color: rgba(21,35,28,.74);
}
.figure.wide{grid-column: span 6}

/* ISO */
.iso-row{display:flex; gap:12px; flex-wrap:wrap; align-items:flex-start; margin-top:10px}
.iso-badge{
  width:170px;
  border:1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  padding:10px;
  box-shadow: 0 10px 24px rgba(17,34,26,.06);
}

/* Page head */
.pagehead{padding:26px 0 18px}
.breadcrumb{font-size:13px; color: rgba(21,35,28,.66)}
.pagehead h1{margin:8px 0 0; font-size: clamp(28px, 3.4vw, 42px)}
.sub{margin:10px 0 0; color: rgba(21,35,28,.72); max-width: 84ch}
.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(47,125,87,.22), transparent);
  margin:14px 0;
}

/* Tables */
.table{width:100%; border-collapse: collapse; overflow:hidden; border-radius: 14px; border:1px solid var(--stroke)}
.table th, .table td{padding:12px 12px; border-bottom:1px solid var(--stroke); text-align:left; font-size:14px}
.table th{background: rgba(47,125,87,.08); color: rgba(21,35,28,.90)}
.table tr:last-child td{border-bottom:none}

/* Legal */
.legal h2{margin:0 0 10px; font-size:22px}
.legal h3{margin:18px 0 8px; font-size:16px}
.legal p{margin:0 0 10px; color: rgba(21,35,28,.78)}
.legal .signature{margin-top:18px; padding-top:14px; border-top:1px solid var(--stroke)}
.legal .mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

/* Contact */
form{display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:10px}
label{font-size:13px; color: rgba(21,35,28,.85); font-weight:750}
input, textarea{
  width:100%; padding:12px 12px; border-radius:14px; border:1px solid var(--stroke);
  background: rgba(240,244,241,.85); color: rgba(21,35,28,.95); outline:none;
}
input:focus, textarea:focus{border-color: rgba(47,125,87,.55); box-shadow: 0 0 0 4px rgba(47,125,87,.10)}
textarea{min-height:140px; resize:vertical}
.full{grid-column:1/-1}
.hint{font-size:12px; color: rgba(21,35,28,.62); margin-top:6px}
.consent{display:flex; gap:10px; align-items:flex-start; padding:12px; border:1px solid var(--stroke); border-radius:16px; background: rgba(255,255,255,.88)}
.consent input{width:18px; height:18px; margin-top:2px}
.form-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

/* Footer */
footer{margin-top:18px; border-top:1px solid var(--stroke); background: rgba(255,255,255,.70)}
.footer-top{padding:26px 0}
.footer-grid{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:16px}
.footer-grid h4{margin:0 0 10px; font-size:14px; letter-spacing:.2px}
.footer-grid a{display:block; padding:8px 0; color: rgba(21,35,28,.78); font-weight:650}
.footer-grid a:hover{color: rgba(21,35,28,.95)}
.footer-bottom{border-top:1px solid var(--stroke); padding:14px 0; color: rgba(21,35,28,.68); font-size:13px}

/* Responsive */
@media (max-width: 1020px){
  nav ul{display:none}
  .hamburger{display:inline-grid; place-items:center}
  .hero-grid{grid-template-columns:1fr}
  .hero-photo{min-height: 280px}
  .hero-meta{grid-template-columns:1fr 1fr}
  .two,.three{grid-column: span 12}
  .footer-grid{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:16px}
  .figure{grid-column: span 6}
}
@media (max-width: 560px){
  .hero-meta{grid-template-columns:1fr}
  form{grid-template-columns:1fr}
  .footer-grid{display:grid; grid-template-columns: 1fr 1fr 1fr; gap:16px}
  .figure{grid-column: span 12}
}

/* EU financing badge + modal */
.eu-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(47,125,87,.18);
  background: rgba(255,255,255,.85);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17,34,26,.06);
  cursor:pointer;
}
.eu-badge img{width:46px; height:auto; border-radius:10px; border:1px solid var(--stroke)}
.eu-badge .t{font-weight:900}
.eu-badge .d{font-size:13px; color: rgba(21,35,28,.72)}

.modal{
  position:fixed;
  inset:0;
  background: rgba(10,18,14,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:200;
}
.modal.open{display:flex}
.modal-card{
  width:min(860px, 100%);
  max-height: min(86vh, 900px);
  overflow:auto;
  background: rgba(255,255,255,.96);
  border:1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(10,18,14,.22);
  padding:18px;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}
.modal-head h2{margin:0; font-size:20px; letter-spacing:-.3px}
.modal-close{
  border:1px solid var(--stroke);
  background: rgba(240,244,241,.85);
  border-radius: 14px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
}
.modal-body p{margin:0 0 10px; color: rgba(21,35,28,.78)}

/* Brand text sizing */
.brand small{font-size:14px}
@media (max-width: 560px){
  .brand .logo{height: 84px}
}

/* ISO logos near header CTA */
.nav-iso{
  display:flex;
  gap:10px;
  align-items:center;
}
.nav-iso img{
  height: 52px;
  width:auto;
  border-radius:10px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.92);
  padding:4px;
}
@media (max-width: 1020px){
  .nav-iso{display:none}
}

/* Global green text */
body{ color: var(--brand); }
h1,h2,h3,h4, p, li, label, small, .lead, .sub, .breadcrumb, .hint, .tag, .pill, .meta .t, .meta .d, nav a, .footer-grid a, .footer-bottom, .card p, .card h3{
  color: var(--brand);
}

.topbar, .pill{ color: var(--brand); }

/* Site title under navigation */
.site-title{
  text-align:center;
  font-weight:950;
  letter-spacing:-.4px;
  padding:0 0 12px;
  font-size:22px;
  color: var(--brand);
}
@media (max-width: 1020px){
  .site-title{padding:8px 0 14px; font-size:20px;}
}

/* Budget button (header) */
.btn.budget{
  padding:10px 12px;
  font-size:13px;
  border-color: rgba(63, 116, 224, .35);
  background: rgba(63, 116, 224, .14);
  color: #22457a;
  box-shadow: 0 10px 22px rgba(63,116,224,.12);
}
.btn.budget:hover{
  background: rgba(63, 116, 224, .20);
  transform: translateY(-1px);
}

/* Home hero title centered */
.hero-card h1{ text-align:center; }
