/* Nourfix: versión de ordenador de las pantallas "igual que la vista previa" (desde 1024 px).
   Por debajo de 1024 px no cambia nada: sigue la columna móvil de la vista previa. */
.nf-dhead,.nf-desktop-search{display:none}

/* bottom bar: the active tab's line does not push its label up */
.nf-bn-item.active .nf-bn-label{position:relative}
.nf-bn-item.active .nf-bn-label::after{position:absolute;left:50%;bottom:-6px;margin:0;transform:translateX(-50%)}

@media (min-width:1024px){
  :root{--wrap:1200px}
  body{background:#fff}
  .nf-top,.nf-bottom-nav,.nf-drawer{display:none!important}
  .help-fab{right:28px;bottom:28px}

  /* header: navy bar like the desktop prototype */
  .nf-dhead{display:block;position:fixed;top:0;left:0;right:0;z-index:40;background:rgba(11,18,48,.96);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.08)}
  .nf-dhead .in{max-width:var(--wrap);margin:0 auto;padding:0 32px;height:72px;display:flex;align-items:center;gap:28px}
  .nf-dhead .logo img{height:30px;width:auto;display:block}
  .nf-dhead nav{display:flex;gap:2px;font-size:14.5px;font-weight:500;white-space:nowrap}
  .nf-dhead nav a{padding:8px 12px;border-radius:10px;color:#c9cdf5}
  .nf-dhead nav a:hover,.nf-dhead nav a[aria-current]{background:rgba(255,255,255,.1);color:#fff}
  .nf-dhead .r{margin-left:auto;display:flex;align-items:center;gap:12px;white-space:nowrap}
  .nf-dhead .in{gap:20px}
  .nf-dhead .lng{display:flex;gap:2px;font-size:14px;font-weight:700}
  .nf-dhead .lng a{padding:6px 8px;border-radius:8px;color:#8b91c9}
  .nf-dhead .lng a[aria-current]{color:#fff;background:rgba(255,255,255,.1)}
  .nf-dhead .tel{color:#fff;font-weight:700;font-size:14.5px}
  @media (max-width:1359px){.nf-dhead a.tel[href^="tel:"]{display:none}}
  @media (max-width:1180px){.nf-dhead nav a{padding:8px 8px}}
  .nf-dhead .book{background:#4f46e5;color:#fff;font-weight:700;border-radius:12px;padding:11px 18px;font-size:14.5px}
  .nf-dhead .book:hover{background:#3f37c9}

  /* page frame: full width, content at most 1200 px */
  .phone{max-width:none;min-height:auto;padding-top:72px;padding-bottom:48px}
  .phone > *:not(.hero):not(.dark):not(.foot):not(.urg-hero){max-width:var(--wrap);margin-left:auto;margin-right:auto;box-sizing:border-box}
  .phone > section,.phone > .page-head,.phone > .hero-cta{padding-left:32px;padding-right:32px}
  .phone > .trust,.phone > .qcta{width:auto;box-sizing:border-box}
  .phone > .trust,.phone > .qcta,.phone > .cart-bn,.phone > .loc-strip{margin-left:max(32px,calc(50% - 568px));margin-right:max(32px,calc(50% - 568px));width:auto}
  .phone > div[style*="padding:0 16px"]{padding:0 32px!important}
  section{padding-top:40px}
  section h2{font-size:28px;margin-bottom:20px}
  .page-head{padding-top:36px}
  .page-head h1{font-size:38px}

  /* home */
  .hero{min-height:520px;padding:0}
  .hero-text{max-width:var(--wrap);margin:0 auto;padding:80px 32px 40px;box-sizing:border-box}
  .hero-text h1{max-width:560px;font-size:56px}
  .hero-text p{max-width:480px;font-size:18px}
  .nf-desktop-search{display:block;max-width:480px;margin-top:24px}
  .nf-desktop-search .searchbox{margin:0;padding:8px;background:#fff;box-shadow:0 8px 24px #0b123012}
  .nf-desktop-search input{padding-left:8px;width:100%}
  .nf-desktop-search button{padding:12px 16px;border-radius:10px;background:var(--brand);color:#fff;font-weight:700}
  .hero-photo{width:56%}
  .hero-badge{right:max(32px,calc(50% - 568px));bottom:40px;max-width:260px}
  .hero-cta{display:flex;gap:12px;justify-content:flex-start;padding-top:24px}
  .hero-cta a{padding:15px 28px}
  .cats{gap:16px}
  .cat{padding:20px 18px}
  .cat h3{font-size:17px}
  .trust{padding:18px 8px}
  .trust strong{font-size:15px}.trust small{font-size:13px}
  .slider{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;overflow:visible;margin:0;padding:0}
  .svc{grid-template-columns:120px minmax(0,1fr)}
  .svc img{width:120px}
  .dots{display:none}
  .more-btn{max-width:360px;margin:20px auto 0}
  .dark{padding:56px max(32px,calc(50% - 568px))}
  .dark h2{font-size:30px}
  .why{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
  .why div{grid-template-columns:1fr;gap:10px}
  .how{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
  .how .st{grid-template-columns:1fr;padding:0}
  .how .st:not(:last-child)::before{display:none}
  .urg-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .dark .call{max-width:340px}
  .dark .phone-num{max-width:340px;text-align:center}
  .rev-slider{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;margin:0;padding:0}
  .rev{flex:none}
  #revDots{display:none}
  .faq{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
  .sheet .faq,.nf-det .faq{grid-template-columns:1fr}
  .phone [id]{scroll-margin-top:96px}
  .phone :focus-visible,.nf-dhead :focus-visible{outline:3px solid #918aff;outline-offset:4px}
  .phone.nf-res .days{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
  .phone.nf-res .total .ln{gap:16px}
  .phone.nf-res .total .ln > :last-child{white-space:nowrap}
  .foot{padding:56px max(32px,calc(50% - 568px)) 32px;display:grid;grid-template-columns:1.5fr repeat(4,minmax(0,1fr));gap:12px 36px;align-items:start}
  .foot .fcol h4{margin-top:0}
  .foot .fcol .links{grid-template-columns:1fr}
  .foot .copy,.foot .nf-lang-foot{grid-column:1 / -1}

  /* services list */
  .tabs,.chips2{padding-left:32px;padding-right:32px}
  .searchbox{margin-left:32px;margin-right:32px}
  .count{padding-left:32px}
  .slist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px;padding:0 32px}
  .help-card{margin:28px 32px 0}

  /* service detail: content left, sticky price box right */
  .phone.nf-det{display:grid;grid-template-columns:minmax(0,1fr) 400px;column-gap:40px;max-width:var(--wrap);margin:0 auto;padding-left:32px;padding-right:32px;align-items:start}
  .phone.nf-det > *{grid-column:1;max-width:none;margin-left:0;margin-right:0}
  .phone.nf-det > form{display:contents}
  .phone.nf-det .d-photo,.phone.nf-det .d-title,.phone.nf-det .cover,.phone.nf-det .blk,.phone.nf-det .facts{grid-column:1;margin-left:0;margin-right:0}
  .phone.nf-det .d-photo{height:380px}
  .phone.nf-det .d-title h1{font-size:36px}
  .phone.nf-det .pcard{grid-column:2;grid-row:2 / span 30;position:sticky;top:96px;margin:0}
  .phone.nf-det .bk-wrap{display:none}
  .phone.nf-det .blk,.phone.nf-det .d-title{padding-left:0;padding-right:0}
  .phone.nf-det .page-head{padding-left:0}

  /* booking: form left, sticky summary right */
  .phone.nf-res{display:grid;grid-template-columns:minmax(0,1fr) 380px;column-gap:40px;max-width:var(--wrap);margin:0 auto;padding-left:32px;padding-right:32px;align-items:start}
  .phone.nf-res > *{grid-column:1;max-width:none;margin-left:0!important;margin-right:0!important}
  .phone.nf-res > form{display:contents}
  .phone.nf-res .fs,.phone.nf-res .rgpd,.phone.nf-res .terms,.phone.nf-res .formerr,.phone.nf-res .confirm,.phone.nf-res .secure{grid-column:1;padding-left:0;padding-right:0}
  .phone.nf-res #rSum,.phone.nf-res .total{grid-column:2}
  .phone.nf-res #rSum{grid-row:2;align-self:start}
  .phone.nf-res .total{grid-row:3 / span 20;position:sticky;top:96px;margin:16px 0 0}
  .phone.nf-res .citem{margin:0}
  .phone.nf-res .page-head{padding-left:0}
  .phone.nf-res .confirm{width:100%}

  /* Mi reserva, Perfil, legal pages, presupuesto: centred column */
  .phone.nf-narrow > *{max-width:820px}
  .phone.nf-narrow .bcard,.phone.nf-narrow .plist,.phone.nf-narrow .seg,.phone.nf-narrow .logout,.phone.nf-narrow .lgb{margin-left:auto;margin-right:auto;max-width:820px}
  .urg-hero{padding:56px max(32px,calc(50% - 568px)) 48px}
  .urg-hero h1{font-size:44px}
  .urg-hero .call{max-width:340px}
  .ugrid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1024px) and (max-width:1199px){
  .nf-dhead .in{padding:0 24px;gap:12px}
  .nf-dhead .logo img{width:120px;height:auto}
  .nf-dhead nav{font-size:13px}
  .nf-dhead nav a{padding:8px 6px}
  .nf-dhead .r{gap:8px}
  .nf-dhead .book{font-size:13px;padding:11px 12px}
  .nf-dhead .lng a{padding:6px}
  .why,.how{grid-template-columns:repeat(2,minmax(0,1fr))}
  .phone.nf-det{grid-template-columns:minmax(0,1fr) 360px}
}

/* The floating trust card must leave room for the hero copy on narrow phones. */
@media (max-width:374px){
  .app-banner strong{white-space:normal}
  .app-banner img{width:36px;height:36px}
  .app-banner .get{padding-inline:9px}
  .hero-text{max-width:65%}
  .hero h1{font-size:clamp(24px,8vw,29px)}
  .hero-badge{position:relative;right:auto;bottom:auto;margin:16px 0 0 auto}
  .srow{grid-template-columns:56px minmax(0,1fr) auto;gap:8px}
  .srow .th{width:56px;height:56px}
}

/* Keep the approved mobile controls while giving tablets room for content. */
@media (min-width:600px) and (max-width:1023px){
  :root{--nf-tablet-width:880px}
  .phone,.nf-top,.nf-bottom-nav{max-width:var(--nf-tablet-width)}
  .help-fab{right:max(16px,calc((100% - var(--nf-tablet-width)) / 2 + 16px))}
  .hero{padding:36px 28px}
  .hero h1{font-size:clamp(32px,4.5vw,44px)}
  .hero p{max-width:320px}
}

@media (max-width:1023px){
  .phone{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  .sheet .box{overflow-y:auto;overscroll-behavior:contain;max-height:85dvh}
  .ck{max-height:calc(100dvh - 24px);overflow-y:auto}
}
