/* Shared palette and homepage presentation. Public-page adapters live in public-theme.css. */
html[data-cotnas-ui][data-theme]{background:var(--ap-bg)}
html[data-cotnas-ui][data-theme]{--ap-bg:#f5f3ee;--ap-surface:#fffefa;--ap-alt:#e9efee;--ap-ink:#172e39;--ap-muted:#4b6269;--ap-accent:#006c73;--ap-bright:#18a9ad;--ap-line:#c5d3d2;--ap-button:#006c73;--ap-on-button:#fff;--ap-radius:22px;--ap-shadow:0 18px 45px #1c435410;color-scheme:light;--accent:var(--ap-bright);--second:#347f99}
html[data-cotnas-ui][data-theme=botanica]{--ap-bg:#f2f3e8;--ap-surface:#fcfcf4;--ap-alt:#e3ead9;--ap-ink:#203d2b;--ap-muted:#52634e;--ap-accent:#426a35;--ap-bright:#75a95c;--ap-line:#c6d2bb;--ap-button:#355c30;--ap-radius:30px;--second:#4b7f5e}
html[data-cotnas-ui][data-theme=impacto]{--ap-bg:#f7f8ee;--ap-surface:#fff;--ap-alt:#e6edce;--ap-ink:#172013;--ap-muted:#505a43;--ap-accent:#476300;--ap-bright:#b4e93d;--ap-line:#bbc8a7;--ap-button:#1e2915;--ap-radius:5px;--ap-shadow:5px 5px 0 #18241415;--second:#8cbf35}
html[data-cotnas-ui][data-theme=blueprint]{--ap-bg:#102e54;--ap-surface:#1b4068;--ap-alt:#16375d;--ap-ink:#eef7ff;--ap-muted:#bdcfe1;--ap-accent:#81d8ff;--ap-bright:#68d4fa;--ap-line:#466789;--ap-button:#a7e7ff;--ap-on-button:#122f4d;--ap-radius:12px;--ap-shadow:0 18px 45px #031a3825;--second:#4c95d1;color-scheme:dark}
html[data-cotnas-ui][data-theme=cobre]{--ap-bg:#302922;--ap-surface:#443a31;--ap-alt:#383029;--ap-ink:#fff3e8;--ap-muted:#d8c6b7;--ap-accent:#f6b78e;--ap-bright:#eba774;--ap-line:#75604d;--ap-button:#f3bb95;--ap-on-button:#352318;--ap-radius:12px;--ap-shadow:0 18px 45px #1d100e28;--second:#a96c4f;color-scheme:dark}
html[data-cotnas-ui][data-theme=obsidiana]{--ap-bg:#293448;--ap-surface:#39475e;--ap-alt:#303d52;--ap-ink:#f4f2ff;--ap-muted:#cbd2e5;--ap-accent:#cabaff;--ap-bright:#b5a3f3;--ap-line:#63718a;--ap-button:#d3c5ff;--ap-on-button:#302447;--ap-radius:24px;--ap-shadow:0 18px 45px #10182b22;--second:#7c86bc;color-scheme:dark}
html[data-cotnas-ui][data-theme] body.cotnas-premium{--bg:var(--ap-bg);--panel:var(--ap-surface);--text:var(--ap-ink);--muted:var(--ap-muted);--line:var(--ap-line);--ocean-text:var(--ap-ink);--ocean-muted:var(--ap-muted);--ocean-accent:var(--ap-accent);--cp-text:var(--ap-ink);--cp-muted:var(--ap-muted);background:var(--ap-bg)!important;color:var(--ap-ink)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(h1,h2,h3,h4,.logo,.section-title,.service-card h3,.image-card h3,.lab-feature h3){color:var(--ap-ink)!important;text-shadow:none}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.section-desc,.hero-text>p,.service-card p,.image-card p,.audit-timeline p,.method-index p,.trust-grid p,.contact-note,.footer-brand p,.lab-feature p,.academy-home-shell p){color:var(--ap-muted)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.module-label,.tag,.capability-id,.phase-id,.instrument-caption,.tools-caption,.contact-intro>span,.ethical-word,.hero-lab-link,.card-more,.text-link,.lab-link){color:var(--ap-accent)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .main-nav{background:var(--ap-bg)!important;border-bottom:1px solid var(--ap-line);box-shadow:0 2px 15px #00000008}
html[data-cotnas-ui][data-theme] body.cotnas-premium .nav-inner{gap:14px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .logo{letter-spacing:-1.5px;font-weight:850}
html[data-cotnas-ui][data-theme] body.cotnas-premium .nav-status{display:none}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.menu>a,.nav-status,.menu-toggle,.btn-nav,.cotnas-account-menu>summary){color:var(--ap-ink)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.menu>a:hover,.menu>a:focus-visible){color:var(--ap-accent)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.cotnas-account-popover,.btn-nav,.menu-toggle){background:var(--ap-surface)!important;border-color:var(--ap-line)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .appearance-toggle{flex-shrink:0;padding:9px 13px;min-height:42px;border:1px solid var(--ap-line);background:var(--ap-surface);color:var(--ap-ink);border-radius:50px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
html[data-cotnas-ui][data-theme] body.cotnas-premium #inicio{background:radial-gradient(ellipse at 80% 20%,color-mix(in srgb,var(--ap-bright) 13%,transparent),transparent 52%),var(--ap-bg)!important;border-color:var(--ap-line);padding-top:134px}
html[data-cotnas-ui][data-theme] body.cotnas-premium #inicio:before,html[data-cotnas-ui][data-theme] body.cotnas-premium #inicio:after{opacity:.12}
html[data-cotnas-ui][data-theme] body.cotnas-premium #signal-field{opacity:.15}
html[data-cotnas-ui][data-theme] body.cotnas-premium .hero{gap:clamp(30px,5vw,85px);align-items:center}
html[data-cotnas-ui][data-theme] body.cotnas-premium .hero h1{font-size:clamp(44px,5.8vw,86px);line-height:1.04;letter-spacing:-.055em;max-width:730px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ethical-word{display:block;background:none;-webkit-text-fill-color:var(--ap-accent)}
html[data-cotnas-ui][data-theme=porcelana] body.cotnas-premium :is(.hero h1,.section-title){font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.045em}
html[data-cotnas-ui][data-theme=botanica] body.cotnas-premium :is(.hero h1,.section-title){font-family:Georgia,'Times New Roman',serif;font-weight:500}
html[data-cotnas-ui][data-theme=impacto] body.cotnas-premium .hero h1{font-weight:950;letter-spacing:-.065em}
html[data-cotnas-ui][data-theme=blueprint] body.cotnas-premium #inicio{background-image:linear-gradient(#89c8ff0a 1px,transparent 1px),linear-gradient(90deg,#89c8ff0a 1px,transparent 1px)!important;background-size:40px 40px!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .hero-text>p{font-size:18px;line-height:1.75;max-width:590px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .hero-primary>a{border:1px solid var(--ap-line);border-radius:10px;background:var(--ap-surface);color:var(--ap-ink);box-shadow:none}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.hero-primary>a:first-child,.nav-audit,.contact-submit,.academy-home-cta){background:var(--ap-button)!important;color:var(--ap-on-button)!important;border-color:var(--ap-button)!important;box-shadow:none}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.ocean-hero-tags span,.service-tags span){background:var(--ap-alt);color:var(--ap-muted);border:1px solid var(--ap-line)}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.hero-foot,.hero-foot>span,.system-checkpoints a,.ocean-motion-control){color:var(--ap-muted);border-color:var(--ap-line)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-motion-control{background:var(--ap-surface)}
html[data-cotnas-ui][data-theme] body.cotnas-premium>section{padding:90px 0;background:var(--ap-bg)!important;border-top:1px solid var(--ap-line)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium>section:nth-of-type(even){background:var(--ap-alt)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(#herramientas,#contacto){background:var(--ap-alt)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .section-heading{max-width:830px;margin-bottom:40px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .section-title{font-size:clamp(32px,4vw,54px);line-height:1.12;margin:14px 0 18px;letter-spacing:-.035em}
html[data-cotnas-ui][data-theme] body.cotnas-premium .module-label{font-size:12px;font-weight:750;letter-spacing:2px}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.service-card,.image-card,.lab-feature,.method-index,.contact-public-card,.trust-grid>div,.academy-home-shell){background:var(--ap-surface)!important;border:1px solid var(--ap-line)!important;border-radius:var(--ap-radius);box-shadow:var(--ap-shadow)}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.service-card:hover,.image-card:hover,.lab-feature:hover){border-color:var(--ap-accent)!important;box-shadow:0 15px 35px color-mix(in srgb,var(--ap-accent) 13%,transparent)}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.capability-diagram,.capability-small){background:var(--ap-alt);color:var(--ap-accent);border-color:var(--ap-line)}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.capability-diagram code,.capability-diagram span,.http-response){color:var(--ap-accent);border-color:var(--ap-line)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .capability-small span{background:var(--ap-surface);border-color:var(--ap-line)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .service-content{padding:28px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .service-card h3{font-size:24px;line-height:1.25}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.card-more,.image-content,.audit-timeline li,.footer-baseline,.trust-grid>div){border-color:var(--ap-line)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .image-content{background:var(--ap-surface)}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.audit-timeline h3 a,.method-index strong,.trust-grid strong,.academy-home-metrics strong){color:var(--ap-ink)}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.method-index>span,.academy-home-metrics span,.trust-grid span){color:var(--ap-muted)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .audit-timeline li{padding-top:22px;padding-bottom:22px}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.method-index,.trust-grid>div){padding:28px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .method-index strong{text-shadow:none}
html[data-cotnas-ui][data-theme] body.cotnas-premium #indicadores{background:var(--ap-bg)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .academy-home-promo{padding:40px 0!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .academy-home-shell{padding:35px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .academy-home-metrics>div{background:var(--ap-alt);border-color:var(--ap-line)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .hero-actions .btn{background:var(--ap-surface)!important;color:var(--ap-ink)!important;border-color:var(--ap-line)!important;border-radius:10px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .hero-actions .btn:hover{background:var(--ap-button)!important;color:var(--ap-on-button)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .lab-code{color:var(--ap-accent);text-shadow:none}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.contact-public-form label,.contact-consent,.contact-public-form input,.contact-public-form textarea,.contact-public-form select){color:var(--ap-ink)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.contact-public-form input,.contact-public-form textarea,.contact-public-form select){background:var(--ap-bg)!important;border-color:var(--ap-line)!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.contact-public-form input,.contact-public-form textarea)::placeholder{color:var(--ap-muted);opacity:1}
html[data-cotnas-ui][data-theme] body.cotnas-premium .contact-consent a{color:var(--ap-accent)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .security-footer{background:var(--ap-bg)!important;border-top:1px solid var(--ap-line);color:var(--ap-muted)}
html[data-cotnas-ui][data-theme] body.cotnas-premium :is(.footer-grid a,.footer-grid>div>span,.footer-baseline,.footer-baseline a,.footer-brand span){color:var(--ap-muted)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .footer-grid strong{color:var(--ap-ink)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-scene{height:300px;overflow:visible;background:none;border:0}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-shield{width:250px;filter:drop-shadow(12px 22px 18px #06152538);transform-style:preserve-3d}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-scene-halo{background:radial-gradient(ellipse,color-mix(in srgb,var(--ap-bright) 28%,transparent),transparent 68%);opacity:.8}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-orbit{border-color:color-mix(in srgb,var(--ap-accent) 36%,transparent);box-shadow:none}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-float-label{color:var(--ap-ink);background:var(--ap-surface);border-color:var(--ap-line);box-shadow:var(--ap-shadow)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-float-label i{background:var(--ap-bright)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-scene-caption{color:var(--ap-muted)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .workstation-terminal{background:#0e2032!important;border:1px solid #4a647b!important;border-radius:14px;box-shadow:var(--ap-shadow)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .workstation-terminal :is(p,input,button,label,.terminal-state,.terminal-chrome){color:#c9deef!important}
html[data-cotnas-ui][data-theme] body.cotnas-premium .workstation-terminal input{background:transparent!important}
@media(min-width:901px){
html[data-cotnas-ui][data-theme] body.cotnas-premium .security-workstation{position:relative;top:-24px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .terminal-screen{height:202px;font-size:11px}
}
html[data-cotnas-ui][data-theme] body.cotnas-premium :focus-visible{outline:3px solid var(--ap-accent);outline-offset:4px}
html[data-cotnas-ui][data-theme] body.cotnas-premium .appearance-preview-note{position:fixed;bottom:14px;left:14px;z-index:10000;background:var(--ap-surface);color:var(--ap-ink);border:2px solid var(--ap-accent);padding:12px 18px;border-radius:12px;box-shadow:var(--ap-shadow);font-size:13px;max-width:calc(100% - 28px)}
html[data-cotnas-ui][data-theme] body.cotnas-premium .appearance-preview-note a{color:var(--ap-accent);margin-left:12px}
@media(max-width:1100px){html[data-cotnas-ui][data-theme] body.cotnas-premium .nav-inner{gap:10px}html[data-cotnas-ui][data-theme] body.cotnas-premium .appearance-toggle{margin-left:auto}html[data-cotnas-ui][data-theme] body.cotnas-premium .menu{background:var(--ap-bg)!important;border-color:var(--ap-line)}html[data-cotnas-ui][data-theme] body.cotnas-premium .hero h1{font-size:clamp(40px,6vw,67px)}}
@media(max-width:700px){html[data-cotnas-ui][data-theme] body.cotnas-premium #inicio{padding-top:110px}html[data-cotnas-ui][data-theme] body.cotnas-premium .hero h1{font-size:clamp(40px,11vw,62px)}html[data-cotnas-ui][data-theme] body.cotnas-premium>section{padding:58px 0}html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-scene{height:310px}html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-shield{width:218px}html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-orbit{max-width:100%}html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-float-label{font-size:11px}html[data-cotnas-ui][data-theme] body.cotnas-premium .academy-home-shell{padding:23px}html[data-cotnas-ui][data-theme] body.cotnas-premium .appearance-toggle{padding:8px 11px}html[data-cotnas-ui][data-theme] body.cotnas-premium .hero-text>p{font-size:16px}}
@media(prefers-reduced-motion:reduce){html[data-cotnas-ui][data-theme] body.cotnas-premium *{scroll-behavior:auto!important}html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-shield{animation:none!important}}
@media(max-width:600px){html[data-cotnas-ui][data-theme] body.cotnas-premium .trust-grid{grid-template-columns:minmax(0,1fr)}html[data-cotnas-ui][data-theme] body.cotnas-premium .ocean-scene{overflow:clip}html[data-cotnas-ui][data-theme] body.cotnas-premium .method-index{padding:24px}}
