/* MOBILE HERO — controlled layout */

.norro-hero{
  min-height:100svh !important;
}

.norro-stage{
  min-height:100svh !important;
}

/* Mobile video framing */
.norro-bg{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:56% center !important;
}

/* Hero text position */
.norro-copy{
  top:18% !important;
  left:18px !important;
  right:18px !important;
  width:auto !important;
  max-width:none !important;
}

/* Headline */
.norro-copy h1{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;

  font-size:39px !important;
  line-height:.96 !important;

  white-space:normal !important;
  overflow:visible !important;
}

/* Supporting text */
.norro-copy p{
  width:calc(100% - 12px) !important;
  max-width:320px !important;

  margin-top:16px !important;

  font-size:12.5px !important;
  line-height:1.55 !important;
}

/* MOBILE MENU PANEL */

.mobile-menu-panel{
  position:fixed;
  top:76px;
  left:14px;
  right:14px;
  z-index:999;

  padding:12px;

  background:rgba(12,14,15,.96);
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px);

  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease;
}

.mobile-menu-panel.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.mobile-menu-nav{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.mobile-menu-nav a{
  display:block;
  padding:12px 14px;

  border-radius:12px;

  color:#f5f5f5;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
}

.mobile-menu-nav a:hover{
  background:rgba(255,255,255,.08);
}

.mobile-menu-book{
  margin-top:8px;
  text-align:center;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}

.mobile-menu-theme{
  width:100%;
  margin-top:10px;
  padding:12px 14px;

  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;

  background:transparent;
  color:#f5f5f5;

  font:inherit;
  font-size:13px;
  font-weight:600;

  cursor:pointer;
}

/* MOBILE MENU — COMPACT SIZE */

.mobile-menu-panel{
  top:68px !important;
  left:12px !important;
  right:12px !important;

  padding:10px !important;
  border-radius:16px !important;

  max-height:calc(100svh - 84px) !important;
  overflow-y:auto !important;
}

.mobile-menu-nav{
  gap:0 !important;
}

.mobile-menu-nav a{
  padding:10px 12px !important;
  font-size:13px !important;
}

.mobile-menu-book{
  margin-top:6px !important;
  padding:11px 12px !important;
}

.mobile-menu-theme{
  margin-top:8px !important;
  padding:11px 12px !important;
  font-size:12px !important;
}





/* =========================================================
   INICIO HEADER — EXACT /PROPIEDADES/ POSITION
   Position only. Preserve original transparent/color styling.
   ========================================================= */

/* Portrait phone: same container geometry as /propiedades/. */
@media (max-width:640px){
  body.home-page .site-header .lux-header-row{
    width:calc(100% - 28px) !important;
    max-width:none !important;
    min-height:64px !important;
    height:64px !important;
    margin:0 auto !important;
    padding:0 !important;
    position:relative !important;
    display:grid !important;
    grid-template-columns:auto 1fr auto !important;
    align-items:center !important;
    gap:22px !important;
  }
  body.home-page .site-header .lux-brand{
    position:relative !important;
    left:auto !important;
    top:auto !important;
    transform:none !important;
    margin:0 !important;
    justify-self:start !important;
    align-self:center !important;
  }
  body.home-page .site-header .lux-header-actions{
    position:relative !important;
    right:auto !important;
    top:auto !important;
    transform:none !important;
    margin:0 !important;
    justify-self:end !important;
    align-self:center !important;
    display:flex !important;
    align-items:center !important;
  }
  body.home-page .site-header .lux-direct-theme-toggle{
    margin:0 !important;
    inset:auto !important;
  }
}

/* Landscape phone: same 22px side margins and centered row as /propiedades/. */
@media (orientation:landscape) and (max-height:520px) and (max-width:950px){
  body.home-page .site-header .lux-header-row{
    width:calc(100% - 44px) !important;
    max-width:none !important;
    min-height:72px !important;
    height:72px !important;
    margin:0 auto !important;
    padding:0 !important;
    position:relative !important;
    display:grid !important;
    grid-template-columns:auto 1fr auto !important;
    align-items:center !important;
    gap:22px !important;
  }
  body.home-page .site-header .lux-brand{
    position:relative !important;
    left:auto !important;
    top:auto !important;
    transform:none !important;
    margin:0 !important;
    justify-self:start !important;
    align-self:center !important;
  }
  body.home-page .site-header .lux-header-actions{
    position:relative !important;
    right:auto !important;
    top:auto !important;
    transform:none !important;
    margin:0 !important;
    justify-self:end !important;
    align-self:center !important;
    display:flex !important;
    align-items:center !important;
  }
  body.home-page .site-header .lux-direct-theme-toggle{
    margin:0 !important;
    inset:auto !important;
  }
}

/* Prevent any site-created horizontal scrollbar. */
html, body{
  max-width:100% !important;
  overflow-x:hidden !important;
}


/* =========================================================
   INICIO — FINAL HEADER POSITION ONLY
   Match /propiedades/ visually without changing header colors.
   ========================================================= */

@media (max-width:640px){
  body.home-page .site-header .lux-header-row{
    position:relative !important;
    width:100% !important;
    max-width:none !important;
    height:64px !important;
    min-height:64px !important;
    margin:0 !important;
    padding:0 !important;
  }

  body.home-page .site-header .lux-brand{
    position:absolute !important;
    left:14px !important;
    top:50% !important;
    margin:0 !important;
    transform:translateY(-50%) !important;
  }

  body.home-page .site-header .lux-header-actions{
    position:absolute !important;
    right:14px !important;
    top:50% !important;
    margin:0 !important;
    transform:translateY(-50%) !important;
    display:flex !important;
    align-items:center !important;
  }

  body.home-page .site-header .lux-direct-theme-toggle{
    margin:0 !important;
  }

  html,
  body.home-page{
    background:#0b0b0b !important;
    color-scheme:dark !important;
  }

  body.home-page .norro-hero,
  body.home-page .norro-stage{
    min-height:100dvh !important;
  }
}

@media (orientation:landscape) and (max-height:520px) and (max-width:950px){
  body.home-page .site-header .lux-header-row{
    position:relative !important;
    width:100% !important;
    max-width:none !important;
    height:72px !important;
    min-height:72px !important;
    margin:0 !important;
    padding:0 !important;
  }

  body.home-page .site-header .lux-brand{
    position:absolute !important;
    left:22px !important;
    top:50% !important;
    margin:0 !important;
    transform:translateY(-50%) !important;
  }

  body.home-page .site-header .lux-header-actions{
    position:absolute !important;
    right:22px !important;
    top:50% !important;
    margin:0 !important;
    transform:translateY(-50%) !important;
    display:flex !important;
    align-items:center !important;
  }

  body.home-page .site-header .lux-direct-theme-toggle{
    margin:0 !important;
  }

  html,
  body.home-page{
    background:#0b0b0b !important;
    color-scheme:dark !important;
  }

  body.home-page .norro-hero,
  body.home-page .norro-stage{
    min-height:100dvh !important;
  }
}

/* =========================================================
   INICIO — MOBILE MENU COMPACT CARD
   Isolated change: menu size/layout only.
   Keeps the corrected header/hero untouched.
   ========================================================= */
@media (max-width:640px), (orientation:landscape) and (max-height:520px) and (max-width:950px){
  body.home-page .mobile-menu-panel{
    position:fixed !important;
    top:calc(74px + env(safe-area-inset-top,0px)) !important;
    left:auto !important;
    right:14px !important;
    width:min(548px,calc(100vw - 28px)) !important;
    max-width:calc(100vw - 28px) !important;
    padding:18px 18px 16px !important;
    border-radius:22px !important;
    max-height:calc(100dvh - 92px) !important;
    overflow-y:auto !important;
    box-sizing:border-box !important;
  }

  body.home-page .mobile-menu-nav{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    column-gap:28px !important;
    row-gap:4px !important;
  }

  body.home-page .mobile-menu-nav a{
    min-height:46px !important;
    padding:12px 20px !important;
    display:flex !important;
    align-items:center !important;
    border-radius:14px !important;
    font-size:14px !important;
    line-height:1.2 !important;
    box-sizing:border-box !important;
  }

  body.home-page .mobile-menu-book{
    grid-column:1 / -1 !important;
    min-height:58px !important;
    margin-top:8px !important;
    justify-content:center !important;
    text-align:center !important;
    font-size:14px !important;
  }

  body.home-page .mobile-menu-theme{
    min-height:58px !important;
    margin-top:10px !important;
    padding:0 20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    border-radius:14px !important;
    font-size:13px !important;
    box-sizing:border-box !important;
  }
}

/* A little narrower on portrait phones, matching the first reference image. */
@media (max-width:640px) and (orientation:portrait){
  body.home-page .mobile-menu-panel{
    /* Match the reference: about 72 CSS px from the left and 15 px from the right. */
    left:72px !important;
    right:15px !important;
    width:auto !important;
    max-width:none !important;
  }
}
