 .pp-drawer-top{display:none;}
/* PescaPro V176.18 — Escritorio V2
   Nueva capa coherente de escritorio. No cambia JS, APIs ni datos.
   Reglas móviles originales quedan intactas. */
@media (min-width:701px){
  /* A 701-900px, las ventanas siguen siendo manejables, sin truncar texto. */
  header .forecast-menu,header .fish-menu{z-index:110}
  header .forecast-dropdown,header .fish-dropdown{
    position:fixed!important;top:88px!important;bottom:18px!important;
    max-height:none!important;height:auto!important;
    max-width:calc(100vw - 36px)!important;
    box-sizing:border-box!important;padding:20px!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    scrollbar-gutter:stable;
    background:#fff;border:1px solid #d7e6ed;border-radius:20px;
    box-shadow:0 24px 85px rgba(4,35,56,.24);text-align:left;
    overscroll-behavior:contain;
  }
  header .forecast-dropdown{width:min(610px,calc(100vw - 36px))!important;left:18px!important;right:auto!important;}
  header .fish-dropdown{width:min(460px,calc(100vw - 36px))!important;right:18px!important;left:auto!important;}
  header .forecast-dropdown *,header .fish-dropdown *{box-sizing:border-box;}
  header .forecast-dropdown p,header .fish-dropdown p,header .forecast-dropdown label,
  header .fish-dropdown label,header .forecast-dropdown small,header .fish-dropdown small{overflow-wrap:break-word;word-break:normal;}
  header .forecast-dropdown button,header .fish-dropdown button{line-height:1.3;white-space:normal;word-break:normal;}
  header .forecast-dropdown input,header .fish-dropdown input,
  header .fish-dropdown textarea,header .fish-dropdown select{min-width:0;max-width:100%;}
  .pp-drawer-top{display:flex;position:sticky;top:-20px;z-index:6;align-items:center;justify-content:space-between;gap:16px;margin:-20px -20px 20px;padding:17px 20px;border-bottom:1px solid #dcebf0;background:rgba(249,252,254,.98);color:#093f5b;font-size:17px;font-weight:850;}
  .pp-drawer-top button{padding:9px 12px!important;min-height:37px;background:#e4f1f7!important;color:#084760!important;font-size:12px!important;white-space:nowrap!important;}
  .fish-dropdown .capture-mode-tabs{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible;}
  .fish-dropdown .capture-mode-tab{width:100%;font-size:13px;padding:12px 9px;overflow-wrap:normal;min-height:45px;}
  .fish-dropdown .capture-mode-panel,.fish-dropdown .pp-auth-user,.fish-dropdown .pp-auth-card{width:100%;max-width:100%;min-width:0;}
  .fish-dropdown .fish-input,.fish-dropdown .capture-mode-panel input:not([type=file]),
  .fish-dropdown .capture-mode-panel textarea,.fish-dropdown .capture-mode-panel select{
    display:block;width:100%;font-size:14px;line-height:1.4;padding:12px 13px;min-height:44px;border:1px solid #cbdfe8;background:#fff;
  }
  .fish-dropdown .pp-auth-user-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
  .fish-dropdown .pp-auth-user-row>div{flex:1 1 180px;min-width:0;}
  .fish-dropdown .pp-auth-user-row b,.fish-dropdown .pp-auth-user-row small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .fish-dropdown .pp-signout-btn{max-width:100%;white-space:normal!important;overflow-wrap:normal;}
  .fish-dropdown .upload-btn,.fish-dropdown .stats-btn,.fish-dropdown .capture-past-save{width:100%;min-height:46px;font-size:14px;}
  .fish-dropdown .capture-past-photo{display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
  .fish-dropdown .capture-past-photo input{width:100%;max-width:100%;}
  .forecast-dropdown .forecast-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;}
  .forecast-dropdown .forecast-tab{min-height:41px;font-size:12px;}
  .forecast-dropdown .hourly-head{flex-wrap:wrap;gap:10px;}
  .forecast-dropdown .forecast-grid,.forecast-dropdown .hour-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .forecast-dropdown .forecast-cell,.forecast-dropdown .hour-metric{min-width:0;}
  .pp-favorite-head,.el-head,.phase3-head{flex-wrap:wrap;gap:12px;}
  .pp-favorite-head-actions{margin-left:auto;}
  .panel .row>*,.pp-favorite-head>*,.section-heading,.el-head>*,.phase3-head>*{min-width:0;}
  .pp-admin-sheet{width:min(880px,calc(100vw - 48px))!important;max-width:100%!important;max-height:calc(100dvh - 48px);overflow:auto;}
  .pp-admin-card input,.pp-admin-card textarea,.pp-admin-card select{max-width:100%;}
}
@media (min-width:901px){
  :root{--pp-desktop-content:1240px;--pp-desktop-bg:#f4f8fb;}
  html,body{overflow-x:clip;}
  body{background:var(--pp-desktop-bg);font-size:14px;}
  body::before{background:none!important;}
  /* Consistent, compact masthead; navigation always reachable. */
  header{min-height:142px!important;padding:18px 32px 23px!important;border-radius:0 0 22px 22px!important;
    background:linear-gradient(115deg,#075b7b 0%,#06445f 60%,#073b56 100%)!important;
    box-shadow:0 14px 32px rgba(6,60,87,.13)!important;}
  .header-brand{padding-top:0;gap:3px;}
  .header-logo{width:55px;height:55px;margin:0 0 2px;border:3px solid rgba(255,255,255,.8);}
  .header-brand h1{font-size:28px!important;margin:2px 0 1px;line-height:1.17;letter-spacing:-.035em;}
  .header-brand p{font-size:12px;line-height:1.4;opacity:.85;}
  header .forecast-menu,header .fish-menu{top:45px;}
  header .forecast-menu{left:max(30px,calc((100vw - var(--pp-desktop-content))/2));}
  header .fish-menu{right:max(30px,calc((100vw - var(--pp-desktop-content))/2));}
  header .forecast-menu-btn,header .fish-menu-btn{
    background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.30)!important;
    border-radius:12px!important;min-height:45px;padding:11px 19px;
    font-size:14px;font-weight:750;box-shadow:none!important;transition:background .15s ease;
  }
  header .forecast-menu-btn:hover,header .fish-menu-btn:hover{background:rgba(255,255,255,.23)!important;}
  header .forecast-dropdown{top:106px!important;left:max(24px,calc((100vw - var(--pp-desktop-content))/2))!important;bottom:20px!important;}
  header .fish-dropdown{top:106px!important;right:max(24px,calc((100vw - var(--pp-desktop-content))/2))!important;bottom:20px!important;}
  /* Grid rhythm across all app screens */
  main,.espana-live,.seo-guide{
    width:min(calc(100% - 64px),var(--pp-desktop-content))!important;
    max-width:var(--pp-desktop-content)!important;margin-left:auto!important;margin-right:auto!important;
    box-sizing:border-box;
  }
  main{padding:0 0 20px!important;margin-top:24px!important;}
  main>section,main>.grid,main>.section-heading{min-width:0;box-sizing:border-box;}
  .panel,.card,.espana-live{border:1px solid #deebf1;box-shadow:0 7px 20px rgba(10,53,77,.055);}
  main>.panel{margin:0 0 14px!important;padding:19px 23px!important;border-radius:17px;}
  main>.panel:first-of-type{margin-top:0!important;}
  .panel>.row{flex-direction:row!important;align-items:center!important;}
  .panel>.row>div:first-child{min-width:0;}
  .panel>.row button{white-space:nowrap;flex-shrink:0;}
  .pp-favorite-head .pp-favorite-head-actions{flex:0 0 auto;}
  .section-heading{margin:26px 0 14px;}
  .section-heading h2{font-size:25px;line-height:1.2;}
  .section-heading p{font-size:13px;}
  /* Main personal dashboard: light assistant, compact dark performance card */
  .pescapro-intelligence{display:grid!important;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr)!important;gap:16px!important;align-items:stretch;margin:18px 0 28px!important;}
  .pescapro-intelligence>.personal-hero,.pescapro-intelligence>.phase3-panel{min-width:0;width:100%;margin:0!important;box-sizing:border-box;}
  .pescapro-intelligence .personal-hero{padding:26px 28px!important;min-height:295px;height:100%;border-radius:20px!important;background:linear-gradient(135deg,#073f60,#076e88)!important;box-shadow:0 10px 25px rgba(3,69,99,.13)!important;}
  .personal-hero h2{font-size:46px!important;}
  .personal-label{font-size:17px;}
  .personal-copy{font-size:13px;line-height:1.6;max-width:none;}
  .personal-hero-top{gap:14px;align-items:flex-start;}
  .personal-badge{max-width:180px;white-space:normal;text-align:center;}
  .species-score-filter{max-width:100%;}
  .personal-detail{margin-top:14px;font-size:12px;min-height:38px;}
  .pescapro-intelligence .phase3-panel{padding:25px 27px!important;min-height:295px;height:100%;
    border:1px solid #dce9ef!important;border-radius:20px!important;
    background:#fff!important;color:#133d53!important;box-shadow:0 7px 20px rgba(10,53,77,.06)!important;}
  .phase3-head{display:flex;align-items:flex-start;}
  .phase3-head h3{margin-top:6px;font-size:23px;line-height:1.25;letter-spacing:-.03em;color:#123e56!important;}
  .phase3-head small{color:#477a94!important;font-size:10px;}
  .phase3-badge{max-width:200px;white-space:normal;background:#eaf5fa!important;color:#1e6680!important;border:1px solid #cfe8ef!important;line-height:1.4;}
  .advisor-answer{border:1px solid #dceaf0!important;background:#f4f9fb!important;margin-top:16px;padding:16px!important;}
  .advisor-answer b{color:#104862!important;}
  .advisor-answer span{color:#59798a!important;font-size:13px;line-height:1.55;}
  .smart-alerts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .smart-alert{border:1px solid #e3edf1!important;background:#f9fcfd!important;}
  .smart-alert b{color:#164963!important;}
  .smart-alert small,.smart-alert span{color:#5b7989!important;}
  .advisor-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .advisor-actions button{min-height:43px;border-radius:11px!important;padding:10px 12px!important;background:#eaf4f8!important;color:#105c7a!important;border:1px solid #d0e5ed!important;font-size:12px!important;}
  .advisor-actions button:hover{background:#d7ebf3!important;}
  /* Three balanced rows of environmental conditions */
  main>.grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:13px!important;}
  main>.grid>.card{min-width:0;grid-column:span 4;padding:21px;border-radius:17px;}
  main>.grid>.sea-combined{grid-column:1/-1;padding:22px!important;}
  main>.grid>.card:nth-last-child(-n+2):not(.sea-combined){grid-column:span 6;}
  .sea-row{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px;}
  .sea-cell{padding:16px 12px;background:#eef7fb;border:1px solid #e2edf3;}
  .sea-label,.sea-direction{white-space:normal;line-height:1.4;}
  .sea-value{font-size:24px;}
  .card .label{font-size:13px;}
  .card .value{font-size:26px;}
  .stats-panel{padding:22px!important;}
  .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  .fishing-insights,.catch-list{min-width:0;}
  .insight-card,.catch-item,.capture-day-group{max-width:100%;overflow-wrap:break-word;}
  .catch-item{align-items:flex-start;gap:14px;}
  .catch-item-content{flex:1;min-width:0;}
  .delete-catch-btn{flex-shrink:0;}
  .espana-live{padding:26px!important;margin-top:18px!important;overflow:visible;}
  .el-head{align-items:flex-end;}
  .el-head>div{flex:1 1 450px;min-width:0;}
  .espana-map{width:100%;min-width:0;}
  .seo-guide{padding:24px!important;margin-top:22px!important;}
  .seo-guide nav{line-height:2.0;overflow-wrap:break-word;}
  .pp-admin-sheet{padding:26px 30px;}
  .pp-admin-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
  .pp-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .pp-admin-capture-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
  /* Intro: single cohesive card, not separate floating blocks. */
  #welcomeOverlay.welcome-overlay:not(.map-open):not(.onboarding-open){
    align-items:center!important;justify-content:center!important;
    min-height:100dvh!important;padding:30px!important;overflow-y:auto!important;
    background:radial-gradient(circle at 16% 18%,#e9f7fc 0%,transparent 32%),linear-gradient(135deg,#f7fbfe,#eaf3f9)!important;
  }
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-panel{
    display:block!important;width:min(100%,1060px)!important;max-width:1060px!important;min-height:0!important;
    margin:auto!important;padding:44px!important;border:1px solid #dceaf1!important;
    background:#fff!important;border-radius:26px!important;
    box-shadow:0 25px 70px rgba(15,64,92,.12)!important;box-sizing:border-box!important;
  }
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro{
    display:grid!important;width:100%!important;max-width:none!important;
    grid-template-columns:minmax(0,1fr) minmax(325px,.86fr)!important;
    grid-template-areas:'brand install' 'start install' 'features install';
    align-content:center;align-items:center;gap:12px 34px;text-align:left!important;
  }
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro>.pp27{grid-area:brand;width:100%;min-width:0;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro>.welcome-start{grid-area:start;
    width:100%!important;max-width:390px!important;min-height:52px!important;
    margin:9px auto 0!important;font-size:16px!important;border-radius:13px!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro>.pp27-features{grid-area:features;width:100%;max-width:none;margin:18px auto 0!important;gap:0;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro>.pp27-waves{display:none!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro>.pp-download-app{grid-area:install;
    width:100%;min-width:0;margin:0!important;padding:29px!important;border-radius:19px!important;align-self:center;
    background:#f0f7fa!important;border:1px solid #dbeaf1!important;box-shadow:none!important;text-align:left!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27{align-items:center;text-align:center;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-kicker{margin-top:0;font-size:11px;letter-spacing:.24em;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-logo{width:108px;height:108px;margin:15px auto 12px;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-title{font-size:39px;line-height:1.06;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-sep{margin:10px auto 8px;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-sub{font-size:16px;line-height:1.45;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-features{margin-top:18px!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-feature{padding:0 6px;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-feature .ico{font-size:21px;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp27-feature b{font-size:10px;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp-download-app h2{font-size:23px;color:#113f59;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp-download-app p{font-size:14px;line-height:1.55;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp-download-actions{display:grid;grid-template-columns:1fr;gap:11px;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp-download-actions button{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-height:48px!important;margin:0!important;
    padding:11px 12px!important;background:#fff!important;border:1px solid #c8e1eb!important;
    box-shadow:none!important;border-radius:11px!important;
    font-size:14px!important;color:#075878!important;font-weight:850!important;
  }
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .pp-download-actions button:hover{background:#e2f2f8!important;}
}
@media (min-width:901px) and (max-width:1150px){
  main,.espana-live,.seo-guide{width:calc(100% - 44px)!important;}
  .pescapro-intelligence{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
  .pescapro-intelligence .personal-hero,.pescapro-intelligence .phase3-panel{padding:22px!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-panel{padding:28px!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro{gap:10px 20px;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)!important;}
}
@media (min-width:701px) and (max-width:900px){
  main,.espana-live,.seo-guide{width:calc(100% - 30px)!important;max-width:100%!important;}
  .pescapro-intelligence{grid-template-columns:minmax(0,1fr)!important;}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .sea-combined{grid-column:1/-1!important;}
  .sea-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .pp-admin-tabs{grid-template-columns:repeat(3,minmax(0,1fr));}
  #welcomeOverlay.welcome-overlay:not(.map-open):not(.onboarding-open){overflow-y:auto!important;align-items:flex-start!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-panel{width:min(100%,680px)!important;margin:auto!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro{display:flex!important;flex-direction:column!important;align-items:center!important;}
  #welcomeOverlay:not(.map-open):not(.onboarding-open) .welcome-intro>.pp-download-app{width:100%;max-width:540px;margin-top:20px;}
}
@media (min-width:701px) and (max-height:700px){
  header .fish-dropdown,header .forecast-dropdown{top:68px!important;bottom:10px!important;}
  #welcomeOverlay.welcome-overlay:not(.map-open):not(.onboarding-open){align-items:flex-start!important;}
}

/* V176.18 — Corrección de legibilidad del asistente en escritorio.
   layout.js mueve #phase3Panel al contenedor .pescapro-intelligence-row.
   En app.css, las reglas de ese contenedor obligaban a usar texto blanco;
   la tarjeta clara de escritorio dejaba así el contenido invisible.
   Se aplican selectores específicos para no alterar el tema móvil. */
@media (min-width:701px){
  .pescapro-intelligence-row #phase3Panel.phase3-panel{
    background:#fff !important;
    color:#173f54 !important;
    border:1px solid #dce9ef !important;
    box-shadow:0 7px 20px rgba(10,53,77,.07) !important;
  }
  .pescapro-intelligence-row #phase3Panel .phase3-head h3{
    color:#123e56 !important;
  }
  .pescapro-intelligence-row #phase3Panel .phase3-head small{
    color:#477a94 !important;
  }
  .pescapro-intelligence-row #phase3Panel .phase3-badge{
    background:#eaf5fa !important;
    color:#1e6680 !important;
    border:1px solid #cfe8ef !important;
  }
  .pescapro-intelligence-row #phase3Panel .advisor-answer{
    background:#f4f9fb !important;
    border:1px solid #dceaf0 !important;
  }
  .pescapro-intelligence-row #phase3Panel .advisor-answer b{
    color:#104862 !important;
  }
  .pescapro-intelligence-row #phase3Panel .advisor-answer span{
    color:#59798a !important;
  }
  .pescapro-intelligence-row #phase3Panel .smart-alert{
    background:#f9fcfd !important;
    border:1px solid #e3edf1 !important;
  }
  .pescapro-intelligence-row #phase3Panel .smart-alert b{
    color:#164963 !important;
  }
  .pescapro-intelligence-row #phase3Panel .smart-alert small,
  .pescapro-intelligence-row #phase3Panel .smart-alert span{
    color:#5b7989 !important;
  }
  .pescapro-intelligence-row #phase3Panel .advisor-actions button{
    background:#eaf4f8 !important;
    color:#105c7a !important;
    border:1px solid #d0e5ed !important;
  }
  .pescapro-intelligence-row #phase3Panel .advisor-actions button:hover{
    background:#d7ebf3 !important;
  }
  .pescapro-intelligence-row #phase3Panel .advisor-actions button:focus-visible{
    outline:3px solid #269ac4;
    outline-offset:2px;
  }
}

/* La agrupación creada por layout.js debe ocupar el ancho COMPLETO del grid
   padre, no solo su primera columna (causa del gran vacío a la derecha). */
@media (min-width:701px){
  .pescapro-intelligence > .pescapro-intelligence-row{
    grid-column:1 / -1;
    width:100%;
    min-width:0;
    max-width:none;
    display:grid;
    grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);
    align-items:stretch;
    gap:16px;
    margin:0;
  }
  .pescapro-intelligence > .pescapro-intelligence-row > .personal-hero,
  .pescapro-intelligence > .pescapro-intelligence-row > #phase3Panel{
    width:100%;min-width:0;max-width:none;min-height:0;
  }
  .pescapro-intelligence-row #phase3Panel .smart-alerts{
    grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));
  }
}
@media (min-width:701px) and (max-width:900px){
  .pescapro-intelligence > .pescapro-intelligence-row{
    grid-template-columns:minmax(0,1fr);
  }
}
