/* v47 — estructura móvil; colores, ilustraciones y logos originales. */
:root{--v47-header-height:64px;--v47-nav-space:0px;--v47-vv-height:100dvh;--v47-vv-top:0px;--v47-gutter:16px}
body.ttz-app{padding-bottom:var(--v47-nav-space)}
#siteHeader{position:sticky;top:0;z-index:100}
#siteHeader .header-assistant{display:inline-flex;align-items:center;justify-content:center;width:46px;min-height:46px;border:1px solid var(--line);border-radius:14px;background:#fffaf5;color:var(--sage-dark);cursor:pointer}
#siteHeader .header-assistant .ui-icon{width:23px;height:23px}
@media(max-width:960px){#siteHeader #nav:not(.open){display:none!important}}
.v47-menu-scrim{position:fixed;inset:var(--v47-header-height) 0 0;z-index:90;border:0;background:rgba(36,32,27,.3);backdrop-filter:blur(3px);padding:0}
.v47-menu-scrim[hidden]{display:none!important}
body.ttz-app.v47-menu-open{overflow:hidden}
#aiChat>.ai-chat-header{position:relative;top:auto;z-index:auto}
#aiChat .ai-send{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:78px;padding:8px 11px}
#aiChat .ai-send span{font-size:13px;font-weight:800}
#aiChat .ai-form{grid-template-columns:minmax(0,1fr) auto}
#aiChat .ai-input-wrap{min-width:0}
#aiChat .ai-note{overflow-wrap:anywhere}
#aiChat .v44-voice-status[hidden]{display:none!important}
.v47-voice-settings{flex:none;border-top:1px solid #eee2d8;background:#fffaf6;padding:0 12px}
.v47-voice-settings>summary{display:list-item;cursor:pointer;min-height:44px;padding:10px 4px;font-size:13px;font-weight:750;color:var(--sage-dark)}
.v47-voice-settings .v44-speech-controls{padding:8px 0;border-top:0;background:transparent}
.v47-voice-settings .v44-synthesis-status{margin:0 0 8px}
#aiChat .v44-chat-status{flex:none;margin:5px 10px;padding:9px;font-size:13px}
#aiChat .v44-voice-status[data-state=processing] .v44-voice-wave i{animation:none;height:4px}
#directorio .search-panel input,#aiInput,#homeAssistantInput{font-size:16px}
.ttz-app .modal{z-index:350}
.ttz-app .toast{z-index:400;bottom:calc(var(--v47-nav-space) + 16px);max-width:calc(100vw - 32px);overflow-wrap:anywhere}
@media(max-width:960px){
 html{scroll-padding-top:calc(var(--v47-header-height) + 12px)}
 body.ttz-app{min-width:0;padding-bottom:var(--v47-nav-space)}
 .ttz-app main,.ttz-app .container,.ttz-app .section,.ttz-app .home-assistant{min-width:0;max-width:100%}
 .ttz-app .container{width:calc(100% - 32px)}
 .ttz-app .mobile-panel-hidden{display:none!important}
 .ttz-app>.topbar{display:none}
 #siteHeader{background:rgba(255,253,248,.97);border-bottom:1px solid var(--line);box-shadow:0 3px 14px rgba(79,47,37,.035)}
 #siteHeader .nav{display:flex;min-height:64px;gap:10px;padding:8px 0;flex-wrap:nowrap!important}
 #siteHeader .brand{flex:0 0 42px!important;width:42px;min-width:0;margin:0;padding:0}
 #siteHeader .brand-only-icon{width:42px!important;height:42px!important;object-fit:contain;max-width:100%}
 #siteHeader .nav-links,#siteHeader .nav-pre,#siteHeader .zone-btn{display:none!important}
 #siteHeader .nav-actions{display:flex;align-items:center;justify-content:flex-end;flex:1!important;min-width:0;gap:8px!important;margin-left:auto}
 #siteHeader .nav-actions #easyMode{flex:0 1 auto;min-width:0;min-height:46px!important;padding:8px 10px!important;font-size:13px!important;gap:6px!important;border-width:1px!important;border-radius:14px;white-space:nowrap!important}
 #siteHeader #easyMode .ui-icon{width:20px!important;height:20px!important;display:block}
 #siteHeader #menu,#siteHeader #headerAssistant{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 46px;min-width:46px!important;width:46px!important;height:46px;min-height:46px!important;padding:10px!important;border-radius:14px}
 #siteHeader #nav.open{position:absolute;inset:100% 0 auto;display:grid!important;grid-template-columns:1fr;gap:8px;width:100%;max-height:calc(var(--v47-vv-height) - var(--v47-header-height) - 16px);overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 16px!important;background:#fffdf8;border-bottom:1px solid var(--line);border-radius:0 0 22px 22px;box-shadow:0 18px 28px rgba(52,40,30,.12)}
 #siteHeader #nav a{display:flex;align-items:center;min-height:48px;padding:12px 14px;font-size:15px;text-align:left;border-radius:12px;overflow-wrap:anywhere}
 .ttz-app #appBottomNav{display:grid!important;position:fixed;left:0;right:0;bottom:0;z-index:80;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;height:auto;min-height:70px;box-sizing:border-box;padding:7px max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:rgba(255,253,248,.98);border-top:1px solid #e7ddd1;box-shadow:0 -4px 18px rgba(79,47,37,.04)}
 #appBottomNav .app-nav-item{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;min-height:52px;padding:6px 3px!important;gap:4px;border-radius:15px;color:#6b5c52}
 #appBottomNav .app-nav-item>span{height:23px;display:flex;align-items:center;justify-content:center}
 #appBottomNav .app-nav-item .ui-icon{width:22px;height:22px}
 #appBottomNav .app-nav-item b{font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;text-align:center}
 #appBottomNav .app-nav-item.active{color:var(--sage-dark);background:#e8f4ef;box-shadow:none}
 .ttz-app #inicio{padding:28px 0 24px;overflow:clip}
 #inicio .home-v39-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;justify-items:stretch}
 #inicio .welcome-copy{max-width:620px;text-align:left}
 #inicio .welcome-eyebrow{font-size:11px;letter-spacing:.045em;padding:7px 10px}
 #inicio .welcome-copy h1{font-size:clamp(34px,6vw,46px);line-height:1.08;margin:14px 0 10px;letter-spacing:-.035em}
 #inicio .welcome-copy>p{margin:0;font-size:15px;line-height:1.55;max-width:45ch}
 #inicio .home-assistant{width:100%;padding:19px;border-radius:24px;background:rgba(255,253,250,.97);box-shadow:0 10px 34px rgba(79,47,37,.07)}
 #inicio .home-assistant-heading{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;padding-bottom:14px;align-items:center}
 #inicio .home-assistant-heading>img{width:40px;height:40px;border-radius:13px;object-fit:contain}
 #inicio .assistant-label{font-size:12px;line-height:1.3;letter-spacing:.035em}
 #inicio .home-assistant-heading p{font-size:12px;line-height:1.45}
 #inicio .assistant-demo-status{grid-column:1/-1;justify-self:start;font-size:10px;white-space:normal;letter-spacing:.025em;padding:5px 9px}
 #inicio .home-assistant h2{font-size:29px;line-height:1.15;margin-top:19px}
 #inicio .assistant-hint{font-size:14px;line-height:1.55;margin-top:7px}
 #inicio .home-prompt{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:4px;margin-top:16px;padding:5px;border-radius:17px}
 #inicio .home-prompt input{min-width:0;min-height:50px;font-size:16px;padding:10px;background:transparent}
 #inicio .home-prompt button{position:static;display:flex;min-width:48px;width:48px;height:50px;min-height:50px;padding:10px;border-radius:12px}
 #inicio .home-prompt button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 #inicio .home-prompt button .ui-icon{width:22px;height:22px}
 #inicio .v42-assistant-link{display:flex;align-items:center;min-height:44px;margin-top:6px;padding:7px 0;font-size:13px;line-height:1.4}
 #inicio .home-demo-note{font-size:12px;line-height:1.5;margin-top:6px}
 #inicio .home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
 #inicio .home-shortcut{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-height:126px;gap:10px;padding:13px;border-radius:18px;background:#fffaf5;box-shadow:none}
 #inicio .shortcut-icon{width:38px;height:38px;border-radius:13px}
 #inicio .home-shortcut strong{font-size:14px;line-height:1.3}
 #inicio .home-shortcut small{font-size:12px;line-height:1.4;margin-top:5px}
 #inicio .shortcut-arrow{display:none}
 #inicio .home-footnote{justify-self:center;text-align:center;font-size:12px;line-height:1.5}
 .ttz-app .section{padding:28px 0}
 .ttz-app .section-head{gap:10px;margin-bottom:18px;align-items:flex-start}
 .ttz-app .section-head h2{font-size:clamp(28px,5vw,36px);line-height:1.15}
 .ttz-app .section-head p{font-size:14px;line-height:1.6}
 #directorio .search-panel{display:grid;position:relative;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:12px;border-radius:20px;overflow:visible}
 #directorio .search-panel:before{pointer-events:none}
 #directorio .search-panel #search{grid-column:1/-1;min-width:0;width:100%;min-height:52px;padding:13px;font-size:16px;border:1px solid #dedfd4;border-radius:12px}
 #directorio #voiceSearch,#directorio #searchBtn{display:inline-flex!important;justify-content:center;align-items:center;grid-column:auto;min-height:46px;gap:7px;font-size:14px;padding:10px 15px;border-radius:12px;position:relative}
 #directorio #voiceSearch{justify-self:start;background:#f0f6f1;color:var(--sage-dark);box-shadow:none}
 #directorio #searchBtn{justify-self:stretch;min-width:100px}
 .ttz-app .v44-directory-status{width:100%;box-sizing:border-box;font-size:13px}
 .ttz-app .v44-directory-status[hidden]{display:none!important}
 #directorio .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:8px;padding:10px 2px;border-radius:0;border:0;box-shadow:none;background:transparent;scroll-snap-type:x proximity}
 #directorio .tabs:before,#directorio .tabs:after{display:none}
 #directorio .tabs .tab{flex:none;min-height:44px;font-size:13px;padding:10px 13px;scroll-snap-align:start}
 #directorio .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:14px}
 #directorio .grid .card{display:flex;flex-direction:column;min-width:0;height:auto;border-radius:22px;box-shadow:0 6px 18px rgba(79,47,37,.055)}
 #directorio .grid .card:before,#directorio .grid .card:after{display:none}
 #directorio .grid .media{width:100%;height:auto;min-height:0;aspect-ratio:16/9;flex:none}
 #directorio .grid .media img{width:100%;height:100%;object-fit:cover}
 #directorio .grid .body-card{min-width:0;padding:16px;gap:0}
 #directorio .grid .body-card h3{min-height:0;font-size:20px;line-height:1.25;margin-bottom:8px;overflow-wrap:anywhere}
 #directorio .grid .body-card p{min-height:0;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
 #directorio .grid .meta{margin:12px 0;gap:6px}
 #directorio .grid .meta span{font-size:12px;padding:6px 9px;overflow-wrap:anywhere}
 #directorio .grid .card-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px;margin-top:auto}
 #directorio .grid .card-actions>*{flex:1 1 calc(50% - 8px);min-width:0;min-height:44px;font-size:13px;padding:10px;border-radius:12px;white-space:normal}
 #directorio .grid .card-actions>[data-central-save]{flex-basis:100%;background:transparent;border:1px solid #d4dfd4}
 #explorar .explore-controls{grid-template-columns:minmax(0,1fr);gap:12px}
 #explorar input{min-width:0;max-width:100%;font-size:16px;min-height:48px}
 #explorar .explore-toolbar{align-items:stretch;gap:12px}
 #explorar .explore-filters{display:flex;flex-wrap:wrap;gap:8px}
 #explorar .explore-filter{min-height:44px;font-size:13px;white-space:normal}
 #explorar .explore-map{height:clamp(260px,48dvh,420px);min-width:0}
 #explorar .explore-view-tabs{display:flex;width:100%}
 #explorar .explore-view-tabs button{flex:1;min-height:48px}
 #marketplace .market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:14px;grid-auto-rows:auto}
 #marketplace .product-card{width:auto;max-width:none;min-width:0}
 .ttz-app .ai-launcher{z-index:85;bottom:calc(var(--v47-nav-space) + 12px);right:16px;width:52px;min-width:52px;height:52px;min-height:52px;padding:7px;border-radius:18px}
 .ttz-app .ai-launcher>span:last-child{display:none}
 .ttz-app .float-wa{display:none}
 #aiChat{z-index:300;position:fixed;top:var(--v47-vv-top);left:0;right:0;bottom:auto;width:100%;height:var(--v47-vv-height);max-height:var(--v47-vv-height);border:0;border-radius:0;box-shadow:none;overflow:hidden}
 #aiChat[hidden]{display:none!important}
 #aiChat .ai-chat-header{position:relative;top:auto;min-height:64px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;flex:none;grid-template-columns:38px minmax(0,1fr) 44px;gap:10px}
 #aiChat .ai-avatar{width:38px;height:38px;border-radius:12px}
 #aiChat .ai-chat-header strong{font-size:15px;line-height:1.3}
 #aiChat .ai-chat-header span{font-size:12px;line-height:1.4}
 #aiChat #aiClose{width:44px;height:44px;min-height:44px;padding:10px}
 #aiChat .ai-chat-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #aiChat .ai-messages{flex:1 0 140px;min-height:140px;overflow-y:visible;padding:15px 12px;scroll-behavior:auto}
 #aiChat .ai-bubble{max-width:100%;font-size:15px;line-height:1.55;padding:12px 14px}
 #aiChat .ai-result-cards{grid-template-columns:minmax(0,1fr)}
 #aiChat .ai-result-card{display:flex;flex-direction:column;min-width:0}
 #aiChat .ai-result-card-media{height:auto;min-height:0;aspect-ratio:16/7}
 #aiChat .ai-result-card h3{font-size:16px}#aiChat .ai-result-card p{font-size:13px}
 #aiChat .ai-result-card button{min-height:44px}
 #aiChat .ai-quick-actions{flex:none;padding:8px 12px;max-height:64px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}
 #aiChat .ai-quick-actions button{flex:none;min-height:44px;font-size:12px}
 #aiChat .ai-form{position:sticky;bottom:0;z-index:3;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid #e9ded2;background:#fffdf9}
 #aiChat .ai-input-wrap input{width:100%;min-height:50px;height:50px;font-size:16px;padding:10px 48px 10px 12px;border-radius:14px}
 #aiChat #aiMic{display:flex;align-items:center;justify-content:center;position:absolute;inset:3px 3px auto auto;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}
 #aiChat #aiSend{width:50px;min-width:50px;height:50px;min-height:50px;padding:10px;border-radius:14px}
 #aiChat #aiSend span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 #aiChat .ai-note{flex:none;padding:8px 12px;font-size:12px}
 #aiChat .v36-chat-tools{flex:none;flex-wrap:wrap;padding:8px 12px;gap:6px}
 #aiChat .v36-chat-tools small{font-size:12px}
 #aiChat .v36-chat-tools button{min-height:44px}
 body.ttz-app.ai-chat-open{overflow:hidden}
 body.ttz-app.ai-chat-open #appBottomNav,body.ttz-app.ai-chat-open .ai-launcher,body.ttz-app.v47-keyboard-open #appBottomNav,body.ttz-app.v47-keyboard-open .ai-launcher{display:none!important}
 body.ttz-app.ttz-v42-keyboard-open{overflow:auto}
 body.ttz-app.ai-chat-open.ttz-v42-keyboard-open{overflow:hidden}
 body.ttz-app.v47-keyboard-open #siteHeader{position:relative}
 body.easy.ttz-app #inicio .home-shortcuts{grid-template-columns:1fr}
 body.easy.ttz-app #inicio .home-shortcut{flex-direction:row;align-items:center;min-height:74px}
 body.easy.ttz-app #inicio .home-prompt{grid-template-columns:minmax(0,1fr)!important}
 body.easy.ttz-app #inicio .home-prompt button{width:100%;min-height:54px!important}
 body.easy.ttz-app #inicio .home-prompt button span{position:static;width:auto;height:auto;clip:auto;margin:0;overflow:visible}
 body.easy.ttz-app #directorio .grid{grid-template-columns:1fr!important}
 body.easy.ttz-app #directorio .grid .card{overflow:hidden!important}
 body.easy.ttz-app #directorio .grid .media{height:170px!important;min-height:170px!important}
 body.easy.ttz-app #directorio .tabs{flex-wrap:wrap!important;overflow:visible!important}
 body.easy.ttz-app #directorio .search-panel{grid-template-columns:minmax(0,1fr)!important}
 body.easy.ttz-app #directorio .search-panel>*{grid-column:1!important;width:100%;justify-self:stretch!important}
 body.easy.ttz-app #appBottomNav .app-nav-item b{font-size:16px!important;line-height:1.2}
 body.easy.ttz-app #aiChat{height:var(--v47-vv-height)!important;max-height:var(--v47-vv-height)!important}
 body.easy.ttz-app #aiChat .ai-form{grid-template-columns:minmax(0,1fr) 54px!important}
 body.easy.ttz-app #aiChat #aiSend{width:54px;min-width:54px;min-height:54px!important;padding:10px!important}
 body.easy.ttz-app #aiChat #aiMic{min-height:44px!important;width:44px!important;height:44px!important;padding:8px!important;top:6px;right:4px}
 body.easy.ttz-app #aiChat .ai-input-wrap input{padding-right:54px!important}
}
@media(max-width:620px){
 #directorio .grid,#marketplace .market-grid{grid-template-columns:minmax(0,1fr)}
 #siteHeader .nav-actions{gap:6px!important}
 #inicio .home-assistant{padding:16px}
 #inicio .welcome-copy h1{font-size:clamp(34px,9vw,41px)}
 #explorar .explore-area-form>div,#explorar .explore-query-form{display:grid;grid-template-columns:minmax(0,1fr)}
 #explorar .explore-area-form button,#explorar .explore-query-form button{width:100%;min-height:46px}
 .ttz-app .modal-card{width:100%;max-height:calc(var(--v47-vv-height) - 24px);padding:18px;border-radius:22px}
}
@media(max-width:360px){
 .ttz-app .container{width:calc(100% - 24px)}
 #siteHeader .nav-actions{gap:5px!important}
 #siteHeader .brand,#siteHeader .brand-only-icon{width:36px!important;height:36px!important;flex-basis:36px!important}
 #siteHeader .nav-actions #easyMode{padding:8px!important;gap:4px!important}
 #siteHeader #easyMode .ui-icon{display:none!important}
 #inicio .home-assistant{padding:14px}
 #inicio .home-shortcuts{gap:8px}
 #inicio .home-shortcut{padding:11px;min-height:130px}
 #inicio .home-shortcut strong{font-size:13px}
 #aiChat .ai-form{padding-inline:8px;gap:6px}
}
@media(min-width:961px){.ttz-app #appBottomNav{display:none!important}.v47-menu-scrim{display:none!important}#siteHeader #nav{display:flex!important}}
@media(orientation:landscape) and (max-width:960px) and (max-height:520px){#aiChat .ai-chat-header{min-height:52px;padding:5px 12px}#aiChat .ai-avatar{width:32px;height:32px}#aiChat .ai-quick-actions{display:none}#aiChat .ai-messages{min-height:80px;flex-basis:80px}#aiChat .ai-form{padding-block:6px}}
@media(prefers-reduced-motion:reduce){.ttz-app *, .ttz-app *:before,.ttz-app *:after{scroll-behavior:auto!important}.v47-menu-scrim{backdrop-filter:none}}
