/* Shared warm editorial system. Legacy --green names remain API-compatible. */
:root{--ink:#30332b;--green:#a64e34;--lime:#f2e5db;--muted:#6f7069;--line:#d8d8ce;--paper:#f6f5f0;--white:#fffefb;--shadow:none;color:var(--ink);background:var(--paper)}
body{font-family:var(--font-ui);font-weight:400;background:var(--paper)}
#siteHeader{position:sticky;top:0;z-index:40;background:var(--paper)}
.header-wrap{padding:32px 24px 0}
.site-header{position:relative;min-height:96px;display:flex;align-items:center;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;gap:0}
.site-header .brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-family:var(--font-display);font-weight:500;letter-spacing:-.025em;font-size:32px;line-height:42px;gap:14px;z-index:1}
.site-header .brand img{width:44px;height:44px;border-radius:2px}
.nav-links{display:grid;grid-template-columns:minmax(0,1fr) 210px minmax(0,1fr);width:100%;margin:0;gap:0;align-items:center}
.nav-group{display:flex;align-items:center;gap:30px;min-width:0}
.nav-leading{grid-column:1;justify-content:center}
.nav-trailing{grid-column:3;padding-left:18px;padding-right:234px;gap:22px}
.nav-links a{padding:6px 0;min-height:42px;border:0;border-radius:0;color:var(--ink);font-size:17px;font-weight:400;line-height:26px;white-space:nowrap;position:relative;background:transparent}
.nav-links a:hover,.nav-links a.active{color:var(--green);background:transparent;font-weight:400}
.nav-links a.active:after{content:'';position:absolute;height:1px;bottom:3px;left:0;right:0;background:currentColor}
.header-actions{position:absolute;right:0;top:50%;transform:translateY(-50%);gap:14px;margin:0}
.lang-select{gap:4px}.lang-select .icon{width:16px;height:16px}.lang-select select{font-size:14px;max-width:84px;min-height:40px;color:var(--muted)}
.header-actions .button{min-height:42px;max-width:130px;display:block;padding:8px 18px;border:1px solid #b7b7ad;border-radius:24px;background:transparent;color:var(--ink);font-size:16px;line-height:24px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-actions .button:hover{background:var(--lime);transform:none;border-color:var(--green)}
.menu-toggle{display:none}
.button{font-family:var(--font-ui);border-radius:8px;font-weight:500;transition:background .2s ease,color .2s ease,border-color .2s ease}
.button:hover{transform:none}.button:active{transform:translateY(1px)}
.button.primary{background:var(--green);color:#fffaf4;border-color:var(--green)}
.header-actions .button.primary{background:transparent;color:var(--ink);border-color:#b7b7ad}
.header-actions .button.primary:hover{background:var(--lime);border-color:var(--green)}
.button.secondary{background:var(--white);color:var(--ink);border-color:var(--line)}
.button.ghost:hover{background:var(--lime)}
.icon-button{border-radius:8px}
.eyebrow{color:var(--green);font-size:12px;line-height:20px;letter-spacing:.08em;font-weight:500}
.eyebrow:before{display:none}
.badge:not(.ai-status),.chip{background:#eeeae1;color:#6e6253;border-radius:4px;font-weight:500}
.badge.neutral{background:#efeee8;color:var(--muted)}
.panel{background:var(--white);box-shadow:none;border-radius:12px}
.page-title{font-family:var(--font-display);font-weight:400;font-size:44px;line-height:1.15;letter-spacing:-.035em}
.page-head{margin-top:44px}.page-head .muted{font-size:16px;line-height:27px}
.section-head h2,.faq-section h2,.tagline-section h2,.dialog-body h2{font-family:var(--font-display);font-weight:400;letter-spacing:-.025em}
.field input,.field select,.field textarea,input.control,select.control,textarea.control,.auth-form input{background:var(--white);border-radius:8px;color:var(--ink)}
.field label,.field-label{font-weight:500}
input::placeholder,textarea::placeholder{color:#70736a;opacity:1}
.tagline-section{padding:56px 32px;background:transparent;border:1px solid var(--line);border-left:0;border-right:0;border-radius:0;box-shadow:none}
.tagline-section h2{font-size:44px;line-height:1.18}
.tagline-section p{max-width:500px;font-size:16px;line-height:27px}
.tagline-path a{background:var(--white);border:1px solid var(--line);border-radius:6px;font-weight:400}
.faq-section h2{font-size:36px;line-height:1.2}
.faq-list summary{font-size:16px;font-weight:400;line-height:26px}.faq-list details p{font-size:15px;line-height:26px}
.footer{margin-top:56px}.footer .brand{font-family:var(--font-display);font-weight:500;font-size:24px;letter-spacing:-.025em}.footer .brand img{border-radius:2px}
.footer-links,.footer-bottom{font-size:13px;color:var(--muted)}
dialog{background:var(--white);border-radius:14px;box-shadow:0 16px 56px #30332b1f}dialog::backdrop{background:#30332b4d;backdrop-filter:blur(3px)}
.auth-form label,.auth-form input{font-size:15px}.dialog-body h2{font-size:32px;line-height:1.2}
.captcha-row{display:flex;align-items:flex-end;gap:12px;margin:16px 0 0}.captcha-row[hidden]{display:none}.captcha-row>label{display:block;flex:1;min-width:0}.captcha-row>label>span{display:block;margin-bottom:8px;font-size:14px}.captcha-row input{display:block;width:100%;box-sizing:border-box;line-height:24px;padding:12px;border:1px solid var(--line);letter-spacing:.15em;text-transform:uppercase}.captcha-image{flex:none;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--white);line-height:0;overflow:hidden;cursor:pointer}.captcha-image img{display:block;max-width:100%;height:auto}
.toast{border-radius:8px;background:var(--ink);box-shadow:none}
@media(min-width:1280px) and (max-width:1450px){
 .nav-links{grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr)}
 .nav-links a{font-size:14px}.nav-leading{gap:22px}.nav-trailing{padding-left:12px;padding-right:208px;gap:16px}
 .site-header .brand{font-size:29px;gap:10px}.site-header .brand img{width:40px;height:40px}
 .header-actions{gap:8px}.header-actions .button{font-size:14px;padding:8px 12px;max-width:116px}.lang-select select{max-width:72px;font-size:13px}
}
@media(min-width:1451px) and (max-width:1600px){
 html[lang="es"] .nav-links a,html[lang="pt-BR"] .nav-links a{font-size:14px}
 html[lang="es"] .nav-trailing,html[lang="pt-BR"] .nav-trailing{gap:16px}
}
@media(max-width:1279px){
 .header-wrap{padding:16px 24px 0}.site-header{min-height:72px;gap:16px}
 .site-header .brand{position:static;transform:none;font-size:28px;line-height:36px;gap:10px}.site-header .brand img{width:38px;height:38px}
 .header-actions{position:static;transform:none;margin-left:auto;gap:12px}.header-actions .button{max-width:180px}
 .nav-links{display:none}.menu-toggle{display:inline-grid}
 .site-header.menu-open .nav-links{display:flex;position:fixed;left:24px;right:24px;top:96px;width:auto;height:calc(100dvh - 120px);border:1px solid var(--line);border-radius:12px;background:var(--paper);backdrop-filter:none;flex-direction:column;justify-content:center;gap:14px;padding:24px}
 .nav-group{display:contents}.site-header.menu-open .nav-links a{font-family:var(--font-display);font-size:30px;font-weight:400;line-height:38px;padding:10px 16px;animation:none;opacity:1;transform:none;white-space:normal;text-align:center}
 .site-header.menu-open .nav-links a.active:after{left:16px;right:16px}
}
@media(max-width:850px){.page-title{font-size:38px}.header-wrap{padding:12px 20px 0}.site-header{min-height:68px}.tagline-section{padding:40px 16px}.tagline-section h2{font-size:38px}}
@media(max-width:600px){
 .header-wrap{padding:8px 16px 0}.site-header{min-height:60px;gap:8px}.site-header .brand{font-size:23px;line-height:32px;gap:8px}.site-header .brand img{width:32px;height:32px}
 .header-actions{gap:4px}.header-actions .button{max-width:94px;min-height:38px;padding:6px 10px;font-size:13px}.lang-select select{max-width:72px;font-size:12px;min-height:38px}.lang-select>.icon{display:none}
 .site-header.menu-open .nav-links{top:76px;left:16px;right:16px;height:calc(100dvh - 92px)}
 .page-title{font-size:32px;line-height:1.18}.page-head{margin-top:32px}.panel{border-radius:10px}
 .tagline-section{padding:32px 0}.tagline-section h2{font-size:34px}.tagline-section p{font-size:15px}.faq-section h2{font-size:30px}
 .footer-top{align-items:flex-start}.footer{margin-top:40px}.dialog-body h2{font-size:28px}
}
@media(max-width:360px){.site-header .brand{font-size:20px;gap:6px}.site-header .brand img{width:28px;height:28px}.header-actions .button{max-width:72px;padding:6px}.lang-select select{max-width:46px}.menu-toggle{width:34px}}
@media(prefers-reduced-motion:reduce){.button,.ha-composer{transition:none}.button:active{transform:none}}
