/* ComEx V0.3.1 · identidad contrastada con Sellers V0.1.3.4. */
:root{--green:#1d574c;--green2:#287968;--ink:#233d37;--mute:#687b70;--line:#dce7dc;--pale:#e7f2e4;--shadow:0 12px 40px #1d574c09}
*{box-sizing:border-box}
html{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:var(--ink);background:linear-gradient(118deg,#eaf4e8 0%,#fdfdf7 53%,#fdf3ed 100%);min-height:100%;scroll-behavior:smooth}
body{margin:0;background:transparent;min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--green);overflow-wrap:anywhere}[hidden],.hidden{display:none!important}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.035em}
h1{font-size:clamp(2.4rem,4.8vw,4.4rem);line-height:1.08;margin:12px 0 20px}
h2{font-size:1.9rem;margin:0 0 9px}h3{font-size:1.55rem;margin:0 0 11px}
p{line-height:1.6;color:#526b60;margin:8px 0}small{line-height:1.5;color:var(--mute)}
.kicker,.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:var(--green2)}
.topbar{background:transparent;border:0;flex-shrink:0}
.top-inner{max-width:1220px;margin:auto;padding:25px 30px 6px;display:flex;align-items:center;justify-content:flex-start}
.brand{display:flex;align-items:center}.brand img{width:315px;max-width:min(75vw,315px);height:auto;display:none}.brand-fallback{font-size:1.1rem;font-weight:750}.brand-fallback small{display:block;font-size:.7rem}.brand-fallback strong{color:var(--green)}
.main{max-width:1220px;margin:0 auto;width:100%;padding:12px 30px 45px;flex:1}.screen{animation:appear .2s ease}@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.intro{display:flex;align-items:center;justify-content:space-between;gap:35px;margin:28px 0 23px}
.intro-main{flex:1;min-width:0}
.comex-title{font-family:Georgia,'Times New Roman',serif;font-size:42px;line-height:1.08;letter-spacing:-.075em;margin:12px 0 13px;color:var(--green);font-weight:500}
.comex-title em{font-style:italic;color:var(--green2);font-weight:500;letter-spacing:-.09em}
.intro h2{font-size:clamp(1.65rem,2.8vw,2.55rem);line-height:1.22;max-width:850px;margin:3px 0 17px}
.intro-description{font-size:1.03rem;max-width:860px}.intro-description span{display:block}
.card,.white-panel,.report-panel{background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:23px;box-shadow:var(--shadow)}
.form-panels{display:grid;grid-template-columns:1.05fr 1fr;gap:22px}
.form-card{padding:25px;min-width:0}.form-card .card-top{display:flex;align-items:flex-start;gap:14px;margin-bottom:24px}
.card-top h3{font-size:1.55rem;margin:1px 0 6px}.card-top p{font-size:13px;margin:0}
.step{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:11px;background:#e7f2e4;color:var(--green2);font:800 12px system-ui,sans-serif}
form label:not(.check){display:block;font-size:13px;font-weight:700;margin:15px 0 7px}form label b{color:var(--green2)}form label span{color:var(--mute);font-weight:400}
textarea,input:not([type=checkbox]),select{display:block;width:100%;background:#fbfcf9;border:1px solid #d1dfd1;color:#35544a;border-radius:16px;padding:12px 14px;font-size:14px;outline:none;min-height:45px;max-width:100%}
textarea{resize:vertical;min-height:125px}
select{border-radius:13px;appearance:none;-webkit-appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231d574c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 16px center;background-repeat:no-repeat}
textarea:focus,input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--green2);outline-offset:2px}
textarea:focus,input:not([type=checkbox]):focus,select:focus{border-color:var(--green2);box-shadow:0 0 0 3px #28796822}
.destination-note{margin-top:26px;background:#e9f2e5;border-left:3px solid #94b396;border-radius:4px 12px 12px 4px;padding:16px;display:flex;gap:12px;align-items:flex-start}
.destination-note span{font-size:28px;color:var(--green2);line-height:1}.destination-note p{font-size:13px;margin:0}
.form-action{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:26px;margin-top:22px;align-items:center}
.form-action h3{font-size:1.8rem}.form-action p:not(.kicker){font-size:14px}
.action-controls{min-width:0}.stacked-buttons{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:1px solid transparent;padding:12px 16px;border-radius:11px;font-size:13px;font-weight:700;text-decoration:none;transition:background .15s}
.btn.primary{background:var(--green);color:white}.btn.primary:hover:not(:disabled){background:#164b40}
.btn.outline,.btn.light{background:#fff;border-color:#cbdcce;color:var(--green)}.btn.outline:hover:not(:disabled),.btn.light:hover:not(:disabled){background:#f1f7ee}
.btn.generate{font-size:15px;min-height:52px;gap:8px}.small-note,.footer-note{font-size:12px;color:#77867c;line-height:1.6}.footer-note{margin-top:19px}
.approval,.privacy{padding:14px;border-radius:12px;background:#e9f2e5;margin:15px 0}.check{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.55}.check input{width:18px;height:18px;min-width:18px;margin:2px 0;accent-color:var(--green)}
.error{background:#fff0e7;color:#955533;border-radius:12px;padding:14px;font-size:13px}
.white-panel{padding:30px;max-width:780px}.progress-box{max-width:680px;margin:30px auto;text-align:center}.progress-box h1{font-size:clamp(2rem,4vw,2.9rem)}.orbit{font-size:50px;color:var(--green2);margin:4px auto 18px}.progress-state{border:1px solid var(--line);background:#f3f8ef;border-radius:15px;padding:15px;margin:20px auto}.elapsed strong{font-variant-numeric:tabular-nums;color:var(--green)}
.result-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:25px 0 22px}.result-top h1{font-size:clamp(2rem,4vw,3.4rem);margin:5px 0}
.chip{border-radius:20px;padding:8px 13px;background:#e1eddf;color:var(--green);font-size:12px;white-space:nowrap}
.tabs{display:flex;gap:9px;overflow-x:auto;margin-bottom:14px;padding-bottom:5px}.tab{background:#e8f1e5;color:var(--green);font-size:13px;font-weight:750;border:1px solid #d0e2d0;padding:12px 18px;border-radius:11px;white-space:nowrap;cursor:pointer}.tab.active{background:var(--green);color:#fff;border-color:var(--green)}
.report-panel{padding:31px;min-height:360px}
.storefront-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:25px}.store-company{font-family:Georgia,serif;font-size:25px;color:var(--green);letter-spacing:-.025em}.locality{font:750 11px system-ui,sans-serif;letter-spacing:.1em;color:var(--green2);margin-top:8px}
.lang-switch{display:flex;flex-wrap:wrap;gap:5px;background:#eff6ec;border:1px solid #dce8dc;border-radius:12px;padding:4px}.lang-switch button{border:0;border-radius:9px;background:transparent;padding:8px 12px;color:var(--green);font-weight:700;font-size:12px}.lang-switch button.active{background:#fff;box-shadow:0 2px 9px #1d574c17}
.hero{display:grid;grid-template-columns:1.1fr 1fr;background:linear-gradient(135deg,#f3f8ef,#e8f1e6);border:1px solid #dce8dc;border-radius:20px;overflow:hidden;min-height:335px}
.hero-copy{align-self:center;padding:32px 35px}.hero-copy h2{font-size:clamp(2rem,3.5vw,3.25rem);margin:8px 0 16px;line-height:1.09}.hero-copy h3{font-family:system-ui,sans-serif;font-size:1.03rem;font-weight:700;letter-spacing:normal;color:#396052}.hero-copy p{font-size:14px}
.hero-art{position:relative;overflow:hidden;display:grid;place-items:center;min-height:320px;background:radial-gradient(circle at 54% 38%,#e6f3e5,transparent 50%),linear-gradient(135deg,#cde1cd,#9bbba5)}
.hero-art:before{content:'';position:absolute;border:1px solid #417f6780;border-radius:50%;height:270px;width:270px;box-shadow:0 0 0 30px #ffffff22,0 0 0 63px #225f4e12}.hero-art:after{content:'↗';font-family:Georgia,serif;font-size:142px;color:#23634c9e;z-index:1}
.hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}.image-caption{position:absolute;bottom:12px;left:12px;right:12px;background:#fffff1ed;border-radius:9px;text-align:center;color:#445c4d;padding:7px;font-size:11px;z-index:3}
.store-section-title{margin:31px 0 17px;font-size:29px}.value-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:32px}
.value-card,.content-card{padding:22px 24px;background:#f3f8ef;border:1px solid #dce8dc;border-radius:18px;min-width:0}
.value-number,.mini-label{font-size:11px;color:var(--green2);font-weight:750;letter-spacing:.1em}
.value-card h3{font-size:23px;margin:12px 0}.value-card p{font-size:13px;line-height:1.65}.detail-box{padding:25px;border-radius:18px;background:#f3f8ef;border:1px solid #dce8dc}.detail-box h3{font-size:25px;margin:12px 0}.detail-box p:last-child{margin-bottom:0}
.report-identifier{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:25px;border-bottom:1px solid #dfe9df;margin-bottom:25px}.report-identifier h2{font-size:31px;margin:12px 0}.report-identifier p{font-size:13px}.report-brand{font:500 36px Georgia,serif;color:var(--green);letter-spacing:-.065em;white-space:nowrap}.report-brand em{color:var(--green2);font-style:italic}
.report-section{margin:33px 0 0}.report-section h3{font-size:26px;padding-top:20px;border-top:1px solid #dfe9df}.content-card{margin:12px 0;padding:17px 19px}.content-card strong{display:block;margin-bottom:7px}.content-card p{font-size:14px;margin:0}.content-card a{font-size:13px}.two-lang{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:13px 0}.two-lang .content-card{margin:0}.report-panel li{margin:10px 0;line-height:1.6}
.action-bar{display:grid;gap:13px;margin:22px 0}.action-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.email-card{max-width:670px;margin:24px auto}.email-card h1{font-size:clamp(2rem,4.3vw,3.4rem)}
.status-warning{margin:18px 0 0;background:#fffaf0;border:1px solid #e8d899;border-radius:10px;padding:13px;font-size:12px;color:#755e30}
.site-footer{max-width:1220px;margin:0 auto;width:100%;border-top:1px solid #dbe6d9;padding:25px 30px;text-align:left;font-size:10px;color:#77867c;letter-spacing:.04em}
@media(max-width:930px){.intro-description span{display:inline}.intro-description span+span:before{content:' '}}
@media(max-width:800px){.form-panels,.form-action{grid-template-columns:1fr}.form-action{gap:14px}.hero{grid-template-columns:1fr}.hero-art{min-height:220px;order:-1}.two-lang{grid-template-columns:1fr}.report-panel{padding:24px}}
@media(max-width:650px){.top-inner{padding:17px 18px 7px;justify-content:center}.brand img{width:245px;max-width:78vw}.main{padding:12px 16px 45px}.intro{margin:18px 0 19px}.comex-title{font-size:34px;margin:12px 0}.intro h2{font-size:clamp(1.5rem,6vw,2rem)}.intro-description{font-size:14px}.form-panels{gap:14px}.form-card,.form-action{padding:20px}.card-top h3{font-size:22px}.form-action h3{font-size:24px}.white-panel,.report-panel{padding:20px;border-radius:18px}.result-top{display:block}.result-top h1{font-size:33px}.chip{display:inline-block;margin-top:13px}.tabs{gap:6px}.tab{padding:11px 13px;font-size:12px}.storefront-header{display:block}.lang-switch{display:inline-flex;margin-top:14px}.hero-copy{padding:23px}.hero-copy h2{font-size:31px}.value-grid{grid-template-columns:1fr;gap:13px}.value-card{padding:20px}.report-identifier{align-items:flex-start}.report-identifier h2{font-size:26px}.report-brand{font-size:28px}.action-pair{grid-template-columns:1fr}.site-footer{padding:22px 16px}}
@media(min-width:651px) and (max-width:980px){.value-grid{grid-template-columns:1fr 1fr}.value-card:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.screen{animation:none}}

/* Selector corporativo adaptado del patrón aprobado de Sellers. */
.contact-aia-select{position:relative}.contact-aia-select-trigger{width:100%;min-height:47px;padding:12px 38px 12px 14px;border:1px solid #d1dfd1;border-radius:16px;background:#fbfcf9;color:#35544a;text-align:left;position:relative;font-size:14px;line-height:1.45;cursor:pointer}.contact-aia-select-trigger::after{content:'';position:absolute;right:17px;top:19px;width:7px;height:7px;border-right:2px solid #287968;border-bottom:2px solid #287968;transform:rotate(45deg)}.contact-aia-select-trigger[aria-expanded=true]::after{transform:rotate(225deg);top:23px}.contact-aia-select-trigger:focus-visible{outline:3px solid #28796840;outline-offset:2px;border-color:#287968}.contact-aia-select-trigger:disabled{cursor:not-allowed;opacity:.45}.contact-aia-select-options{position:fixed;z-index:50;background:#fff;border:1px solid #cbdcce;border-radius:18px;padding:7px;box-shadow:0 14px 35px #1d574c24;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#94b396 #f3f8ef}.contact-aia-select-option{display:block;border:0;border-radius:12px;width:100%;padding:11px 12px;color:#35544a;background:transparent;text-align:left;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:break-word;cursor:pointer}.contact-aia-select-option[aria-selected=true]{background:#28796815;font-weight:700}.contact-aia-select-option.is-active,.contact-aia-select-option:hover{background:#28796825;color:#1d574c;outline:0}.contact-aia-select-options:focus{outline:none}
.contact-aia-select-trigger,.contact-aia-select-option{-webkit-tap-highlight-color:transparent}.contact-aia-select-trigger:focus,.contact-aia-select-trigger[aria-expanded=true]{border-color:#287968;background:#f3f8ef}
::selection{background:#28796825;color:#1d574c}
.native-country{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;pointer-events:none}
.result-top .comex-title{margin:0 0 12px}
.hero-company{display:block;font-family:Georgia,serif;font-size:clamp(1.35rem,2.1vw,1.7rem);color:var(--green);margin:10px 0 8px;line-height:1.2}
.hero-copy,.storefront-header>div:first-child{min-width:0}
.hero-company,.hero-copy h2,.store-company{overflow-wrap:anywhere}

/* Solo el primer apartado del Informe 02: la cabecera aporta la línea superior. */
.report-section.report2-first{margin-top:0}
.report2-first>h3{border-top:0;border-bottom:1px solid #dfe9df;padding-top:0;padding-bottom:16px}
.email-card .comex-title{margin:0 0 12px}

/* Integración: acceso, cierre de sesión y diálogo; estilos comerciales aprobados intactos. */
.top-inner:has(#btn-logout){justify-content:space-between;gap:14px}
.privacy-page{max-width:900px;margin:25px auto}.privacy-page h1,#privacy-body h1{font-size:clamp(1.7rem,4vw,2.5rem)}
#privacy-dialog{border:1px solid var(--line);border-radius:20px;padding:24px;max-width:850px;width:calc(100% - 24px);max-height:88dvh;color:var(--ink);background:#fff}
#privacy-dialog::backdrop{background:#173e3580}
.privacy-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.privacy-dialog-top h2{font-size:24px;margin:0}
#privacy-body{max-height:60dvh;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 0 0;margin:12px 0 18px}
#privacy-body h2,.privacy-page article h2{font-size:24px;margin:25px 0 10px}#privacy-body p,#privacy-body li{font-size:14px;line-height:1.65}
@media(max-width:650px){.top-inner:has(#btn-logout){flex-wrap:wrap;justify-content:center}#btn-logout{font-size:11px;min-height:36px;padding:8px 12px}#privacy-dialog{padding:18px}.privacy-dialog-top h2{font-size:20px}}

/* Estado neutro, misma geometría y tipografía del selector aprobado. */
.contact-aia-select-trigger.is-placeholder{color:var(--mute)}

/* V033: una unidad de texto junto a la casilla; primera capa separada. */
.privacy .privacy-check-label{font-size:14px;line-height:1.55}
.privacy-check-label input{flex:0 0 18px}
.privacy .privacy-check-text{flex:1;min-width:0;color:var(--ink);font-weight:400}
.privacy-summary{margin:10px 0 0;font-size:13px;line-height:1.55;color:#526b60}
