/* Tipografías locales: vendor/fonts/fonts.css se carga desde index.html */
:focus-visible{outline:3px solid #45cbb7;outline-offset:3px} [hidden]{display:none!important}.toast{position:fixed;z-index:20;left:50%;bottom:24px;transform:translate(-50%,14px);opacity:0;pointer-events:none;background:#102a3c;color:#fff;padding:11px 16px;border-radius:10px;box-shadow:0 10px 35px #081b2b30;font-size:12px;transition:opacity .18s,transform .18s;max-width:calc(100vw - 32px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:600px){.toast{bottom:calc(75px + env(safe-area-inset-bottom))}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.filter-row{align-items:center}.filter-search{display:flex;align-items:center;gap:8px;min-width:200px;flex:1;max-width:330px;height:34px;padding:0 10px;border:1px solid #e6ebea;border-radius:8px;background:#fff;color:#849197}.filter-search span{font-size:19px;line-height:1}.filter-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:11px}.filter-search input::placeholder{color:#9ba5a9}.filter-search:focus-within{border-color:#6ac9ba;box-shadow:0 0 0 3px #23b6a21c}.results-empty{margin:17px 0;padding:16px;border:1px dashed #dce5e2;border-radius:10px;background:#fff;color:#7d8c91;font-size:12px;text-align:center}
@media(max-width:600px){.filter-row{gap:7px}.filter-search{flex-basis:100%;max-width:none;order:-1;height:39px}.filter-chip{padding:8px 10px}}

/* Mapa náutico a pantalla completa */
body.map-screen{background:#06182a;color:#f3f7f8}.map-screen .main-area{background:#06182a}.map-screen .topbar{height:67px;background:#06182a;border-bottom:1px solid #ffffff14;color:#f5f8f9;padding:0 clamp(16px,3vw,34px)}.map-screen .mobile-brand{color:#fff}.map-screen .breadcrumb{color:#c4d3da}.map-screen .breadcrumb span{color:#27b8d0}.map-screen .icon-button{color:#eef6f9;font-size:25px;width:40px;height:40px;display:grid;place-items:center;border-radius:50%}.map-screen .icon-button:hover{background:#ffffff15}.map-screen .top-actions{gap:4px}.map-screen .avatar.small{background:#f2c6a3;color:#6e422c}.map-screen .page-content{max-width:none;height:calc(100vh - 67px);padding:0;overflow:hidden}.map-home{height:100%;min-height:560px;position:relative;overflow:hidden;background:#05213d}.map-art{position:absolute;inset:0;overflow:hidden;background:#05213d}.map-photo{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:47% 50%;transition:transform .25s;will-change:transform}.map-shade{position:absolute;inset:0;background:linear-gradient(180deg,#061a30a6 0%,transparent 25%,transparent 58%,#061a2e62 100%);pointer-events:none}.current-overlay{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#36d4e8;stroke-width:5;stroke-dasharray:9 13;opacity:.36;filter:drop-shadow(0 0 5px #20dfff);animation:current-flow 18s linear infinite;transition:opacity .25s}.currents-off .current-overlay{opacity:0}.current-overlay path:nth-child(2){stroke:#ddf75f;opacity:.7;stroke-dasharray:5 18}.currents-off .current-overlay path:nth-child(2){opacity:0}@keyframes current-flow{to{stroke-dashoffset:-220}}.map-weather-strip{position:absolute;top:14px;left:14px;right:14px;min-height:76px;display:grid;grid-template-columns:minmax(118px,1.3fr) repeat(3,minmax(76px,1fr)) 20px;align-items:center;gap:0;padding:8px 13px;background:#06182de9;border:1px solid #a8d7ed37;border-radius:24px;box-shadow:0 10px 30px #00132248;backdrop-filter:blur(12px);color:white;z-index:3;cursor:pointer}.map-location{padding:2px 14px 2px 3px}.map-location strong{font:800 18px Manrope,sans-serif;letter-spacing:.2px;display:block}.map-location small{display:block;color:#d4e1e7;font-size:11px;margin-top:4px;white-space:nowrap}.map-weather-strip>div:not(.map-location){min-height:46px;border-left:1px solid #dce9ef30;padding:4px 8px 3px 35px;position:relative}.map-weather-strip>div:not(.map-location) small{display:block;color:#c4d4dd;font-size:10px;line-height:1.1}.map-weather-strip>div:not(.map-location) strong{display:block;font:700 13px Manrope,sans-serif;margin-top:4px;white-space:nowrap}.weather-symbol{position:absolute;left:8px;top:6px;color:#40cde0;font-size:23px;line-height:1}.weather-symbol.waves{font-size:28px;top:3px}.weather-symbol.temp{font-size:20px}.weather-arrow{font-size:26px;color:#d6e7eb}.map-coast-label,.map-city-label,.map-port-label,.map-park-label{position:absolute;color:#fff;text-shadow:0 1px 5px #061421,0 1px 2px #061421;font-weight:600;pointer-events:none;z-index:1}.map-coast-label{font-size:11px;letter-spacing:.25px}.label-pucol{left:34%;top:17%}.label-puig{left:26%;top:28%}.label-alboraia{left:9%;top:64%}.map-city-label{left:5%;top:71%;font:700 25px Manrope,sans-serif}.map-port-label{left:28%;top:77%;font-size:13px;color:#c6f4ff}.map-park-label{left:4%;bottom:24%;font-size:12px;color:#ccf2ce}.map-scale{position:absolute;right:25px;bottom:230px;display:flex;align-items:center;gap:5px;color:#fff;text-shadow:0 1px 3px #001;font-size:11px;z-index:2}.map-scale i{display:inline-block;width:31px;height:2px;background:#fff;box-shadow:0 0 2px #001}.map-scale i:last-of-type{width:45px}.map-controls{position:absolute;right:15px;top:24%;display:flex;flex-direction:column;gap:10px;z-index:4}.map-controls>button,.zoom-control{height:56px;width:56px;border-radius:50%;border:1px solid #ffffff28;background:#071a2de8;color:#f6fbfd;box-shadow:0 5px 18px #001b2c57;backdrop-filter:blur(9px)}.map-controls>button{font-size:26px}.map-controls .compass{display:flex;flex-direction:column;align-items:center;justify-content:center;font:700 12px Manrope}.compass span{color:#ff5659;font-size:16px;line-height:14px}.zoom-control{height:112px;border-radius:28px;display:flex;flex-direction:column;overflow:hidden}.zoom-control button{height:50%;border:0;background:transparent;color:white;font-size:28px}.zoom-control button+button{border-top:1px solid #ffffff25}.vessel-marker{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%) rotate(var(--angle));width:35px;height:37px;display:grid;place-items:center;border:0;background:transparent;color:var(--ship-color);font-size:30px;line-height:1;filter:drop-shadow(0 2px 3px #001);z-index:3;transition:transform .16s,filter .16s}.vessel-marker:hover,.vessel-marker.selected{transform:translate(-50%,-50%) rotate(var(--angle)) scale(1.18);filter:drop-shadow(0 0 8px var(--ship-color)) drop-shadow(0 2px 3px #001)}.vessel-marker.selected::after{content:attr(aria-label);position:absolute;left:24px;top:-5px;transform:rotate(calc(0deg - var(--angle)));font:700 9px 'DM Sans',sans-serif;letter-spacing:.5px;color:white;background:#07192de8;border:1px solid #ffffff29;border-radius:6px;padding:5px 7px;white-space:nowrap}.you-are-here{position:absolute;left:61%;top:55%;width:17px;height:17px;border:3px solid white;background:#53a9ff;border-radius:50%;box-shadow:0 0 0 8px #53a9ff40;z-index:2}.track-line{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:2;pointer-events:none}.track-line path{fill:none;stroke:#f1faff;stroke-width:4;stroke-dasharray:9 9;filter:drop-shadow(0 1px 4px #061);opacity:0;transition:opacity .3s}.track-visible .track-line path{opacity:.9}.map-warning{position:absolute;bottom:205px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);padding:7px 11px;background:#101d2bcf;border:1px solid #ffffff18;border-radius:99px;color:#ffdbac;font-size:9px;white-space:nowrap;text-align:center;z-index:2;backdrop-filter:blur(8px)}.map-map-legend{position:absolute;top:103px;left:17px;font-size:8px;letter-spacing:1px;color:#ffffffbd;text-shadow:0 1px 3px #001}.vessel-drawer{position:absolute;left:50%;bottom:13px;transform:translateX(-50%);width:min(650px,calc(100% - 28px));z-index:5;padding:12px 13px 10px;background:#06182ef0;border:1px solid #c1e0ef35;border-radius:21px;color:white;box-shadow:0 13px 38px #00182c70;backdrop-filter:blur(16px)}.vessel-summary{display:flex;align-items:center;gap:12px;position:relative;min-width:0}.boat-thumb{width:67px;height:67px;flex:0 0 67px;border-radius:12px;background:linear-gradient(155deg,#8dc4e8,#315d81);display:grid;place-items:center;overflow:hidden}.boat-thumb span{font-size:39px;filter:drop-shadow(0 3px 3px #16334e)}.vessel-copy{min-width:0;padding-right:25px}.vessel-name-row{display:flex;align-items:center;gap:8px}.vessel-name-row h2{font:800 17px Manrope,sans-serif;letter-spacing:.3px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vessel-name-row .demo-tag{font-size:7px;padding:4px 6px;flex:none}.vessel-name-row .demo-tag:before{width:4px;height:4px}.vessel-copy p{font-size:10px;color:#e4edf1;margin:5px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vessel-copy p span,.vessel-copy small span{color:#78909f;padding:0 2px}.vessel-copy small{font-size:9px;color:#9eb2bd}.drawer-close{position:absolute;right:0;top:0;border:0;border-radius:50%;width:28px;height:28px;background:#ffffff20;color:white;font-size:22px;line-height:1}.vessel-actions{display:grid;grid-template-columns:1.25fr 1fr 1fr .75fr;margin-top:10px;border-top:1px solid #d7e4ec24;padding-top:8px;gap:2px}.vessel-actions button{border:0;background:transparent;color:#e1ebef;min-height:38px;font-size:19px;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.vessel-actions button span{font-size:10px}.vessel-actions .track-action{border-radius:9px;background:#1688f7;color:white;font-weight:700}.vessel-actions .track-action.on{background:#195f9b}.map-search{display:flex;align-items:center;gap:7px;margin-right:5px;border:1px solid #ffffff35;border-radius:99px;padding:7px 12px;background:#ffffff10}.map-search[hidden]{display:none}.map-search span{font-size:20px}.map-search input{width:150px;border:0;outline:0;background:transparent;color:white;font:inherit;font-size:11px}.map-search input::placeholder{color:#c1d1db}.map-search-empty{position:absolute;top:115px;left:50%;transform:translateX(-50%);z-index:5;background:#081b2be8;color:#fff;border-radius:8px;padding:9px 12px;font-size:11px}.vessel-modal{position:absolute;inset:0;z-index:9;display:grid;place-items:center;padding:20px;background:#041422a8;backdrop-filter:blur(5px)}.vessel-modal[hidden]{display:none}.vessel-modal-card{position:relative;width:min(390px,100%);padding:25px;background:#0b2236;border:1px solid #ffffff25;border-radius:18px;color:white;box-shadow:0 20px 60px #0018}.vessel-modal-card .drawer-close{top:15px;right:15px}.vessel-modal-card h2{font:800 22px Manrope;margin:12px 0}.vessel-modal-card p{color:#bbcad2;font-size:12px;line-height:1.6}.vessel-modal-card .primary-button{margin-top:8px}.map-screen .mobile-nav{background:#06182df5;border-top:1px solid #ffffff1d;backdrop-filter:blur(16px);padding-bottom:calc(7px + env(safe-area-inset-bottom))}.map-screen .mobile-nav button{color:#b1c0cb}.map-screen .mobile-nav button.active{color:#36aafa}.map-screen .mobile-nav button.active::after{content:'';height:3px;width:38px;position:absolute;bottom:2px;border-radius:3px;background:#1688f7}.map-screen .mobile-nav button{position:relative}.vessel-list{display:grid;gap:9px}.vessel-list-row{display:flex;align-items:center;width:100%;gap:13px;text-align:left;background:white;border:1px solid var(--line);border-radius:12px;padding:13px}.list-boat{color:var(--ship-color);font-size:22px}.vessel-list-row strong{display:block;font-size:12px}.vessel-list-row small{display:block;margin-top:4px;color:#87949a;font-size:10px}.list-heading{margin-left:auto;color:#6f838b;font-size:11px}.alert-empty{text-align:center;padding:38px 20px}.alert-empty-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 14px;border-radius:50%;background:#e7f5f1;color:#229b89;font-size:25px}.alert-empty h2{font:700 16px Manrope}.alert-empty p{max-width:420px;margin:8px auto 17px;line-height:1.6}
@media(max-width:900px){.map-screen .sidebar{display:none}.map-screen .main-area{margin-left:0;width:100%}}
@media(max-width:600px){.map-screen .main-area{padding-bottom:0}.map-screen .topbar{height:57px;padding:0 12px}.map-screen .mobile-brand{font-size:14px;gap:7px}.map-screen .mobile-brand .brand-mark{width:27px;height:27px}.map-screen .breadcrumb{display:none}.map-screen .top-actions{gap:0}.map-screen .top-actions .avatar{display:none}.map-screen .icon-button{width:37px;height:37px;font-size:24px}.map-screen .page-content{height:calc(100dvh - 57px - 69px);min-height:520px;padding:0}.map-home{min-height:520px}.map-photo{object-position:38% center}.map-weather-strip{top:10px;left:9px;right:9px;min-height:68px;padding:7px 7px;border-radius:19px;grid-template-columns:minmax(100px,1.2fr) repeat(3,minmax(60px,.9fr)) 13px}.map-location{padding-right:6px}.map-location strong{font-size:15px}.map-location small{font-size:9px;margin-top:4px}.map-weather-strip>span:not(.map-location,.weather-arrow){min-height:42px;padding:3px 3px 2px 25px}.map-weather-strip>span:not(.map-location,.weather-arrow) small{font-size:8px}.map-weather-strip>span:not(.map-location,.weather-arrow) strong{font-size:10px;margin-top:4px}.weather-symbol{left:3px;top:7px;font-size:18px}.weather-symbol.waves{font-size:23px;top:5px}.weather-symbol.temp{font-size:17px;top:7px}.weather-arrow{font-size:22px}.map-map-legend{top:87px;left:11px;font-size:7px}.map-controls{right:9px;top:28%;gap:8px}.map-controls>button,.zoom-control{width:48px;height:48px;font-size:22px}.map-controls .compass{font-size:11px}.zoom-control{height:96px}.zoom-control button{font-size:25px}.map-coast-label{font-size:9px}.map-city-label{font-size:21px;left:3%;top:70%}.map-port-label{font-size:10px;left:24%;top:77%}.map-park-label{font-size:10px;bottom:26%;left:3%}.label-pucol{left:31%;top:17%}.label-puig{left:24%;top:30%}.label-alboraia{left:8%;top:62%}.vessel-marker{width:30px;height:33px;font-size:26px}.vessel-marker.selected::after{font-size:8px;left:20px;padding:4px 5px}.you-are-here{width:15px;height:15px;left:61%;top:54%}.map-scale{right:13px;bottom:192px;font-size:9px;gap:4px}.map-scale i{width:20px}.map-scale i:last-of-type{width:29px}.map-warning{bottom:163px;font-size:8px;padding:6px 9px}.vessel-drawer{bottom:8px;width:calc(100% - 16px);padding:10px 10px 8px;border-radius:17px}.boat-thumb{width:55px;height:55px;flex-basis:55px}.boat-thumb span{font-size:33px}.vessel-summary{gap:9px}.vessel-name-row h2{font-size:14px}.vessel-name-row .demo-tag{font-size:6px;padding:3px 5px}.vessel-copy p{font-size:9px;margin:4px 0 2px}.vessel-copy small{font-size:8px}.vessel-actions{margin-top:8px;padding-top:6px;grid-template-columns:1.2fr 1fr .9fr .7fr}.vessel-actions button{min-height:34px;font-size:16px;gap:4px}.vessel-actions button span{font-size:9px}.vessel-actions .track-action{font-size:16px}.map-search{position:absolute;top:60px;left:10px;right:10px;z-index:8;background:#071a2df5}.map-search input{width:100%;height:24px}.map-search-empty{top:112px;white-space:nowrap}.map-screen .mobile-nav{height:69px}.map-screen .mobile-nav button{font-size:9px;gap:3px;min-width:53px}.map-screen .mobile-nav button span{font-size:18px}.vessel-list-row{padding:11px;gap:9px}.map-screen .toast{bottom:calc(80px + env(safe-area-inset-bottom))}}
body:not(.map-screen) .top-actions .icon-button{display:none}body.map-screen .top-actions .icon-button{display:grid}.map-weather-strip{font:inherit;text-align:left;color:white}.map-weather-strip>span:not(.map-location,.weather-arrow){min-height:46px;border-left:1px solid #dce9ef30;padding:4px 8px 3px 35px;position:relative}.map-weather-strip>span:not(.map-location,.weather-arrow) small{display:block;color:#c4d4dd;font-size:10px;line-height:1.1}.map-weather-strip>span:not(.map-location,.weather-arrow) strong{display:block;font:700 13px Manrope,sans-serif;margin-top:4px;white-space:nowrap}.map-weather-strip .weather-symbol{font-style:normal}.vessels-off .vessel-marker,.vessels-off .you-are-here{opacity:0;pointer-events:none}.vessel-drawer[hidden]{display:none}.map-search-empty[hidden]{display:none}.vessel-list-row:hover{border-color:#86d4c8;box-shadow:0 5px 20px #112e3b13}
.vessel-marker.selected::after{content:attr(data-vessel-name)}.map-weather-strip:focus-visible{outline:3px solid #43c6f5;outline-offset:3px}.map-screen .map-weather-strip:hover{background:#081e34f5}@media(max-width:600px){.map-weather-strip>span:not(.map-location,.weather-arrow){min-height:42px;padding:3px 3px 2px 25px}.map-weather-strip>span:not(.map-location,.weather-arrow) small{font-size:8px}.map-weather-strip>span:not(.map-location,.weather-arrow) strong{font-size:10px;margin-top:4px}}
:root{--navy:#081b2b;--navy2:#102a3c;--ink:#142536;--muted:#82909a;--line:#e9edef;--paper:#f6f8f7;--teal:#23b6a2;--mint:#e2f5f0;--coral:#f1a77f;--white:#fff;--shadow:0 14px 36px rgba(24,51,67,.07)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;background:var(--navy);color:#d7e1e5;padding:30px 18px 17px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:white;text-decoration:none;font:800 20px Manrope,sans-serif;letter-spacing:.4px;padding:0 10px 45px}.brand-mark{width:32px;height:32px;border-radius:11px;background:var(--teal);display:inline-grid;place-items:center;color:#062b35;font:800 18px Manrope;transform:rotate(-6deg)}.brand-dot{color:var(--teal)}.side-label{font-size:10px;font-weight:700;letter-spacing:1.45px;color:#6f8795;padding:0 12px 12px}.side-spaced{padding-top:31px}.side-nav{display:flex;flex-direction:column;gap:4px}.nav-item{height:43px;width:100%;display:flex;align-items:center;gap:13px;border:0;background:transparent;border-radius:9px;color:#a6b5bd;text-align:left;padding:0 12px;font-size:13px;transition:.18s}.nav-item:hover{background:#ffffff0b;color:white}.nav-item.active{background:#163448;color:white;font-weight:600}.nav-item.active .nav-icon{color:var(--teal)}.nav-icon{font-size:19px;line-height:1;width:19px;text-align:center;color:#8197a1}.side-bottom{border-top:1px solid #ffffff19;margin-top:auto;padding:17px 7px 2px;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f2c6a3;color:#6e422c;font-weight:700}.side-bottom strong{font-size:12px;display:block;color:#ecf2f4}.side-bottom span{font-size:10px;color:#7f96a0;display:block;margin-top:3px}.side-bottom .more{margin-left:auto;font-size:20px;color:#8ea0a9}.main-area{margin-left:240px;width:calc(100% - 240px);min-height:100vh}.topbar{height:65px;padding:0 clamp(24px,5vw,76px);display:flex;align-items:center;border-bottom:1px solid #e9edef;background:#ffffffd9;justify-content:space-between}.breadcrumb{font-size:10px;letter-spacing:1.3px;font-weight:700;color:#83919a}.breadcrumb span{padding:0 5px;color:var(--teal)}.top-actions{display:flex;align-items:center;gap:18px}.icon-button{background:transparent;border:0;font-size:18px;position:relative;color:#576975}.icon-button i{position:absolute;width:5px;height:5px;right:0;top:2px;border-radius:50%;background:var(--coral)}.avatar.small{width:30px;height:30px;font-size:12px}.page-content{max-width:1300px;margin:0 auto;padding:38px clamp(24px,5vw,76px) 70px}.mobile-brand,.mobile-nav{display:none}.eyebrow{color:#8b999f;font-size:10px;text-transform:uppercase;font-weight:700;letter-spacing:1.45px}.hero-title{font:700 clamp(28px,3.1vw,39px)/1.18 Manrope,sans-serif;letter-spacing:-1.3px;margin:10px 0 9px}.hero-title em{font-style:normal;color:var(--teal)}.hero-copy{color:#829099;font-size:14px;margin:0;line-height:1.65}.welcome-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:27px}.date-chip{font-size:11px;color:#7e8a92;background:white;border:1px solid var(--line);padding:9px 12px;border-radius:8px;white-space:nowrap}.grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:19px}.card{background:white;border:1px solid #edf0f0;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;padding:19px 20px 13px}.card-title{margin:0;font:700 14px Manrope,sans-serif}.card-subtitle{margin:5px 0 0;color:#9aa4a9;font-size:11px}.text-link{background:transparent;border:0;padding:4px;color:#169987;font-size:11px;font-weight:700}.map-card{min-height:356px;position:relative}.chart{height:277px;position:relative;overflow:hidden;background:#d9eeeb}.chart:before{content:'';position:absolute;inset:0;background-image:linear-gradient(#ffffff45 1px,transparent 1px),linear-gradient(90deg,#ffffff45 1px,transparent 1px);background-size:34px 34px}.sea-label{position:absolute;top:47%;left:22%;color:#8fb9b5;font-size:11px;letter-spacing:3px;font-weight:600}.land{position:absolute;background:#eceddf;border:1px solid #d9dece;filter:drop-shadow(0 1px 0 #cdd8d2)}.land.coast1{width:86%;height:158px;right:-9%;top:-94px;border-radius:0 0 48% 54%;transform:rotate(-7deg)}.land.coast2{width:48%;height:112px;left:-23%;bottom:-42px;border-radius:50% 54% 0 0;transform:rotate(12deg)}.land.island{width:79px;height:26px;left:28%;bottom:24px;border-radius:60% 40% 55% 35%;transform:rotate(-11deg)}.land.island.two{width:39px;height:15px;left:47%;bottom:50px}.route-line{position:absolute;width:36%;height:70px;left:27%;top:39%;border-top:2px dashed #189a8d;border-radius:50%;transform:rotate(-22deg)}.route-dot{position:absolute;width:10px;height:10px;background:var(--teal);border:2px solid white;border-radius:50%;box-shadow:0 0 0 4px #20b49c30}.route-dot.a{left:28%;top:50%}.route-dot.b{left:62%;top:31%}.boat-pin{position:absolute;width:31px;height:31px;background:white;border:1px solid #e6efec;box-shadow:0 3px 8px #21404c18;border-radius:10px;display:grid;place-items:center;font-size:14px}.boat-pin.one{left:43%;top:26%}.boat-pin.two{left:70%;top:53%}.boat-pin.three{left:19%;top:65%}.map-controls{position:absolute;right:14px;top:13px;display:grid;gap:6px}.map-controls button{height:30px;width:30px;border:1px solid #e8eeee;border-radius:8px;background:white;font-size:17px}.map-note{position:absolute;bottom:12px;left:13px;border-radius:7px;padding:7px 9px;background:#ffffffdc;font-size:9px;color:#647881;display:flex;align-items:center;gap:6px}.pulse{width:7px;height:7px;border-radius:50%;background:var(--coral)}.weather-card{padding-bottom:18px}.weather-main{padding:8px 20px 19px;display:flex;align-items:center;gap:13px}.sun-icon{font-size:37px;color:#efa96b}.degrees{font:700 34px Manrope;letter-spacing:-1px}.degrees small{font:500 15px Manrope;color:#82909a;vertical-align:top}.weather-condition{font-size:11px;color:#819098;margin-top:3px}.weather-place{font-size:11px;font-weight:700}.weather-meta{display:flex;border-top:1px solid var(--line);margin:0 19px;padding-top:16px;gap:0}.weather-meta div{width:33.3%;font-size:9px;color:#98a2a6}.weather-meta b{display:block;color:#41535c;font-size:11px;margin-top:5px}.demo-tag{display:inline-flex;align-items:center;gap:5px;background:#fff5ed;color:#bd7957;font-size:9px;font-weight:700;letter-spacing:.45px;border-radius:99px;padding:6px 9px}.demo-tag:before{content:'';width:5px;height:5px;background:#e6a177;border-radius:50%}.below-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:19px;margin-top:19px}.forecast{padding-bottom:16px}.forecast-days{display:grid;grid-template-columns:repeat(5,1fr);padding:10px 13px 0}.forecast-day{text-align:center;border-right:1px solid #f0f2f2}.forecast-day:last-child{border:0}.forecast-day span{font-size:10px;color:#a0a9ad}.forecast-day b{font-size:17px;display:block;margin:7px 0 3px;color:#e4a664}.forecast-day strong{font-size:12px;display:block}.forecast-day small{font-size:9px;color:#93a0a5;display:block;margin-top:6px}.port-card{padding-bottom:6px}.port-row{display:flex;gap:11px;align-items:center;padding:12px 19px;border-top:1px solid #f1f3f3}.port-symbol{height:34px;width:34px;border-radius:10px;background:#eef8f6;display:grid;place-items:center;color:#36a998;font-size:16px}.port-row strong{font-size:11px;display:block}.port-row small{font-size:10px;color:#99a4a8;display:block;margin-top:4px}.status-open{margin-left:auto;font-size:9px;color:#279781;background:#e6f6f0;border-radius:99px;padding:5px 7px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.section-heading h1{font:700 29px Manrope,sans-serif;letter-spacing:-.8px;margin:8px 0}.section-heading p{margin:0;color:#849198;font-size:13px}.primary-button,.secondary-button{border:0;border-radius:8px;background:var(--navy2);color:white;font-weight:600;font-size:12px;padding:11px 15px}.secondary-button{background:white;color:#364a56;border:1px solid var(--line)}.map-full{min-height:500px}.map-full .chart{height:420px}.map-full .sea-label{top:46%;left:42%}.map-full .route-line{left:32%;top:37%;width:35%}.map-legend{display:flex;gap:17px;padding:13px 17px;font-size:10px;color:#7f8d94;flex-wrap:wrap}.legend-key{width:8px;height:8px;border-radius:50%;background:var(--teal);display:inline-block;margin-right:5px}.map-label{position:absolute;font-size:10px;color:#829d97;font-weight:600;letter-spacing:.8px}.map-label.mallorca{left:55%;bottom:16%}.map-label.costa{right:14%;top:20%}.map-label.ibiza{left:37%;bottom:11%}.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px}.stat-card span{font-size:10px;color:#929da1}.stat-card strong{display:block;font:700 22px Manrope;margin-top:7px}.stat-card small{color:#94a0a4;font-size:10px}.content-card{padding:20px}.content-card h2{font:700 15px Manrope;margin:0 0 6px}.content-card p{margin:0;color:#8b989e;font-size:12px;line-height:1.6}.weather-hero{background:var(--navy);color:white;padding:25px;border-radius:14px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.weather-hero h2{font:700 17px Manrope;margin:0 0 6px}.weather-hero p{margin:0;color:#9caeb6;font-size:11px}.weather-hero .big-temp{font:700 48px Manrope}.weather-hero .big-temp small{font-size:22px;color:#9eafb7}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.forecast-tile,.service-tile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.forecast-tile span,.service-tile span{font-size:10px;color:#95a0a4}.forecast-tile strong,.service-tile strong{display:block;font:700 15px Manrope;margin:8px 0}.forecast-tile em{font-style:normal;color:#e6a467;font-size:19px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.filter-chip{border:1px solid #e6ebea;background:white;color:#74828a;padding:8px 12px;border-radius:99px;font-size:10px}.filter-chip.active{background:#e2f5f0;border-color:#ccece4;color:#218c7d;font-weight:700}.listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.listing{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.listing-visual{height:130px;background:linear-gradient(150deg,#d9efeb,#a7d8d1);display:grid;place-items:center;font-size:49px;position:relative}.listing-visual.orange{background:linear-gradient(150deg,#fae7d6,#edc4a7)}.listing-visual.blue{background:linear-gradient(150deg,#dce8f0,#a9c7d3)}.listing-visual .save{position:absolute;right:10px;top:10px;background:#fff;border:0;width:27px;height:27px;border-radius:50%;color:#829098}.listing-info{padding:13px}.listing-info small{font-size:9px;color:#93a0a4}.listing-info h3{font:700 13px Manrope;margin:6px 0}.listing-info p{font-size:10px;color:#89969b;margin:0}.price{display:block;font-weight:700;color:#1d887c;margin-top:12px}.service-list{display:grid;gap:10px}.pro-row{background:white;border:1px solid var(--line);border-radius:11px;padding:15px;display:flex;align-items:center;gap:12px}.pro-icon{width:40px;height:40px;border-radius:12px;background:#e8f4f1;display:grid;place-items:center;color:#269b8a;font-size:19px}.pro-row strong{font-size:12px}.pro-row small{display:block;color:#919da2;font-size:10px;margin-top:5px}.pro-row .text-link{margin-left:auto}.boat-hero{background:linear-gradient(125deg,#0a2636,#16485a);color:white;padding:25px;border-radius:14px;min-height:180px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.boat-hero .eyebrow{color:#92b9b4}.boat-hero h2{font:700 23px Manrope;margin:9px 0 6px}.boat-hero p{color:#b2c3c6;font-size:11px;margin:0}.boat-art{font-size:78px;opacity:.92;margin-right:9%}.progress{height:5px;background:#edf1f0;border-radius:8px;overflow:hidden;margin-top:12px}.progress i{height:100%;display:block;background:var(--teal);border-radius:8px}.empty-note{font-size:10px;color:#9da7aa;margin-top:14px}.mobile-hint{display:none}@media(max-width:900px){.sidebar{width:205px}.main-area{margin-left:205px;width:calc(100% - 205px)}.page-content{padding-left:25px;padding-right:25px}.grid,.below-grid{grid-template-columns:1fr}.listing-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){body{background:#f7f9f8}.sidebar{display:none}.main-area{margin:0;width:100%;padding-bottom:67px}.topbar{height:57px;padding:0 18px}.mobile-brand{display:flex;align-items:center;gap:8px;border:0;background:none;font:800 16px Manrope;padding:0}.mobile-brand .brand-mark{width:27px;height:27px;font-size:15px;border-radius:9px}.breadcrumb{font-size:8px;letter-spacing:.8px}.top-actions{gap:12px}.top-actions .avatar{display:none}.page-content{padding:27px 17px 29px}.welcome-row{align-items:flex-start}.hero-title{font-size:30px}.hero-copy{font-size:12px;max-width:280px}.date-chip{display:none}.grid,.below-grid{gap:13px}.card{border-radius:12px}.card-head{padding:16px 15px 11px}.map-card{min-height:317px}.chart{height:240px}.weather-card{padding-bottom:15px}.below-grid{margin-top:13px}.forecast-days{padding-left:6px;padding-right:6px}.forecast-day span,.forecast-day small{font-size:9px}.section-heading h1{font-size:25px}.section-heading p{font-size:11px;max-width:255px;line-height:1.5}.primary-button{padding:9px 11px;font-size:10px}.map-full .chart{height:390px}.map-full{min-height:450px}.map-full .sea-label{left:39%}.stat-row{gap:8px}.stat-card{padding:12px 10px}.stat-card strong{font-size:18px}.stat-card span,.stat-card small{font-size:9px}.three-col{gap:8px}.forecast-tile,.service-tile{padding:13px 10px}.forecast-tile strong,.service-tile strong{font-size:12px}.listing-grid{gap:9px}.listing-visual{height:100px;font-size:38px}.listing-info{padding:10px}.listing-info h3{font-size:11px}.listing-info p{font-size:9px}.price{font-size:11px}.mobile-nav{display:flex;position:fixed;inset:auto 0 0;background:#ffffffed;border-top:1px solid #e6ebeb;padding:8px 5px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;z-index:6;backdrop-filter:blur(10px)}.mobile-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:4px;color:#849197;font-size:9px;min-width:53px}.mobile-nav button span{font-size:18px;line-height:19px}.mobile-nav button.active{color:#1c9888;font-weight:700}.boat-hero{padding:19px;min-height:160px}.boat-art{font-size:58px;margin-right:0}.weather-hero{padding:19px}.weather-hero .big-temp{font-size:39px}}
.real-map{position:absolute;inset:0;z-index:0;background:#d9e4e4}.real-map-active .map-photo,.real-map-active .map-shade,.real-map-active .map-coast-label,.real-map-active .map-city-label,.real-map-active .map-port-label,.real-map-active .map-park-label,.real-map-active .track-line,.real-map-active .map-scale,.real-map-active .you-are-here,.real-map-active .vessel-marker{display:none!important}.real-map-active .leaflet-tile-pane{opacity:.92}.real-map-active .leaflet-control-attribution{margin-bottom:220px!important;background:#06182dc9!important;color:#fff!important;font-size:9px!important}.real-map-active .leaflet-control-attribution a{color:#bce9ff!important}.leaflet-vessel-wrap{background:transparent!important;border:0!important}.leaflet-vessel-glyph{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:var(--ship-color);font-size:22px;text-shadow:0 1px 4px #001522,0 0 8px #001522;transform:rotate(var(--angle));filter:drop-shadow(0 0 3px #071827)}.leaflet-vessel-glyph.selected{color:#fff;text-shadow:0 0 5px var(--ship-color),0 0 12px var(--ship-color)}.navora-port-icon{background:#071b2be8;color:#79dbff;border:1px solid #b8f1ff;border-radius:50%;font-size:20px;display:grid;place-items:center;box-shadow:0 2px 10px #0017}.real-map-active .leaflet-popup-content-wrapper,.real-map-active .leaflet-popup-tip{background:#071b2b;color:#f2f8fa}.real-map-active .leaflet-popup-content{font:12px Manrope,sans-serif}.real-map-active .leaflet-popup-content a{color:#68d1ff}.port-row{flex-wrap:wrap}.port-map-link{margin-left:auto;white-space:nowrap}.map-warning{z-index:3}

.real-map iframe{width:100%;height:100%;border:0;display:block}.real-map-embedded .map-photo,.real-map-embedded .map-shade,.real-map-embedded .current-overlay,.real-map-embedded .map-coast-label,.real-map-embedded .map-city-label,.real-map-embedded .map-port-label,.real-map-embedded .map-park-label,.real-map-embedded .track-line,.real-map-embedded .map-scale,.real-map-embedded .you-are-here{display:none!important}.real-map-embedded .vessel-marker{display:grid!important;z-index:4}

.map-controls .satellite-toggle{font-size:21px;background:#082033ed;border:1px solid #8bcce855}.map-controls .satellite-toggle.active{background:#087ebc;color:#fff;border-color:#b5ecff}
/* NAVORA mobile helm layout */
.brand-mark{font-size:20px!important;background:#062846!important;color:#fff!important;border:1px solid #37b6eb66!important}
.brand-word{font-weight:900;letter-spacing:.4px}.brand-word span{color:#37b9ee}
.map-screen .current-overlay{z-index:1;pointer-events:none;opacity:.32}
body.map-screen .map-controls>button,body.map-screen .map-controls .zoom-control{background:#06182de8;color:#f6fbfd;border:1px solid #ffffff30;box-shadow:0 5px 18px #001b2c75}
body.map-screen .map-controls .satellite-toggle.active{background:#087ebc;color:#fff;border-color:#b5ecff}
.boat-thumb{width:78px;height:68px;flex:0 0 78px;border-radius:10px;background:#1d6688;box-shadow:inset 0 0 0 1px #d2f0ff35}
.boat-thumb svg{width:100%;height:100%;object-fit:cover}
.vessel-actions .track-action{min-height:44px;background:#1688f7;border-radius:10px}
@media(max-width:600px){.map-screen .topbar{height:60px;padding:0 14px}.map-screen .mobile-brand{font-size:18px;gap:8px;letter-spacing:.35px}.map-screen .mobile-brand .brand-mark{width:34px;height:34px;border-radius:9px;font-size:24px!important}.map-screen .page-content{height:calc(100dvh - 60px - 70px);min-height:480px}.map-home{min-height:480px}.map-weather-strip{top:9px;left:9px;right:9px;min-height:72px;padding:7px 8px;border-radius:20px;grid-template-columns:minmax(104px,1.2fr) repeat(3,minmax(58px,.9fr)) 12px}.map-location strong{font-size:16px}.map-location small{font-size:9px}.map-controls{top:25%;right:10px;gap:9px}.body.map-screen .map-controls>button{width:48px;height:48px}.map-controls .satellite-toggle{font-size:20px}.map-scale{bottom:210px}.map-warning{bottom:178px}.vessel-drawer{bottom:8px;width:calc(100% - 18px);padding:12px 11px 9px;border-radius:20px}.vessel-summary{gap:11px}.boat-thumb{width:76px;height:68px;flex-basis:76px}.vessel-name-row h2{font-size:18px}.vessel-copy p{font-size:10px;margin:5px 0 4px}.vessel-copy small{font-size:9px}.vessel-actions{grid-template-columns:1.25fr 1fr 1fr .82fr;margin-top:10px;padding-top:8px}.vessel-actions button{min-height:43px;font-size:18px}.vessel-actions button span{font-size:10px}.vessel-actions .track-action{min-height:46px;font-size:17px}.map-screen .mobile-nav{height:70px;padding-top:9px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}.map-screen .mobile-nav button{font-size:10px;gap:4px}.map-screen .mobile-nav button span{font-size:21px;line-height:22px}}
.satellite-active .map-coast-label,.satellite-active .map-city-label,.satellite-active .map-port-label,.satellite-active .map-park-label{display:block!important;z-index:2;text-shadow:0 1px 5px #00111f,0 0 8px #00111f;color:#f6fbff}
/* Tablet navigation and wide-screen sizing */
@media(min-width:601px) and (max-width:900px){body.map-screen .sidebar{display:flex!important;position:fixed;inset:0 auto 0 0;width:76px;align-items:center;padding:18px 8px;z-index:8}.map-screen .brand{justify-content:center;padding:0}.map-screen .brand-word,.map-screen .side-label,.map-screen .side-bottom{display:none!important}.map-screen .side-nav{width:100%;margin-top:22px}.map-screen .nav-item{justify-content:center;width:56px;height:50px;margin:4px auto;padding:0;font-size:0}.map-screen .nav-item .nav-icon{font-size:22px}.map-screen .main-area{margin-left:76px!important;width:calc(100% - 76px)!important}.map-screen .mobile-nav{display:none!important}.map-screen .mobile-brand{display:none}.map-screen .breadcrumb{display:block}.map-screen .page-content{height:calc(100dvh - 67px);min-height:450px}.map-home{min-height:450px}.vessel-drawer{width:min(700px,calc(100% - 34px))}}
@media(min-width:901px){.map-screen .sidebar{display:flex}.map-screen .mobile-nav{display:none}.map-screen .page-content{height:calc(100dvh - 67px)}.map-screen .vessel-drawer{width:min(820px,calc(100% - 52px));padding:15px 17px 12px}.map-screen .boat-thumb{width:92px;height:78px;flex-basis:92px}.map-screen .vessel-name-row h2{font-size:20px}.map-screen .vessel-copy p{font-size:12px}.map-screen .vessel-copy small{font-size:10px}.map-screen .vessel-actions{grid-template-columns:1.35fr 1fr 1fr .8fr}.map-screen .vessel-actions button{min-height:48px}.map-screen .vessel-actions button span{font-size:12px}}
@media(max-width:900px) and (orientation:landscape){.map-screen .page-content{min-height:330px}.map-screen .map-home{min-height:330px}.map-screen .map-weather-strip{min-height:58px}.map-screen .map-controls{top:19%}.map-screen .vessel-drawer{width:min(620px,calc(100% - 190px));left:auto;right:10px;transform:none;padding:8px 10px}.map-screen .boat-thumb{width:52px;height:48px;flex-basis:52px}.map-screen .vessel-actions{margin-top:5px;padding-top:4px}.map-screen .vessel-actions button{min-height:32px}}
/* Keep helm controls above tiles and below the weather strip on every screen */
body.map-screen .map-controls{position:absolute;right:15px;top:24%;display:flex;flex-direction:column;gap:10px;z-index:4}
body.map-screen .map-controls>button,body.map-screen .map-controls .zoom-control{background:#06182de8;color:#f6fbfd;border:1px solid #ffffff30;box-shadow:0 5px 18px #001b2c75}
body.map-screen .map-controls .zoom-control button{background:transparent;color:#f6fbfd;border:0}
body.map-screen .map-controls .zoom-control button+button{border-top:1px solid #ffffff35}
body.map-screen .leaflet-control-attribution{max-width:42%;white-space:normal;line-height:1.2;text-align:right}
@media(max-width:600px){body.map-screen .map-controls{top:25%;right:10px;gap:9px}}
@media(min-width:601px) and (max-width:900px){body.map-screen .map-controls{top:23%;right:12px}}
/* Estelas de viento animadas: efecto visual, no dato de navegación */
body.map-screen .current-overlay{z-index:2;pointer-events:none;opacity:1;overflow:visible}
body.map-screen .current-overlay .flow{fill:none;stroke-width:3.2;stroke-linecap:round;stroke-dasharray:2 17;animation:wind-drift 3.8s linear infinite;filter:drop-shadow(0 0 4px currentColor);opacity:.9}
body.map-screen .current-overlay .flow-cyan{stroke:#53edff;color:#53edff}
body.map-screen .current-overlay .flow-blue{stroke:#20aaff;color:#20aaff;animation-duration:4.8s}
body.map-screen .current-overlay .flow-teal{stroke:#00ffc2;color:#00ffc2;animation-duration:5.3s}
body.map-screen .current-overlay .flow-lime{stroke:#d8ff38;color:#d8ff38;animation-duration:4.4s}
body.map-screen .current-overlay .flow-violet{stroke:#d28bff;color:#d28bff;animation-duration:5.8s}
@keyframes wind-drift{to{stroke-dashoffset:-76}}
/* Contraste y símbolos de zoom visibles en móvil y ordenador */
body.map-screen .map-controls .zoom-control{width:54px!important;height:108px!important;min-height:108px!important;display:flex!important;flex-direction:column!important;overflow:hidden;border-radius:28px!important;background:#06182df2!important;z-index:8!important}
body.map-screen .map-controls .zoom-control button{display:grid!important;place-items:center!important;flex:1 1 50%!important;width:100%!important;min-width:0!important;height:50%!important;min-height:50%!important;padding:0!important;margin:0!important;background:#102c43!important;color:#fff!important;border:0!important;border-radius:0!important;font-family:Arial,sans-serif!important;font-size:34px!important;font-weight:400!important;line-height:1!important;opacity:1!important;visibility:visible!important;text-shadow:0 1px 4px #000!important;box-shadow:none!important;cursor:pointer}
body.map-screen .map-controls .zoom-control button+button{border-top:1px solid #ffffff45!important}
body.map-screen .map-controls .zoom-control button:hover{background:#145177!important}
@media(prefers-reduced-motion:reduce){body.map-screen .current-overlay .flow{animation-duration:20s}}
/* Show the NAUTILUS wordmark in the main top bar on desktop, tablet, and mobile */
body.map-screen .topbar .mobile-brand{display:flex!important;align-items:center;gap:9px;margin-right:clamp(10px,2vw,24px);color:#fff;font-size:18px;white-space:nowrap}
body.map-screen .topbar .mobile-brand .brand-word{display:inline!important;color:#f7fbfd;font-weight:800;letter-spacing:.4px}
body.map-screen .topbar .mobile-brand .brand-word span{color:#39c5e5}
@media(min-width:601px){body.map-screen .topbar .mobile-brand .brand-mark{width:30px;height:30px;font-size:18px!important}}

body.map-screen .topbar .mobile-brand{border:0!important;background:transparent!important;padding:0!important;font-family:inherit;box-shadow:none!important}


/* ==========================================================================
   NAUTILUS · FASE 1: Estilos de Búsqueda Unificada, Capas y Escala Náutica
   ========================================================================== */

/* Contenedor y desplegable de búsqueda */
.map-search-container {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: 380px;
  overflow-y: auto;
  background: #081d30f5;
  border: 1px solid #38bdf840;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 10, 20, 0.7);
  backdrop-filter: blur(14px);
  z-index: 100;
  padding: 6px;
  color: #f1f5f9;
}

.search-dropdown[hidden] {
  display: none !important;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item:hover,
.search-result-item:focus {
  background: rgba(56, 189, 248, 0.15);
}

.search-item-icon {
  font-size: 18px;
  flex: 0 0 24px;
  text-align: center;
}

.search-result-item strong {
  display: block;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  color: #f8fafc;
}

.search-result-item small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.search-item-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #0369a1;
  color: #e0f2fe;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.search-empty-state {
  padding: 20px 16px;
  text-align: center;
  color: #94a3b8;
}

.search-empty-state span {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
}

.search-empty-state p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #e2e8f0;
}

.search-empty-state small {
  font-size: 11px;
  color: #64748b;
  display: block;
}

.search-pending {
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: #38bdf8;
  font-style: italic;
}

/* Modal de capas de mapa */
.modal-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 15, 27, 0.75);
  backdrop-filter: blur(8px);
}

.modal-dialog[hidden] {
  display: none !important;
}

.modal-card {
  width: min(520px, 100%);
  background: #081d30;
  border: 1px solid #38bdf835;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-head h3 {
  margin: 0;
  font: 700 17px 'Manrope', sans-serif;
  letter-spacing: -0.3px;
}

.modal-body {
  padding: 20px 22px;
  max-height: 70vh;
  overflow-y: auto;
}

.layer-group-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #7dd3fc;
  margin-bottom: 10px;
}

.layer-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.layer-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  background: #0f273d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #cbd5e1;
  transition: all 0.18s;
  cursor: pointer;
}

.layer-option-btn:hover {
  border-color: #38bdf8;
  background: #13324e;
}

.layer-option-btn.active {
  background: #0284c7;
  border-color: #7dd3fc;
  color: #fff;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.4);
}

.layer-opt-icon {
  font-size: 26px;
  margin-bottom: 6px;
}

.layer-option-btn strong {
  font-size: 12px;
  display: block;
}

.layer-option-btn small {
  font-size: 9px;
  opacity: 0.8;
  margin-top: 3px;
}

.layer-toggles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #0f273d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
}

.toggle-row:hover {
  background: #13324e;
}

.toggle-row span strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
}

.toggle-row span small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #0ea5e9;
  cursor: pointer;
}

.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  background: #061828;
}

/* Escala náutica dinámica */
.map-scale-badge {
  position: absolute;
  left: 16px;
  bottom: 215px;
  z-index: 5;
  background: rgba(6, 24, 45, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #e0f2fe;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.leaflet-control-scale-line {
  background: rgba(6, 24, 45, 0.85) !important;
  border: 2px solid #38bdf8 !important;
  border-top: none !important;
  color: #f0fdf4 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  text-shadow: 0 1px 3px #000 !important;
  margin-left: 16px !important;
  margin-bottom: 240px !important;
}

/* Pin de búsqueda en el mapa */
.search-place-pin {
  display: grid;
  place-items: center;
  position: relative;
}

.search-pin-icon {
  font-size: 26px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.search-pin-glow {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0ea5e9;
  opacity: 0.45;
  animation: pin-pulse 1.8s infinite ease-out;
  z-index: 1;
}

@keyframes pin-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Botones de acción en puertos */
.port-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-small {
  padding: 6px 11px;
  font-size: 11px;
}

.text-danger {
  color: #f87171 !important;
}

.text-danger:hover {
  color: #ef4444 !important;
}

/* Botón de selector de capas en el mando */
.layer-control-btn {
  font-size: 22px !important;
  display: grid;
  place-items: center;
}

/* Ajustes responsivos para móvil */
@media (max-width: 600px) {
  .search-dropdown {
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 60vh;
  }

  .layer-options-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .layer-option-btn {
    flex-direction: row;
    gap: 12px;
    padding: 10px 14px;
    text-align: left;
  }

  .layer-opt-icon {
    margin-bottom: 0;
  }

  .map-scale-badge {
    bottom: 185px;
    left: 10px;
    font-size: 9px;
  }

  .leaflet-control-scale-line {
    margin-left: 10px !important;
    margin-bottom: 205px !important;
  }

  .port-actions-group {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}


/* ==========================================================================
   NAUTILUS · FASE 2: Estilos de Viento Real, Oleaje y Leyenda Náutica
   ========================================================================== */

/* Capa de Canvas para estelas animadas de viento real */
.wind-canvas-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.92;
}

/* Panel flotante de Leyenda Meteorológica Marina */
.weather-legend-panel {
  position: absolute;
  top: 98px;
  left: 14px;
  z-index: 4;
  width: min(340px, calc(100vw - 28px));
  background: rgba(6, 24, 45, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 15, 30, 0.65);
  backdrop-filter: blur(14px);
  color: #f1f5f9;
  font-family: 'DM Sans', sans-serif;
}

.legend-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legend-header strong {
  display: block;
  font: 800 12px 'Manrope', sans-serif;
  letter-spacing: 0.4px;
  color: #f8fafc;
}

.legend-header small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.pulse-dot.green {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: pulse-glow 2s infinite ease-out;
}

.pulse-dot.red {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.legend-tabs {
  display: flex;
  gap: 4px;
  background: rgba(15, 39, 61, 0.7);
  padding: 3px;
  border-radius: 8px;
  margin: 9px 0;
}

.legend-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.legend-tab:hover {
  color: #f8fafc;
}

.legend-tab.active {
  background: #0284c7;
  color: #fff;
}

.legend-main-val {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 10px;
}

.legend-compass-arrow {
  display: inline-block;
  font-size: 20px;
  color: #38bdf8;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease-out;
  transform-origin: center;
}

.legend-main-val b {
  font: 800 17px 'Manrope', sans-serif;
  color: #fff;
}

.legend-main-val small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.wind-color-spectrum {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.wind-color-spectrum span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: #04121e;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}

.legend-foot {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  color: #64748b;
}

.legend-note {
  font-size: 11px;
  color: #fca5a5;
  margin: 6px 0 0;
  line-height: 1.4;
}

/* Marcadores marítimos de Oleaje y Corrientes en Leaflet */
.marine-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0, 10, 25, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  white-space: nowrap;
}

.wave-indicator {
  background: rgba(3, 105, 161, 0.9);
  border-color: #38bdf8;
}

.current-indicator {
  background: rgba(19, 78, 74, 0.9);
  border-color: #2dd4bf;
}

.marine-arrow {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  color: #e0f2fe;
}

.marine-arrow.current {
  color: #a3e635;
}

.marine-info b {
  font: 800 12px 'Manrope', sans-serif;
  display: block;
  line-height: 1.1;
}

.marine-info small {
  font-size: 9px;
  color: #cbd5e1;
  display: block;
}

/* Cuadrícula especializada para la sección Meteorología */
.nautical-weather-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.nautical-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.nautical-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f9ff;
  color: #0284c7;
  display: grid;
  place-items: center;
}

.nautical-card-head h3 {
  margin: 0;
  font: 700 15px 'Manrope', sans-serif;
  color: #0f172a;
}

.nautical-card-head small {
  font-size: 11px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.nautical-card-val {
  font: 800 24px 'Manrope', sans-serif;
  color: #0369a1;
  margin-bottom: 4px;
}

.nautical-card-sub {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.nautical-card-note {
  font-size: 10px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

/* Adaptaciones responsivas de Fase 2 para móvil */
@media (max-width: 600px) {
  .weather-legend-panel {
    top: 86px;
    left: 8px;
    right: 8px;
    width: auto;
    padding: 10px 12px;
  }

  .nautical-weather-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nautical-card {
    padding: 14px 16px;
  }

  .nautical-card-val {
    font-size: 20px;
  }
}


/* ==========================================================================
   NAUTILUS · FASE 3: Estilos de Arquitectura AIS y Distinción Real vs Simulado
   ========================================================================== */

/* Barra de estado del proveedor AIS */
.ais-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b2238;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.ais-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ais-status-info strong {
  display: block;
  font: 700 13px 'Manrope', sans-serif;
  color: #f8fafc;
}

.ais-status-info small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.pulse-dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Etiquetas y distintivos AIS */
.ais-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ais-badge.real {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.ais-badge.mock {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ais-badge.stale {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Fila de barco en lista */
.vessel-list-row.is-real-row {
  border-left: 3px solid #06b6d4;
}

.vessel-list-row.is-mock-row {
  border-left: 3px solid #f59e0b;
}

.vessel-list-row.is-stale-row {
  opacity: 0.65;
  background: #f8fafc;
}

/* Glifos de barco en el mapa Leaflet */
.leaflet-vessel-glyph.real-ais {
  border: 2px solid #06b6d4;
  background: rgba(8, 27, 43, 0.9);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.leaflet-vessel-glyph.mock-ais {
  border: 1px dashed #f59e0b;
  background: rgba(8, 27, 43, 0.8);
}

.leaflet-vessel-glyph.stale-ais {
  opacity: 0.45 !important;
  border-style: dotted !important;
  filter: grayscale(0.6) !important;
}

.real-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  border: 1px solid #fff;
}

/* Popups informativos de AIS */
.ais-popup-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  display: inline-block;
}

.ais-popup-tag.real {
  background: #083344;
  color: #38bdf8;
  border: 1px solid #0ea5e9;
}

.ais-popup-tag.mock {
  background: #451a03;
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.ais-stale-warning {
  font-size: 10px;
  color: #fca5a5;
  background: #450a0a;
  padding: 3px 6px;
  border-radius: 4px;
  margin: 4px 0;
  border-left: 2px solid #ef4444;
}

/* Modal de configuración de proveedores AIS */
.ais-provider-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.provider-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #0f273d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.provider-radio-card:hover {
  border-color: #38bdf8;
  background: #13324e;
}

.provider-radio-card.active,
.provider-radio-card:has(input:checked) {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.2);
}

.provider-radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #0284c7;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.provider-radio-content {
  flex: 1;
}

.provider-radio-content strong {
  font: 700 13px 'Manrope', sans-serif;
  color: #f8fafc;
}

.provider-radio-content small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

.provider-key-field input {
  width: 100%;
  padding: 8px 12px;
  background: #081b2b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 12px;
  outline: none;
  margin-top: 4px;
}

.provider-key-field input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.ais-license-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}

.ais-license-notice strong {
  color: #fbbf24;
  display: block;
  margin-bottom: 4px;
}

.ais-license-notice p {
  margin: 0;
}

/* Distinciones en Drawer */
.demo-tag.real {
  background: #083344;
  color: #22d3ee;
  border: 1px solid #0891b2;
}

.demo-tag.mock {
  background: #451a03;
  color: #fbbf24;
  border: 1px solid #d97706;
}

.demo-tag.stale {
  background: #450a0a;
  color: #fca5a5;
  border: 1px solid #dc2626;
}

.boat-thumb.real-thumb {
  background: linear-gradient(155deg, #0284c7, #0f172a);
  box-shadow: inset 0 0 0 1px #38bdf840;
}

@media (max-width: 600px) {
  .ais-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   NAUTILUS · FASE 1.1: integridad de datos, estados, formularios y responsive
   ========================================================================== */

body.modal-open { overflow: hidden; }

/* El buscador debe caber en la barra superior sin cortar el placeholder. */
.map-search-container { width: min(310px, 30vw); min-width: 190px; }
.map-search { width: 100%; min-width: 0; }
.map-search input { width: 100%; min-width: 0; }
@media (max-width: 900px) {
  .map-search-container { width: min(250px, 36vw); min-width: 160px; }
}
@media (max-width: 600px) {
  .map-search-container { width: 100%; min-width: 0; }
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #23b6a2;
  color: #04121e;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 2000;
  padding: 16px;
  border-radius: 12px;
  background: #7f1d1d;
  color: #fff;
  font: 600 14px 'DM Sans', sans-serif;
  text-align: center;
}

/* Página normal (fuera del mapa) */
body:not(.map-screen) .page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 52px) 100px;
  height: auto;
  min-height: calc(100dvh - 67px);
  overflow: visible;
}
body:not(.map-screen) .main-area { min-height: 100dvh; }

/* Badges de estado sobre el mapa */
.map-badges {
  position: absolute;
  top: 100px;
  right: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  pointer-events: none;
}
.map-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(69, 26, 3, 0.85);
  color: #fcd34d;
  font: 800 9px 'Manrope', sans-serif;
  letter-spacing: .45px;
  backdrop-filter: blur(8px);
}
.map-status-chip[data-real="true"] {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(8, 51, 68, 0.88);
  color: #67e8f9;
}
.map-status-chip.subtle {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
}
.map-fallback-note {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  max-width: min(460px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(6, 24, 45, 0.94);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

/* Si fallan las teselas, la imagen de referencia vuelve a mostrarse. */
body.map-screen .map-tiles-failed .map-photo,
body.map-screen .map-tiles-failed .map-shade { display: block !important; }
body.map-screen .map-tiles-failed .leaflet-tile-pane { opacity: .04 !important; }
body.map-screen .map-tiles-failed .leaflet-container { background: transparent !important; }
body.map-screen .map-tiles-failed .vessel-marker { display: none !important; }
body.map-screen .real-map-embedded .vessel-marker { display: none !important; }
body.map-screen .real-map-embedded .map-photo { display: none !important; }

/* HUD de seguridad del mapa */
.safety-hud-bar {
  position: absolute;
  left: 16px;
  bottom: 246px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(6, 24, 45, 0.84);
  backdrop-filter: blur(9px);
  color: #e2e8f0;
  pointer-events: none;
}
.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 9px 'DM Sans', sans-serif;
  white-space: nowrap;
}
.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
  background: #64748b;
}
.hud-dot.green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.hud-dot.amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.hud-dot.yellow { background: #facc15; box-shadow: 0 0 0 3px rgba(250, 204, 21, .16); }
.hud-dot.red { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.hud-dot.blue { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
.hud-dot.gray { background: #64748b; }

/* Leyenda: estados y capas separadas */
.weather-legend-panel { z-index: 4; }
.legend-tabs { gap: 3px; }
.legend-tab { font-size: 10px; padding: 5px 2px; }
.data-unavailable { color: #fca5a5; font-weight: 600; }
.legend-note a { color: #7dd3fc; }
.temp-arrow { color: #fbbf24; }

/* Marcadores meteorológicos: siempre en el punto exacto del modelo */
.marine-badge-wrap { background: transparent !important; border: 0 !important; }
.marine-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(6, 24, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  font: 600 10px 'DM Sans', sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 10, 25, .65);
}
.current-pill { border-color: #2dd4bf; color: #99f6e4; transform: translate(54px, 24px); }
.temp-pill { border-color: #fbbf24; color: #fde68a; transform: translate(-80px, 34px); }
.marine-tooltip {
  background: rgba(6, 24, 45, .92) !important;
  border: 1px solid rgba(56, 189, 248, .35) !important;
  color: #e0f2fe !important;
  font: 700 10px 'DM Sans', sans-serif !important;
  padding: 3px 7px !important;
  box-shadow: none !important;
}
.simulated-position-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px dashed #f472b6;
  background: rgba(80, 7, 36, .92);
  color: #fbcfe8;
  font: 800 10px 'Manrope', sans-serif;
  letter-spacing: .5px;
}
.sim-tooltip {
  background: #500724 !important;
  color: #fbcfe8 !important;
  border: 1px solid #f472b6 !important;
  font: 700 9px 'DM Sans', sans-serif !important;
}

/* Waypoints en carta */
.nautical-wpt-wrap { background: transparent !important; border: 0 !important; }
.wpt-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #071b2b;
  border: 2px solid #38bdf8;
  color: #e0f2fe;
  font: 800 10px 'Manrope', sans-serif;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}
.wpt-badge.wpt-start { border-color: #22c55e; color: #bbf7d0; }
.wpt-badge.wpt-end { border-color: #f59e0b; color: #fde68a; }

/* Drawer vacío y avisos */
.vessel-drawer.empty-drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
}
.drawer-empty-copy strong { display: block; font: 700 13px 'Manrope', sans-serif; }
.drawer-empty-copy small { display: block; margin-top: 3px; font-size: 11px; color: #94a3b8; }
.stale-inline { display: block; color: #fca5a5; margin-top: 3px; }
.stale-inline::before { content: '⏳ '; }
.drawer-legal { display: none; }

/* Estados y tarjetas de secciones */
.empty-state {
  text-align: center;
  padding: 28px 18px !important;
}
.empty-state-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.empty-state h2 { margin: 0 0 6px; font: 700 18px 'Manrope', sans-serif; color: #0f172a; }
.empty-state p { margin: 0 auto 14px; max-width: 520px; font-size: 12px; color: #64748b; line-height: 1.55; }

.inline-warning {
  margin: 12px 0;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .08);
  color: #92400e;
  font-size: 11px;
  line-height: 1.5;
}
.map-screen .inline-warning { color: #fcd34d; background: rgba(245, 158, 11, .1); }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font: 800 9px 'Manrope', sans-serif;
  letter-spacing: .5px;
  white-space: nowrap;
}
.status-pill.ok { background: #dcfce7; color: #166534; }
.status-pill.warn { background: #fef3c7; color: #92400e; }
.status-pill.muted { background: #e2e8f0; color: #475569; }
.map-screen .status-pill.muted { background: #0f273d; color: #cbd5e1; }

.header-action-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-actions { flex-shrink: 0; }

/* Monitor de seguridad */
.safety-critical-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: linear-gradient(135deg, rgba(127, 29, 29, .08), rgba(245, 158, 11, .08));
  color: #7f1d1d;
}
.safety-critical-banner strong { display: block; font: 800 12px 'Manrope', sans-serif; letter-spacing: .3px; margin-bottom: 4px; }
.safety-critical-banner p { margin: 0; font-size: 11px; line-height: 1.55; }
.safety-banner-icon { font-size: 22px; line-height: 1; }
.safety-checks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.safety-check-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.check-head { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #475569; }
.check-val { margin-top: 7px; font: 700 14px 'Manrope', sans-serif; color: #0f172a; }
.check-sub { margin-top: 4px; font-size: 10px; line-height: 1.45; color: #64748b; }
.issue-list { display: grid; gap: 7px; margin-top: 14px; }
.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.issue-item.critical { border-color: #fecaca; background: #fff1f2; }
.issue-item.warning { border-color: #fde68a; background: #fffbeb; }
.issue-item.info { border-color: #bae6fd; background: #f0f9ff; }
.issue-level { flex: 0 0 auto; font: 800 8px 'Manrope', sans-serif; letter-spacing: .5px; color: #64748b; padding-top: 2px; }
.issue-item.critical .issue-level { color: #b91c1c; }
.issue-item.warning .issue-level { color: #92400e; }
.issue-item.info .issue-level { color: #0369a1; }
.issue-item strong { display: block; font-size: 11px; color: #0f172a; }
.issue-item small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.45; color: #64748b; }

/* Ruta experimental */
.route-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.route-stat-box {
  padding: 12px;
  border-radius: 11px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.route-stat-box span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .5px; color: #64748b; }
.route-stat-box strong { display: block; margin: 5px 0 2px; font: 800 20px 'Manrope', sans-serif; color: #0369a1; }
.route-stat-box strong small { font-size: 10px; color: #64748b; }
.route-stat-box > small { font-size: 9px; color: #94a3b8; }
.table-responsive { width: 100%; overflow-x: auto; margin-top: 12px; }
.legs-table { width: 100%; border-collapse: collapse; font-size: 11px; min-width: 620px; }
.legs-table th {
  text-align: left;
  padding: 8px 9px;
  font-size: 8px;
  letter-spacing: .5px;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}
.legs-table td { padding: 9px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.leg-pill { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #e0f2fe; color: #0369a1; font-weight: 800; font-size: 9px; }
.bearing-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #ecfeff; color: #0e7490; font-weight: 800; }
.waypoint-list { margin-top: 16px; }
.waypoint-list h4 { margin: 0 0 9px; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: #64748b; }
.waypoint-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  margin-bottom: 6px;
  background: #fff;
}
.wpt-order-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font: 800 9px 'Manrope', sans-serif;
}
.wpt-order-badge.start { background: #dcfce7; color: #166534; }
.wpt-order-badge.end { background: #fef3c7; color: #92400e; }
.waypoint-copy { flex: 1; min-width: 0; }
.waypoint-copy strong { display: block; font-size: 12px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waypoint-copy small { display: block; font-size: 10px; color: #64748b; }
.waypoint-actions { display: flex; gap: 5px; }

.test-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.test-step-card { padding: 11px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.test-step-card strong { display: block; font-size: 11px; color: #0f172a; }
.test-step-card p { margin: 4px 0 0; font-size: 10px; line-height: 1.45; color: #64748b; }
.card-lead { margin: 0 0 12px; font-size: 12px; line-height: 1.55; color: #475569; }

/* Lista AIS */
.vessel-list { display: grid; gap: 7px; margin-top: 12px; }
.vessel-list-row { color: #0f172a; }
.list-copy { flex: 1; min-width: 0; }
.list-title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-title-row strong { font-size: 12px; color: #0f172a; }
.list-heading { font: 800 12px 'Manrope', sans-serif; color: #0369a1; white-space: nowrap; }
.list-boat { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #0f273d; color: var(--ship-color, #38bdf8); font-size: 16px; }
.ais-status-bar { flex-wrap: wrap; }

/* Ajustes AIS */
.provider-radio-card.disabled { opacity: .62; cursor: not-allowed; }
.provider-radio-card.disabled:hover { border-color: rgba(255,255,255,.1); background: #0f273d; }
.provider-key-field { margin-top: 9px; }
.provider-key-field label { display: block; font-size: 10px; color: #cbd5e1; margin-bottom: 3px; }
.provider-key-field input[type="text"],
.provider-key-field input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid #334155;
  background: #081b2b;
  color: #f8fafc;
  font-size: 12px;
  outline: none;
}
.provider-key-field input:focus { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56,189,248,.18); }
.checkbox-inline { display: flex !important; align-items: center; gap: 6px; margin-top: 8px; font-size: 10px; color: #cbd5e1; }
.checkbox-inline input { width: 15px; height: 15px; accent-color: #0ea5e9; }
.ais-license-notice { margin-top: 4px; }
.ais-test-box {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed rgba(56, 189, 248, .3);
  border-radius: 10px;
  background: rgba(14, 165, 233, .06);
}
.ais-test-box small { display: block; margin-top: 7px; font-size: 9px; line-height: 1.4; color: #94a3b8; }
.nmea-test-result {
  margin: 9px 0 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #06182a;
  border: 1px solid rgba(148, 163, 184, .2);
  color: #bbf7d0;
  font: 500 10px/1.5 Consolas, monospace;
  white-space: pre-wrap;
}

/* Formularios y modales */
.modal-card-narrow { width: min(430px, 100%); }
.modal-body { padding: 18px 22px; overflow-y: auto; max-height: min(64vh, 560px); }
.modal-lead { margin: 0 0 10px; font-size: 12px; line-height: 1.55; color: #cbd5e1; }
.modal-note { margin: 10px 0 0; font-size: 10px; line-height: 1.5; color: #94a3b8; }
.modal-foot-split { justify-content: space-between; }
.plain-list { margin: 8px 0; padding-left: 18px; color: #334155; font-size: 12px; line-height: 1.6; }
.modal-form label { display: block; margin: 10px 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .3px; color: #cbd5e1; text-transform: uppercase; }
.modal-form input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #081b2b;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.modal-form input:focus { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56,189,248,.18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row label { margin-top: 0; }

/* Buscador */
.search-result-item:focus-visible { outline: 2px solid #38bdf8; outline-offset: -2px; }
.search-item-badge.real { background: #083344; color: #67e8f9; }
.search-item-badge.mock { background: #451a03; color: #fbbf24; }
.search-pending.warn { color: #fbbf24; }

/* Meteorología */
.weather-status-banner {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
}
.weather-status-banner strong { display: block; font: 700 12px 'Manrope', sans-serif; }
.weather-status-banner small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.45; color: #92400e; }
.weather-status-banner .hud-dot { margin-top: 4px; }
.data-source-card { margin-top: 18px; padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.data-source-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.data-source-head strong { font: 700 13px 'Manrope', sans-serif; color: #0f172a; }
.data-source-card p { margin: 5px 0; font-size: 11px; line-height: 1.55; color: #64748b; }
.data-source-card a { color: #0369a1; }
.forecast-empty { padding: 18px; text-align: center; font-size: 12px; color: #64748b; }
.data-warning { color: #b45309 !important; font-weight: 700; }

/* Privacidad */
.privacy-card { max-width: 1040px; }
.privacy-card p { max-width: 92ch; }
.privacy-card h2 { margin: 18px 0 6px; font: 700 15px 'Manrope', sans-serif; color: #0f172a; }
.privacy-card h2:first-child { margin-top: 0; }
.privacy-card p { margin: 0 0 8px; font-size: 12px; line-height: 1.6; color: #475569; }
.privacy-card code { background: #f1f5f9; padding: 1px 4px; border-radius: 3px; font-size: 11px; }
.privacy-card .plain-list { color: #475569; }

/* Responsive de las secciones nuevas */
@media (max-width: 1050px) {
  .safety-checks-grid, .test-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .safety-hud-bar { bottom: 226px; }
  .map-badges { top: 96px; }
}

@media (max-width: 600px) {
  body:not(.map-screen) .page-content { padding: 20px 14px 90px; }
  .section-heading { flex-direction: column; gap: 10px; }
  .section-actions, .header-action-row { width: 100%; }
  .header-action-row .primary-button,
  .header-action-row .secondary-button { flex: 1 1 auto; }
  .safety-checks-grid, .test-steps-grid, .route-stats-grid { grid-template-columns: 1fr; }
  .safety-critical-banner { padding: 12px; gap: 10px; }
  .safety-critical-banner p { font-size: 10px; }
  .waypoint-item-row { flex-wrap: wrap; }
  .waypoint-actions { width: 100%; justify-content: flex-end; }
  .form-row { grid-template-columns: 1fr; }
  .modal-card { max-height: calc(100dvh - 20px); }
  .modal-body { max-height: calc(100dvh - 190px); }
  .modal-foot { padding: 12px 16px; }
  .modal-foot-split { gap: 8px; }
  .modal-foot-split button { flex: 1; }
  .map-badges { display: none; }
  .weather-legend-panel { top: 86px; left: 8px; right: 64px; width: auto; padding: 10px 11px; }
  .safety-hud-bar {
    left: 9px;
    right: 9px;
    bottom: 210px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 5px 8px;
    justify-content: center;
  }
  .hud-item { font-size: 8px; }
  .hud-dot { width: 6px; height: 6px; flex-basis: 6px; }
  .vessel-drawer.empty-drawer { flex-direction: column; align-items: flex-start; }
  .legend-main-val b { font-size: 15px; }
  .data-source-card { padding: 13px 14px; }
  .ais-status-bar { padding: 10px 12px; }
  .status-pill { font-size: 8px; }
  .list-heading { font-size: 10px; }
  .privacy-card h2 { font-size: 14px; }
}

@media (max-width: 380px) {
  .map-weather-strip { grid-template-columns: minmax(88px, 1.2fr) repeat(3, minmax(50px, .9fr)) 10px; }
  .map-location strong { font-size: 13px; }
  .map-weather-strip > span:not(.map-location, .weather-arrow) strong { font-size: 9px; }
  .weather-symbol { display: none; }
  .map-weather-strip > span:not(.map-location, .weather-arrow) { padding-left: 4px; }
}

@media (max-width: 600px) {
  /* En pantallas estrechas los iconos del strip robaban espacio al valor. */
  .weather-symbol { display: none !important; }
  .map-weather-strip > span:not(.map-location, .weather-arrow) { padding-left: 6px !important; }

  /* El buscador se abre como panel flotante desde el icono de la barra. */
  .map-search-container {
    display: none;
    position: fixed;
    top: 66px;
    left: 8px;
    right: 8px;
    width: auto;
    min-width: 0;
    z-index: 70;
  }
  .map-search-container.search-open { display: block; }
  .map-search-container .map-search {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-right: 0;
    background: #071a2df5;
  }
  .map-search-container .search-dropdown { width: 100%; max-height: 55vh; }
}

/* Oscurecido suave de las teselas sin usar filter (evita fallos de composición
   en algunos navegadores y mantiene legibles los marcadores). */
.real-map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 48, .34) 0%, rgba(6, 26, 48, .14) 42%, rgba(6, 26, 48, .32) 100%);
}

/* Colores del banner meteorológico según el estado real. */
.weather-status-banner[data-status="live"] { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.weather-status-banner[data-status="live"] small { color: #15803d; }
.weather-status-banner[data-status="unavailable"] { border-color: #fecaca; background: #fff1f2; color: #991b1b; }
.weather-status-banner[data-status="unavailable"] small { color: #b91c1c; }

@media (max-width: 600px) {
  /* En móvil la escala y el HUD se apilan; el aviso legal pasa al drawer. */
  .leaflet-control-scale { display: none !important; }
  .map-scale-badge { bottom: 188px !important; left: 9px !important; font-size: 8px !important; }
  .map-warning { display: none !important; }
  .drawer-legal {
    display: block;
    margin: 7px 2px 0;
    font-size: 8px;
    line-height: 1.3;
    color: #fca5a5;
    text-align: center;
  }
  .real-map-active .leaflet-control-attribution {
    margin-bottom: 236px !important;
    max-width: 62% !important;
    font-size: 7px !important;
    line-height: 1.15 !important;
  }
  .temp-pill { transform: translate(-80px, 34px) !important; }
  body:not(.map-screen) .breadcrumb { display: none !important; }
}
