/* CLIMAPUERTO 3.0 — estilo glass tipo weather.com + fondo animado por clima */
:root{color-scheme:dark;--ink:#fff;--mut:rgba(255,255,255,.72);--glass:rgba(16,26,33,.38);--glass-b:rgba(255,255,255,.13)}
*{box-sizing:border-box}
html{background:#05080c}
body{--amb:#2a6a96;margin:0;min-height:100vh;padding:22px 18px 30px;font-family:Poppins,Manrope,system-ui,sans-serif;color:var(--ink);background:radial-gradient(ellipse at 50% 15%,var(--amb),#05080c 78%);transition:background 1.6s}
body[data-weather=partly-cloudy-day]{--amb:#3a6482}body[data-weather=cloudy-day]{--amb:#46535e}body[data-weather=rain-day]{--amb:#26394a}body[data-weather=storm-day]{--amb:#18263a}body[data-weather=fog-day]{--amb:#5f7078}
body[data-weather=clear-night]{--amb:#122448}body[data-weather=cloudy-night]{--amb:#18263b}body[data-weather=rain-night]{--amb:#111e2e}body[data-weather=storm-night]{--amb:#0c1322}body[data-weather=norte-day]{--amb:#1d4a60}body[data-weather=norte-night]{--amb:#0f2635}
.page{width:min(1240px,100%);margin:0 auto}

/* ── Tablero ── */
.weather-board{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;min-height:660px;padding:26px 40px 36px;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,440px);grid-template-rows:auto 1fr;grid-template-areas:"top top" "hero side";gap:18px 40px;background:#101923;box-shadow:0 30px 90px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.1)}
.scene-sky,.scene-photo,.scene-fx,.scene-vig{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.scene-sky{z-index:0;background:linear-gradient(160deg,#1d5f93,#3f8fc0 50%,#7cc0e0);transition:background 1.6s}
.scene-photo{z-index:0;background:var(--weather-photo) center/cover;opacity:.4;mix-blend-mode:luminosity;transform:scale(1.06);animation:drift 55s ease-in-out infinite alternate}
.scene-fx{z-index:1;transition:opacity .45s ease}.scene-fx.swap{opacity:0}
.scene-vig{z-index:2;background:linear-gradient(90deg,rgba(0,0,0,.38),transparent 58%),linear-gradient(0deg,rgba(0,0,0,.5),transparent 48%),linear-gradient(180deg,rgba(0,0,0,.22),transparent 22%)}
.board-top,.current-weather,.side{position:relative;z-index:3}
[data-weather=partly-cloudy-day] .scene-sky{background:linear-gradient(160deg,#2c6a98,#5a93b5 52%,#8db3c6)}
[data-weather=cloudy-day] .scene-sky{background:linear-gradient(160deg,#4a5a67,#76858f 55%,#5a6a76)}
[data-weather=rain-day] .scene-sky{background:linear-gradient(160deg,#27384a,#4a5d6b 55%,#33444f)}
[data-weather=storm-day] .scene-sky{background:linear-gradient(160deg,#121d2c,#2c3d52 55%,#16212f)}
[data-weather=fog-day] .scene-sky{background:linear-gradient(160deg,#66767d,#9aa7ab 55%,#6c7c84)}
[data-weather=clear-night] .scene-sky{background:linear-gradient(160deg,#071126,#13264a 55%,#0a1830)}
[data-weather=cloudy-night] .scene-sky{background:linear-gradient(160deg,#0e192c,#243650 55%,#111d31)}
[data-weather=rain-night] .scene-sky{background:linear-gradient(160deg,#091421,#1b2a3c 55%,#0b1420)}
[data-weather=storm-night] .scene-sky{background:linear-gradient(160deg,#060b15,#18233a 55%,#070d18)}
[data-weather=norte-day] .scene-sky{background:linear-gradient(160deg,#17405a,#3b6b82 55%,#1a4560)}
[data-weather=norte-night] .scene-sky{background:linear-gradient(160deg,#08202e,#17394a 55%,#091d29)}

/* ── Encabezado ── */
.board-top{grid-area:top;display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;font-size:12px}
.brand-title{font-weight:600;letter-spacing:.16em;font-size:12px;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.place{display:flex;align-items:center;gap:7px;color:var(--mut);padding-left:18px;border-left:1px solid rgba(255,255,255,.25)}
.pin{font-size:15px;color:#fff}
.grow{flex:1}
.date-line{color:var(--mut);text-transform:capitalize}
.live-state{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.12em;color:var(--mut)}
.live-state i{width:7px;height:7px;border-radius:50%;background:#8ac8a0;box-shadow:0 0 10px #8ac8a0;animation:pulse 2s ease-in-out infinite}

/* ── Clima actual ── */
.current-weather{grid-area:hero;align-self:end;display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.hero-visual{width:clamp(170px,21vw,250px);aspect-ratio:1/1.08;margin:0 0 4px -6px;animation:float 5.5s ease-in-out infinite}
.hero-visual img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(0,0,0,.45))}
.hero-visual img.pop{animation:pop .7s cubic-bezier(.2,.9,.3,1.2)}
.temperature{font-size:clamp(88px,11vw,136px);font-weight:600;line-height:1;letter-spacing:-.04em}
.temperature sup{font-size:.28em;font-weight:400;letter-spacing:0;vertical-align:top;position:relative;top:.3em;margin-left:.08em}
.current-weather h1{margin:6px 0 0;font-size:clamp(22px,2.6vw,32px);font-weight:600;letter-spacing:-.01em}
.place-sub{margin:2px 0 0;font-size:15px;font-weight:300;color:var(--mut)}
.meta{display:flex;flex-wrap:wrap;gap:4px 10px;margin:10px 0 0;font-size:13px;color:var(--mut)}
.meta time{font-variant-numeric:tabular-nums;color:#fff;font-weight:500}.meta .sep{opacity:.4}
.quick-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.stat-block{display:grid;grid-template-columns:24px auto;column-gap:10px;align-items:center;min-width:112px;padding:10px 14px;border-radius:14px;background:var(--glass);border:1px solid var(--glass-b);backdrop-filter:blur(14px);text-shadow:none}
.stat-icon{grid-row:1/span 3;width:22px;height:22px;fill:none;stroke:#dbe8f0;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.stat-block span{font-size:10px;color:var(--mut)}.stat-block b{font-size:17px;font-weight:500}.stat-block small{font-size:9px;color:var(--mut)}
.updated{margin:14px 0 0;font-size:10px;color:rgba(255,255,255,.55)}

/* ── Paneles de vidrio ── */
.side{grid-area:side;align-self:center;display:flex;flex-direction:column;gap:16px;min-width:0}
.glass{border-radius:18px;padding:16px 18px 14px;background:var(--glass);border:1px solid var(--glass-b);backdrop-filter:blur(16px) saturate(1.2);box-shadow:0 12px 34px rgba(0,0,0,.22);animation:rise .7s ease both}
.glass+.glass{animation-delay:.12s}
.card-head{display:flex;align-items:center;gap:9px;padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.16);font-size:13px;font-weight:500}
.card-head svg{flex:0 0 17px;width:17px;height:17px;fill:none;stroke:#cfe6f2;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.forecast-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent;padding-top:14px}
.hour-card{flex:0 0 calc(100% / 6);min-width:58px;text-align:center;scroll-snap-align:start}
.hour-card span{display:block;font-size:12px;color:var(--mut)}
.hour-card.is-now span{color:#fff;font-weight:600}
.hour-card img{display:block;width:42px;height:42px;object-fit:contain;margin:8px auto 4px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.4))}
.hour-card b{display:block;font-size:14px;font-weight:600}
.hour-card small{display:block;margin-top:3px;font-size:10px;color:var(--mut)}.hour-card em{font-style:normal;font-size:8px}
.daily-list{padding-top:6px}
.day-row{display:grid;grid-template-columns:58px 40px 32px minmax(60px,1fr) 32px;align-items:center;gap:8px;padding:4px 0;font-size:13px}
.day-row .d{font-weight:500}.day-row .d small{margin-left:5px;font-size:10px;font-weight:300;color:var(--mut)}
.day-row img{justify-self:center;width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 3px 7px rgba(0,0,0,.4))}
.lo{text-align:right;color:var(--mut)}.hi{text-align:right;font-weight:600}
.range{position:relative;height:4px;border-radius:4px;background:rgba(255,255,255,.22)}
.range i{position:absolute;top:0;bottom:0;border-radius:4px;background:linear-gradient(90deg,#46c9e5,#e6f7ff)}
.range u{position:absolute;top:50%;width:8px;height:8px;border-radius:50%;background:#fff;transform:translate(-50%,-50%);box-shadow:0 0 8px #fff}
.empty-state{padding:12px 0;font-size:12px;color:var(--mut)}
footer{display:flex;justify-content:space-between;gap:15px;padding:18px 6px 0;color:rgba(230,238,246,.5);font-size:9px;letter-spacing:.08em}
footer a{color:rgba(245,249,255,.8);text-decoration:none}

/* ── Animaciones ── */
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes pop{from{opacity:0;transform:scale(.8) translateY(18px)}to{opacity:1;transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes pulse{50%{opacity:.35}}
@keyframes drift{from{transform:scale(1.06) translate(-1%,0)}to{transform:scale(1.14) translate(1%,-1%)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ── Responsive ── */
@media(max-width:900px){
  body{padding:10px}
  .weather-board{grid-template-columns:1fr;grid-template-areas:"top" "hero" "side";padding:22px 20px 24px;min-height:0;gap:16px}
  .place{border-left:0;padding-left:0}.grow{display:none}
  .hero-visual{width:170px}
}
@media(max-width:560px){
  .weather-board{border-radius:22px;padding:18px 14px 18px}
  .board-top{font-size:11px}.date-line{display:none}.live-state{margin-left:auto}
  .temperature{font-size:96px}
  .quick-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
  .stat-block{min-width:0;grid-template-columns:1fr;padding:9px 10px}.stat-icon{display:none}.stat-block b{font-size:15px}
  .hour-card{flex-basis:calc(100% / 5)}
  .day-row{grid-template-columns:50px 34px 28px minmax(40px,1fr) 28px;gap:6px;font-size:12px}.day-row img{width:32px;height:32px}
  footer{flex-direction:column}
}

/* Correcciones de interfaz: reloj local, sensación térmica y aviso de viento */
.hero-clock{display:inline-flex;align-items:center;gap:10px;width:max-content;margin:0 0 13px;padding:8px 13px;border:1px solid rgba(255,255,255,.17);border-radius:13px;background:rgba(7,18,30,.32);backdrop-filter:blur(14px);box-shadow:0 8px 22px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.08);text-shadow:none}
.clock-glyph{font-size:23px;line-height:1;color:#d8edf7}
.clock-copy{display:flex;flex-direction:column;gap:2px}
.clock-copy small{font-size:8px;letter-spacing:1.35px;font-weight:700;color:rgba(220,239,249,.72)}
.clock-copy time{font-size:17px;font-weight:700;letter-spacing:.5px;color:#fff;font-variant-numeric:tabular-nums}
.meta{margin-top:8px}
.feels-line{margin:7px 0 0;font-size:17px;font-weight:600;line-height:1.35;color:#f4f8fb;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.card-head{align-items:center;gap:12px}
.card-head .gust-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.card-head .gust-copy small{font-size:8px;letter-spacing:1.4px;font-weight:800;color:#b8d8e8}
.card-head #gust-notice-text{font-size:13px;font-weight:600;line-height:1.35;color:#fff}
.card-head .gust-copy em{font-size:8px;font-style:normal;letter-spacing:.8px;color:rgba(255,255,255,.58)}
.card-head .gust-arrow{font-size:21px;color:rgba(255,255,255,.8);padding:0 3px}
.card-head svg{width:25px;height:25px;flex-basis:25px;padding:4px;border:1px solid rgba(255,255,255,.15);border-radius:9px;background:rgba(255,255,255,.06)}
@media(max-width:560px){.hero-clock{margin-bottom:10px;padding:7px 11px}.clock-copy time{font-size:15px}.feels-line{font-size:15px}}

/* CLIMAPUERTO — distribución panorámica inspirada en la referencia */
body{font-family:Manrope,system-ui,sans-serif;padding:16px 12px 26px}
.page{width:min(1500px,100%)}
.weather-board{min-height:690px;padding:24px 34px 32px;grid-template-columns:minmax(320px,.95fr) minmax(220px,.78fr) minmax(360px,1.08fr);grid-template-rows:auto 1fr;grid-template-areas:"top top top" "hero mascot side";gap:18px 22px;border-radius:30px}
.board-top{grid-area:top;min-height:30px;padding-bottom:4px}
.current-weather{grid-area:hero;align-self:center;padding:8px 0 10px;max-width:470px}
.temperature{font-family:"Barlow Condensed",Manrope,sans-serif;font-size:clamp(100px,10.5vw,150px);font-weight:600;line-height:.88;letter-spacing:-.035em}
.current-weather h1{font-family:"Barlow Condensed",Manrope,sans-serif;font-size:clamp(28px,3vw,42px);line-height:1.02;font-weight:700;margin:20px 0 6px}
.place-sub{font-size:15px;margin-top:8px}
.hero-clock{margin:8px 0 10px}
.meta{margin-top:8px}
.feels-line{font-size:18px;margin-top:10px}
.quick-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:22px;width:100%}
.stat-block{min-width:0;grid-template-columns:22px minmax(0,1fr);gap:2px 8px;padding:10px 9px;border-radius:15px}
.stat-block b{font-size:clamp(14px,1.35vw,19px);white-space:nowrap}
.stat-block span{font-size:10px;white-space:nowrap}
.stat-block small{font-size:9px;white-space:nowrap}
.hero-visual{grid-area:mascot;align-self:center;justify-self:center;width:clamp(205px,24vw,340px);aspect-ratio:1/1.18;margin:0;position:relative;z-index:3;animation:float 5.5s ease-in-out infinite}
.hero-visual img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 26px rgba(0,0,0,.4))}
.side{grid-area:side;align-self:center;gap:14px}
.glass{padding:16px 16px 13px;border-radius:19px;background:rgba(10,30,43,.43);border-color:rgba(255,255,255,.14);backdrop-filter:blur(18px) saturate(1.2)}
.card-head{font-size:14px}
.gust-head{min-height:58px}
.forecast-strip{gap:2px;padding-top:12px;scrollbar-width:thin}
.hour-card{flex:1 0 54px;min-width:54px}
.hour-card img{width:42px;height:42px}
.daily-list{padding-top:8px}
.day-row{grid-template-columns:52px 36px 30px minmax(48px,1fr) 30px;gap:6px;padding:5px 0}
.day-row img{width:34px;height:34px}
footer{font-size:9px}
@media(max-width:1100px){
 .weather-board{grid-template-columns:minmax(280px,1fr) minmax(180px,.75fr);grid-template-areas:"top top" "hero mascot" "side side";gap:18px 20px}
 .side{display:grid;grid-template-columns:1fr 1fr;align-self:stretch}
 .hero-visual{width:clamp(190px,27vw,300px)}
}
@media(max-width:680px){
 body{padding:8px}
 .weather-board{grid-template-columns:1fr;grid-template-areas:"top" "hero" "mascot" "side";padding:18px 15px 20px;gap:12px;min-height:0;border-radius:22px}
 .board-top{gap:7px 10px;font-size:10px}
 .place{padding-left:10px}
 .date-line{display:none}
 .live-state{margin-left:auto;font-size:8px}
 .current-weather{align-self:auto;max-width:none;padding:12px 2px 0}
 .temperature{font-size:clamp(104px,27vw,138px)}
 .current-weather h1{font-size:34px;margin-top:13px}
 .hero-visual{width:min(66vw,255px);justify-self:center;margin:-4px auto 0;aspect-ratio:1/1.05}
 .side{display:flex;gap:12px}
 .glass{padding:14px 12px 12px}
 .hour-card{flex:0 0 calc(100% / 6);min-width:48px}
 .hour-card img{width:36px;height:36px}
 .hour-card b{font-size:13px}
 .hour-card small{font-size:9px}
 .quick-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .stat-block{grid-template-columns:1fr;padding:9px 7px;text-align:center}
 .stat-icon{display:none}
 .stat-block b{font-size:14px}
 .stat-block small{font-size:8px}
 .feels-line{font-size:17px}
 .day-row{grid-template-columns:48px 32px 28px minmax(40px,1fr) 28px;gap:5px}
 .day-row img{width:30px;height:30px}
 footer{flex-direction:column}
}

/* ── Mapa meteorológico interactivo ── */
.wind-map-section{margin-top:18px;padding:22px;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:linear-gradient(135deg,rgba(18,39,54,.94),rgba(8,19,30,.96));box-shadow:0 20px 55px rgba(0,0,0,.28)}
.wind-map-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.wind-map-kicker{font-size:9px;letter-spacing:2px;color:#8fc9e3;font-weight:800}
.wind-map-heading h2{margin:4px 0;font:700 26px "Barlow Condensed",Manrope,sans-serif;color:#fff}
.wind-map-heading p{margin:0;color:rgba(231,242,249,.68);font-size:12px}
.wind-map-open{display:inline-flex;align-items:center;gap:10px;padding:10px 15px;border:1px solid rgba(154,211,237,.28);border-radius:12px;color:#eaf8ff;text-decoration:none;font-size:12px;font-weight:700;background:rgba(93,173,211,.12);white-space:nowrap}
.wind-map-preview{position:relative;display:block;overflow:hidden;height:360px;border-radius:15px;background:#163e59}
.wind-map-preview iframe{width:100%;height:100%;border:0;pointer-events:none}
.wind-map-cta{position:absolute;right:14px;bottom:14px;padding:10px 14px;border-radius:10px;background:rgba(4,17,29,.86);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:11px;backdrop-filter:blur(12px)}
.wind-map-cta b{margin-left:8px}
@media(max-width:650px){.wind-map-section{padding:14px;border-radius:18px}.wind-map-heading{align-items:flex-start;flex-direction:column}.wind-map-heading h2{font-size:24px}.wind-map-open{width:100%;justify-content:space-between}.wind-map-preview{height:270px}}

.wind-map-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.wind-map-layer{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border:1px solid rgba(154,211,237,.28);border-radius:12px;color:#eaf8ff;text-decoration:none;font-size:12px;font-weight:700;background:rgba(93,173,211,.12);white-space:nowrap}
.wind-map-layer:hover,.wind-map-open:hover{background:rgba(93,173,211,.24);border-color:rgba(154,211,237,.55)}
@media(max-width:650px){.wind-map-actions{width:100%;justify-content:stretch}.wind-map-layer,.wind-map-open{flex:1}.wind-map-open{width:auto}}

.weather-timestamps{display:flex;flex-wrap:wrap;gap:5px 18px;margin-top:12px;font-size:10px;line-height:1.5;color:rgba(255,255,255,.66)}
.weather-timestamps span{display:inline-flex;align-items:center;gap:5px}
.weather-timestamps span::before{content:"";width:5px;height:5px;border-radius:50%;background:#8ecce7;display:inline-block;flex:0 0 5px}
@media(max-width:560px){.weather-timestamps{flex-direction:column;gap:3px;font-size:9px}}



/* ── Optimización móvil CLIMAPUERTO ── */
html,body{width:100%;max-width:100%;overflow-x:hidden}
@media(max-width:680px){
  body{padding:6px 6px 18px}
  .page{width:100%;min-width:0}
  .weather-board{
    width:100%;min-width:0;min-height:0;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto auto;
    grid-auto-rows:auto;
    grid-template-areas:"top" "hero" "mascot" "side";
    gap:14px;padding:17px 13px 16px;border-radius:20px;
    overflow:hidden;
  }
  .board-top{min-width:0;display:flex;flex-wrap:wrap;gap:8px 10px}
  .brand-title{font-size:11px;letter-spacing:.13em}
  .place{font-size:10px;padding-left:8px;min-width:0}
  .live-state{font-size:8px;white-space:nowrap}
  .current-weather{width:100%;min-width:0;max-width:none;align-self:stretch;padding:8px 1px 0}
  .temperature{font-size:clamp(88px,25vw,116px);line-height:.9}
  .current-weather h1{font-size:clamp(27px,7vw,34px);line-height:1.08;margin:10px 0 3px}
  .place-sub{font-size:12px}
  .hero-clock{margin:7px 0 7px}
  .feels-line{font-size:14px;margin-top:7px}
  .quick-stats{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:15px}
  .stat-block{min-width:0;min-height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:9px 4px;text-align:center}
  .stat-icon{display:block;grid-row:auto;width:21px;height:21px;margin-bottom:2px}
  .stat-block span{font-size:10px;white-space:normal}
  .stat-block b{font-size:clamp(13px,3.8vw,16px);white-space:nowrap}
  .stat-block small{font-size:8px;white-space:normal;line-height:1.2}
  .weather-timestamps{font-size:9px;line-height:1.4;margin-top:10px}
  .hero-visual{
    grid-area:mascot;display:block;position:relative;
    width:min(76vw,270px);height:auto;aspect-ratio:1/1.05;
    min-height:220px;max-height:290px;justify-self:center;align-self:center;
    margin:0 auto;overflow:visible;z-index:3;
  }
  .hero-visual img{width:100%;height:100%;object-fit:contain;object-position:center}
  .side{grid-area:side;width:100%;min-width:0;display:flex;flex-direction:column;gap:11px}
  .glass{width:100%;min-width:0;padding:13px 11px 11px;border-radius:17px}
  .gust-head{min-height:0}
  .card-head #gust-notice-text{font-size:12px}
  .forecast-strip{
    width:100%;max-width:100%;min-width:0;display:flex;
    overflow-x:auto;overflow-y:hidden;gap:8px;
    padding:12px 2px 9px;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    scrollbar-width:thin;
  }
  .hour-card{flex:0 0 62px;min-width:62px;scroll-snap-align:start}
  .hour-card img{width:42px;height:42px;margin:6px auto 3px}
  .hour-card b{font-size:14px}
  .hour-card small{font-size:9px;white-space:nowrap}
  .daily-list{width:100%;min-width:0}
  .day-row{width:100%;grid-template-columns:43px 34px 27px minmax(25px,1fr) 27px;gap:5px;padding:7px 0;font-size:11px}
  .day-row .d small{display:block;margin:0;font-size:9px}
  .day-row img{width:32px;height:32px}
  .range{min-width:0}
  .wind-map-section{margin-top:12px;padding:13px}
  .wind-map-heading p{font-size:11px;line-height:1.45}
  .wind-map-preview{height:170px}
  .wind-map-preview iframe{min-width:0}
  footer{padding:14px 4px 0;font-size:8px;line-height:1.5;overflow-wrap:anywhere}
}
@media(max-width:380px){
  .weather-board{padding-left:10px;padding-right:10px}
  .quick-stats{gap:4px}
  .stat-block{padding:8px 2px}
  .stat-block b{font-size:12px}
  .day-row{grid-template-columns:38px 30px 25px minmax(20px,1fr) 25px;gap:4px}
}


/* ── Tarjeta meteorológica simplificada para compartir ── */
.share-weather-trigger{border:1px solid rgba(205,235,250,.34);border-radius:999px;padding:8px 12px;background:rgba(7,24,38,.34);color:#f4fbff;font:700 10px Manrope,system-ui,sans-serif;letter-spacing:.04em;cursor:pointer;backdrop-filter:blur(10px);white-space:nowrap}
.share-weather-trigger:hover{background:rgba(91,175,211,.28);border-color:rgba(205,235,250,.7)}
.share-weather-modal[hidden]{display:none}
.share-weather-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:22px}
.share-weather-backdrop{position:absolute;inset:0;background:rgba(2,9,16,.82);backdrop-filter:blur(9px)}
.share-weather-dialog{position:relative;z-index:1;width:min(680px,100%);max-height:calc(100vh - 44px);overflow:auto}
.share-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;color:#b9d6e6;font-size:10px;font-weight:800;letter-spacing:.12em}
.share-toolbar>div{display:flex;gap:8px}
.share-action{border:1px solid rgba(201,229,242,.3);border-radius:9px;padding:9px 12px;background:#17364a;color:#f4fbff;font:700 11px Manrope,system-ui,sans-serif;cursor:pointer}
.share-action.secondary{background:rgba(255,255,255,.08)}
.share-weather-card{position:relative;overflow:hidden;min-height:470px;padding:34px 40px 22px;border:1px solid rgba(255,255,255,.25);border-radius:25px;color:#fff;background:radial-gradient(ellipse at 82% 18%,rgba(109,170,197,.68),transparent 45%),linear-gradient(125deg,#17394d 0%,#315c72 55%,#426e82 100%);box-shadow:0 28px 75px rgba(0,0,0,.42);font-family:Manrope,system-ui,sans-serif}
.share-weather-card:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,17,28,.45),transparent 70%),linear-gradient(0deg,rgba(3,15,25,.38),transparent 45%);pointer-events:none}
.share-card-top,.share-main,.share-metrics,.share-times,.share-foot{position:relative;z-index:1}
.share-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.share-brand{font-size:14px;font-weight:800;letter-spacing:.18em}
.share-location{margin-top:7px;color:rgba(240,249,255,.78);font-size:12px}
.share-date{font-size:11px;color:rgba(240,249,255,.72);text-align:right;text-transform:capitalize}
.share-main{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:240px;padding:12px 0 4px}
.share-condition{min-width:0}
.share-temp{display:flex;align-items:flex-start;font:600 clamp(88px,11vw,136px)/1 "Barlow Condensed",Manrope,sans-serif;letter-spacing:-.04em}
.share-temp sup{font:400 .28em/1 Manrope,sans-serif;letter-spacing:0;position:relative;top:.3em;margin-left:.08em}
.share-condition h2{margin:14px 0 4px;font:700 clamp(25px,4vw,36px)/1.05 "Barlow Condensed",Manrope,sans-serif;color:#fff}
.share-condition p{margin:6px 0;color:rgba(245,251,255,.85);font-size:14px}
.share-condition .share-range{margin-top:14px;font-size:12px;color:rgba(230,244,251,.7)}
.share-main img{width:clamp(145px,24vw,235px);height:230px;object-fit:contain;filter:drop-shadow(0 14px 20px rgba(0,0,0,.35))}
.share-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.share-metrics>div{display:flex;flex-direction:column;gap:5px;padding:13px 16px;border:1px solid rgba(255,255,255,.2);border-radius:14px;background:rgba(5,23,36,.32);backdrop-filter:blur(12px)}
.share-metrics span{font-size:9px;letter-spacing:.12em;color:rgba(232,246,253,.7);font-weight:800}
.share-metrics b{font-size:clamp(17px,2.4vw,23px);font-weight:700;white-space:nowrap}
.share-metrics small{font-size:10px;color:rgba(232,246,253,.72)}
.share-times{display:flex;flex-wrap:wrap;gap:5px 18px;margin-top:16px;color:rgba(236,247,252,.72);font-size:10px}
.share-times span:before{content:"•";margin-right:6px;color:#9bdcf4}
.share-foot{margin-top:12px;padding-top:9px;border-top:1px solid rgba(255,255,255,.15);font-size:9px;letter-spacing:.1em;color:rgba(236,247,252,.6)}
.share-hint{margin:10px 0 0;text-align:center;color:rgba(232,245,252,.7);font-size:11px}
body.share-modal-open{overflow:hidden}
@media(max-width:680px){
 .share-weather-modal{padding:10px}
 .share-weather-dialog{max-height:calc(100vh - 20px)}
 .share-toolbar{align-items:flex-start;flex-direction:column}
 .share-weather-card{min-height:0;padding:22px 18px 16px;border-radius:18px}
 .share-main{min-height:180px;gap:5px}
 .share-main img{width:35vw;height:170px}
 .share-temp{font-size:clamp(76px,20vw,104px)}
 .share-condition h2{margin-top:9px}
 .share-condition p{font-size:12px}
 .share-metrics{gap:6px}
 .share-metrics>div{padding:10px 8px}
 .share-metrics span{font-size:8px}
 .share-metrics b{font-size:clamp(13px,3.7vw,18px)}
 .share-metrics small{font-size:8px}
 .share-times{font-size:8px;gap:4px 10px}
}

.share-action:disabled{opacity:.65;cursor:wait}


/* Estado resumido de navegación Mediport */
.board-top{position:relative;min-height:82px;align-items:flex-start}
.port-status-strip{position:absolute;left:44%;top:0;transform:translateX(-50%);display:grid;gap:4px;width:330px;min-width:330px;padding:7px 10px;color:#fff;font-size:12px;line-height:1.2;text-align:center;background:rgba(8,34,51,.34);border:1px solid rgba(226,244,252,.14);border-radius:9px;z-index:2}
.port-status-head,.port-status-row{display:grid;grid-template-columns:94px 1fr 1fr;align-items:center;gap:7px;text-align:center}
.port-status-head{color:rgba(239,248,253,.82);font-size:10px;font-weight:700;white-space:nowrap}
.port-status-row b{font:700 12px "Barlow Condensed",Manrope,sans-serif;text-align:left;white-space:nowrap}
.port-status-value{font-size:12px;font-weight:700;white-space:nowrap}
.port-status-value.is-closed{color:#ffc0b7}
.port-status-value.is-open{color:#c6f5d2}
.port-status-value.is-unknown{color:rgba(255,255,255,.75)}
.port-status-icon{display:inline-block;margin-left:5px;font-size:12px;vertical-align:1px}
.port-status-value.is-open .port-status-icon{font-size:15px;font-weight:900}
.share-port-status{margin:12px 0 8px;padding:10px 0;border-top:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18);font-size:10px}
.share-port-status>b{display:block;margin-bottom:7px;font-size:9px;letter-spacing:.1em}
.share-port-status>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:4px 0;color:rgba(240,249,255,.82)}
.share-port-status>div>span:first-child{font-weight:800;color:#fff}
.share-port-status strong{color:#fff}
@media(max-width:900px){
 .board-top{min-height:0;row-gap:9px}
 .port-status-strip{position:static;transform:none;order:5;width:100%;min-width:0;max-width:460px;margin:4px auto 0}
 .board-top .grow{display:none}
}
@media(max-width:520px){
 .port-status-head,.port-status-row{grid-template-columns:90px 1fr 1fr;gap:5px}
 .port-status-head{font-size:9px}
 .port-status-row b{font-size:12px}
 .port-status-value{font-size:12px}
}

/* Móvil: personaje junto a las condiciones actuales, no debajo */
@media(max-width:680px){
  .weather-board{
    grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
    grid-template-rows:auto;
    grid-template-areas:"top top";
    column-gap:5px;
    row-gap:8px;
    align-items:start;
  }
  .board-top{grid-column:1 / -1;grid-row:1}
  .current-weather{display:contents}
  .temperature{grid-column:1;grid-row:2;align-self:end;font-size:clamp(76px,20vw,100px);line-height:.86;margin-top:3px}
  .current-weather h1{grid-column:1;grid-row:3;align-self:start;font-size:clamp(23px,6.2vw,29px);margin:5px 0 2px;line-height:1.02}
  .place-sub{grid-column:1;grid-row:4;font-size:11px;margin:0}
  .hero-clock{grid-column:1;grid-row:5;max-width:100%;margin:5px 0 2px;padding:6px 8px;gap:7px}
  .clock-glyph{font-size:19px}
  .clock-copy small{font-size:7px;letter-spacing:.8px}
  .clock-copy time{font-size:13px;white-space:nowrap}
  .meta{grid-column:1;grid-row:6;font-size:11px;margin:3px 0 0}
  .feels-line{grid-column:1;grid-row:7;font-size:13px;margin:2px 0 0}
  .hero-visual{
    grid-column:2;grid-row:2 / span 6;
    display:block;position:relative;width:100%;height:auto;
    min-height:0;max-height:none;aspect-ratio:1/1.12;
    justify-self:center;align-self:center;margin:0;
    overflow:visible;z-index:3;
  }
  .hero-visual img{width:100%;height:100%;object-fit:contain;object-position:center}
  .quick-stats{grid-column:1 / -1;grid-row:8;width:100%;margin-top:7px}
  .weather-timestamps{grid-column:1 / -1;grid-row:9;width:100%}
  .side{grid-column:1 / -1;grid-row:10}
}
@media(max-width:390px){
  .weather-board{column-gap:2px;padding-left:10px;padding-right:10px}
  .temperature{font-size:clamp(70px,19vw,82px)}
  .hero-visual{aspect-ratio:1/1.2}
  .clock-copy time{font-size:12px}
}

/* Móvil: layout estable sin recortar datos ni desordenar la temperatura */
@media(max-width:680px){
  .weather-board{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    grid-template-areas:"top" "hero" "side"!important;
    grid-auto-flow:row!important;
    gap:12px!important;
    min-height:0!important;
    padding:16px 12px 18px!important;
    overflow:hidden!important;
  }
  .board-top{grid-area:top!important;grid-column:1!important;grid-row:auto!important;min-height:0;position:relative;z-index:5}
  .current-weather{
    grid-area:hero!important;grid-column:1!important;grid-row:auto!important;
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    position:relative!important;width:100%!important;max-width:none!important;
    min-width:0!important;padding:8px 0 0!important;margin:0!important;
    box-sizing:border-box;
  }
  .temperature,.current-weather h1,.place-sub,.hero-clock,.meta,.feels-line{
    position:relative!important;z-index:2;max-width:54%!important;
  }
  .temperature{font-size:clamp(76px,19vw,100px)!important;line-height:.88!important;margin:0!important}
  .temperature sup{font-size:.28em!important;top:.3em!important}
  .current-weather h1{font-size:clamp(23px,6vw,29px)!important;line-height:1.04!important;margin:7px 0 2px!important}
  .place-sub{font-size:11px!important;margin:0!important}
  .hero-clock{width:max-content!important;max-width:54%!important;margin:7px 0 5px!important;padding:6px 8px!important}
  .clock-copy small{font-size:7px!important}
  .clock-copy time{font-size:12px!important;white-space:nowrap}
  .meta{font-size:10px!important;margin:4px 0 0!important;line-height:1.25}
  .feels-line{font-size:12px!important;margin:4px 0 0!important;line-height:1.25}
  .hero-visual{
    grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
    position:absolute!important;top:150px!important;right:1%!important;
    width:49%!important;height:auto!important;min-height:0!important;
    max-height:290px!important;aspect-ratio:1/1.15!important;
    display:block!important;margin:0!important;justify-self:auto!important;
    align-self:auto!important;z-index:3!important;overflow:visible!important;
  }
  .hero-visual img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
  .quick-stats{
    position:relative!important;z-index:4;grid-column:auto!important;grid-row:auto!important;
    width:100%!important;max-width:none!important;margin:14px 0 0!important;
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;
  }
  .stat-block{min-width:0!important;min-height:78px!important;padding:7px 3px!important;gap:3px!important}
  .stat-block span{font-size:9px!important}
  .stat-block b{font-size:clamp(12px,3.5vw,15px)!important}
  .stat-block small{font-size:7px!important;white-space:normal!important}
  .weather-timestamps{grid-column:auto!important;grid-row:auto!important;width:100%!important;font-size:8px!important;line-height:1.35!important;margin-top:7px!important}
  .side{grid-area:side!important;grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:10px!important}
  .glass{width:100%!important;min-width:0!important}
}
@media(max-width:390px){
  .weather-board{padding-left:9px!important;padding-right:9px!important}
  .hero-visual{top:145px!important;width:47%!important;right:0!important}
  .temperature{font-size:clamp(70px,18vw,84px)!important}
  .hero-clock{max-width:56%!important}
}

/* Prioridad visual: la temperatura nunca debe quedar detrás del personaje */
@media(max-width:680px){
  .current-weather{position:relative!important;z-index:5!important}
  .temperature{
    position:relative!important;z-index:8!important;
    display:block!important;width:max-content!important;
    max-width:none!important;min-width:0!important;
    isolation:isolate;
    color:#fff!important;
    text-shadow:0 2px 18px rgba(0,0,0,.42)!important;
  }
  .temperature sup{position:relative!important;z-index:9!important}
  .hero-visual{z-index:3!important;pointer-events:none}
}

/* Corrección definitiva móvil: temperatura encima de la condición */
@media(max-width:680px){
  .weather-board{position:relative!important}
  .current-weather{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto auto auto auto auto auto!important;
    align-content:start!important;justify-items:start!important;align-items:start!important;
    position:relative!important;z-index:6!important;
    width:100%!important;min-height:0!important;padding:8px 0 0!important;
    margin:0!important;gap:0!important;
  }
  .current-weather>.temperature{
    grid-column:1!important;grid-row:1!important;
    position:relative!important;inset:auto!important;float:none!important;
    justify-self:start!important;align-self:start!important;
    order:0!important;transform:none!important;
    width:max-content!important;max-width:54%!important;
    margin:0!important;padding:0!important;
    font-size:clamp(78px,20vw,100px)!important;line-height:.88!important;
    text-align:left!important;z-index:8!important;
  }
  .current-weather>.temperature sup{font-size:.28em!important;position:relative!important;top:.3em!important}
  .current-weather>h1{grid-column:1!important;grid-row:2!important;margin:7px 0 2px!important;justify-self:start!important;max-width:54%!important}
  .current-weather>.place-sub{grid-column:1!important;grid-row:3!important;margin:0!important;justify-self:start!important;max-width:54%!important}
  .current-weather>.hero-clock{grid-column:1!important;grid-row:4!important;margin:7px 0 5px!important;justify-self:start!important;max-width:54%!important}
  .current-weather>.meta{grid-column:1!important;grid-row:5!important;margin:4px 0 0!important;justify-self:start!important;max-width:54%!important}
  .current-weather>.feels-line{grid-column:1!important;grid-row:6!important;margin:4px 0 0!important;justify-self:start!important;max-width:54%!important}
  .current-weather>.quick-stats{grid-column:1!important;grid-row:7!important;margin:14px 0 0!important;width:100%!important}
  .current-weather>.weather-timestamps{grid-column:1!important;grid-row:8!important;width:100%!important;margin:7px 0 0!important}
  .hero-visual{position:absolute!important;top:150px!important;right:1%!important;left:auto!important;bottom:auto!important;width:47%!important;height:auto!important;max-height:280px!important;z-index:4!important;transform:none!important}
}
@media(max-width:390px){
  .current-weather>.temperature{font-size:clamp(74px,19vw,90px)!important}
  .hero-visual{top:150px!important;width:46%!important;right:0!important}
}



/* Dos referencias de racha: máximo previsto del día y lectura más reciente */
.stat-block small strong{display:block;margin-top:2px;font-size:9px;font-weight:600;color:#d7edf7}
.share-metrics small strong{display:block;margin-top:3px;font-size:10px;font-weight:600;color:#e4f5fc}

/* Viento sostenido y rachas máximas por día */
.day-wind-info{grid-column:3 / 6;grid-row:2;display:block;margin-top:-1px;font-size:9px;line-height:1.25;color:#b9d9e8;font-weight:500;white-space:nowrap}
@media(max-width:680px){.day-wind-info{font-size:8px;grid-column:3 / 6}}

/* Combinaciones: niebla nocturna + modificadores de frío/calor sobre cualquier base */
body[data-weather=fog-night]{--amb:#1a2a38}
[data-weather=fog-night] .scene-sky{background:linear-gradient(160deg,#0d1824,#2a3a4a 55%,#101c28)}
.scene-sky::after{content:"";position:absolute;inset:0;opacity:0;transition:opacity 1.6s;background:linear-gradient(160deg,rgba(140,195,255,.3),rgba(200,230,255,.12) 55%,rgba(110,160,230,.28))}
.weather-board[data-cold="1"] .scene-sky::after{opacity:1}
.weather-board[data-hot="1"] .scene-sky::after{opacity:1;background:linear-gradient(160deg,rgba(255,170,70,.22),rgba(255,210,120,.08) 55%,rgba(255,140,60,.2))}


/* Gráfica de rachas por hora · próximas 24 horas */
.hourly-gust-section{margin:16px 0 22px;padding:18px 20px 16px;border:1px solid rgba(207,235,248,.18);border-radius:18px;background:linear-gradient(135deg,rgba(9,31,47,.88),rgba(17,51,69,.78));box-shadow:0 14px 38px rgba(0,0,0,.16);color:#f4fbff;overflow:hidden}
.hourly-gust-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.hourly-gust-kicker{font-size:9px;font-weight:800;letter-spacing:.16em;color:#9bc9dc}
.hourly-gust-heading h2{margin:3px 0 0;font:700 23px "Barlow Condensed",Manrope,sans-serif}
.hourly-gust-heading p{margin:2px 0 0;color:rgba(225,243,251,.65);font-size:11px}
#hourly-gust-summary{font-size:12px;color:#e8f6fc;text-align:right}
.hourly-gust-legend{display:flex;flex-wrap:wrap;gap:12px;margin:13px 0 4px;color:rgba(229,244,251,.7);font-size:9px}
.hourly-gust-legend span{display:flex;align-items:center;gap:5px}
.hourly-gust-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}
.gust-green{background:#7fd1a0}.gust-yellow{background:#f0c04a}.gust-red{background:#ef7b72}
.hourly-gust-chart{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));align-items:end;gap:5px;min-height:142px;padding:20px 7px 2px;overflow-x:auto;scrollbar-width:thin}
.gust-hour{height:118px;min-width:0;display:grid;grid-template-rows:14px minmax(0,1fr) 14px;align-items:end;text-align:center}
.gust-hour-value{font-size:9px;line-height:14px;color:#eaf6fb;font-weight:700}
.gust-hour-track{height:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid rgba(218,239,248,.24);background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.005))}
.gust-hour-track i{display:block;width:100%;max-width:25px;min-height:3px;border-radius:4px 4px 0 0;box-shadow:0 0 12px rgba(255,255,255,.08)}
.gust-hour-label{font-size:8px;line-height:14px;color:rgba(216,237,247,.65)}
@media(max-width:680px){.hourly-gust-section{margin:12px 0 18px;padding:14px 11px 12px;border-radius:15px}.hourly-gust-heading h2{font-size:21px}.hourly-gust-heading p{font-size:10px}#hourly-gust-summary{font-size:10px;max-width:45%}.hourly-gust-chart{grid-template-columns:repeat(24,24px);gap:4px;min-height:132px;padding-left:2px;padding-right:2px}.gust-hour{height:108px}.gust-hour-value{font-size:8px}}

.weather-board>.hourly-gust-section{grid-column:1 / -1;grid-row:3;position:relative;z-index:3;margin:0;align-self:stretch;background:rgba(8,30,44,.48);box-shadow:inset 0 1px 0 rgba(255,255,255,.035);border-color:rgba(207,235,248,.16)}
.clock-date{font-size:9px;line-height:1.15;color:rgba(220,239,249,.72);font-weight:600;text-transform:capitalize}
.stat-block small strong{display:block;margin-top:2px;font-size:9px;font-weight:600;color:#d7edf7}
@media(max-width:680px){.weather-board>.hourly-gust-section{grid-column:1;grid-row:auto;margin-top:2px}.clock-date{font-size:8px}.stat-block small strong{font-size:8px}}

/* Fondo ambiental desenfocado: acompaña al tablero sin interferir con sus capas animadas */
body{position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 15%,var(--amb),#05080c 78%)}
body::before{content:"";position:fixed;inset:-34px;z-index:-1;pointer-events:none;background:var(--weather-photo) center/cover no-repeat;filter:blur(24px) brightness(.38) saturate(.82);opacity:.72;transform:scale(1.12);animation:drift 55s ease-in-out infinite alternate;transition:opacity 1.6s,filter 1.6s}
.weather-board{position:relative;z-index:0}

/* Vista compacta para escritorio: tablero completo sin sacrificar el área de pronóstico */
@media(min-width:1101px){
 body{padding:10px 12px 18px}
 .page{width:min(1500px,100%)}
 .weather-board{
  min-height:calc(100vh - 28px);
  height:auto;
  padding:17px 28px 18px;
  grid-template-rows:auto minmax(560px,auto) auto;
  gap:12px 18px;
  border-radius:26px;
  overflow:visible;
 }
 .weather-board>.scene-sky,.weather-board>.scene-photo,.weather-board>.scene-fx,.weather-board>.scene-vig{
  position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;overflow:hidden;
 }
 .side{align-self:start;gap:9px;min-width:0}
 .current-weather{align-self:center}
 .weather-board>.hourly-gust-section{grid-column:1 / -1;grid-row:3;min-width:0}
 .marine-card{padding:10px 13px 9px}
 .marine-heading{margin-bottom:7px}
 .marine-heading h2{font-size:15px}
 .marine-metrics{gap:5px}
 .marine-metrics>div{padding:6px 8px}
 .marine-metrics small{font-size:8px}
 .marine-metrics b{font-size:13px}
 .marine-footer{font-size:7px;margin-top:6px}
 .marine-hourly{margin-top:6px;padding-top:6px}
 .marine-hourly small{font-size:8px}
 .marine-hourly b{font-size:10px}
 .board-top{min-height:25px;padding-bottom:0;font-size:10px;gap:5px 13px}
 .brand-title{font-size:11px}
 .current-weather{padding:0;align-self:center}
 .temperature{font-size:clamp(86px,8vw,116px)}
 .current-weather h1{font-size:clamp(25px,2.2vw,34px);margin:12px 0 3px}
 .place-sub{font-size:13px;margin-top:4px}
 .hero-clock{margin:6px 0 7px;padding:6px 10px;gap:8px}
 .clock-glyph{font-size:19px}
 .clock-copy time{font-size:15px}
 .clock-copy small{font-size:7px}
 .clock-date{font-size:8px}
 .meta{font-size:11px;margin-top:5px}
 .feels-line{font-size:15px;margin-top:6px}
 .quick-stats{gap:6px;margin-top:14px}
 .stat-block{padding:7px 7px;border-radius:12px;grid-template-columns:18px minmax(0,1fr);gap:2px 6px}
 .stat-icon{width:18px;height:18px}
 .stat-block span{font-size:9px}
 .stat-block b{font-size:15px}
 .stat-block small{font-size:8px}
 .weather-timestamps{font-size:8px;gap:4px 10px;margin-top:8px}
 .hero-visual{width:clamp(190px,20vw,285px);max-height:330px}
 .side{gap:9px}
 .glass{padding:11px 13px 10px;border-radius:16px}
 .card-head{font-size:12px;padding-bottom:8px}
 .gust-head{min-height:47px}
 .card-head #gust-notice-text{font-size:12px}
 .forecast-strip{padding-top:8px}
 .hour-card{min-width:43px}
 .hour-card span{font-size:10px}
 .hour-card img{width:34px;height:34px;margin:5px auto 2px}
 .hour-card b{font-size:12px}
 .hour-card small{font-size:8px}
 .daily-list{padding-top:4px}
 .day-row{padding:2px 0;grid-template-columns:45px 30px 27px minmax(40px,1fr) 27px;gap:5px;font-size:11px}
 .day-row img{width:29px;height:29px}
 .day-wind-info{font-size:8px}
 .weather-board>.hourly-gust-section{padding:10px 17px 9px;border-radius:15px}
 .hourly-gust-heading h2{font-size:20px}
 .hourly-gust-heading p{font-size:9px}
 .hourly-gust-kicker{font-size:8px}
 .hourly-gust-legend{margin:7px 0 1px;font-size:8px;gap:10px}
 .hourly-gust-chart{min-height:102px;height:102px;padding:10px 5px 0;gap:4px}
 .gust-hour{height:88px;grid-template-rows:12px minmax(0,1fr) 12px}
 .gust-hour-value{font-size:8px;line-height:12px}
 .gust-hour-label{font-size:10px;line-height:14px;font-weight:700;color:rgba(235,247,253,.82)}
}
@media(min-width:1101px) and (max-height:780px){
 .weather-board{height:auto;min-height:0}
 .hero-visual{width:clamp(170px,17vw,235px)}
 .hourly-gust-chart{height:88px;min-height:88px}
 .gust-hour{height:76px}
}
@media(prefers-reduced-motion:reduce){body::before{animation:none}}


/* FONDO ÚNICO DEL PUERTO: la fotografía permanece y la atmósfera cambia suavemente */
:root{--weather-photo:url("FONDO.png?v=weather-background-20261125")}
.scene-photo{filter:brightness(1) saturate(1.04) contrast(1.02);transition:filter 2.2s ease,opacity 2.2s ease}
body::before{transition:filter 2.2s ease,opacity 2.2s ease}
body[data-weather="clear-day"] .scene-photo{filter:brightness(1.04) saturate(1.12) contrast(1.02)}
body[data-weather="partly-cloudy-day"] .scene-photo{filter:brightness(.94) saturate(.96) contrast(1.04)}
body[data-weather="cloudy-day"] .scene-photo{filter:brightness(.76) saturate(.72) contrast(1.1)}
body[data-weather="rain-day"] .scene-photo{filter:brightness(.62) saturate(.72) contrast(1.16) hue-rotate(5deg)}
body[data-weather="storm-day"] .scene-photo{filter:brightness(.43) saturate(.62) contrast(1.22) hue-rotate(9deg)}
body[data-weather="fog-day"] .scene-photo{filter:brightness(.84) saturate(.55) contrast(.86)}
body[data-weather="clear-night"] .scene-photo{filter:brightness(.34) saturate(.78) contrast(1.12) hue-rotate(12deg)}
body[data-weather="cloudy-night"] .scene-photo{filter:brightness(.27) saturate(.62) contrast(1.12) hue-rotate(12deg)}
body[data-weather="rain-night"] .scene-photo{filter:brightness(.2) saturate(.62) contrast(1.2) hue-rotate(14deg)}
body[data-weather="storm-night"] .scene-photo{filter:brightness(.13) saturate(.56) contrast(1.25) hue-rotate(18deg)}
body[data-weather="fog-night"] .scene-photo{filter:brightness(.31) saturate(.42) contrast(.88) hue-rotate(8deg)}
body[data-weather="clear-day"]::before{filter:blur(24px) brightness(.4) saturate(.95)}
body[data-weather="partly-cloudy-day"]::before{filter:blur(24px) brightness(.35) saturate(.82)}
body[data-weather="cloudy-day"]::before{filter:blur(24px) brightness(.29) saturate(.68)}
body[data-weather="rain-day"]::before{filter:blur(24px) brightness(.24) saturate(.65) hue-rotate(5deg)}
body[data-weather="storm-day"]::before{filter:blur(24px) brightness(.18) saturate(.6) hue-rotate(10deg)}
body[data-weather="fog-day"]::before{filter:blur(24px) brightness(.34) saturate(.5)}
body[data-weather="clear-night"]::before{filter:blur(24px) brightness(.16) saturate(.65) hue-rotate(15deg)}
body[data-weather="cloudy-night"]::before{filter:blur(24px) brightness(.13) saturate(.55) hue-rotate(15deg)}
body[data-weather="rain-night"]::before{filter:blur(24px) brightness(.1) saturate(.5) hue-rotate(18deg)}
body[data-weather="storm-night"]::before{filter:blur(24px) brightness(.07) saturate(.45) hue-rotate(20deg)}
body[data-weather="fog-night"]::before{filter:blur(24px) brightness(.16) saturate(.4)}
@media(prefers-reduced-motion:reduce){.scene-photo,body::before{transition:none}}

body[data-weather="fog-night"] .scene-photo{filter:brightness(.24) saturate(.5) contrast(.95) hue-rotate(12deg)}

/* ── Condiciones marítimas integradas en el tablero principal ── */
.marine-card{padding:13px 16px 12px}
.marine-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.marine-heading small{display:block;color:#9bc9dc;font-size:8px;font-weight:800;letter-spacing:.13em}
.marine-heading h2{margin:3px 0 0;font-size:17px;font-weight:700}
.marine-state{flex:0 0 auto;padding:5px 9px;border-radius:20px;background:rgba(107,194,224,.17);border:1px solid rgba(173,226,244,.2);font-size:10px;font-weight:700}
.marine-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.marine-metrics>div{min-width:0;padding:8px 9px;border-radius:10px;background:rgba(4,25,39,.2);border:1px solid rgba(255,255,255,.1)}
.marine-metrics small{display:block;font-size:9px;color:var(--mut);white-space:nowrap}
.marine-metrics b{display:block;margin-top:3px;font-size:15px;font-weight:700;white-space:nowrap}
.marine-footer{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:8px;color:rgba(231,244,250,.62)}
.marine-hourly{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:9px;padding-top:8px;border-top:1px solid rgba(255,255,255,.12)}
.marine-hourly>div{text-align:center;min-width:0}
.marine-hourly small{display:block;font-size:9px;color:var(--mut)}
.marine-hourly b{display:block;font-size:11px;margin-top:2px}
@media(max-width:680px){.marine-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.marine-footer{flex-direction:column;gap:3px}.marine-hourly{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:8px}}

/* Evita que el panel marítimo invada la gráfica inferior: la fila central crece según su contenido. */
@media(min-width:1101px){
 .weather-board{grid-template-rows:auto minmax(560px,auto) auto!important;height:auto!important}
 .weather-board>.side{grid-row:2;align-self:start}
 .weather-board>.hourly-gust-section{grid-row:3;align-self:start;margin-top:0}
}

/* ── Distribución escritorio: tablero en dos columnas, como la referencia ── */
@media(min-width:681px){
 .weather-board{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);grid-template-rows:auto minmax(410px,auto) auto;grid-template-areas:"top top" "hero side" "gust marine";gap:12px 16px;height:auto!important;min-height:0!important;overflow:hidden;padding:18px 20px 16px}
 .board-top{grid-area:top;min-width:0}
 .current-weather{grid-area:hero;align-self:start;justify-self:start;width:58%;max-width:470px;min-width:280px;padding:12px 0 8px;z-index:4}
 .hero-visual{grid-area:hero;align-self:center;justify-self:end;width:clamp(190px,22vw,300px);max-height:320px;margin:0 1% 0 0;z-index:3;pointer-events:none}
 .side{grid-area:side;align-self:start;display:flex;flex-direction:column;gap:9px;min-width:0}
 .weather-board>.hourly-gust-section{grid-area:gust;grid-column:auto;grid-row:auto;align-self:stretch;min-width:0;margin:0;padding:12px 13px 10px}
 .weather-board>.marine-card{grid-area:marine;align-self:stretch;min-width:0;margin:0;padding:12px 13px 10px}
 .marine-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .marine-hourly{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hourly-gust-chart{grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;min-height:120px;height:120px;padding:12px 3px 0;overflow-x:auto}
 .gust-hour{height:104px}
 .gust-hour-label{font-size:9px}
 .marine-footer{flex-direction:column;gap:3px}
}
@media(min-width:681px) and (max-width:1100px){
 .weather-board{grid-template-columns:minmax(0,1fr) minmax(310px,.9fr);gap:10px;padding:15px}
 .current-weather{width:62%;min-width:245px}
 .hero-visual{width:clamp(165px,23vw,230px);margin-right:0}
 .temperature{font-size:clamp(82px,9vw,110px)}
 .current-weather h1{font-size:clamp(24px,2.7vw,32px)}
 .quick-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .stat-block{padding:7px 5px}
 .stat-block span{font-size:8px}.stat-block b{font-size:13px}.stat-block small{font-size:7px}
 .glass{padding:10px 10px 9px}
 .day-row{grid-template-columns:42px 28px 24px minmax(35px,1fr) 24px;gap:4px;font-size:10px}
 .day-row img{width:26px;height:26px}
}
@media(max-width:680px){
 .weather-board{grid-template-areas:"top" "hero" "mascot" "side" "gust" "marine";grid-template-columns:minmax(0,1fr);grid-template-rows:auto;overflow:hidden}
 .current-weather{grid-area:hero;width:100%;min-width:0}
 .hero-visual{grid-area:mascot}
 .weather-board>.hourly-gust-section{grid-area:gust;grid-column:1;grid-row:auto}
 .weather-board>.marine-card{grid-area:marine;grid-column:1;grid-row:auto}
 .marine-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .marine-hourly{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ── Composición final basada en la referencia: oleaje en columna derecha, rachas abajo a la izquierda ── */
@media(min-width:901px){
 body{padding:10px 10px 14px}
 .page{width:min(1500px,100%)}
 .weather-board{
  display:grid!important;
  grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr)!important;
  grid-template-rows:34px minmax(0,1fr) 142px!important;
  grid-template-areas:"top top" "hero side" "gust side"!important;
  gap:10px 14px!important;
  height:min(720px,calc(100vh - 24px))!important;
  min-height:540px!important;
  padding:15px 20px 14px!important;
  overflow:hidden!important;
  border-radius:26px!important;
 }
 .scene-sky,.scene-photo,.scene-fx,.scene-vig{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important}
 .scene-photo{transform:none!important;animation:none!important;border-radius:inherit!important}
 .board-top{grid-area:top!important;min-width:0;z-index:5}
 .current-weather{grid-area:hero!important;align-self:center!important;justify-self:start!important;width:56%!important;max-width:430px!important;min-width:260px!important;padding:0!important}
 .hero-visual{grid-area:hero!important;align-self:center!important;justify-self:end!important;width:clamp(185px,22vw,290px)!important;max-height:300px!important;margin:0 2% 0 0!important;z-index:4!important;pointer-events:none}
 .side{grid-area:side!important;align-self:stretch!important;display:flex!important;flex-direction:column!important;gap:8px!important;min-width:0!important;overflow:hidden}
 .side>.glass{flex:0 0 auto;min-height:0;padding:11px 13px 9px!important}
 .side>.glass:nth-child(2){flex:1 1 auto;min-height:0;overflow:hidden}
 .side .marine-card{flex:0 0 auto!important;padding:10px 12px 8px!important}
 .marine-heading{margin-bottom:6px!important}
 .marine-heading h2{font-size:15px!important}
 .marine-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
 .marine-metrics>div{padding:6px 7px!important}
 .marine-metrics small{font-size:8px!important}
 .marine-metrics b{font-size:13px!important}
 .marine-footer{font-size:7px!important;margin-top:5px!important}
 .marine-hourly{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:3px!important;margin-top:6px!important;padding-top:5px!important}
 .marine-hourly small{font-size:8px!important}.marine-hourly b{font-size:10px!important}
 .weather-board>.hourly-gust-section{grid-area:gust!important;grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;min-width:0!important;margin:0!important;padding:9px 12px 7px!important;overflow:hidden}
 .hourly-gust-heading h2{font-size:19px!important}.hourly-gust-heading p{font-size:9px!important}
 .hourly-gust-legend{margin:5px 0 0!important;font-size:8px!important}
 .hourly-gust-chart{height:83px!important;min-height:83px!important;padding:8px 3px 0!important;gap:3px!important;overflow:hidden!important}
 .gust-hour{height:72px!important}
 .gust-hour-value{font-size:8px!important}.gust-hour-label{font-size:9px!important}
}
@media(min-width:901px) and (max-height:700px){
 .weather-board{height:calc(100vh - 18px)!important;min-height:500px!important;grid-template-rows:30px minmax(0,1fr) 125px!important}
 .current-weather h1{margin-top:8px!important}
 .hero-clock{margin:5px 0 6px!important}
 .quick-stats{margin-top:10px!important}
 .updated{margin-top:7px!important}
 .hero-visual{width:clamp(160px,19vw,235px)!important}
 .hourly-gust-chart{height:72px!important;min-height:72px!important}
 .gust-hour{height:62px!important}
}
@media(max-width:900px){
 .weather-board{height:auto!important;min-height:0!important;overflow:hidden!important;grid-template-areas:"top" "hero" "mascot" "side" "gust"!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}
 .side{grid-area:side!important;display:flex!important;flex-direction:column!important;overflow:visible!important}
 .weather-board>.hourly-gust-section{grid-area:gust!important;grid-column:1!important;grid-row:auto!important}
 .hero-visual{grid-area:mascot!important}
 .scene-photo{transform:none!important;animation:none!important}
}

/* Movimiento ambiental conservado, sin ampliar la fotografía fuera del tablero */
@keyframes drift-contained{from{transform:scale(1.04) translate3d(-.35%,0,0)}to{transform:scale(1.04) translate3d(.35%,-.25%,0)}}
@media(min-width:901px){.weather-board{overflow:hidden!important}.scene-photo{transform:scale(1.04)!important;animation:drift-contained 55s ease-in-out infinite alternate!important;border-radius:inherit!important}}


/* Centrar el bloque meteorológico con el mismo eje que las tres tarjetas de métricas */
@media(min-width:681px){
 .current-weather{
  width:min(100%,470px)!important;
  max-width:470px!important;
  min-width:0!important;
  justify-self:center!important;
  margin-inline:auto!important;
  text-align:center!important;
  align-items:center!important;
 }
 .current-weather>.temperature,
 .current-weather>h1,
 .current-weather>.place-sub,
 .current-weather>.hero-clock,
 .current-weather>.meta,
 .current-weather>.feels-line,
 .current-weather>.weather-timestamps{
  justify-self:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
 }
 .current-weather>.temperature{width:100%!important}
 .current-weather>.hero-clock{width:max-content!important;max-width:100%!important}
 .current-weather>.quick-stats{
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
 .current-weather>.weather-timestamps{justify-content:center!important}
}
@media(max-width:680px){
 .current-weather{padding-inline:10px!important;text-align:center!important;align-items:center!important}
 .current-weather>.temperature,.current-weather>h1,.current-weather>.place-sub,
 .current-weather>.hero-clock,.current-weather>.meta,.current-weather>.feels-line{
  margin-left:auto!important;margin-right:auto!important;text-align:center!important
 }
 .current-weather>.quick-stats{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .current-weather>.weather-timestamps{justify-content:center!important;text-align:center!important}
}

/* ── Ajuste final de composición: equilibrio entre datos actuales y mascota ── */
@media(min-width:901px){
 .current-weather{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:min(100%,470px)!important;
  max-width:470px!important;
  min-width:0!important;
  justify-self:center!important;
  align-self:center!important;
  margin:0 auto!important;
  padding:8px 0!important;
  text-align:center!important;
  align-items:center!important;
 }
 .current-weather>.temperature,
 .current-weather>h1,
 .current-weather>.place-sub,
 .current-weather>.hero-clock,
 .current-weather>.meta,
 .current-weather>.feels-line,
 .current-weather>.weather-timestamps{
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
 }
 .current-weather>.quick-stats{
  width:100%!important;
  margin:12px auto 0!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
 }
 .stat-block{
  min-width:0!important;
  padding:9px 8px!important;
 }
 .current-weather>.weather-timestamps{
  justify-content:center!important;
  gap:5px 12px!important;
  margin-top:9px!important;
 }
 .hero-visual{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:clamp(190px,21vw,285px)!important;
  max-height:310px!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0 2% 0 0!important;
 }
 .side{
  align-self:stretch!important;
  min-height:0!important;
  gap:9px!important;
 }
 .side>.glass{
  min-width:0!important;
 }
}
@media(min-width:901px) and (max-width:1199px){
 .current-weather{width:min(100%,430px)!important}
 .hero-visual{width:clamp(175px,20vw,235px)!important;margin-right:0!important}
 .current-weather>.quick-stats{gap:5px!important}
 .stat-block{padding:7px 5px!important}
}
@media(max-width:900px){
 .current-weather{left:auto!important;right:auto!important;transform:none!important}
 .hero-visual{left:auto!important;right:auto!important;transform:none!important}
}


/* ── Layout desktop refinado: datos a la izquierda y mascota a la derecha ── */
@media(min-width:1200px){
 .weather-board{
  grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr)!important;
  grid-template-areas:"top top" "hero side" "gust side"!important;
 }
 .current-weather{
  grid-area:hero!important;
  justify-self:start!important;
  align-self:center!important;
  width:58%!important;
  max-width:560px!important;
  min-width:0!important;
  margin:0 0 0 4%!important;
  padding:8px 0!important;
  
  left:auto!important;
  right:auto!important;
  text-align:center!important;
  align-items:center!important;
  z-index:5!important;
 }
 .current-weather>.temperature,
 .current-weather>h1,
 .current-weather>.place-sub,
 .current-weather>.hero-clock,
 .current-weather>.meta,
 .current-weather>.feels-line{
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
 }
 .current-weather>.quick-stats{
  width:100%!important;
  margin:12px 0 0!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
 }
 .current-weather>.weather-timestamps{
  width:100%!important;
  justify-content:center!important;
  margin:9px 0 0!important;
  gap:5px 12px!important;
 }
 .hero-visual{
  grid-area:hero!important;
  justify-self:end!important;
  align-self:center!important;
  width:clamp(220px,19vw,285px)!important;
  max-height:310px!important;
  margin:0 4% 0 0!important;
  
  left:auto!important;
  right:auto!important;
  z-index:4!important;
  pointer-events:none!important;
 }
 .stat-block{min-width:0!important;padding:9px 7px!important}
}
@media(min-width:901px) and (max-width:1199px){
 .current-weather{
  grid-area:hero!important;
  justify-self:start!important;
  align-self:center!important;
  width:56%!important;
  max-width:470px!important;
  min-width:0!important;
  margin:0 0 0 2%!important;
  
  left:auto!important;
  right:auto!important;
 }
 .hero-visual{
  grid-area:hero!important;
  justify-self:end!important;
  align-self:center!important;
  width:clamp(175px,20vw,225px)!important;
  margin:0 1% 0 0!important;
  
 }
}


/* ── Refinamiento de métricas y movimiento independiente de la mascota ── */
@keyframes mascot-bob{
 0%,100%{translate:0 0}
 50%{translate:0 -9px}
}
@media(min-width:681px){
 .hero-visual{
  animation:mascot-bob 5.5s ease-in-out infinite!important;
  will-change:translate;
 }
 .current-weather>.quick-stats{
  gap:6px!important;
  margin-top:9px!important;
 }
 .current-weather>.quick-stats>.stat-block{
  box-sizing:border-box!important;
  min-height:64px!important;
  padding:6px 8px!important;
  grid-template-columns:19px minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  column-gap:6px!important;
  row-gap:1px!important;
  align-content:center!important;
  border-radius:12px!important;
 }
 .current-weather>.quick-stats>.stat-block>.stat-icon{
  grid-column:1!important;
  grid-row:1 / span 3!important;
  width:18px!important;
  height:18px!important;
  align-self:center!important;
 }
 .current-weather>.quick-stats>.stat-block>span{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:center!important;
  align-self:end!important;
  font-size:9px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
 }
 .current-weather>.quick-stats>.stat-block>b{
  grid-column:2!important;
  grid-row:2!important;
  justify-self:center!important;
  font-size:15px!important;
  line-height:1.15!important;
 }
 .current-weather>.quick-stats>.stat-block>small{
  grid-column:2!important;
  grid-row:3!important;
  justify-self:center!important;
  align-self:start!important;
  font-size:8px!important;
  line-height:1.15!important;
  text-align:center!important;
 }
 .current-weather>.quick-stats>.stat-block>small strong{
  display:inline!important;
  margin:0 0 0 2px!important;
  font-size:inherit!important;
 }
 .current-weather>.weather-timestamps{
  margin-top:6px!important;
  gap:4px 10px!important;
  font-size:8px!important;
  line-height:1.2!important;
 }
}
@media(min-width:901px) and (max-width:1199px){
 .current-weather>.quick-stats>.stat-block{min-height:60px!important;padding:5px 6px!important}
 .current-weather>.quick-stats>.stat-block>span{font-size:8px!important}
 .current-weather>.quick-stats>.stat-block>b{font-size:14px!important}
}

 
/* ── Pulido de condiciones marítimas: tipografía centrada y valores legibles ── */
.marine-card{
 text-align:center!important;
}
.marine-heading{
 position:relative!important;
 display:flex!important;
 justify-content:center!important;
 align-items:center!important;
 min-height:34px!important;
 margin-bottom:10px!important;
}
.marine-heading>div{
 width:100%!important;
 text-align:center!important;
}
.marine-heading>div small{
 font-size:9px!important;
 letter-spacing:.12em!important;
}
.marine-heading h2{
 font-size:18px!important;
 text-align:center!important;
}
.marine-state{
 position:absolute!important;
 right:0!important;
 top:0!important;
}
.marine-metrics>div{
 display:flex!important;
 flex-direction:column!important;
 justify-content:center!important;
 align-items:center!important;
 min-height:54px!important;
 padding:8px 6px!important;
 text-align:center!important;
}
.marine-metrics small{
 width:100%!important;
 font-size:9px!important;
 line-height:1.25!important;
 white-space:normal!important;
 text-align:center!important;
}
.marine-metrics b{
 font-size:18px!important;
 line-height:1.2!important;
 margin-top:5px!important;
 text-align:center!important;
}
.marine-footer{
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 gap:3px!important;
 margin-top:8px!important;
 font-size:8px!important;
 line-height:1.35!important;
 text-align:center!important;
}
.marine-footer span{width:100%!important;text-align:center!important}
.marine-hourly{
 gap:5px!important;
}
.marine-hourly>div{
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 gap:2px!important;
 text-align:center!important;
}
.marine-hourly small{
 font-size:10px!important;
 text-align:center!important;
}
.marine-hourly b{
 font-size:14px!important;
 line-height:1.2!important;
 text-align:center!important;
}
@media(max-width:680px){
 .marine-heading{padding-top:0!important;padding-right:0!important}
 .marine-heading h2{font-size:17px!important}
 .marine-metrics b{font-size:17px!important}
 .marine-hourly b{font-size:13px!important}
}

.port-status-value.is-partial{color:#ffd18a}


/* FIX: mostrar completos los cinco días del pronóstico en escritorio.
   La tarjeta diaria estaba recortada por el alto fijo de .side y overflow:hidden. */
@media (min-width:901px){
  .weather-board{
    height:max(740px, calc(100vh - 24px))!important;
    min-height:740px!important;
    grid-template-rows:34px minmax(0,1fr) 126px!important;
  }
  .weather-board>.side{
    min-height:0!important;
    overflow:visible!important;
  }
  .weather-board>.side>.glass:nth-child(2){
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .weather-board .daily-list{
    padding-top:5px!important;
  }
  .weather-board .day-row{
    padding:3px 0!important;
    grid-template-columns:48px 32px 28px minmax(48px,1fr) 28px!important;
    gap:5px!important;
  }
  .weather-board .day-row img{
    width:30px!important;
    height:30px!important;
  }
  .weather-board .day-wind-info{
    font-size:8px!important;
    line-height:1.15!important;
  }
}
@media (min-width:901px) and (max-height:700px){
  .weather-board{
    height:740px!important;
    min-height:740px!important;
  }
}





/* ═══ LAYOUT FINAL (autoridad única) ═══
   Capas anteriores de ajuste se pisaban entre sí con !important. Este bloque va al final con
   mayor especificidad (main.page>.weather-board…) y define la colocación de cada pieza por
   breakpoint. No toca transform/animation: flotar, fx, pulso y fondos siguen igual. */
.top-left,.top-right{display:contents}
.marine-heading{text-align:left!important}
main.page>.weather-board{--B:main.page>.weather-board}

/* ── Escritorio ≥1101px ── */
@media(min-width:1101px){
 body{padding:14px 16px 24px}
 main.page{width:min(1480px,100%)}
 main.page>.weather-board{
  display:grid!important;height:auto!important;min-height:0!important;overflow:hidden;
  padding:20px 30px 28px!important;border-radius:28px;gap:16px 26px!important;
  grid-template-columns:minmax(300px,1fr) minmax(230px,.78fr) minmax(400px,.98fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  grid-template-areas:"top top top" "hero mascot side" "gust gust side"!important;
 }
 main.page>.weather-board>.board-top{grid-area:top!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px 20px;min-height:0!important;padding:0 0 4px;font-size:11px;position:relative}
 .board-top>.top-left{grid-column:1;grid-row:1;display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 18px;min-width:0}
 .board-top>.port-status-strip{grid-column:2;grid-row:1;position:static!important;transform:none!important;margin:0!important;width:330px;min-width:330px}
 .board-top>.grow,.board-top .date-line{display:none!important}
 .board-top>.top-right{grid-column:3;grid-row:1;display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 16px;min-width:0}

 main.page>.weather-board>.current-weather{
  grid-area:hero!important;position:relative!important;inset:auto!important;display:flex!important;flex-direction:column;align-items:flex-start!important;text-align:left!important;
  align-self:center!important;justify-self:start!important;width:100%!important;max-width:480px!important;margin:0!important;padding:0!important;
 }
 .current-weather>.temperature{font-size:clamp(96px,9vw,136px)!important;margin:0!important}
 .current-weather>h1{font-size:clamp(30px,2.8vw,40px)!important;margin:14px 0 4px!important;max-width:none!important}
 .current-weather>.place-sub{font-size:14px;margin:2px 0 0!important;max-width:none!important}
 .current-weather>.hero-clock{margin:12px 0 8px!important;padding:8px 12px;max-width:none!important}
 .current-weather>.meta{margin:6px 0 0!important;font-size:12px;max-width:none!important}
 .current-weather>.feels-line{margin:6px 0 0!important;font-size:16px;max-width:none!important}
 .current-weather>.quick-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;margin:18px 0 0!important;width:100%!important}
 .quick-stats .stat-block{padding:10px;text-align:left}
 .quick-stats .stat-block b{font-size:clamp(15px,1.3vw,18px)}
 .current-weather>.weather-timestamps{margin:10px 0 0!important;font-size:9px;width:100%!important}

 main.page>.weather-board>.hero-visual{
  grid-area:mascot!important;position:relative!important;inset:auto!important;align-self:center!important;justify-self:center!important;
  width:clamp(280px,30vw,380px)!important;height:auto!important;max-height:none!important;margin:0!important;aspect-ratio:1/1.18;
 }
 main.page>.weather-board>.side{
  grid-area:side!important;position:relative!important;display:flex!important;flex-direction:column;justify-content:flex-start;align-self:stretch!important;
  width:auto!important;min-width:0;min-height:0!important;gap:12px!important;overflow:visible!important;
 }
 .side>.glass{flex:0 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:14px 16px 13px;border-radius:18px}
 .side .card-head{font-size:13px}
 .side .forecast-strip{padding-top:10px}
 .side .hour-card{flex:1 0 48px;min-width:48px}
 .side .hour-card img{width:36px;height:36px}
 .side .daily-list{padding-top:5px}
 .side .day-row{padding:5px 0}
 .side .day-wind-info{font-size:8px;line-height:1.15}
 .side .marine-card{padding:14px 16px 13px}
 .side .marine-heading h2{font-size:18px}
 .side .marine-metrics b{font-size:16px}
 main.page>.weather-board>.hourly-gust-section{grid-area:gust!important;align-self:end!important;margin:0!important;padding:14px 18px 12px;width:auto!important;min-width:0}
 .hourly-gust-section .hourly-gust-chart{height:auto!important;min-height:130px!important;padding:16px 6px 0;gap:5px}
 .hourly-gust-section .gust-hour{height:112px!important;grid-template-rows:12px minmax(0,1fr) 14px}
 .gust-hour-value{font-size:9px}.gust-hour-label{font-size:10px}
}

/* ── Tableta 681–1100px ── */
@media(min-width:681px) and (max-width:1100px){
 main.page>.weather-board{
  display:grid!important;height:auto!important;min-height:0!important;overflow:hidden;gap:16px 20px!important;padding:20px 24px 24px!important;
  grid-template-columns:minmax(0,1fr) minmax(190px,.75fr)!important;grid-template-rows:auto auto auto auto!important;
  grid-template-areas:"top top" "hero mascot" "side side" "gust gust"!important;
 }
 main.page>.weather-board>.board-top{grid-area:top!important;display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;min-height:0!important;position:relative}
 .board-top>.top-left{display:flex!important;align-items:center;gap:16px;order:1}
 .board-top>.top-right{display:flex!important;align-items:center;gap:14px;order:2}
 .board-top>.port-status-strip{position:static!important;transform:none!important;order:3;flex:0 0 100%;width:100%;min-width:0;max-width:460px;margin:2px auto 0!important}
 .board-top>.grow,.board-top .date-line{display:none!important}
 main.page>.weather-board>.current-weather{grid-area:hero!important;position:relative!important;inset:auto!important;display:flex!important;flex-direction:column;align-items:flex-start!important;text-align:left!important;align-self:center!important;justify-self:start!important;width:100%!important;max-width:480px!important;margin:0!important;padding:0!important}
 .current-weather>.quick-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;margin:16px 0 0!important}
 .current-weather>h1,.current-weather>.place-sub,.current-weather>.hero-clock,.current-weather>.meta,.current-weather>.feels-line{max-width:none!important}
 main.page>.weather-board>.hero-visual{grid-area:mascot!important;position:relative!important;inset:auto!important;align-self:center!important;justify-self:center!important;width:min(100%,300px)!important;height:auto!important;max-height:none!important;margin:0!important;aspect-ratio:1/1.1}
 main.page>.weather-board>.side{grid-area:side!important;position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start;gap:14px!important;width:auto!important;min-height:0!important;overflow:visible!important}
 .side>*{min-width:0}
 .side>.glass{height:auto!important;min-height:0!important;overflow:visible!important}
 .side>.marine-card{grid-column:1 / -1}
 .marine-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .marine-metrics small,.marine-metrics b{white-space:normal!important}
 main.page>.weather-board>.hourly-gust-section{grid-area:gust!important;margin:0!important;width:auto!important;min-width:0}
}

/* ── Móvil ≤680px: texto a la izquierda, mascota a la derecha; luego tarjetas en una columna ── */
@media(max-width:680px){
 main.page{width:100%;min-width:0}
 main.page>.weather-board{
  display:grid!important;height:auto!important;min-height:0!important;overflow:hidden;position:relative;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;grid-template-rows:none!important;grid-template-areas:none!important;
  grid-auto-rows:auto;gap:0 8px!important;padding:16px 12px 16px!important;border-radius:22px;
 }
 main.page>.weather-board>.board-top{grid-area:auto!important;grid-column:1 / -1!important;grid-row:1!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 10px;min-height:0!important;position:relative;z-index:5;margin-bottom:10px}
 .board-top>.top-left,.board-top>.top-right{display:contents!important}
 .board-top>.port-status-strip{position:static!important;transform:none!important;order:5;flex:0 0 100%;width:100%;min-width:0;max-width:none;margin:2px 0 0!important}
 .board-top>.grow,.board-top .date-line{display:none!important}
 main.page>.weather-board>.current-weather{display:contents!important}
 .current-weather>.temperature{grid-column:1!important;grid-row:2!important;margin:0!important;font-size:clamp(76px,22vw,96px)!important;justify-self:start;z-index:4}
 .current-weather>h1{grid-column:1!important;grid-row:3!important;margin:4px 0 2px!important;max-width:none!important;justify-self:start;font-size:clamp(24px,7vw,30px)!important;z-index:4}
 .current-weather>.place-sub{grid-column:1!important;grid-row:4!important;margin:0!important;max-width:none!important;justify-self:start;z-index:4}
 .current-weather>.hero-clock{grid-column:1!important;grid-row:5!important;margin:8px 0 6px!important;max-width:none!important;justify-self:start;z-index:4}
 .current-weather>.meta{grid-column:1!important;grid-row:6!important;margin:4px 0 0!important;max-width:none!important;justify-self:start;z-index:4}
 .current-weather>.feels-line{grid-column:1!important;grid-row:7!important;margin:4px 0 0!important;max-width:none!important;justify-self:start;z-index:4}
 main.page>.weather-board>.hero-visual{
  grid-area:auto!important;grid-column:2!important;grid-row:2 / span 6!important;position:relative!important;inset:auto!important;
  align-self:center!important;justify-self:center!important;width:100%!important;max-width:200px;height:auto!important;max-height:none!important;margin:0!important;aspect-ratio:1/1.15;z-index:3;pointer-events:none;
 }
 .current-weather>.quick-stats{grid-column:1 / -1!important;grid-row:8!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px;margin:14px 0 0!important;width:100%!important}
 .current-weather>.weather-timestamps{grid-column:1 / -1!important;grid-row:9!important;margin:8px 0 0!important;width:100%!important}
 main.page>.weather-board>.side{grid-area:auto!important;grid-column:1 / -1!important;grid-row:10!important;position:relative!important;display:flex!important;flex-direction:column;gap:11px!important;width:100%!important;min-width:0;min-height:0!important;margin-top:14px;overflow:visible!important}
 .side>.glass{height:auto!important;min-height:0!important;overflow:visible!important;width:100%}
 main.page>.weather-board>.hourly-gust-section{grid-area:auto!important;grid-column:1 / -1!important;grid-row:11!important;margin:12px 0 0!important;width:auto!important;min-width:0}
 .marine-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Alineaciones finales */
.marine-card .marine-heading{display:flex!important;align-items:flex-start;justify-content:space-between;gap:8px;position:relative}
.marine-card .marine-heading>div,.marine-card .marine-heading h2,.marine-card .marine-heading small{text-align:left!important;width:auto!important}
.marine-card .marine-heading>div{flex:1 1 0;min-width:0}
.marine-card .marine-heading small{white-space:normal!important;line-height:1.3}
.marine-card .marine-state{position:static!important;flex:0 0 auto;transform:none!important}

/* Bloque izquierdo centrado: temperatura, condición, hora, máx/mín y sensación térmica */
@media(min-width:681px){
 main.page>.weather-board .current-weather{align-items:center!important;text-align:center!important}
 main.page>.weather-board .current-weather>*{align-self:center!important;justify-self:center!important;text-align:center!important}
 main.page>.weather-board .current-weather>.quick-stats,
 main.page>.weather-board .current-weather>.weather-timestamps{align-self:stretch!important}
 .current-weather .hero-clock,.current-weather .clock-copy{text-align:center!important}
}

/* Mascota recorrida a la izquierda (translate no pisa la animación de flotar) */
@media(min-width:1150px){
 main.page>.weather-board>.hero-visual{translate:-160px 0}
}


/* ═══ Buques automotrices · mismo lenguaje visual de ClimaPuerto ═══ */
.auto-vessels-section{margin:28px auto 0;padding:26px 28px 22px;border:1px solid rgba(211,232,244,.17);border-radius:26px;background:linear-gradient(145deg,rgba(23,52,72,.96),rgba(13,35,51,.97));box-shadow:0 22px 60px rgba(3,16,27,.2);color:#f3f8fb;overflow:hidden}
.auto-vessels-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.auto-vessels-kicker,.auto-map-title small{font-size:10px;font-weight:800;letter-spacing:.16em;color:#8db9cb}
.auto-vessels-heading h2{font-family:"Barlow Condensed",sans-serif;font-size:clamp(27px,3vw,38px);line-height:1.05;margin:5px 0 6px;color:#fff}
.auto-vessels-heading p{margin:0;color:rgba(233,244,250,.7);font-size:12px;line-height:1.5}
.auto-vessels-summary{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto}
.auto-vessels-summary strong{font-family:"Barlow Condensed",sans-serif;font-size:42px;line-height:.9;color:#fff}
.auto-vessels-summary span{font-size:9px;letter-spacing:.13em;font-weight:800;color:#a8c6d4;margin-top:6px}
.auto-vessels-summary small{font-size:9px;color:rgba(230,242,248,.55);margin-top:5px}
.auto-vessels-content{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:16px;align-items:stretch}
.auto-vessel-list{min-height:420px;padding:14px;border:1px solid rgba(211,232,244,.14);border-radius:17px;background:rgba(255,255,255,.045);align-content:start}
.auto-vessel-card{padding:0;border:0;border-radius:10px;background:transparent;min-width:0}
.auto-vessel-table-wrap{width:100%;overflow:visible}
.auto-vessel-table{font-size:clamp(9px,.82vw,11px)}
.auto-vessel-table th,.auto-vessel-table td{padding:10px 5px}
.auto-vessel-map-card{height:420px;display:flex;flex-direction:column}
.auto-vessel-map{height:auto;min-height:0;flex:1}

.auto-vessel-list{display:flex;flex-direction:column;gap:9px;min-width:0}
.auto-vessel-card{padding:13px 15px;border:1px solid rgba(211,232,244,.14);border-radius:15px;background:rgba(255,255,255,.055);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}
.auto-vessel-name{font-family:"Barlow Condensed",sans-serif;font-size:22px;font-weight:700;letter-spacing:.025em;color:#fff}
.auto-vessel-berth{font-size:11px;color:#a9d0df;font-weight:700}
.auto-vessel-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px 13px;color:rgba(234,244,249,.67);font-size:10px}
.auto-vessel-flag{align-self:start;padding:4px 8px;border-radius:20px;background:rgba(117,190,211,.13);color:#b8e1ed;font-size:9px;font-weight:800;letter-spacing:.06em}
.auto-vessel-empty{padding:20px;border:1px dashed rgba(211,232,244,.2);border-radius:14px;color:rgba(234,244,249,.65);font-size:12px;text-align:center}
.auto-vessels-source{display:flex;flex-wrap:wrap;gap:5px;margin-top:15px;color:rgba(233,244,250,.48);font-size:10px}
@media(max-width:760px){
 .auto-vessels-section{margin-top:20px;padding:20px 14px 17px;border-radius:20px}
 .auto-vessels-heading{align-items:flex-start}
 .auto-vessels-heading h2{font-size:29px}
 .auto-vessels-heading p{max-width:34ch}
 .auto-vessels-summary strong{font-size:34px}
}

/* Monitor automotriz: tabla fiel al reporte de MEDI-PORT */
.auto-vessel-card{padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(4,14,24,.32);min-width:0}
.auto-vessel-table-wrap{width:100%;overflow:visible}
.auto-vessel-table{width:100%;table-layout:fixed;border-collapse:collapse;color:#fff;font-size:clamp(8px,1.05vw,11px);white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.auto-vessel-table th{padding:8px 4px;line-height:1.2;background:rgba(80,185,222,.28);font-weight:700;text-align:center;border:1px solid rgba(255,255,255,.22)}
.auto-vessel-table td{padding:8px 4px;line-height:1.25;background:rgba(255,255,255,.055);text-align:center;border:1px solid rgba(255,255,255,.18)}
/* Mapa AIS general: sin controles de localización por buque */
.auto-vessel-map-card{min-width:0;border:1px solid rgba(211,232,244,.14);border-radius:17px;background:rgba(255,255,255,.045);overflow:hidden}
.auto-map-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 15px}
.auto-map-title h3{font-family:"Barlow Condensed",sans-serif;font-size:22px;margin:3px 0 0;color:#fff}
.auto-map-live{font-size:10px;color:#b9d6e1;display:flex;align-items:center;gap:6px}
.auto-map-live i{width:7px;height:7px;border-radius:50%;background:#69d8a1;box-shadow:0 0 10px rgba(105,216,161,.65)}
.auto-vessel-map{height:370px;background:#102b3d}
.auto-vessel-map iframe{width:100%;height:100%;border:0;display:block}
.auto-map-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 14px;font-size:10px;color:rgba(233,244,250,.62)}
.auto-map-footer a,.auto-vessels-source a{color:#a9d8e8;text-decoration:none;font-weight:700}
.auto-map-footer a:hover,.auto-vessels-source a:hover{text-decoration:underline}
@media(max-width:600px){
 .auto-vessel-table{font-size:8px}
 .auto-vessel-table th,.auto-vessel-table td{padding:6px 2px}
 .auto-vessel-map{height:320px}
 .auto-map-footer{align-items:flex-start;flex-direction:column;gap:6px}
}


/* Ajustes específicos del monitor automotriz en móvil */
@media(max-width:760px){
  #buques-automotrices{padding:18px 13px 16px;margin-top:18px;border-radius:18px}
  #buques-automotrices .auto-vessels-heading{display:flex;flex-direction:column;gap:14px;align-items:stretch}
  #buques-automotrices .auto-vessels-heading>div:first-child{min-width:0}
  #buques-automotrices .auto-vessels-kicker{font-size:9px;letter-spacing:.12em;line-height:1.5}
  #buques-automotrices .auto-vessels-heading h2{font-size:clamp(27px,7vw,34px);line-height:1.02;margin:7px 0}
  #buques-automotrices .auto-vessels-heading p{font-size:12px;line-height:1.5;max-width:none;margin:0}
  #buques-automotrices .auto-vessels-summary{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;justify-items:start;padding:11px 13px;border:1px solid rgba(211,232,244,.14);border-radius:13px;background:rgba(255,255,255,.04)}
  #buques-automotrices .auto-vessels-summary strong{grid-row:1/3;font-size:38px}
  #buques-automotrices .auto-vessels-summary span{margin:0;font-size:9px}
  #buques-automotrices .auto-vessels-summary small{margin:3px 0 0;font-size:10px}
  #buques-automotrices .auto-vessels-content{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
  #buques-automotrices .auto-vessel-list{min-height:0;padding:10px;gap:10px}
  #buques-automotrices .auto-vessel-card{padding:10px;border-radius:12px}
  #buques-automotrices .auto-vessel-table-wrap{overflow:visible}
  #buques-automotrices .auto-vessel-table{display:block;width:100%;font-size:12px;white-space:normal;table-layout:auto}
  #buques-automotrices .auto-vessel-table thead{display:none}
  #buques-automotrices .auto-vessel-table tbody{display:block;width:100%}
  #buques-automotrices .auto-vessel-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #buques-automotrices .auto-vessel-table td{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:8px 9px;border:1px solid rgba(255,255,255,.13);border-radius:8px;text-align:left;line-height:1.3;overflow-wrap:anywhere;font-size:12px}
  #buques-automotrices .auto-vessel-table td::before{display:block;margin-bottom:4px;color:#9dcddd;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
  #buques-automotrices .auto-vessel-table td:nth-child(1)::before{content:"Viaje"}
  #buques-automotrices .auto-vessel-table td:nth-child(2)::before{content:"Buque"}
  #buques-automotrices .auto-vessel-table td:nth-child(3)::before{content:"Muelle"}
  #buques-automotrices .auto-vessel-table td:nth-child(4)::before{content:"Agencia"}
  #buques-automotrices .auto-vessel-table td:nth-child(5)::before{content:"Fecha"}
  #buques-automotrices .auto-vessel-table td:nth-child(6)::before{content:"Maniobrista"}
  #buques-automotrices .auto-vessel-table td:nth-child(7){grid-column:1/-1}
  #buques-automotrices .auto-vessel-table td:nth-child(7)::before{content:"Descripción de carga"}
  #buques-automotrices .auto-vessel-map-card{height:350px;min-height:350px;border-radius:14px}
  #buques-automotrices .auto-map-title{padding:12px;align-items:flex-start}
  #buques-automotrices .auto-map-title h3{font-size:21px;line-height:1.1}
  #buques-automotrices .auto-map-title small{font-size:9px;letter-spacing:.12em}
  #buques-automotrices .auto-map-live{white-space:nowrap;font-size:9px;margin-top:3px}
  #buques-automotrices .auto-vessel-map{height:auto;min-height:0;flex:1}
  #buques-automotrices .auto-map-footer{padding:9px 11px;font-size:10px;line-height:1.4}
  #buques-automotrices .auto-vessels-source{font-size:10px;line-height:1.5;margin-top:12px}
}
@media(max-width:380px){
  #buques-automotrices .auto-vessel-table tr{grid-template-columns:minmax(0,1fr)}
  #buques-automotrices .auto-vessel-table td:nth-child(7){grid-column:auto}
  #buques-automotrices .auto-vessels-heading h2{font-size:27px}
  #buques-automotrices .auto-vessel-map-card{height:320px;min-height:320px}
}

/* Monitor automotriz · relación compacta en una sola tabla, sin fotografías */
#buques-automotrices .auto-vessels-content{grid-template-columns:minmax(0,1fr) minmax(0,.98fr);align-items:stretch}
#buques-automotrices .auto-vessel-list{display:block;min-height:420px;padding:20px;border:1px solid rgba(211,232,244,.14);border-radius:17px;background:rgba(255,255,255,.045);overflow:visible}
#buques-automotrices .auto-vessel-table-wrap{width:100%;overflow-x:auto}
#buques-automotrices .auto-vessel-table{width:100%;table-layout:auto;border-collapse:collapse;color:#fff;font-size:clamp(10px,.95vw,13px);white-space:normal;overflow-wrap:normal}
#buques-automotrices .auto-vessel-table th{padding:12px 10px;line-height:1.2;background:#124b63;color:#fff;font-size:clamp(12px,1.25vw,18px);font-weight:700;text-align:center;border:1px solid rgba(0,0,0,.55);white-space:nowrap}
#buques-automotrices .auto-vessel-table td{padding:20px 12px;line-height:1.25;background:rgba(255,255,255,.035);font-size:clamp(12px,1.15vw,17px);text-align:center;border:1px solid rgba(0,0,0,.55);overflow-wrap:normal}
#buques-automotrices .auto-vessel-table th:first-child,#buques-automotrices .auto-vessel-table td:first-child{min-width:120px}
#buques-automotrices .auto-vessel-table th:nth-child(2),#buques-automotrices .auto-vessel-table td:nth-child(2){min-width:90px}
#buques-automotrices .auto-vessel-table th:nth-child(3),#buques-automotrices .auto-vessel-table td:nth-child(3){min-width:110px}
#buques-automotrices .auto-vessel-table th:nth-child(4),#buques-automotrices .auto-vessel-table td:nth-child(4){min-width:150px}
#buques-automotrices .auto-vessel-table th:nth-child(5),#buques-automotrices .auto-vessel-table td:nth-child(5){min-width:150px}
@media(max-width:760px){
 #buques-automotrices .auto-vessels-content{grid-template-columns:minmax(0,1fr)}
 #buques-automotrices .auto-vessel-list{min-height:0;padding:12px}
 #buques-automotrices .auto-vessel-table-wrap{overflow:visible}
 #buques-automotrices .auto-vessel-table{display:block;width:100%;font-size:13px}
 #buques-automotrices .auto-vessel-table thead{display:none}
 #buques-automotrices .auto-vessel-table tbody{display:block;width:100%}
 #buques-automotrices .auto-vessel-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:9px;padding:9px;border:1px solid rgba(255,255,255,.15);border-radius:12px;background:rgba(4,14,24,.28)}
 #buques-automotrices .auto-vessel-table tr:last-child{margin-bottom:0}
 #buques-automotrices .auto-vessel-table td{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:8px 9px;border:1px solid rgba(255,255,255,.13);border-radius:8px;text-align:left;font-size:12px;overflow-wrap:anywhere}
 #buques-automotrices .auto-vessel-table td::before{content:attr(data-label);display:block;margin-bottom:4px;color:#9dcddd;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
 #buques-automotrices .auto-vessel-table td:nth-child(5){grid-column:1/-1}
}
@media(max-width:380px){
 #buques-automotrices .auto-vessel-table tr{grid-template-columns:minmax(0,1fr)}
 #buques-automotrices .auto-vessel-table td:nth-child(5){grid-column:auto}
}
/* Miniaturas históricas de los buques: ShipSpotting, con crédito y enlace a la fotografía original */
#buques-automotrices .auto-vessel-table th:first-child{min-width:150px}
#buques-automotrices .auto-vessel-table td.auto-vessel-photo-cell{min-width:150px;width:150px;padding:7px 8px;text-align:center;vertical-align:middle}
#buques-automotrices .auto-vessel-photo-link{display:flex;align-items:center;justify-content:center;width:100%;height:82px;overflow:hidden;border-radius:3px;background:rgba(3,13,22,.35)}
#buques-automotrices .auto-vessel-photo{display:block;width:100%;height:100%;max-height:82px;object-fit:cover}
#buques-automotrices .auto-vessel-photo-fallback{font-size:30px}
#buques-automotrices .auto-vessel-photo-credit{display:block;margin-top:4px;color:#a9c2cf;font-size:9px;line-height:1.25;text-align:center}
#buques-automotrices .auto-vessel-no-photo{font-size:30px}
@media(max-width:760px){
 #buques-automotrices .auto-vessel-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}
 #buques-automotrices .auto-vessel-table td.auto-vessel-photo-cell{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;width:100%;padding:8px}
 #buques-automotrices .auto-vessel-photo-link{width:125px;min-width:125px;height:76px}
 #buques-automotrices .auto-vessel-photo{height:76px}
 #buques-automotrices .auto-vessel-photo-credit{margin:0;text-align:left}
 #buques-automotrices .auto-vessel-table td:nth-child(6){grid-column:1/-1}
}

/* Ajuste solicitado: tabla completa sin scroll horizontal ni leyendas bajo las fotos */
#buques-automotrices .auto-vessel-table-wrap{width:100%!important;max-width:100%!important;overflow:hidden!important}
#buques-automotrices .auto-vessel-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;white-space:normal!important}
#buques-automotrices .auto-vessel-table th,
#buques-automotrices .auto-vessel-table td{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal}
#buques-automotrices .auto-vessel-table th:nth-child(1),
#buques-automotrices .auto-vessel-table td:nth-child(1){width:22%!important}
#buques-automotrices .auto-vessel-table th:nth-child(2),
#buques-automotrices .auto-vessel-table td:nth-child(2){width:16%!important}
#buques-automotrices .auto-vessel-table th:nth-child(3),
#buques-automotrices .auto-vessel-table td:nth-child(3){width:10%!important}
#buques-automotrices .auto-vessel-table th:nth-child(4),
#buques-automotrices .auto-vessel-table td:nth-child(4){width:17%!important}
#buques-automotrices .auto-vessel-table th:nth-child(5),
#buques-automotrices .auto-vessel-table td:nth-child(5){width:17%!important}
#buques-automotrices .auto-vessel-table th:nth-child(6),
#buques-automotrices .auto-vessel-table td:nth-child(6){width:18%!important}
#buques-automotrices .auto-vessel-photo-cell{padding:5px!important}
#buques-automotrices .auto-vessel-photo-link{width:100%!important;height:110px!important}
#buques-automotrices .auto-vessel-photo{width:100%!important;height:110px!important;max-height:none!important;object-fit:contain!important}
#buques-automotrices .auto-vessel-photo-credit{display:none!important}
@media(max-width:760px){
 #buques-automotrices .auto-vessel-table-wrap{overflow:hidden!important}
 #buques-automotrices .auto-vessel-table{display:block!important;width:100%!important;table-layout:auto!important}
 #buques-automotrices .auto-vessel-table tbody{display:block!important;width:100%!important}
 #buques-automotrices .auto-vessel-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;box-sizing:border-box!important}
 #buques-automotrices .auto-vessel-table td{width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 #buques-automotrices .auto-vessel-table td.auto-vessel-photo-cell{grid-column:1/-1!important;display:block!important}
 #buques-automotrices .auto-vessel-photo-link{width:100%!important;height:150px!important}
 #buques-automotrices .auto-vessel-photo{height:150px!important}
 #buques-automotrices .auto-vessel-table td:nth-child(5),
 #buques-automotrices .auto-vessel-table td:nth-child(6){grid-column:1/-1!important}
}

/* Legibilidad de la tabla automotriz: evitar cortes dentro de palabras */
#buques-automotrices .auto-vessel-table-wrap{overflow:hidden!important}
#buques-automotrices .auto-vessel-table{display:table!important;width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
#buques-automotrices .auto-vessel-table thead{display:table-header-group!important}
#buques-automotrices .auto-vessel-table tbody{display:table-row-group!important}
#buques-automotrices .auto-vessel-table tr{display:table-row!important}
#buques-automotrices .auto-vessel-table th,
#buques-automotrices .auto-vessel-table td{display:table-cell!important;min-width:0!important;max-width:none!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;vertical-align:middle!important;text-align:center!important}
#buques-automotrices .auto-vessel-table th{padding:10px 5px!important;font-size:clamp(10px,1.15vw,15px)!important;line-height:1.15!important;white-space:normal!important}
#buques-automotrices .auto-vessel-table td{padding:10px 5px!important;font-size:clamp(10px,1.05vw,14px)!important;line-height:1.2!important;white-space:normal!important}
#buques-automotrices .auto-vessel-table th:nth-child(1),#buques-automotrices .auto-vessel-table td:nth-child(1){width:20%!important}
#buques-automotrices .auto-vessel-table th:nth-child(2),#buques-automotrices .auto-vessel-table td:nth-child(2){width:14%!important}
#buques-automotrices .auto-vessel-table th:nth-child(3),#buques-automotrices .auto-vessel-table td:nth-child(3){width:9%!important}
#buques-automotrices .auto-vessel-table th:nth-child(4),#buques-automotrices .auto-vessel-table td:nth-child(4){width:17%!important}
#buques-automotrices .auto-vessel-table th:nth-child(5),#buques-automotrices .auto-vessel-table td:nth-child(5){width:18%!important}
#buques-automotrices .auto-vessel-table th:nth-child(6),#buques-automotrices .auto-vessel-table td:nth-child(6){width:22%!important}
#buques-automotrices .auto-vessel-photo-cell{padding:5px!important}
#buques-automotrices .auto-vessel-photo-link{height:100px!important}
#buques-automotrices .auto-vessel-photo{height:100px!important;object-fit:contain!important}
@media(max-width:760px){
 #buques-automotrices .auto-vessel-table{display:table!important;width:100%!important;table-layout:fixed!important}
 #buques-automotrices .auto-vessel-table thead{display:table-header-group!important}
 #buques-automotrices .auto-vessel-table tbody{display:table-row-group!important}
 #buques-automotrices .auto-vessel-table tr{display:table-row!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
 #buques-automotrices .auto-vessel-table th,
 #buques-automotrices .auto-vessel-table td{display:table-cell!important;padding:7px 3px!important;font-size:clamp(9px,1.7vw,12px)!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
 #buques-automotrices .auto-vessel-table th:nth-child(1),#buques-automotrices .auto-vessel-table td:nth-child(1){width:20%!important}
 #buques-automotrices .auto-vessel-table th:nth-child(2),#buques-automotrices .auto-vessel-table td:nth-child(2){width:14%!important}
 #buques-automotrices .auto-vessel-table th:nth-child(3),#buques-automotrices .auto-vessel-table td:nth-child(3){width:9%!important}
 #buques-automotrices .auto-vessel-table th:nth-child(4),#buques-automotrices .auto-vessel-table td:nth-child(4){width:17%!important}
 #buques-automotrices .auto-vessel-table th:nth-child(5),#buques-automotrices .auto-vessel-table td:nth-child(5){width:18%!important}
 #buques-automotrices .auto-vessel-table th:nth-child(6),#buques-automotrices .auto-vessel-table td:nth-child(6){width:22%!important}
 #buques-automotrices .auto-vessel-table td::before{display:none!important;content:none!important}
 #buques-automotrices .auto-vessel-photo-link,#buques-automotrices .auto-vessel-photo{height:82px!important}
}

/* Encabezado único para fotografía + nombre del buque */
#buques-automotrices .auto-vessel-table thead th:first-child{width:34%!important;text-align:center!important}
#buques-automotrices .auto-vessel-table thead th:nth-child(2){width:9%!important}
#buques-automotrices .auto-vessel-table thead th:nth-child(3){width:17%!important}
#buques-automotrices .auto-vessel-table thead th:nth-child(4){width:18%!important}
#buques-automotrices .auto-vessel-table thead th:nth-child(5){width:22%!important}

/* Rediseño móvil de Operación Portuaria: tarjetas legibles y mapa adaptable */
@media(max-width:760px){
  #buques-automotrices{box-sizing:border-box;width:100%;max-width:100%;overflow:hidden;padding:16px 12px!important}
  #buques-automotrices *{box-sizing:border-box}
  #buques-automotrices .auto-vessels-heading{display:flex!important;flex-direction:column!important;gap:14px!important;align-items:stretch!important}
  #buques-automotrices .auto-vessels-heading h2{font-size:clamp(25px,7vw,36px)!important;line-height:1.08!important;margin:8px 0!important}
  #buques-automotrices .auto-vessels-heading p{font-size:14px!important;line-height:1.45!important}
  #buques-automotrices .auto-vessels-summary{display:grid!important;grid-template-columns:auto 1fr!important;column-gap:12px!important;align-items:center!important;padding:12px 14px!important}
  #buques-automotrices .auto-vessels-summary strong{grid-row:span 2!important;font-size:42px!important;line-height:1!important}
  #buques-automotrices .auto-vessels-summary span{font-size:12px!important}
  #buques-automotrices .auto-vessels-summary small{font-size:12px!important;line-height:1.35!important}
  #buques-automotrices .auto-vessels-content{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;min-width:0!important}
  #buques-automotrices .auto-vessel-list{width:100%!important;min-width:0!important;padding:10px!important;overflow:hidden!important}
  #buques-automotrices .auto-vessel-table-wrap{width:100%!important;overflow:visible!important}
  #buques-automotrices .auto-vessel-table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important;border:0!important}
  #buques-automotrices .auto-vessel-table thead{display:none!important}
  #buques-automotrices .auto-vessel-table tbody{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important}
  #buques-automotrices .auto-vessel-table tbody tr{
    display:grid!important;
    grid-template-columns:minmax(0,42%) minmax(0,58%)!important;
    grid-template-areas:"photo name" "pier agency" "date cargo"!important;
    width:100%!important;margin:0!important;padding:0!important;
    border:1px solid rgba(151,190,207,.28)!important;border-radius:12px!important;
    overflow:hidden!important;background:rgba(4,20,31,.28)!important
  }
  #buques-automotrices .auto-vessel-table tbody td{
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    align-items:center!important;min-width:0!important;max-width:none!important;width:auto!important;
    padding:9px 6px!important;margin:0!important;text-align:center!important;
    white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
    font-size:13px!important;line-height:1.3!important;border:0!important;
    border-right:1px solid rgba(151,190,207,.18)!important;
    border-bottom:1px solid rgba(151,190,207,.18)!important
  }
  #buques-automotrices .auto-vessel-table tbody td::before{
    content:attr(data-label)!important;display:block!important;margin:0 0 5px!important;
    color:#9fc1d0!important;font-size:10px!important;font-weight:700!important;
    letter-spacing:.04em!important;text-transform:uppercase!important;line-height:1.2!important
  }
  #buques-automotrices .auto-vessel-table tbody td:nth-child(1){grid-area:photo!important;padding:8px!important}
  #buques-automotrices .auto-vessel-table tbody td:nth-child(1)::before{content:"FOTOGRAFÍA"!important}
  #buques-automotrices .auto-vessel-table tbody td:nth-child(2){grid-area:name!important;font-size:17px!important;font-weight:700!important;overflow-wrap:anywhere!important}
  #buques-automotrices .auto-vessel-table tbody td:nth-child(2)::before{content:"BUQUE"!important}
  #buques-automotrices .auto-vessel-table tbody td:nth-child(3){grid-area:pier!important}
  #buques-automotrices .auto-vessel-table tbody td:nth-child(4){grid-area:agency!important;border-right:0!important}
  #buques-automotrices .auto-vessel-table tbody td:nth-child(5){grid-area:date!important}
  #buques-automotrices .auto-vessel-table tbody td:nth-child(6){grid-area:cargo!important;border-right:0!important}
  #buques-automotrices .auto-vessel-photo-link{width:100%!important;min-width:0!important;height:105px!important;border-radius:7px!important}
  #buques-automotrices .auto-vessel-photo{width:100%!important;height:105px!important;max-height:105px!important;object-fit:cover!important}
  #buques-automotrices .auto-vessel-photo-fallback{font-size:28px!important}
  #buques-automotrices .auto-vessel-map-card{width:100%!important;min-width:0!important;overflow:hidden!important}
  #buques-automotrices .auto-map-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;padding:14px!important}
  #buques-automotrices .auto-map-title h3{font-size:clamp(22px,6vw,30px)!important;line-height:1.15!important}
  #buques-automotrices .auto-vessel-map{width:100%!important;height:360px!important;min-height:360px!important;overflow:hidden!important}
  #buques-automotrices .auto-vessel-map iframe{display:block!important;width:100%!important;height:360px!important;min-height:360px!important;border:0!important}
  #buques-automotrices .auto-map-footer{display:flex!important;flex-direction:column!important;gap:8px!important;padding:12px 14px!important;font-size:12px!important}
  #buques-automotrices .auto-vessels-source{font-size:11px!important;line-height:1.5!important}
}
@media(max-width:380px){
  #buques-automotrices{padding:12px 8px!important}
  #buques-automotrices .auto-vessel-table tbody tr{grid-template-columns:minmax(0,40%) minmax(0,60%)!important}
  #buques-automotrices .auto-vessel-table tbody td{font-size:12px!important;padding:8px 4px!important}
  #buques-automotrices .auto-vessel-photo-link,#buques-automotrices .auto-vessel-photo{height:88px!important;max-height:88px!important}
}

/* FIX DEFINITIVO MÓVIL: tarjetas con grid explícito, sin herencia de estilos de tabla */
@media (max-width: 760px) {
  #buques-automotrices .auto-vessels-content,
  #buques-automotrices .auto-vessel-list,
  #buques-automotrices .auto-vessel-table-wrap {
    display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
    overflow:hidden!important;box-sizing:border-box!important;
  }
  #buques-automotrices .auto-vessel-table {
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    table-layout:auto!important;border:0!important;border-collapse:separate!important;
    border-spacing:0!important;box-sizing:border-box!important;
  }
  #buques-automotrices .auto-vessel-table thead {display:none!important}
  #buques-automotrices .auto-vessel-table tbody {
    display:flex!important;flex-direction:column!important;gap:14px!important;
    width:100%!important;min-width:0!important;
  }
  #buques-automotrices .auto-vessel-table tbody tr {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    grid-auto-flow:row!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:0!important;
    border:1px solid rgba(151,190,207,.32)!important;border-radius:12px!important;
    overflow:hidden!important;background:rgba(4,20,31,.24)!important;
    box-sizing:border-box!important;
  }
  #buques-automotrices .auto-vessel-table tbody tr > td {
    display:flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:center!important;
    width:auto!important;min-width:0!important;max-width:100%!important;
    min-height:70px!important;margin:0!important;padding:10px 8px!important;
    box-sizing:border-box!important;
    border:0!important;border-right:1px solid rgba(151,190,207,.20)!important;
    border-bottom:1px solid rgba(151,190,207,.20)!important;
    text-align:center!important;
    white-space:normal!important;word-break:normal!important;
    overflow-wrap:break-word!important;hyphens:none!important;
    font-size:14px!important;line-height:1.3!important;
  }
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(2n) {
    border-right:0!important;
  }
  #buques-automotrices .auto-vessel-table tbody tr > td::before {
    display:block!important;position:static!important;
    width:auto!important;height:auto!important;max-width:100%!important;
    margin:0 0 7px!important;padding:0!important;
    color:#9fc1d0!important;font-size:10px!important;font-weight:700!important;
    letter-spacing:.06em!important;line-height:1.2!important;
    text-align:center!important;white-space:normal!important;
    word-break:normal!important;overflow-wrap:normal!important;
    background:none!important;border:0!important;
  }
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(1)::before{content:"FOTOGRAFÍA"!important}
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(2)::before{content:"BUQUE"!important}
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(3)::before{content:"MUELLE"!important}
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(4)::before{content:"AGENCIA"!important}
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(5)::before{content:"FECHA"!important}
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(6)::before{content:"DESCRIPCIÓN DE CARGA"!important}
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(2) {
    font-size:17px!important;font-weight:700!important;overflow-wrap:anywhere!important;
  }
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(4),
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(6) {
    border-right:0!important;
  }
  #buques-automotrices .auto-vessel-photo-cell {padding:8px!important}
  #buques-automotrices .auto-vessel-photo-link {
    display:block!important;width:100%!important;height:112px!important;
    max-width:100%!important;min-width:0!important;overflow:hidden!important;
  }
  #buques-automotrices .auto-vessel-photo {
    display:block!important;width:100%!important;height:112px!important;
    max-width:100%!important;object-fit:cover!important;
  }
  #buques-automotrices .auto-vessel-no-photo,
  #buques-automotrices .auto-vessel-photo-fallback {font-size:30px!important}
  #buques-automotrices .auto-vessel-map-card {
    display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
    overflow:hidden!important;
  }
  #buques-automotrices .auto-vessel-map,
  #buques-automotrices .auto-vessel-map iframe {
    display:block!important;width:100%!important;max-width:100%!important;
    height:340px!important;min-height:340px!important;border:0!important;
  }
}
@media (max-width:380px) {
  #buques-automotrices .auto-vessel-table tbody tr > td {font-size:12px!important;padding:8px 5px!important}
  #buques-automotrices .auto-vessel-table tbody tr > td:nth-child(2) {font-size:15px!important}
  #buques-automotrices .auto-vessel-photo-link,
  #buques-automotrices .auto-vessel-photo {height:90px!important}
}


/* OVERRIDE FINAL: resetear grid-area heredadas y fijar distribución de las 6 celdas */
@media screen and (max-width: 760px) {
  #buques-automotrices .auto-vessel-list,
  #buques-automotrices .auto-vessel-table-wrap {
    display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
    padding:10px!important;overflow:visible!important;
  }
  #buques-automotrices table.auto-vessel-table {
    display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;border:0!important;
    table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;
  }
  #buques-automotrices table.auto-vessel-table thead {display:none!important}
  #buques-automotrices table.auto-vessel-table tbody {
    display:flex!important;flex-direction:column!important;gap:14px!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  #buques-automotrices table.auto-vessel-table tbody tr {
    display:grid!important;
    grid-template-columns:minmax(0,40%) minmax(0,60%)!important;
    grid-template-rows:auto auto auto!important;
    grid-template-areas:"photo name" "pier agency" "date cargo"!important;
    gap:0!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;margin:0!important;padding:0!important;
    border:1px solid rgba(151,190,207,.32)!important;border-radius:13px!important;
    overflow:hidden!important;background:rgba(4,20,31,.24)!important;
  }
  #buques-automotrices table.auto-vessel-table tbody tr > td {
    grid-area:auto!important;display:flex!important;float:none!important;
    position:static!important;flex-direction:column!important;
    justify-content:center!important;align-items:center!important;
    width:auto!important;min-width:0!important;max-width:none!important;
    height:auto!important;min-height:76px!important;margin:0!important;
    padding:10px 7px!important;box-sizing:border-box!important;
    border:0!important;border-right:1px solid rgba(151,190,207,.2)!important;
    border-bottom:1px solid rgba(151,190,207,.2)!important;
    text-align:center!important;white-space:normal!important;
    word-break:normal!important;overflow-wrap:break-word!important;hyphens:none!important;
    font-size:14px!important;line-height:1.3!important;
  }
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(1){grid-area:photo!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(2){grid-area:name!important;border-right:0!important;font-size:18px!important;font-weight:800!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(3){grid-area:pier!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(4){grid-area:agency!important;border-right:0!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(5){grid-area:date!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(6){grid-area:cargo!important;border-right:0!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td::before {
    display:block!important;position:static!important;float:none!important;
    width:auto!important;height:auto!important;max-width:100%!important;
    margin:0 0 7px!important;padding:0!important;
    color:#9fc1d0!important;font-size:10px!important;font-weight:800!important;
    letter-spacing:.06em!important;line-height:1.2!important;text-align:center!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
    background:transparent!important;border:0!important;
  }
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(1)::before{content:"FOTOGRAFÍA"!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(2)::before{content:"BUQUE"!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(3)::before{content:"MUELLE"!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(4)::before{content:"AGENCIA"!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(5)::before{content:"FECHA"!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(6)::before{content:"DESCRIPCIÓN DE CARGA"!important}
  #buques-automotrices .auto-vessel-photo-cell{padding:9px!important}
  #buques-automotrices .auto-vessel-photo-link{
    display:block!important;position:relative!important;float:none!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:112px!important;min-height:112px!important;margin:0!important;overflow:hidden!important;
  }
  #buques-automotrices .auto-vessel-photo{
    display:block!important;width:100%!important;max-width:100%!important;
    height:112px!important;max-height:112px!important;object-fit:cover!important;
  }
  #buques-automotrices .auto-vessel-map-card{width:100%!important;max-width:100%!important;min-width:0!important}
}
@media screen and (max-width:380px) {
  #buques-automotrices table.auto-vessel-table tbody tr{grid-template-columns:minmax(0,38%) minmax(0,62%)!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td{font-size:12px!important;padding:8px 5px!important}
  #buques-automotrices table.auto-vessel-table tbody tr > td:nth-child(2){font-size:16px!important}
  #buques-automotrices .auto-vessel-photo-link,
  #buques-automotrices .auto-vessel-photo{height:94px!important;max-height:94px!important;min-height:94px!important}
}


/* MOBILE REBUILD: markup de tarjetas independiente de la tabla de escritorio */
.auto-vessel-mobile-list{display:none}
@media screen and (max-width:760px){
  #buques-automotrices .auto-vessel-desktop-table{display:none!important}
  #buques-automotrices .auto-vessel-mobile-list{
    display:flex!important;flex-direction:column!important;gap:14px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
  }
  #buques-automotrices .auto-vessel-mobile-card{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    box-sizing:border-box!important;overflow:hidden!important;
    border:1px solid rgba(151,190,207,.34)!important;border-radius:14px!important;
    background:rgba(4,20,31,.22)!important;
  }
  #buques-automotrices .auto-vessel-mobile-identity{
    display:grid!important;grid-template-columns:minmax(0,40%) minmax(0,60%)!important;
    width:100%!important;min-width:0!important;box-sizing:border-box!important;
    border-bottom:1px solid rgba(151,190,207,.2)!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo,
  #buques-automotrices .auto-vessel-mobile-name{
    display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:center!important;gap:10px!important;
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
    padding:13px 10px!important;text-align:center!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo{border-right:1px solid rgba(151,190,207,.2)!important}
  #buques-automotrices .auto-vessel-mobile-card small{
    display:block!important;max-width:100%!important;margin:0!important;
    color:#9fc1d0!important;font-size:11px!important;font-weight:800!important;
    letter-spacing:.07em!important;line-height:1.25!important;text-align:center!important;
    white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
  }
  #buques-automotrices .auto-vessel-mobile-name strong{
    display:block!important;width:100%!important;min-width:0!important;
    color:#fff!important;font-size:clamp(19px,5vw,25px)!important;font-weight:800!important;
    line-height:1.2!important;text-align:center!important;
    white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo .auto-vessel-photo-link{
    display:block!important;width:100%!important;max-width:180px!important;
    height:112px!important;min-width:0!important;overflow:hidden!important;
    border-radius:8px!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo .auto-vessel-photo{
    display:block!important;width:100%!important;height:112px!important;
    max-width:100%!important;object-fit:cover!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo .auto-vessel-no-photo{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;height:112px!important;font-size:42px!important;
  }
  #buques-automotrices .auto-vessel-mobile-details{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
  #buques-automotrices .auto-vessel-mobile-details>div{
    display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:center!important;gap:7px!important;
    min-width:0!important;min-height:78px!important;max-width:100%!important;
    padding:12px 8px!important;box-sizing:border-box!important;text-align:center!important;
    border-bottom:1px solid rgba(151,190,207,.18)!important;
  }
  #buques-automotrices .auto-vessel-mobile-details>div:nth-child(odd){border-right:1px solid rgba(151,190,207,.18)!important}
  #buques-automotrices .auto-vessel-mobile-details>div:nth-last-child(-n+2){border-bottom:0!important}
  #buques-automotrices .auto-vessel-mobile-details span{
    display:block!important;max-width:100%!important;color:#fff!important;
    font-size:14px!important;line-height:1.35!important;text-align:center!important;
    white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
  }
}
@media screen and (max-width:380px){
  #buques-automotrices .auto-vessel-mobile-identity{grid-template-columns:minmax(0,38%) minmax(0,62%)!important}
  #buques-automotrices .auto-vessel-mobile-photo,
  #buques-automotrices .auto-vessel-mobile-name{padding:11px 7px!important}
  #buques-automotrices .auto-vessel-mobile-details span{font-size:12px!important}
}


/* ═══ Buques automotrices: tabla siempre ajustada y foto fija por buque (autoridad única) ═══ */
#buques-automotrices .auto-vessel-name-cell small,
#buques-automotrices .auto-vessel-mobile-name em{display:block;margin-top:3px;font-size:.72em;font-weight:700;font-style:normal;letter-spacing:.05em;color:#9dcddd}
#buques-automotrices a.auto-vessel-no-photo{text-decoration:none;cursor:pointer}
#buques-automotrices a.auto-vessel-no-photo:hover{background:rgba(93,173,211,.22)}
@media screen and (min-width:761px){
 #buques-automotrices .auto-vessels-content{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 #buques-automotrices .auto-vessel-list{min-width:0!important}
 #buques-automotrices .auto-vessel-desktop-table{display:block!important;min-width:0}
 #buques-automotrices .auto-vessel-mobile-list{display:none!important}
 #buques-automotrices .auto-vessel-table-wrap{overflow-x:auto}
 #buques-automotrices .auto-vessel-table{display:table!important;width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse}
 #buques-automotrices .auto-vessel-table thead{display:table-header-group!important}
 #buques-automotrices .auto-vessel-table tbody{display:table-row-group!important}
 #buques-automotrices .auto-vessel-table tr{display:table-row!important}
 #buques-automotrices .auto-vessel-table th,
 #buques-automotrices .auto-vessel-table td{display:table-cell!important;min-width:0!important;box-sizing:border-box;vertical-align:middle;text-align:center;overflow-wrap:anywhere;word-break:normal;hyphens:auto;white-space:normal;line-height:1.3}
 #buques-automotrices .auto-vessel-table th{padding:11px 8px;font-size:clamp(11px,1.05vw,14px);letter-spacing:.02em}
 #buques-automotrices .auto-vessel-table td{padding:10px 8px;font-size:clamp(12px,1.05vw,14.5px)}
 #buques-automotrices .auto-vessel-table td::before{content:none!important}
 #buques-automotrices .auto-vessel-table col.c-photo{width:132px}
 #buques-automotrices .auto-vessel-table col.c-name{width:21%}
 #buques-automotrices .auto-vessel-table col.c-dock{width:9%}
 #buques-automotrices .auto-vessel-table col.c-agency{width:21%}
 #buques-automotrices .auto-vessel-table col.c-date{width:16%}
 #buques-automotrices .auto-vessel-table td.auto-vessel-photo-cell{padding:8px}
 #buques-automotrices .auto-vessel-table .auto-vessel-photo-link,
 #buques-automotrices .auto-vessel-table .auto-vessel-no-photo{display:grid!important;place-items:center;width:112px;max-width:100%;aspect-ratio:3/2;height:auto;margin:0 auto;border-radius:9px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14)}
 #buques-automotrices .auto-vessel-table .auto-vessel-photo-link{position:relative}
 #buques-automotrices .auto-vessel-table .auto-vessel-photo{position:absolute!important;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:0}
 #buques-automotrices .auto-vessel-table .auto-vessel-no-photo,
 #buques-automotrices .auto-vessel-table .auto-vessel-photo-fallback{font-size:26px;line-height:1}
 #buques-automotrices .auto-vessel-table td.auto-vessel-name-cell strong{font-size:1.02em;letter-spacing:.02em}
 #buques-automotrices .auto-vessel-table td.auto-vessel-date-cell span{display:block;white-space:nowrap}
}
@media screen and (min-width:1280px){
 #buques-automotrices .auto-vessels-content{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important}
}
@media screen and (max-width:760px){
 #buques-automotrices .auto-vessel-mobile-name em{white-space:normal;overflow-wrap:anywhere;text-align:center}
 #buques-automotrices .auto-vessel-mobile-photo a.auto-vessel-no-photo{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:112px!important;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);font-size:42px!important}
}


/* Buques: miniaturas con proporción natural y datos en una sola línea en escritorio/tablet */
@media (min-width:761px){
  #buques-automotrices .auto-vessel-table-wrap{overflow:hidden!important}
  #buques-automotrices .auto-vessel-table{
    width:100%!important;min-width:0!important;table-layout:fixed!important;
    font-size:clamp(10px,.88vw,12px)!important;
  }
  #buques-automotrices .auto-vessel-table th,
  #buques-automotrices .auto-vessel-table td{
    white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;
    padding:9px 5px!important;line-height:1.2!important;
  }
  /* Las dos primeras columnas comparten el encabezado "Buque". */
  #buques-automotrices .auto-vessel-table col.c-photo{width:17%!important}
  #buques-automotrices .auto-vessel-table col.c-name{width:19%!important}
  #buques-automotrices .auto-vessel-table col.c-dock{width:8%!important}
  #buques-automotrices .auto-vessel-table col.c-agency{width:19%!important}
  #buques-automotrices .auto-vessel-table col.c-date{width:17%!important}
  #buques-automotrices .auto-vessel-table col.c-cargo{width:20%!important}
  #buques-automotrices .auto-vessel-table td.auto-vessel-name-cell strong,
  #buques-automotrices .auto-vessel-table td[data-label="Agencia"],
  #buques-automotrices .auto-vessel-table td[data-label="Descripción Carga"]{font-size:clamp(10px,.82vw,12px)!important}
  #buques-automotrices .auto-vessel-table td.auto-vessel-name-cell small{display:block;margin-top:3px;white-space:nowrap!important}
  #buques-automotrices .auto-vessel-table td.auto-vessel-photo-cell{width:auto!important;min-width:0!important;padding:7px!important}
  #buques-automotrices .auto-vessel-photo-link{
    width:100%!important;height:auto!important;aspect-ratio:4/3!important;
    max-height:112px!important;border-radius:8px!important;
  }
  #buques-automotrices .auto-vessel-photo{
    display:block!important;width:100%!important;height:100%!important;max-height:none!important;
    object-fit:cover!important;object-position:center!important;
  }
}


/* FIX DEFINITIVO MÓVIL — tarjetas de buques: impedir columnas colapsadas y texto vertical */
@media screen and (max-width:760px){
  #buques-automotrices .auto-vessel-mobile-list,
  #buques-automotrices .auto-vessel-mobile-card{
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  #buques-automotrices .auto-vessel-mobile-identity{
    display:grid!important;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr)!important;
    align-items:stretch!important;
    width:100%!important;min-width:0!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo,
  #buques-automotrices .auto-vessel-mobile-name{
    writing-mode:horizontal-tb!important;
    text-orientation:mixed!important;
    min-width:0!important;width:auto!important;max-width:100%!important;
    overflow:visible!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo small,
  #buques-automotrices .auto-vessel-mobile-name small{
    display:block!important;width:100%!important;
    writing-mode:horizontal-tb!important;text-orientation:mixed!important;
    white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;
    font-size:10px!important;letter-spacing:.04em!important;
  }
  #buques-automotrices .auto-vessel-mobile-name{
    align-items:flex-start!important;text-align:left!important;
    justify-content:center!important;padding:14px 12px!important;
  }
  #buques-automotrices .auto-vessel-mobile-name strong{
    display:block!important;width:100%!important;max-width:100%!important;
    writing-mode:horizontal-tb!important;text-orientation:mixed!important;
    white-space:normal!important;word-break:keep-all!important;
    overflow-wrap:break-word!important;hyphens:none!important;
    text-align:left!important;font-size:clamp(16px,4.8vw,22px)!important;
    line-height:1.2!important;letter-spacing:0!important;
  }
  #buques-automotrices .auto-vessel-mobile-name em{
    display:block!important;width:100%!important;text-align:left!important;
    white-space:nowrap!important;word-break:keep-all!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo .auto-vessel-photo-link,
  #buques-automotrices .auto-vessel-mobile-photo .auto-vessel-photo,
  #buques-automotrices .auto-vessel-mobile-photo .auto-vessel-no-photo{
    display:flex!important;width:100%!important;max-width:100%!important;
    height:104px!important;min-height:104px!important;max-height:104px!important;
    object-fit:cover!important;object-position:center!important;
  }
  #buques-automotrices .auto-vessel-mobile-details>div,
  #buques-automotrices .auto-vessel-mobile-details small,
  #buques-automotrices .auto-vessel-mobile-details span{
    writing-mode:horizontal-tb!important;text-orientation:mixed!important;
    word-break:keep-all!important;overflow-wrap:break-word!important;hyphens:none!important;
  }
}
@media screen and (max-width:380px){
  #buques-automotrices .auto-vessel-mobile-identity{
    grid-template-columns:108px minmax(0,1fr)!important;
  }
  #buques-automotrices .auto-vessel-mobile-name{padding:12px 9px!important}
  #buques-automotrices .auto-vessel-mobile-name strong{font-size:16px!important}
}
/* FIN FIX MÓVIL */


/* AJUSTE FINAL TABLA DE BUQUES: foto completa y fecha/hora en una sola línea */
#buques-automotrices .auto-vessel-table td.auto-vessel-date-cell,
#buques-automotrices .auto-vessel-table td.auto-vessel-date-cell span{
  white-space:nowrap!important;word-break:keep-all!important;
  overflow-wrap:normal!important;hyphens:none!important;
}
#buques-automotrices .auto-vessel-table td.auto-vessel-date-cell span{display:inline!important}
#buques-automotrices .auto-vessel-table .auto-vessel-photo-link{
  display:grid!important;place-items:center!important;overflow:hidden!important;
  background:rgba(5,18,28,.28)!important;
}
#buques-automotrices .auto-vessel-table .auto-vessel-photo{
  width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center center!important;
}
@media screen and (max-width:760px){
  #buques-automotrices .auto-vessel-mobile-details>div:nth-child(3) span{
    white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;
    font-size:clamp(11px,3.2vw,14px)!important;
  }
  #buques-automotrices .auto-vessel-mobile-photo .auto-vessel-photo{
    object-fit:contain!important;object-position:center center!important;
    background:rgba(5,18,28,.28)!important;
  }
}
/* FIN AJUSTE TABLA DE BUQUES */


/* Visor de fotografías de buques: ampliación superpuesta sin salir de ClimaPuerto */
#buques-automotrices .auto-vessel-photo-link{
  appearance:none!important;-webkit-appearance:none!important;
  border:0!important;padding:0!important;margin:0!important;
  cursor:zoom-in!important;font:inherit!important;color:inherit!important;
}
.auto-vessel-lightbox[hidden]{display:none!important}
.auto-vessel-lightbox{
  position:fixed!important;inset:0!important;z-index:99999!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:14px!important;padding:56px 20px 24px!important;
  background:rgba(2,8,14,.94)!important;backdrop-filter:blur(12px)!important;
}
.auto-vessel-lightbox-image{
  display:block!important;max-width:min(94vw,1400px)!important;
  max-height:calc(100vh - 125px)!important;width:auto!important;height:auto!important;
  object-fit:contain!important;border-radius:12px!important;
  box-shadow:0 18px 70px rgba(0,0,0,.55)!important;
}
.auto-vessel-lightbox-caption{
  color:#eaf5fb!important;text-align:center!important;font-size:13px!important;
  line-height:1.4!important;max-width:90vw!important;
}
.auto-vessel-lightbox-close{
  position:absolute!important;top:16px!important;right:18px!important;
  width:44px!important;height:44px!important;border:1px solid rgba(255,255,255,.3)!important;
  border-radius:50%!important;background:rgba(255,255,255,.12)!important;
  color:#fff!important;font-size:30px!important;line-height:1!important;
  cursor:pointer!important;
}
body.auto-vessel-lightbox-open{overflow:hidden!important}
@media(max-width:600px){
  .auto-vessel-lightbox{padding:58px 10px 20px!important}
  .auto-vessel-lightbox-image{max-width:96vw!important;max-height:calc(100vh - 120px)!important}
}


/* ═══════════════════════════════════════════════════════════════════════
   CLIMAPUERTO · NUEVA IDENTIDAD VISUAL CLARA
   Paleta inspirada en ilustraciones meteorológicas: cielo, menta y coral.
   Se conservan las animaciones, la lógica y las capas atmosféricas.
   ═══════════════════════════════════════════════════════════════════════ */
:root{
  color-scheme:light;
  --cp-ink:#243747;
  --cp-muted:#718391;
  --cp-line:#e5edf1;
  --cp-paper:#ffffff;
  --cp-canvas:#f3f7f9;
  --cp-sky:#dff2f4;
  --cp-mint:#e6f3c9;
  --cp-coral:#f39a55;
  --cp-blue:#75b9d2;
  --ink:var(--cp-ink);
  --mut:var(--cp-muted);
  --glass:rgba(255,255,255,.86);
  --glass-b:rgba(219,231,237,.9);
}
html{background:#f3f7f9!important}
body{
  color:var(--cp-ink)!important;
  background:linear-gradient(145deg,#f8fbfc 0%,#edf5f6 52%,#f7f8f4 100%)!important;
  transition:background 1.6s ease;
}
body[data-weather=partly-cloudy-day]{background:linear-gradient(145deg,#f7fbfc,#e8f4f4 55%,#f7f5ef)!important}
body[data-weather=cloudy-day],body[data-weather=fog-day]{background:linear-gradient(145deg,#f4f7f8,#e9eff1 60%,#f7f8f7)!important}
body[data-weather=rain-day],body[data-weather=storm-day]{background:linear-gradient(145deg,#edf4f7,#e2edf2 58%,#f4f7f8)!important}
body[data-weather*=night]{background:linear-gradient(145deg,#edf2f7,#e7eef4 58%,#f5f7f8)!important}
.weather-board{
  color:var(--cp-ink)!important;
  background:linear-gradient(135deg,#ffffff 0%,#f4fafb 55%,#f8fbf7 100%)!important;
  border:1px solid rgba(213,229,235,.9);
  box-shadow:0 24px 70px rgba(63,104,123,.13),inset 0 0 0 1px rgba(255,255,255,.9)!important;
}
.scene-sky{background:linear-gradient(135deg,#e8f7f5 0%,#dceff4 52%,#f8e9d9 100%)!important;opacity:.78}
[data-weather=partly-cloudy-day] .scene-sky{background:linear-gradient(135deg,#d9f0ee,#d9eaf7 55%,#fce5d0)!important}
[data-weather=cloudy-day] .scene-sky,[data-weather=fog-day] .scene-sky{background:linear-gradient(135deg,#e7f0f1,#dfe9ed 55%,#f4f4ef)!important}
[data-weather=rain-day] .scene-sky,[data-weather=storm-day] .scene-sky{background:linear-gradient(135deg,#d9e8ed,#cbdfe8 55%,#e4eff0)!important}
[data-weather*=night] .scene-sky{background:linear-gradient(135deg,#dce8f1,#d6e5ee 55%,#e9edf1)!important}
[data-weather=norte-day] .scene-sky,[data-weather=norte-night] .scene-sky{background:linear-gradient(135deg,#d9edf0,#cfe5ed 55%,#e8f0ed)!important}
.scene-photo{opacity:.12!important;mix-blend-mode:multiply!important}
.scene-vig{background:linear-gradient(90deg,rgba(255,255,255,.16),transparent 60%),linear-gradient(0deg,rgba(255,255,255,.12),transparent 48%),linear-gradient(180deg,rgba(255,255,255,.2),transparent 24%)!important}
.board-top,.current-weather,.side{color:var(--cp-ink)!important}
.brand-title{color:#29495a!important;text-shadow:none!important;font-weight:800!important}
.place{color:#6e8490!important;border-color:#d7e4e9!important}
.pin{color:#e58c4e!important}
.date-line,.live-state{color:#718391!important}
.live-state i{background:#63bd91!important;box-shadow:0 0 10px rgba(99,189,145,.45)!important}
.share-weather-trigger{
  color:#fff!important;background:#ed9250!important;border:0!important;
  border-radius:999px!important;box-shadow:0 7px 18px rgba(225,137,75,.2)!important;
}
.current-weather{text-shadow:none!important}
.temperature{color:#263e50!important;text-shadow:none!important}
.temperature sup{color:#e88e4d!important}
.current-weather h1{color:#2b4657!important}
.place-sub,.meta,.feels-line,.updated{color:#748894!important}
.meta time{color:#385568!important}
.hero-clock{color:#40596a!important}
.hero-clock small{color:#7c909b!important}
.quick-stats{gap:11px!important}
.stat-block{
  color:#304b5c!important;background:rgba(255,255,255,.88)!important;
  border:1px solid #e1ebee!important;box-shadow:0 8px 22px rgba(62,105,124,.08)!important;
  backdrop-filter:blur(12px)!important;
}
.stat-block span,.stat-block small{color:#758994!important}
.stat-block b{color:#29485a!important}
.stat-icon{stroke:#70aebd!important}
.glass{
  color:#2c4657!important;background:rgba(255,255,255,.91)!important;
  border:1px solid #e3ecef!important;backdrop-filter:blur(16px) saturate(1.08)!important;
  box-shadow:0 12px 30px rgba(64,105,123,.09)!important;
}
.card-head{color:#385568!important;border-color:#e8eff1!important}
.card-head svg{stroke:#e79a59!important}
.hour-card span,.hour-card small,.day-row .d small,.empty-state{color:#82939d!important}
.hour-card b,.day-row,.day-row .d,.hi{color:#304b5b!important}
.hour-card img,.day-row img{filter:drop-shadow(0 3px 6px rgba(73,112,130,.14))!important}
.range{background:#e8eef0!important}
.range i{background:linear-gradient(90deg,#9ed8ce,#f1b27b)!important}
.range u{background:#f19a55!important;box-shadow:0 0 0 3px rgba(241,154,85,.18)!important}
.port-status-strip{
  color:#395466!important;background:rgba(255,255,255,.78)!important;
  border:1px solid #e3ecef!important;border-radius:14px!important;
  box-shadow:0 5px 16px rgba(68,111,128,.06)!important;
}
.port-status-head,.port-status-row{color:#718692!important;border-color:#e8eff1!important}
.port-status-row b{color:#405c6d!important}
.port-status-value.is-open{color:#329b75!important}
.port-status-value.is-closed{color:#d87968!important}
.port-status-value.is-partial{color:#c58b43!important}
.port-status-value.is-unknown{color:#8999a2!important}
.hourly-gust-section,.wind-map-section,.auto-vessels-section{
  color:#2e4859!important;background:rgba(255,255,255,.9)!important;
  border:1px solid #e4edf0!important;border-radius:24px!important;
  box-shadow:0 15px 42px rgba(65,105,123,.08)!important;
}
.hourly-gust-heading h2,.wind-map-heading h2,.auto-vessels-heading h2{color:#294657!important}
.hourly-gust-heading p,.wind-map-heading p,.auto-vessels-heading p{color:#7b8e99!important}
.hourly-gust-kicker,.wind-map-kicker,.auto-vessels-kicker{color:#d9874d!important}
.hourly-gust-legend,.hourly-gust-legend span{color:#718692!important}
.hourly-gust-chart{color:#456273!important}
.wind-map-layer,.wind-map-open{
  color:#426174!important;background:#edf5f6!important;border:1px solid #dce9ec!important;
  border-radius:999px!important;
}
.wind-map-open{background:#eaf3d8!important;border-color:#dce9bd!important}
.wind-map-preview{border:1px solid #e0eaed!important;border-radius:18px!important;overflow:hidden}
.auto-vessels-summary{
  color:#3d5969!important;background:#edf6f4!important;border:1px solid #dcebe6!important;
  border-radius:16px!important;
}
.auto-vessels-summary strong{color:#df8c4f!important}
.auto-vessel-map-card,.auto-vessel-list,.auto-vessel-mobile-card{
  color:#385466!important;background:#f8fbfc!important;border-color:#e1ebee!important;
  box-shadow:0 8px 24px rgba(63,103,120,.06)!important;
}
.auto-map-title h3,.auto-vessel-mobile-name strong,.auto-vessel-table td{color:#365365!important}
.auto-map-title small,.auto-map-footer,.auto-vessel-source,.auto-vessels-source{color:#82939d!important}
.auto-vessel-table th{color:#587080!important;background:#edf4f5!important;border-color:#e1eaed!important}
.auto-vessel-table td{background:#fff!important;border-color:#e9eff1!important}
.auto-vessel-mobile-details>div{border-color:#e5edef!important}
.auto-vessel-mobile-details span{color:#526d7c!important}
.auto-vessel-mobile-name em,.auto-vessel-name-cell small{color:#7aa7ad!important}
.auto-vessel-photo-link,.auto-vessel-no-photo{background:#edf3f4!important;border-color:#dce7ea!important}
footer{color:#81929c!important}
footer a,.auto-vessels-source a,.auto-map-footer a{color:#d9854b!important}
.share-weather-dialog{background:#f5f8f9!important;color:#304b5c!important}
.share-toolbar{color:#506b7b!important}
.share-weather-card{background:linear-gradient(140deg,#fff,#f0f8f7)!important;color:#2f4a5a!important;border:1px solid #dfeaed!important;box-shadow:0 18px 50px rgba(58,100,120,.13)!important}
.share-weather-card *{text-shadow:none!important}
.share-temp,.share-condition h2,.share-metrics b{color:#2f4b5c!important}
.share-metrics>div{background:#f1f7f5!important;border-color:#e1ece8!important}
.share-metrics span,.share-metrics small,.share-times,.share-location,.share-date{color:#748994!important}
.share-foot{color:#84949d!important}
.share-action{background:#e99150!important;color:#fff!important;border:0!important;border-radius:999px!important}
.share-action.secondary{background:#eaf0f2!important;color:#536d7c!important}
button:focus-visible,a:focus-visible{outline:3px solid rgba(231,150,83,.55)!important;outline-offset:3px!important}
@media(max-width:900px){
  .weather-board{background:linear-gradient(150deg,#fff,#f2f8f8)!important}
}
@media(max-width:560px){
  .weather-board{border:1px solid #e1eaed!important;box-shadow:0 12px 34px rgba(63,104,123,.1)!important}
  .board-top{color:#345365!important}
}


/* CONTRASTE DE TARJETAS Y TABLA · BUQUES RORO */
#buques-automotrices .auto-vessel-table th{
  color:#344f60!important;background:#e7f0f2!important;
  font-weight:800!important;
}
#buques-automotrices .auto-vessel-table td,
#buques-automotrices .auto-vessel-table td[data-label],
#buques-automotrices .auto-vessel-table td.auto-vessel-name-cell strong{
  color:#344f60!important;
}
#buques-automotrices .auto-vessel-table td.auto-vessel-name-cell small,
#buques-automotrices .auto-vessel-mobile-name em{
  color:#397b88!important;font-weight:800!important;
}
#buques-automotrices .auto-vessel-mobile-card small,
#buques-automotrices .auto-vessel-mobile-photo small,
#buques-automotrices .auto-vessel-mobile-name small,
#buques-automotrices .auto-vessel-mobile-details small{
  color:#587382!important;
}
#buques-automotrices .auto-vessel-mobile-name strong,
#buques-automotrices .auto-vessel-mobile-details span{
  color:#304b5c!important;
}
#buques-automotrices .auto-vessel-table .auto-vessel-photo-link,
#buques-automotrices .auto-vessel-mobile-photo .auto-vessel-photo-link{
  background:#eaf2f4!important;border:1px solid #d7e5e9!important;
}
#buques-automotrices .auto-vessel-table .auto-vessel-photo,
#buques-automotrices .auto-vessel-mobile-photo .auto-vessel-photo{
  object-fit:contain!important;object-position:center!important;
}


/* CONTRASTE REFORZADO · TEXTOS SOBRE TARJETAS CLARAS */
:root{
  --cp-muted:#526b7a;
}
.hourly-gust-section,
.hourly-gust-section *{
  text-shadow:none!important;
}
.hourly-gust-section .hourly-gust-kicker{
  color:#b9652e!important;font-weight:900!important;
}
.hourly-gust-section .hourly-gust-heading h2{
  color:#243f50!important;font-weight:800!important;
}
.hourly-gust-section .hourly-gust-heading p{
  color:#536d7c!important;opacity:1!important;font-weight:600!important;
}
.hourly-gust-section #hourly-gust-summary{
  color:#29495b!important;font-weight:800!important;opacity:1!important;
}
.hourly-gust-section .hourly-gust-legend,
.hourly-gust-section .hourly-gust-legend span{
  color:#526b79!important;font-weight:700!important;opacity:1!important;
}
.hourly-gust-section .gust-hour-value{
  color:#365467!important;font-weight:800!important;opacity:1!important;
}
.hourly-gust-section .gust-hour-label{
  color:#526b79!important;font-weight:700!important;opacity:1!important;
}
.hourly-gust-section .gust-hour-track{
  border-bottom-color:#cbd9df!important;
  background:linear-gradient(180deg,rgba(74,111,130,.045),rgba(74,111,130,.01))!important;
}
/* Igualar el contraste de metadatos y textos secundarios en tarjetas claras. */
.glass .card-head,.glass .hour-card span,.glass .hour-card small,
.glass .day-row .d small,.glass .empty-state,
.stat-block span,.stat-block small,
.date-line,.live-state,.place-sub,.meta,.feels-line,.updated,
.auto-map-title small,.auto-map-footer,.auto-vessel-source,.auto-vessels-source,
footer{
  color:#526b79!important;
  opacity:1!important;
}


/* AJUSTES DE CONTRASTE · MÉTRICAS, RELOJ, PRONÓSTICO Y CABECERA RORO */
.current-weather .quick-stats .stat-block span{
  color:#38596b!important;font-size:12px!important;font-weight:800!important;letter-spacing:.01em;
}
.current-weather .quick-stats .stat-block b{
  color:#203f52!important;font-size:clamp(16px,1.5vw,20px)!important;font-weight:800!important;
}
.current-weather .quick-stats .stat-block small,
.current-weather .quick-stats .stat-block small strong{
  color:#526e7e!important;font-size:10px!important;font-weight:700!important;opacity:1!important;
}
.current-weather .quick-stats .stat-icon{stroke:#5599ad!important}

/* Reloj sobre la cápsula gris: tipografía blanca y mayor jerarquía. */
.current-weather .hero-clock{
  background:rgba(76,91,98,.78)!important;border:1px solid rgba(255,255,255,.42)!important;
  box-shadow:0 10px 24px rgba(42,65,77,.2),inset 0 1px 0 rgba(255,255,255,.24)!important;
}
.current-weather .hero-clock .clock-glyph{color:#fff!important;font-size:25px!important}
.current-weather .hero-clock .clock-copy small{
  color:#fff!important;font-size:9px!important;font-weight:800!important;letter-spacing:1.25px!important;
}
.current-weather .hero-clock .clock-copy time{
  color:#fff!important;font-size:20px!important;font-weight:900!important;letter-spacing:.6px!important;
}
.current-weather .hero-clock .clock-date{color:#f4fbff!important;font-size:9px!important;font-weight:700!important}

/* Pronóstico de cinco días: nombres, temperaturas y viento con lectura clara. */
.side .glass .card-head#daily-title{
  color:#29485a!important;font-size:16px!important;font-weight:800!important;
}
.side .daily-list .day-row{
  color:#29485a!important;font-size:14px!important;font-weight:700!important;
}
.side .daily-list .day-row .d{
  color:#29485a!important;font-size:14px!important;font-weight:800!important;
}
.side .daily-list .day-row .d small{
  color:#526b79!important;font-size:11px!important;font-weight:700!important;
}
.side .daily-list .day-row .lo,
.side .daily-list .day-row .hi{
  color:#29485a!important;font-size:14px!important;font-weight:800!important;
}
.side .daily-list .day-row .day-wind-info{
  color:#526b79!important;font-size:10px!important;font-weight:700!important;opacity:1!important;
}
.side .daily-list .day-row .range{
  background:#dfe8eb!important;
}
.side .daily-list .day-row .range i{
  background:linear-gradient(90deg,#8bcfc2,#f0a36d)!important;
}

/* Tarjeta de conteo de buques: proporción estable, contenido legible y centrado. */
#buques-automotrices .auto-vessels-heading{
  align-items:center!important;gap:18px!important;
}
#buques-automotrices .auto-vessels-heading>div:first-child{min-width:0!important}
#buques-automotrices .auto-vessels-summary{
  display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;align-items:center!important;justify-items:start!important;
  gap:3px 12px!important;flex:0 1 250px!important;min-width:190px!important;
  padding:13px 17px!important;border:1px solid #d6e8e6!important;border-radius:18px!important;
  background:linear-gradient(135deg,#f2faf8,#e8f5f1)!important;
  box-shadow:0 8px 22px rgba(62,105,123,.08)!important;
}
#buques-automotrices .auto-vessels-summary strong{
  grid-column:1!important;grid-row:1/3!important;align-self:center!important;
  color:#e58d4c!important;font-size:46px!important;line-height:.95!important;
}
#buques-automotrices .auto-vessels-summary span{
  grid-column:2!important;grid-row:1!important;margin:0!important;
  color:#36596a!important;font-size:11px!important;font-weight:900!important;
  letter-spacing:.08em!important;line-height:1.25!important;
}
#buques-automotrices .auto-vessels-summary small{
  grid-column:2!important;grid-row:2!important;margin:0!important;
  color:#607987!important;font-size:10px!important;font-weight:700!important;line-height:1.3!important;
}
#buques-automotrices .auto-vessels-heading h2{
  color:#294657!important;
}
#buques-automotrices .auto-vessels-heading p{
  color:#526b79!important;font-size:14px!important;font-weight:600!important;
}
@media(max-width:680px){
  #buques-automotrices .auto-vessels-heading{align-items:stretch!important}
  #buques-automotrices .auto-vessels-summary{width:100%!important;max-width:none!important;flex-basis:auto!important}
}
@media(max-width:560px){
  .current-weather .hero-clock .clock-copy time{font-size:17px!important}
  .current-weather .quick-stats .stat-block span{font-size:10px!important}
  .current-weather .quick-stats .stat-block small{font-size:9px!important}
  .side .daily-list .day-row{font-size:12px!important}
  .side .daily-list .day-row .day-wind-info{font-size:9px!important}
}


/* AJUSTE FINO · TARJETA ÚLTIMA ACTUALIZACIÓN */
.current-weather>.quick-stats>.stat-block:last-child{
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:5px!important;
  padding-left:10px!important;padding-right:10px!important;
  text-align:center!important;
}
.current-weather>.quick-stats>.stat-block:last-child>.stat-icon{
  grid-column:1!important;grid-row:1 / 4!important;
  width:19px!important;height:19px!important;
  align-self:center!important;justify-self:center!important;
}
.current-weather>.quick-stats>.stat-block:last-child>span,
.current-weather>.quick-stats>.stat-block:last-child>b,
.current-weather>.quick-stats>.stat-block:last-child>small{
  grid-column:2!important;justify-self:stretch!important;
  text-align:center!important;white-space:normal!important;
}
.current-weather>.quick-stats>.stat-block:last-child>span{
  font-size:11px!important;line-height:1.15!important;
}
.current-weather>.quick-stats>.stat-block:last-child>b{
  font-size:clamp(15px,1.35vw,18px)!important;line-height:1.1!important;
}
.current-weather>.quick-stats>.stat-block:last-child>small{
  font-size:9px!important;line-height:1.15!important;
}
.current-weather>.quick-stats>.stat-block:last-child>small strong{
  font-size:9px!important;
}
@media(max-width:560px){
  .current-weather>.quick-stats>.stat-block:last-child{grid-template-columns:1fr!important;padding:7px 3px!important}
  .current-weather>.quick-stats>.stat-block:last-child>.stat-icon{display:none!important}
  .current-weather>.quick-stats>.stat-block:last-child>span{font-size:9px!important}
  .current-weather>.quick-stats>.stat-block:last-child>b{font-size:13px!important}
  .current-weather>.quick-stats>.stat-block:last-child>small{font-size:8px!important}
}

/* RECUPERAR VISIBILIDAD DE LOS EFECTOS ATMOSFÉRICOS.
   El canvas debe quedar por encima del velo claro, pero debajo del contenido. */
.weather-board>.scene-fx{
  z-index:3!important;
  opacity:.88!important;
  mix-blend-mode:normal!important;
}
.weather-board>.scene-vig{z-index:2!important}
.weather-board>.scene-sky,
.weather-board>.scene-photo{z-index:0!important}
.weather-board>.board-top,
.weather-board>.current-weather,
.weather-board>.hero-visual,
.weather-board>.side,
.weather-board>.hourly-gust-section,
.weather-board>.marine-section{
  position:relative;
  z-index:4;
}


/* CONTRASTE LOCAL · CABECERA DEL PRONÓSTICO Y DATOS MARÍTIMOS */
.gust-head,
.gust-head .gust-copy,
.gust-head .gust-copy *{
  color:#29485a!important;
  text-shadow:none!important;
  opacity:1!important;
}
.gust-head .gust-copy small{
  color:#bd713b!important;font-weight:900!important;
}
.gust-head .gust-copy span,
.gust-head #gust-notice-text{
  color:#29485a!important;font-size:13px!important;font-weight:800!important;
}
.gust-head .gust-copy em{
  color:#526e7d!important;font-size:9px!important;font-style:normal!important;font-weight:800!important;
}
.gust-head .gust-arrow{color:#5c8799!important}

/* Datos marítimos: metadatos, hora de actualización y horas previstas. */
.marine-card,
.marine-card *{
  text-shadow:none!important;
}
.marine-card .marine-heading small{
  color:#a95f31!important;font-weight:900!important;
}
.marine-card .marine-heading h2,
.marine-card .marine-state{
  color:#29485a!important;
}
.marine-card .marine-metrics small{
  color:#526b79!important;font-size:10px!important;font-weight:700!important;opacity:1!important;
}
.marine-card .marine-metrics b{
  color:#29485a!important;font-weight:800!important;
}
.marine-card .marine-footer,
.marine-card .marine-footer span,
.marine-card #marine-updated{
  color:#526b79!important;font-size:9px!important;font-weight:700!important;opacity:1!important;
}
.marine-card .marine-hourly small{
  color:#526b79!important;font-size:10px!important;font-weight:700!important;opacity:1!important;
}
.marine-card .marine-hourly b{
  color:#29485a!important;font-size:13px!important;font-weight:800!important;
}


/* RESUMEN PARA COMPARTIR · DISEÑO CLARO Y LEGIBLE */
.share-weather-dialog{background:#f3f7f8!important;color:#29485a!important}
.share-toolbar{color:#486475!important}
.share-weather-card{
  color:#29485a!important;
  background:linear-gradient(135deg,#ffffff 0%,#f3f9f8 58%,#eaf3f2 100%)!important;
  border:1px solid #d9e7e9!important;
  box-shadow:0 18px 48px rgba(56,91,107,.16)!important;
}
.share-weather-card:before{
  background:radial-gradient(ellipse at 83% 17%,rgba(174,218,219,.24),transparent 44%)!important;
  opacity:1!important;
}
.share-brand{color:#29485a!important}
.share-location,.share-date{color:#607987!important;font-weight:600!important}
.share-temp,.share-condition h2{color:#29485a!important}
.share-condition p{color:#526e7d!important;font-weight:600!important}
.share-condition .share-range{color:#718894!important}
.share-metrics>div{
  background:rgba(255,255,255,.9)!important;
  border:1px solid #dce8e9!important;
  box-shadow:0 6px 18px rgba(62,100,116,.06)!important;
}
.share-metrics span{color:#607987!important}
.share-metrics b{color:#29485a!important}
.share-metrics small,.share-metrics small strong{color:#526e7d!important}
.share-times{color:#526e7d!important;font-weight:600!important}
.share-times span:before{color:#e99150!important}
.share-port-status{
  border-top:1px solid #d6e4e7!important;border-bottom:1px solid #d6e4e7!important;
  color:#526e7d!important;
}
.share-port-status>b{color:#29485a!important;font-size:10px!important}
.share-port-status>div{color:#526e7d!important}
.share-port-status>div>span:first-child,
.share-port-status strong{color:#29485a!important}
.share-foot{color:#718894!important;border-color:#d6e4e7!important}
.share-hint{color:#607987!important}
.share-action.secondary{background:#eaf0f2!important;color:#486475!important}
@media(max-width:560px){
 .share-weather-card{padding:20px 14px 16px!important}
 .share-port-status>div{grid-template-columns:1fr 1fr 1fr!important;gap:4px!important;font-size:9px!important}
 .share-port-status>div>span{min-width:0!important;overflow-wrap:anywhere!important}
}


/* MODAL RESUMEN COMPARTIBLE · BARRA SUPERIOR SIN RECORTES */
.share-weather-modal{
  box-sizing:border-box!important;
  padding:clamp(10px,2.5vw,22px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.share-weather-dialog{
  box-sizing:border-box!important;
  width:min(680px,calc(100vw - 32px))!important;
  max-width:100%!important;
  max-height:calc(100dvh - 32px)!important;
  margin:auto!important;
  overflow:visible!important;
}
.share-toolbar{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px 12px!important;
  padding:0 2px!important;
  margin:0 0 12px!important;
  color:#486475!important;
  line-height:1.35!important;
}
.share-toolbar>span{
  flex:1 1 190px!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  font-size:10px!important;
}
.share-toolbar>div{
  display:flex!important;
  flex:0 1 auto!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:7px!important;
  min-width:0!important;
}
.share-toolbar .share-action{
  box-sizing:border-box!important;
  min-height:38px!important;
  padding:9px 13px!important;
  white-space:nowrap!important;
  line-height:1.2!important;
  font-size:11px!important;
}
.share-weather-card{
  box-sizing:border-box!important;
  width:100%!important;
}
@media(max-width:820px){
  .share-weather-dialog{width:min(680px,calc(100vw - 28px))!important}
  .share-toolbar{align-items:flex-start!important}
  .share-toolbar>span{flex-basis:100%!important}
  .share-toolbar>div{width:100%!important;justify-content:flex-end!important}
}
@media(max-width:420px){
  .share-toolbar>div{display:grid!important;grid-template-columns:1fr 1fr!important}
  .share-toolbar .share-action{width:100%!important;padding:9px 7px!important;font-size:10px!important}
}


/* ═══ Buques RoRo: tabla de una sola fila por buque, texto siempre dentro de su celda, fotos sin deformar ═══ */
#buques-automotrices .auto-vessels-content{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
@media screen and (min-width:1700px){#buques-automotrices .auto-vessels-content{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr)!important}}
@media screen and (min-width:761px){
 #buques-automotrices .auto-vessel-desktop-table{display:block!important;min-width:0}
 #buques-automotrices .auto-vessel-mobile-list{display:none!important}
 #buques-automotrices .auto-vessel-table-wrap{container-type:inline-size;overflow:hidden!important}
 #buques-automotrices .auto-vessel-table{display:table!important;width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse}
 #buques-automotrices .auto-vessel-table col.c-photo{width:128px}
 #buques-automotrices .auto-vessel-table col.c-name{width:21%}
 #buques-automotrices .auto-vessel-table col.c-imo{width:11%}
 #buques-automotrices .auto-vessel-table col.c-dock{width:7%}
 #buques-automotrices .auto-vessel-table col.c-agency{width:22%}
 #buques-automotrices .auto-vessel-table col.c-date{width:17%}
 #buques-automotrices .auto-vessel-table th,
 #buques-automotrices .auto-vessel-table td{display:table-cell!important;min-width:0!important;box-sizing:border-box;vertical-align:middle;text-align:center;
   white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.25;letter-spacing:0;
   font-size:clamp(10.5px,1.22cqw,14.5px)!important;padding:10px 8px!important}
 #buques-automotrices .auto-vessel-table td::before{content:none!important}
 #buques-automotrices .auto-vessel-table td.auto-vessel-name-cell strong,
 #buques-automotrices .auto-vessel-table td.auto-vessel-date-cell span{display:inline!important;white-space:nowrap!important}
 #buques-automotrices .auto-vessel-table td.auto-vessel-photo-cell{padding:8px!important;overflow:visible!important}
 /* Foto: recuadro fijo 4:3; la imagen se ve completa y nunca se estira (contain). */
 #buques-automotrices .auto-vessel-table .auto-vessel-photo-link,
 #buques-automotrices .auto-vessel-table .auto-vessel-no-photo{display:grid!important;place-items:center;position:relative;width:112px;max-width:100%;aspect-ratio:4/3;height:auto!important;margin:0 auto;padding:0;border-radius:9px;overflow:hidden}
 #buques-automotrices .auto-vessel-table .auto-vessel-photo{position:absolute!important;inset:0;display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;object-position:center}
 #buques-automotrices .auto-vessel-table .auto-vessel-no-photo{font-size:26px;line-height:1}
}
@media screen and (min-width:761px){
 #buques-automotrices .auto-vessel-table td:nth-child(n),
 #buques-automotrices .auto-vessel-table td:nth-child(n) strong,
 #buques-automotrices .auto-vessel-table td:nth-child(n) span{font-size:clamp(10.5px,1.22cqw,14.5px)!important;letter-spacing:0!important}
 #buques-automotrices .auto-vessel-table td.auto-vessel-name-cell strong{font-weight:800}
}


/* Pronóstico diario desplegable: detalle horario por día */
#daily .day-forecast-item{display:block;min-width:0;border-bottom:1px solid rgba(86,119,135,.10)}
#daily .day-forecast-item:last-child{border-bottom:0}
#daily .day-row.is-expandable{cursor:pointer;position:relative;border-radius:10px;transition:background .2s ease,transform .2s ease}
#daily .day-row.is-expandable:hover{background:rgba(119,177,194,.11)}
#daily .day-row.is-expandable:focus-visible{outline:2px solid #79b8c8;outline-offset:2px}
#daily .day-row.is-expandable{padding-right:28px!important}\n#daily .day-row.is-expandable .day-expand-indicator{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(89,151,172,.13);color:#426879;font-size:16px;line-height:1;transition:transform .22s ease}
#daily .day-forecast-item.is-open .day-expand-indicator{transform:translateY(-50%) rotate(180deg)}
#daily .day-hourly-panel{padding:7px 8px 13px;margin:0 0 5px;animation:dailyHoursReveal .22s ease both}
#daily .day-hourly-panel[hidden]{display:none!important}
#daily .day-hourly-heading{font-size:11px;font-weight:800;color:#456579;margin:2px 0 9px}
#daily .day-hourly-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;max-height:250px;overflow:auto;padding:2px 2px 7px;scrollbar-width:thin}
#daily .day-hour-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:9px 6px;border:1px solid rgba(119,157,173,.19);border-radius:12px;background:rgba(235,245,246,.72);color:#35566a;text-align:center}
#daily .day-hour-card .day-hour-time{font-size:11px;font-weight:800;color:#526f80}
#daily .day-hour-card img{width:34px;height:34px;object-fit:contain}
#daily .day-hour-card b{font-size:16px;color:#29495d}
#daily .day-hour-card small{font-size:9px;line-height:1.35;color:#66808e}
@keyframes dailyHoursReveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
 #daily .day-hourly-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px}
 #daily .day-hour-card{padding:8px 5px}
 #daily .day-row.is-expandable .day-expand-indicator{width:18px;height:18px}
}


/* Compactación del pronóstico de 5 días: menos altura sin perder el detalle */
#daily{padding-top:2px!important}
#daily .day-forecast-item{padding:0!important;margin:0!important}
#daily .day-row{
  grid-template-rows:29px 12px!important;
  align-items:center!important;
  row-gap:0!important;
  column-gap:6px!important;
  padding:2px 30px 2px 0!important;
  min-height:0!important;
}
#daily .day-row img{width:29px!important;height:29px!important}
#daily .day-row .d{line-height:1.05!important}
#daily .day-row .lo,#daily .day-row .hi{line-height:1!important}
#daily .day-row .range{align-self:center!important}
#daily .day-row .day-wind-info{
  grid-column:3 / 6!important;
  grid-row:2!important;
  align-self:start!important;
  margin:0!important;
  font-size:8px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
#daily .day-row.is-expandable{padding-right:25px!important}
#daily .day-row.is-expandable .day-expand-indicator{
  right:2px!important;
  top:5px!important;
  transform:none!important;
  width:17px!important;
  height:17px!important;
  font-size:13px!important;
}
#daily .day-forecast-item.is-open .day-expand-indicator{transform:rotate(180deg)!important}
#daily .day-hourly-panel{padding:5px 6px 8px!important;margin-bottom:3px!important}
#daily .day-hourly-heading{margin:1px 0 6px!important}
@media(max-width:600px){
  #daily .day-row{grid-template-rows:27px 11px!important;column-gap:4px!important;padding-top:1px!important;padding-bottom:1px!important}
  #daily .day-row img{width:27px!important;height:27px!important}
  #daily .day-row .day-wind-info{font-size:7.5px!important}
}
