@font-face{font-family:Inter;src:url('/cuenta-ui/tv-inter-400.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Inter;src:url('/cuenta-ui/tv-inter-600.woff2') format('woff2');font-weight:600;font-display:swap}
:root{color-scheme:light;--bg:#F8F4ED;--surface:#fff;--ink:#0B3D3D;--muted:#49615c;--line:#c4cec7;--soft:#EFE8DD;--accent:#C5F576;--on-accent:#0B3D3D;--focus:#0B3D3D}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.6 Inter,system-ui,sans-serif}button,input{font:inherit}button,a,input,summary{touch-action:manipulation}a{color:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.65}button,a{transition:background .16s,transform .16s}button:active{transform:translateY(1px)}:focus-visible{outline:3px solid var(--focus);outline-offset:4px}header{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line);padding:20px max(24px,calc((100vw - 1184px)/2))}.brand{display:inline-flex;align-items:center;min-height:44px}.brand img{max-width:100%;object-fit:contain}.header-label{flex:1}.icon{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface);font-size:22px}main{max-width:1184px;margin:auto;padding:40px 24px 64px;min-height:70vh}h1{font-size:clamp(30px,4vw,48px);letter-spacing:-.045em;line-height:1.16;font-weight:600;margin:12px 0 20px}h2{font-size:22px;line-height:1.3;letter-spacing:-.02em;font-weight:600;margin:0 0 16px}p{margin:0 0 20px}button.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:12px 20px;border-radius:10px;text-decoration:none;font-weight:600;border:1px solid var(--line);background:var(--surface)}button.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.primary:hover{filter:brightness(.96)}.secondary:hover{background:var(--soft)}.text-link{display:inline-flex;align-items:center;padding:10px 0;min-height:44px;border:0;background:none;text-underline-offset:5px}.eyebrow{display:block;letter-spacing:.12em;font-size:14px;font-weight:600}.muted{color:var(--muted)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:32px;min-width:0}.access{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding:32px 0}.access h1{font-size:clamp(40px,6vw,64px)}.intro>p{max-width:380px}.access .panel p{margin-bottom:24px}.access form{margin:24px 0}.access .primary{width:100%}.path-art{display:flex;align-items:center;width:200px;height:64px;margin:32px 0}.path-art span{display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);border-radius:50%;width:56px;height:56px;font-size:28px;font-weight:600}.path-art i{height:2px;flex:1;background:var(--ink);position:relative}.path-art i:after{content:'';display:block;width:10px;height:10px;background:var(--accent);border:1px solid var(--ink);border-radius:50%;position:absolute;top:-4px;animation:travel 3s ease-in-out infinite alternate}@keyframes travel{from{left:0}to{left:90%}}.narrow{max-width:640px;margin:auto}.narrow>.eyebrow{margin-top:24px}.steps{display:flex;justify-content:space-between;gap:12px;list-style:none;padding:0;margin:24px 0}.steps li{border-bottom:2px solid var(--line);padding-bottom:10px;color:var(--muted)}.steps li[aria-current=step]{color:var(--ink);border-color:var(--ink);font-weight:600}label{display:block;font-weight:600;margin-bottom:8px}input:not([type=checkbox]){display:block;width:100%;min-height:48px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:24px}form .secondary{margin:12px 0}form .primary{width:100%}#code{letter-spacing:.35em;font-size:24px}summary{cursor:pointer;min-height:44px;font-weight:600}.terms-copy{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:24px}.check{display:flex;gap:12px;align-items:start;font-weight:400;margin:24px 0}.check input{width:24px;height:24px;flex-shrink:0;accent-color:var(--ink)}.heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:16px 0 36px}.heading h1{font-size:40px}.heading p{margin:0}.account-grid{display:grid;grid-template-columns:264px minmax(0,1fr);gap:40px}nav{display:flex;flex-direction:column;gap:4px}nav button{display:flex;justify-content:space-between;gap:12px;text-align:left;border:0;background:none;min-height:48px;padding:12px 16px;border-radius:8px}nav button[aria-current]{background:var(--soft);font-weight:600}nav button:hover{background:var(--surface)}aside>.text-link{margin:24px 16px}.section-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.section-heading h2{margin:0}.badge{padding:6px 12px;font-size:14px;border-radius:6px;background:var(--accent);color:var(--on-accent)}.pending{display:inline-block;background:var(--soft);color:var(--ink)}dl{margin:24px 0}dl>div{padding:16px 0;border-bottom:1px solid var(--line)}dt{color:var(--muted);margin-bottom:4px}dd{margin:0;font-weight:600;overflow-wrap:anywhere}.delivery-note{display:flex;gap:20px;padding:32px 0}.delivery-note h2{font-size:20px}.delivery-note p{color:var(--muted);margin:0}.location{font-size:32px}.delivery-note div{flex:1}.account-content{min-width:0}#notice:not(:empty){padding:16px 20px;margin-bottom:24px;border-left:3px solid var(--ink);background:var(--soft);border-radius:0 8px 8px 0}#actions{display:flex;gap:16px;margin-top:20px}footer{max-width:1184px;margin:auto;border-top:1px solid var(--line);padding:24px;display:flex;gap:24px;flex-wrap:wrap;color:var(--muted)}footer span{margin-right:auto}footer a{min-height:44px;display:inline-flex;align-items:center}.skip{position:absolute;left:20px;top:-80px;background:var(--surface);padding:12px;z-index:2}.skip:focus{top:4px}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#102d2b;--surface:#173c38;--ink:#F8F4ED;--muted:#c3d1c8;--line:#53736b;--soft:#244b44;--focus:#C5F576}:root:not([data-theme=light]) .brand img{filter:brightness(0) invert(1)}}:root[data-theme=dark]{color-scheme:dark;--bg:#102d2b;--surface:#173c38;--ink:#F8F4ED;--muted:#c3d1c8;--line:#53736b;--soft:#244b44;--focus:#C5F576}:root[data-theme=dark] .brand img{filter:brightness(0) invert(1)}
@media(max-width:768px){header{padding:16px 20px;gap:16px}.header-label{font-size:14px}main{padding:24px 20px 40px}.access{grid-template-columns:1fr;gap:24px;padding:0}.access h1{font-size:40px}.access .intro .muted,.path-art{display:none}.panel{padding:24px}.heading{display:block;margin-top:8px}.heading h1{font-size:32px}.heading .secondary{margin-top:20px}.account-grid{grid-template-columns:1fr;gap:24px}nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}nav button{border:1px solid var(--line);font-size:16px;overflow-wrap:anywhere}aside>.text-link{margin:12px 0 0}.steps{gap:8px;font-size:16px}.section-heading{align-items:start;flex-direction:column}.delivery-note{padding:24px 0}footer{padding:20px;gap:16px}}@media(max-width:360px){header{padding:12px 16px}.header-label{display:none}.brand{margin-right:auto}main{padding:20px 16px}.panel{padding:20px}nav{grid-template-columns:1fr}.steps{font-size:16px;flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.preview-banner{margin:0;padding:8px 20px;background:var(--accent);color:var(--on-accent);font-size:14px;text-align:center}

#sections>summary{display:none}@media(max-width:768px){#sections{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:0 16px}#sections>summary{display:list-item;padding:12px 0}#sections nav{grid-template-columns:1fr;margin:8px 0 16px}#sections nav button{border:0}.heading{margin-bottom:24px}.heading h1{font-size:30px}.account-grid{gap:16px}aside>.text-link{margin:4px 0}.header-label,.steps,.badge{font-size:16px}}

h1{overflow-wrap:anywhere}

.delivery-map{height:22rem;max-height:60vh;margin:1rem 0;z-index:0}.delivery-map[hidden]{display:none}#address-panel input:not([type=checkbox]){width:100%;box-sizing:border-box}#address-panel button{margin-block:.5rem}

/* Inicio cliente R16: recursos disponibles y estados honestos, sin cifras simuladas. */
.welcome-panel{padding:32px;border-radius:16px;background:var(--ink);color:var(--bg);margin-bottom:20px}.welcome-panel h2{font-size:clamp(28px,3.5vw,40px);line-height:1.12;max-width:15ch;margin:14px 0}.welcome-panel p{max-width:46ch}.welcome-panel .primary{display:inline-flex;align-items:center;gap:18px;width:auto;margin-top:12px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.quick-grid .panel{margin:0}.quick-grid h3{font-size:24px;line-height:1.2;margin:14px 0}.quick-grid .text-link{display:inline-block;margin:8px 0}.quick-grid .muted{font-size:14px}.roadmap{margin-top:20px}.roadmap h3{margin-top:0}#module-actions a{display:inline-block;margin:4px 0 20px}#account-home:focus{outline:none}@media(max-width:900px){.quick-grid{grid-template-columns:1fr}}@media(max-width:480px){.welcome-panel{padding:24px}.welcome-panel .primary{width:100%;justify-content:space-between}}

.welcome-panel a.primary{min-height:48px;padding:12px 20px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:600;text-decoration:none}

#address-panel select{display:block;width:100%;min-height:44px;font:inherit;color:inherit;background:var(--surface,#173c38);border:1px solid currentColor;border-radius:.5rem;padding:.75rem;margin-bottom:1rem}#address-panel input{min-width:0}#address-panel .leaflet-container{color:#182c29}#dir-gps{min-width:44px;font-size:1.4rem}#address-panel [hidden]{display:none!important}

.geo-results{display:grid;gap:.5rem}.geo-result{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:.75rem;min-height:44px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:.5rem}.geo-result:focus-visible{outline:3px solid currentColor;outline-offset:2px}

.delivery-pin{background:transparent;border:0}.delivery-pin svg{display:block;width:32px;height:40px}

/* R37: confirmed copy to Shopify; uses account tokens and never nests forms. */
.shopify-copy{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--line);min-width:0}.shopify-copy h3{margin-top:0}.shopify-reference{padding:1rem;background:var(--soft);border-radius:.5rem;overflow-wrap:anywhere}.shopify-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}.shopify-fields>div{min-width:0}.shopify-copy input:not([type=checkbox]){width:100%;min-width:0}.shopify-copy input[readonly]{background:var(--soft)}.shopify-copy .text-link{display:inline-block;margin:1rem}.shopify-copy button{max-width:100%;white-space:normal}.shopify-copy label{overflow-wrap:anywhere}@media(max-width:640px){.shopify-fields{grid-template-columns:1fr}.shopify-copy .text-link{margin:1rem 0;display:block}}

/* R53: search is a sibling of Leaflet, so typing/scrolling never moves its map. */
.delivery-map-shell{position:relative;isolation:isolate;height:24rem;min-height:20rem;max-height:65vh;margin:1rem 0;background:var(--soft);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.delivery-map-shell .delivery-map{height:100%;max-height:none;margin:0;z-index:0}
.delivery-map-search{position:absolute;z-index:2;inset:.5rem .5rem auto;min-width:0;padding:.5rem;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 2px 8px #0b3d3d18}
#address-panel .map-search-label{display:block;font-size:.875rem;line-height:1.35;margin:0 0 .25rem}
#address-panel .delivery-map-search input{display:block;margin:0;min-height:44px;padding:.5rem;font-size:16px}
#address-panel .delivery-map-search #dir-geo-status{font-size:.875rem;line-height:1.35;margin:.375rem 0 0;max-height:3.5rem;overflow-y:auto}
#address-panel .delivery-map-search #dir-geo-status:empty{display:none}
.delivery-map-search .geo-results{max-height:9rem;overflow-y:auto;overscroll-behavior:contain;gap:0;scrollbar-gutter:stable}
#address-panel .delivery-map-search .geo-result{margin:.375rem 0 0;padding:.5rem;font-size:1rem;line-height:1.35;border-color:var(--line);background:var(--surface);min-height:44px}
.delivery-map-location{position:absolute;z-index:2;right:.75rem;bottom:2.25rem}
#address-panel .delivery-map-location #dir-gps{width:44px;height:44px;min-height:44px;margin:0;padding:0;background:var(--surface);box-shadow:0 2px 8px #0b3d3d18}
#address-panel .delivery-map-shell .leaflet-bottom.leaflet-left{bottom:1.5rem}
.map-privacy{margin:.25rem 0 .5rem;font-size:.875rem}.map-privacy summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.map-privacy p{margin:.25rem 0 .5rem}
@media(max-width:420px){.delivery-map-shell{height:23rem}.delivery-map-search{inset:.375rem .375rem auto;padding:.375rem}.delivery-map-search .geo-results{max-height:6rem}}

/* R54: one compact map search control, not a separate form step. */
#address-panel .map-search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.delivery-map-shell{height:28rem;max-height:72vh;border-radius:18px}
.delivery-map-search{inset:12px 12px auto;padding:0;border:0;border-radius:14px;box-shadow:0 4px 18px #0003;background:var(--surface)}
#address-panel .delivery-map-search input{height:52px;padding:12px 38px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.map-search-icon{position:absolute;left:12px;top:9px;font-size:26px;line-height:32px;pointer-events:none}
#address-panel .delivery-map-search #dir-geo-status{font-size:16px;max-height:44px;margin:0;padding:4px 10px}
#address-panel .delivery-map-search #dir-geo-status:empty{display:none;padding:0}
.delivery-map-search .geo-results{max-height:128px;border-radius:0 0 14px 14px}
#address-panel .delivery-map-search .geo-result{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px;margin:0;text-align:left}
#dir-location-status{position:absolute;z-index:2;bottom:82px;left:12px;right:12px;background:var(--surface);border-radius:10px;padding:8px 12px;font-size:16px;line-height:1.35;box-shadow:0 2px 10px #0002;pointer-events:none}
#dir-location-status:empty{display:none}
#dir-gps[aria-busy="true"]{opacity:.7;outline:3px solid var(--accent,#c8f576)}
#address-panel .leaflet-control-zoom a{width:44px;height:44px;line-height:44px}
@media(max-width:420px){.delivery-map-shell{height:27rem;margin-left:-12px;margin-right:-12px}.delivery-map-search{inset:10px 10px auto}.delivery-map-search .geo-results{max-height:112px}}

.phone-international{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem}.phone-international>div{min-width:0}#address-panel .phone-international input,#address-panel .phone-international select{min-height:44px;width:100%;font-size:16px}#dir-telefono-error:empty{display:none}#dir-telefono-error{color:var(--ink);font-weight:600;overflow-wrap:anywhere}@media(max-width:600px){.phone-international{grid-template-columns:minmax(0,1fr)}}

/* R58 address-only typography and compact map tools. */
#address-panel{font-size:16px;font-weight:400}#address-panel h2{font-size:20px;font-weight:500}#address-panel h3{font-size:16px;font-weight:500;margin:.75rem 0 .5rem}#address-panel label,#address-panel .secondary{font-size:16px;font-weight:400}#address-panel p{font-size:16px;line-height:1.5}
#address-panel .delivery-map-location{display:flex;flex-direction:column;gap:.5rem;bottom:5rem}#address-panel .delivery-map-location button{width:44px;height:44px;min-height:44px;margin:0;padding:0;background:var(--surface)}
.delivery-map-layers{position:absolute;z-index:1;left:.75rem;bottom:11.5rem;display:flex;background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}
#address-panel .delivery-map-layers button{font-size:16px;line-height:1;min-height:44px;margin:0;padding:.5rem .625rem;border:0;background:var(--surface);font-weight:400}#address-panel .delivery-map-layers button[aria-pressed=true]{background:var(--accent);text-decoration:underline;text-underline-offset:3px}
#address-panel .delivery-map-shell .leaflet-bottom.leaflet-left{bottom:5rem}#address-panel .leaflet-control-attribution{max-width:100%;max-height:4.5rem;overflow-y:auto;font-size:10px;line-height:1.2;white-space:normal}
.saved-address{padding:1rem;border:1px solid var(--line);border-radius:10px;background:var(--soft);margin:.75rem 0}.saved-address p{overflow-wrap:anywhere;margin:0 0 .5rem}.saved-address #dir-saved-title{margin-top:0}

/* R58b visual verification: keep status clear of zoom and improve selected contrast. */
#address-panel #dir-location-status{bottom:15rem}
#address-panel .delivery-map-layers button[aria-pressed=true]{color:#123e36}

/* Compact closed country, searchable names only when opened. */
#address-panel .phone-international{display:grid;grid-template-columns:7.5rem minmax(0,1fr);gap:.5rem;align-items:start}
.phone-country-picker{position:relative}.phone-country-picker>summary{display:flex;align-items:center;justify-content:center;min-height:48px;padding:.5rem;border:1px solid var(--line);border-radius:8px;font-size:16px;font-weight:400;cursor:pointer;white-space:nowrap;list-style:none;background:var(--surface)}.phone-country-picker>summary::-webkit-details-marker{display:none}.phone-country-picker>summary:after{content:'▾';margin-left:.375rem;font-size:12px}
.phone-country-panel{position:absolute;z-index:10;top:calc(100% + .25rem);left:0;width:min(20rem,calc(100vw - 5rem));padding:.75rem;background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 16px #0b3d3d22}
#address-panel .phone-country-panel input,#address-panel .phone-country-panel select{font-size:16px;min-height:44px;margin-bottom:.5rem;width:100%}#address-panel .phone-country-panel select{height:14rem;padding:0}#address-panel .phone-country-panel option{padding:.5rem;font-size:16px;min-height:44px}#address-panel .phone-country-panel p{margin:0;font-size:16px}#address-panel .phone-country-panel button{min-height:44px;margin-bottom:0}
.phone-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#dir-phone-example{margin:.25rem 0 .5rem}#dir-telefono-help{font-size:16px}

/* R60: one map layers control; options appear only on request. */
#address-panel .delivery-map-layers{display:block;overflow:visible;z-index:3;background:var(--surface);border-radius:12px}
.delivery-map-layers>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer;list-style:none;color:var(--text)}
.delivery-map-layers>summary::-webkit-details-marker{display:none}
.delivery-map-layers>summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.map-layers-options{position:absolute;left:0;bottom:calc(100% + 8px);display:grid;grid-template-columns:repeat(2,minmax(80px,1fr));gap:8px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 12px #0003}
#address-panel .map-layers-options button{min-height:64px;border:1px solid var(--line);border-radius:8px;font-size:14px}

/* PHONE UX R60: concise country selector and single-choice selection. */
#dir-country-results:empty,#dir-phone-example:empty{display:none}#address-panel .phone-country-panel select{height:14rem}#address-panel #dir-telefono-help,#address-panel #dir-phone-example{margin:.25rem 0;font-size:16px;font-weight:400}

/* R62: selection refers to editing, never checkout priority. */
#address-panel .address-book-card{background:var(--surface);color:var(--ink);border:2px solid var(--line)}
#address-panel .address-book-card[aria-current=true]{border-color:var(--ink);box-shadow:inset 4px 0 0 var(--ink)}
#address-panel .address-editing{font-weight:600;margin:.5rem 0}
.address-card-fields{display:grid;grid-template-columns:minmax(7rem,1fr) minmax(0,2fr);gap:.35rem .75rem;margin:.75rem 0;font-size:16px;line-height:1.5}.address-card-fields dt{font-weight:500}.address-card-fields dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
#address-panel .address-book-card button{min-height:44px;font-size:16px}
@media(max-width:420px){.address-card-fields{grid-template-columns:1fr;gap:.125rem}.address-card-fields dd{margin-bottom:.5rem}}

.tv-pedidos-list{display:grid;gap:1rem;width:100%}.tv-pedido{border:1px solid currentColor;border-radius:12px;padding:1rem}.tv-pedido h3{font-size:1.05rem;margin:0 0 .5rem}.tv-pedido p{font-size:.95rem;margin:.4rem 0}.tv-pedido strong{font-size:1.15rem}#module-actions:has(.tv-pedidos-list){display:block}#module-actions button{margin:.5rem .5rem 0 0}

/* Mobile account navigation stays available as one compact row. Existing theme,
   button, logout handler and unsaved-address guard remain authoritative. */
@media(max-width:768px){
 #account .account-navigation{position:sticky;top:0;align-self:start;z-index:45;display:flex;align-items:flex-start;gap:8px;background:var(--bg);padding:8px 0;border-bottom:1px solid var(--line);isolation:isolate}
 #account .account-navigation #sections{flex:1;min-width:0;margin:0;padding:0 12px}
 #account .account-navigation #sections>summary{min-height:44px;padding:9px 0;overflow-wrap:anywhere}
 #account .account-navigation #sections[open] nav{max-height:48dvh;overflow-y:auto;overscroll-behavior:contain}
 #account .account-navigation #logout{flex:0 0 auto;min-height:44px;max-width:120px;margin:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:14px;line-height:24px;text-align:center}
 #account .account-content h2,#account .account-content input,#account .account-content select,#account .account-content textarea,#account .account-content button{scroll-margin-top:88px}
}
@media(max-width:360px){#account .account-navigation{gap:6px}#account .account-navigation #logout{max-width:104px;padding-inline:8px}}
