/*
Theme Name: KUAASÉ
Theme URI: https://example.org/kuaase
Author: Equipo KUAASÉ
Description: Tema educativo para la divulgación de la biotecnología en Paraguay.
Version: 0.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: kuaase
*/

:root {
  --ink: #16342f;
  --muted: #5c6f6b;
  --cream: #f7f3e8;
  --paper: #fffdf7;
  --green: #126b57;
  --lime: #b8d83d;
  --orange: #f08b4b;
  --sky: #8fd8df;
  --border: rgba(22, 52, 47, .14);
  --shadow: 0 16px 50px rgba(23, 71, 61, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 99; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,247,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: .06em; font-size: 1.32rem; }
.brand-mark { width: 38px; aspect-ratio: 1; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50% 50% 48% 52% / 58% 48% 52% 42%; transform: rotate(-7deg); }
.brand-mark span { transform: rotate(7deg); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a, .nav-button { padding: 10px 12px; border: 0; background: transparent; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .94rem; cursor: pointer; border-radius: 10px; }
.site-nav a:hover, .site-nav a:focus-visible, .nav-button:hover { background: #eaf3e7; }
.nav-group { position: relative; }
.nav-button::after { content: "⌄"; margin-left: 5px; }
.nav-menu { display: none; position: absolute; right: 0; top: calc(100% + 12px); width: 310px; padding: 10px; background: var(--paper); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.nav-menu a { display: block; }
.nav-group.open .nav-menu { display: block; }
.menu-toggle { display: none; border: 0; background: var(--ink); color: white; border-radius: 12px; padding: 9px 12px; font-weight: 800; }

.hero { overflow: hidden; padding: 78px 0 56px; background: radial-gradient(circle at 83% 25%, rgba(143,216,223,.45), transparent 24%), radial-gradient(circle at 68% 80%, rgba(184,216,61,.25), transparent 23%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--green); font-weight: 850; text-transform: uppercase; letter-spacing: .11em; font-size: .77rem; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--lime); border-radius: 9px; }
h1, h2, h3 { line-height: 1.07; margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(3.1rem, 7vw, 6.5rem); letter-spacing: -.065em; }
h1 .accent, h2 .accent { color: var(--green); }
.lead { max-width: 670px; margin: 0 0 30px; color: #405b55; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22,52,47,.18); }
.button.secondary { color: var(--ink); background: transparent; }
.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.cell { width: min(420px, 90%); aspect-ratio: 1; position: relative; border: 3px solid var(--ink); border-radius: 52% 48% 58% 42% / 48% 57% 43% 52%; background: rgba(255,255,255,.64); box-shadow: var(--shadow); animation: drift 8s ease-in-out infinite; }
.cell::before { content: ""; position: absolute; inset: 28%; background: var(--orange); border: 3px solid var(--ink); border-radius: 54% 46% 43% 57%; }
.organelle { position: absolute; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); }
.organelle.o1 { width: 58px; height: 30px; left: 16%; top: 24%; transform: rotate(28deg); }
.organelle.o2 { width: 35px; height: 52px; right: 15%; top: 38%; background: var(--sky); }
.organelle.o3 { width: 46px; height: 23px; left: 27%; bottom: 17%; background: #fff; transform: rotate(-19deg); }
.orbit-note { position: absolute; padding: 9px 14px; border: 2px solid var(--ink); border-radius: 999px; background: white; font-weight: 800; box-shadow: 4px 5px 0 var(--ink); }
.note-1 { left: 0; top: 12%; }.note-2 { right: 0; bottom: 14%; }.note-3 { right: 2%; top: 8%; }
@keyframes drift { 50% { transform: translateY(-12px) rotate(2deg); } }

.stats { margin-top: -22px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: white; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 25px 30px; border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border: 0; }.stat strong { display: block; color: var(--lime); font-size: 1.8rem; }.stat span { font-size: .93rem; }

.section { padding: 92px 0; }
.section.tint { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-head h2, .page-hero h1 { margin-bottom: 0; font-size: clamp(2.3rem, 5vw, 4.35rem); letter-spacing: -.05em; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area-card { position: relative; min-height: 275px; padding: 26px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: white; text-decoration: none; transition: .25s ease; }
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.area-card::after { content: attr(data-number); position: absolute; right: 14px; bottom: -34px; color: rgba(18,107,87,.09); font-size: 8rem; font-weight: 900; line-height: 1; }
.area-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 45px; border-radius: 15px; background: var(--cream); font-size: 1.55rem; }
.area-card h3 { margin-bottom: 9px; font-size: 1.45rem; }.area-card p { margin: 0; color: var(--muted); font-size: .94rem; }.area-link { margin-top: auto; font-weight: 850; color: var(--green); }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.quote-card { position: sticky; top: 120px; padding: 34px; border-radius: var(--radius); background: var(--green); color: white; box-shadow: 12px 12px 0 var(--lime); }
.quote-card .big { margin: 0 0 20px; color: var(--lime); font-size: 4rem; line-height: .5; }.quote-card p { font-size: 1.25rem; }.quote-card small { color: #dce9e5; }
.objective-list { display: grid; gap: 14px; }
.objective { padding: 20px 22px; display: grid; grid-template-columns: 38px 1fr; gap: 13px; border: 1px solid var(--border); border-radius: 16px; background: white; }
.objective b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.objective p { margin: 5px 0 0; color: var(--muted); }

.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.resource-card { min-height: 210px; padding: 24px; border-radius: var(--radius); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); }
.resource-card:nth-child(1) { background: #d8f0ed; }.resource-card:nth-child(2) { background: #edf2c8; }.resource-card:nth-child(3) { background: #fae1d1; }.resource-card:nth-child(4) { background: #dceff1; }
.resource-card span:first-child { font-size: 2rem; }.resource-card h3 { margin: 15px 0 4px; font-size: 1.3rem; }.resource-card small { font-weight: 800; }

.page-hero { padding: 72px 0 52px; background: var(--cream); }.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 45px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.profile { padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: white; }
.avatar { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--green); color: white; font-size: 1.25rem; font-weight: 900; }
.profile h3 { margin-bottom: 7px; font-size: 1.15rem; }.profile .role { color: var(--green); font-weight: 800; font-size: .84rem; }.profile p { color: var(--muted); font-size: .91rem; }.profile-links { display: flex; flex-wrap: wrap; gap: 7px; }.profile-links a { padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 750; }
.sidebar-card { padding: 26px; border-radius: var(--radius); background: var(--cream); }.sidebar-card h3 { margin-bottom: 16px; }.link-list { margin: 0; padding: 0; list-style: none; }.link-list li { padding: 11px 0; border-bottom: 1px solid var(--border); }.link-list a { color: var(--green); font-weight: 750; text-decoration: none; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }.team-grid .profile { min-height: 320px; }
.results { counter-reset: result; display: grid; gap: 11px; }.result { counter-increment: result; padding: 17px 20px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; border: 1px solid var(--border); border-radius: 15px; }.result::before { content: counter(result, decimal-leading-zero); color: var(--green); font-weight: 900; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.field { display: grid; gap: 6px; }.field.full { grid-column: 1 / -1; }.field label { font-weight: 800; font-size: .9rem; }.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #b8c6c1; border-radius: 11px; background: white; color: var(--ink); font: inherit; }.field textarea { min-height: 150px; resize: vertical; }.notice { padding: 12px 16px; margin-bottom: 20px; border-radius: 10px; background: #e4f1d1; }

.site-footer { padding: 55px 0 28px; background: var(--ink); color: white; }.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 45px; }.site-footer p, .site-footer small { color: #bcd0cb; }.site-footer h3 { color: var(--lime); }.site-footer a { color: white; text-decoration: none; }.footer-bottom { margin-top: 45px; padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.15); }
.empty-state { padding: 30px; border: 1px dashed var(--green); border-radius: 16px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }.site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 12px; align-items: stretch; flex-direction: column; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }.site-nav.open { display: flex; }.nav-menu { position: static; width: 100%; box-shadow: none; margin-top: 5px; }
  .hero-grid, .about-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }.hero-art { min-height: 350px; }.quote-card { position: static; }.area-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }.resource-grid { grid-template-columns: repeat(2, 1fr); }.section-head { align-items: start; flex-direction: column; }.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .shell { width: min(100% - 26px, 1180px); }.hero { padding-top: 52px; }.hero-art { min-height: 290px; }.orbit-note { font-size: .75rem; }.area-grid, .profile-grid, .team-grid, .resource-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }.stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }.contact-form { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.footer-bottom { align-items: start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
