@import url("/public/assets/css/rosy-design-v401.css");
:root { --rosy-sidebar-width: 92px; }
body { padding-left: var(--rosy-sidebar-width); }
.rosy-sidebar { position: fixed; z-index: 1000; inset: 0 auto 0 0; width: var(--rosy-sidebar-width); background: #fff; border-right: 1px solid #eadde3; display: flex; flex-direction: column; transition: width .22s ease,transform .22s ease; overflow: hidden; }
.rosy-sidebar-head { height: 78px; display: flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; }
.rosy-sidebar-logo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: linear-gradient(135deg,#d9477c,#8943d8); color: #fff; text-decoration: none; font: 700 30px Georgia,serif; }
.rosy-sidebar-head button { position: absolute; border: 0; background: #f7edf2; border-radius: 10px; cursor: pointer; }
.rosy-sidebar-head [data-rosy-sidebar-collapse] { right: 5px; bottom: 2px; }
.rosy-sidebar-head [data-rosy-sidebar-close] { display: none; right: 14px; top: 13px; font-size: 22px; }
.rosy-sidebar nav,.rosy-sidebar-foot { display: grid; gap: 4px; padding: 8px; }
.rosy-sidebar nav { overflow-y: auto; overscroll-behavior: contain; }
.rosy-sidebar nav a,.rosy-sidebar-foot a { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 17px; color: #1d1420; text-decoration: none; font: 800 10px/1.1 Inter,system-ui,sans-serif; white-space: nowrap; }
.rosy-sidebar a b { font-size: 17px; }
.rosy-sidebar a.active { background: #f8e3ec; color: #b42f64; }
.rosy-sidebar-foot { margin-top: auto; flex: 0 0 auto; }
.rosy-sidebar.collapsed { width: 64px; }
.rosy-sidebar.collapsed span { display: none; }
body.rosy-sidebar-collapsed { --rosy-sidebar-width: 64px; }
.rosy-sidebar-backdrop { display: none; position: fixed; z-index: 990; inset: 0; border: 0; background: #1d142088; }
.rosy-mobile-bar,.rosy-bottom-nav { display: none; }
.auth-top { position: sticky; top: 0; z-index: 850; }
.auth-top nav a,.auth-form a,.auth-foot a,.account-card a { color: #9f3164; text-decoration: none; font-weight: 800; }
.auth-top nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #eadde3; border-radius: 12px; background: #fff; color: #1d1420; }
.auth-top nav a:hover,.auth-form a:hover,.auth-foot a:hover,.account-card a:hover { color: #d9477c; }

@media (max-width:820px) {
  html.rosy-menu-open,html.rosy-menu-open body { overflow: hidden; }
  body { padding-left: 0; padding-top: 62px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .rosy-mobile-bar { position: fixed; z-index: 900; inset: 0 0 auto; height: 62px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px; padding: 0 14px; background: rgba(255,255,255,.96); border-bottom: 1px solid #eadde3; backdrop-filter: blur(18px); }
  .rosy-menu-trigger { position: static; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ded2d9; border-radius: 12px; background: #fff; color: #1d1420; font-size: 20px; cursor: pointer; }
  .rosy-mobile-brand { min-width: 0; display: flex; align-items: center; gap: 9px; color: #1d1420; text-decoration: none; font-family: Georgia,serif; }
  .rosy-mobile-brand b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #f8dce8; color: #a83166; font-size: 23px; }
  .rosy-mobile-brand strong { font-size: 23px; }
  .rosy-mobile-account { color: #1d1420; text-decoration: none; font: 700 13px Inter,system-ui,sans-serif; padding: 9px 10px; border-radius: 12px; }
  .rosy-sidebar { width: min(292px,84vw); transform: translateX(-105%); }
  .rosy-sidebar.open { transform: translateX(0); box-shadow: 24px 0 60px #2d1d2a33; }
  .rosy-sidebar-backdrop.open { display: block; }
  .rosy-sidebar-head [data-rosy-sidebar-close] { display: block; }
  .rosy-sidebar-head [data-rosy-sidebar-collapse] { display: none; }
  .rosy-sidebar nav a,.rosy-sidebar-foot a { flex-direction: row; justify-content: flex-start; padding: 0 25px; font-size: 13px; }
  .rosy-sidebar a b { width: 28px; text-align: center; }
  .rosy-bottom-nav { position: fixed; z-index: 880; left: 10px; right: 10px; bottom: max(8px,env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); padding: 7px; background: rgba(255,255,255,.96); border: 1px solid #eadde3; border-radius: 22px; box-shadow: 0 16px 50px rgba(45,30,40,.18); backdrop-filter: blur(20px); }
  .rosy-bottom-nav a { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 1px; color: #1d1420; text-decoration: none; font: 850 9px/1.1 Inter,system-ui,sans-serif; }
  .rosy-bottom-nav span { font-size: 18px; }
  .rosy-bottom-nav .active { color: #d9477c; }
  body:has(.topbar) { padding-top: 0; }
  .rosy-shell-active .mobile-dock { display: none !important; }
  .auth-top { display: none !important; }
  .account,.auth-shell { scroll-margin-top: 72px; }
}

/* Rosy V2.8.3 — shell visual unificado y experiencia móvil tipo app */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;background:#fbf8fa}
body{max-width:100%;margin:0;overflow-x:hidden}
img,svg,video,canvas{max-width:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid rgba(214,46,139,.28);outline-offset:3px}
.rosy-sidebar-foot form,.rosy-sidebar-foot button{width:100%}
.rosy-sidebar-foot button{min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:17px;background:transparent;color:#1d1420;font:800 10px/1.1 Inter,system-ui,sans-serif;cursor:pointer}
.rosy-sidebar-foot button b{font-size:17px}
.rosy-sidebar nav a,.rosy-sidebar-foot a,.rosy-sidebar-foot button{transition:background-color .18s ease,color .18s ease,transform .18s ease}
.rosy-sidebar nav a:hover,.rosy-sidebar-foot a:hover,.rosy-sidebar-foot button:hover{background:#faf0f5;color:#ad2d66;transform:translateY(-1px)}
.rosy-mobile-bar,.rosy-bottom-nav{transition:box-shadow .2s ease,transform .2s ease,background-color .2s ease}
.rosy-mobile-bar.is-scrolled{box-shadow:0 10px 30px rgba(42,24,36,.09)}
.rosy-bottom-nav.is-scrolled{box-shadow:0 18px 55px rgba(45,30,40,.24)}

/* La regla más importante del shell: ningún hijo de una grilla puede ensanchar la app. */
main,section,article,header,footer,form,fieldset,div{min-width:0}
.prop-shell,.dashboard-shell,.profile-shell,.account,.auth-shell,.app-main{max-width:100%}
table{max-width:100%}

/* Entrada suave, con respeto explícito por accesibilidad. */
.rosy-reveal{opacity:0;transform:translateY(12px);transition:opacity .42s ease,transform .42s cubic-bezier(.2,.7,.2,1)}
.rosy-reveal.is-visible{opacity:1;transform:none}

@media (max-width:820px){
  :root{--rosy-topbar-height:62px;--rosy-dock-height:76px}
  html,body{height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}
  body{padding:0!important;background:#fbf8fa}

  /* Barras persistentes: el documento no se desplaza, solo el área central. */
  body:has(.rosy-mobile-bar)>.rosy-mobile-bar{height:var(--rosy-topbar-height)}
  body:has(.rosy-mobile-bar)>main,
  body:has(.rosy-mobile-bar)>.app-main,
  body:has(.rosy-mobile-bar)>.auth-shell,
  body:has(.rosy-mobile-bar)>.account{
    position:fixed!important;inset:var(--rosy-topbar-height) 0 var(--rosy-dock-height) 0!important;
    width:auto!important;max-width:none!important;height:auto!important;margin:0!important;
    overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;scrollbar-gutter:stable both-edges;
  }
  body:has(.rosy-mobile-bar)>footer{display:none}
  body:has(.topbar)>.topbar{position:fixed!important;z-index:900;inset:0 0 auto!important;height:var(--rosy-topbar-height);margin:0!important;background:rgba(255,255,255,.96);backdrop-filter:blur(18px)}
  body:has(.topbar)>.app-main{position:fixed!important;inset:var(--rosy-topbar-height) 0 var(--rosy-dock-height) 0!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
  body:has(.topbar)>footer{display:none}

  .rosy-mobile-bar{padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
  .rosy-mobile-account{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rosy-bottom-nav{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(7px,env(safe-area-inset-bottom));min-height:62px;padding:7px 5px;border-radius:20px}
  .rosy-bottom-nav a{min-height:46px;justify-content:center;border-radius:14px;transition:background-color .18s ease,color .18s ease,transform .12s ease}
  .rosy-bottom-nav a:active{transform:scale(.94)}
  .rosy-bottom-nav a.active{background:#fff0f6}
  .rosy-bottom-nav span{font-size:17px;line-height:1}
  .rosy-sidebar{height:100dvh}
  .rosy-sidebar nav{padding-bottom:14px}
  .rosy-sidebar-foot button{flex-direction:row;justify-content:flex-start;padding:0 25px;font-size:13px}
  .rosy-sidebar-foot button b{width:28px;text-align:center}

  /* Espaciado y tipografía coherentes en todos los módulos. */
  .prop-shell,.dashboard-shell,.profile-shell{width:100%!important;padding:16px 12px calc(22px + env(safe-area-inset-bottom))!important}
  .prop-head,.dashboard-hero,.profile-head{margin-top:0!important}
  .prop-head h1,.dashboard-hero h1,.profile-head h1,.detail-head h1{font-size:clamp(32px,10vw,44px)!important;line-height:1.02!important;letter-spacing:-.035em!important;overflow-wrap:anywhere}
  .prop-card,.prop-row,.prop-empty,.dashboard-card,.profile-card{max-width:100%;border-radius:20px!important;padding:18px!important}
  .prop-grid,.dashboard-grid,.profile-grid,.payment-form-grid,.booking-person-grid,.two-cols{grid-template-columns:minmax(0,1fr)!important}
  .prop-grid .wide,.dashboard-card.wide,.profile-card.wide,.booking-person-grid label:last-child{grid-column:auto!important}
  .prop-head,.profile-head{align-items:flex-start!important;flex-direction:column!important}
  .prop-actions,.dashboard-actions,.profile-actions{width:100%}
  .prop-actions>a,.prop-actions>button,.dashboard-action,.profile-actions>a,.profile-actions>button{justify-content:center;max-width:100%}
  input,select,textarea,button{font-size:16px}
  input,select,textarea{max-width:100%;min-height:48px}

  /* Fichas y detalle inmobiliario: una sola columna real, sin recortes laterales. */
  .pro-detail,.pro-detail>*,.pro-detail-top,.detail-layout,.booking-layout,.booking-grid,.availability-grid,.property-summary,.prop-row{width:100%!important;max-width:100%!important;min-width:0!important}
  .pro-detail-top,.detail-layout,.booking-layout,.booking-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .property-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important}
  .property-summary>div{min-width:0!important;padding:13px!important}
  .prop-row{display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:16px!important}
  .prop-row .prop-actions{display:grid!important;grid-template-columns:1fr!important}
  .pro-gallery,.detail-gallery,.gallery-main{border-radius:20px!important;overflow:hidden}
  .pro-gallery img,.detail-gallery img,.gallery-main img{width:100%!important;object-fit:cover}
  .pro-v248 .pro-side{position:static!important;top:auto!important;width:100%!important}
  .booking-head,.pro-contact{align-items:flex-start!important;flex-direction:column!important}
  .date-pickers,.payment-preview{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .payment-preview>button{min-height:54px!important;padding:12px 16px!important}

  /* Calendario Rosy: siete columnas fluidas y un mes por pantalla. */
  .rosy-calendar,.rosy-calendar-panel,.availability-calendar{width:100%!important;max-width:100%!important;min-width:0!important;padding:12px!important;overflow:hidden!important}
  .rosy-calendar-head{grid-template-columns:38px minmax(0,1fr) 38px 32px!important;gap:5px!important}
  .rosy-months{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;width:100%!important}
  .rosy-month{width:100%!important;min-width:0!important}
  .rosy-month:nth-child(n+2){display:none!important}
  .rosy-weekdays,.rosy-days,.rosy-month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;width:100%!important;gap:3px!important}
  .rosy-days button,.rosy-month-grid button,.rosy-day{width:100%!important;min-width:0!important;max-width:none!important;aspect-ratio:1/1;min-height:38px!important;padding:0!important;border-radius:10px!important;font-size:12px!important}
  .rosy-calendar-legend,.calendar-legend{display:flex!important;flex-wrap:wrap!important;gap:8px 12px!important;font-size:10px!important}
  .availability-fields,.booking-methods{grid-template-columns:minmax(0,1fr)!important}

  /* Diálogos como hojas de aplicación, con desplazamiento interno seguro. */
  dialog.booking-dialog,.property-modal{inset:auto 0 0!important;width:100%!important;max-width:none!important;max-height:calc(100dvh - 10px)!important;margin:auto 0 0!important;border-radius:26px 26px 0 0!important;padding:24px 16px calc(22px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important;overflow-y:auto!important}
  .pro-lightbox{inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border-radius:0!important}
  .booking-summary{display:grid!important;gap:6px!important}
  .booking-summary strong{white-space:normal!important}
  .booking-methods{display:grid!important}

  /* Tablas y paneles administrativos permanecen utilizables en 320–430 px. */
  .admin-table,.mail-result table{min-width:640px}
  .dashboard-card:has(>.admin-table),.mail-result{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .booking-admin-item{grid-template-columns:minmax(0,1fr)!important;padding:16px!important}
  .booking-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .booking-admin-actions{padding-left:0!important;border-left:0!important}
  .booking-admin-nav{max-width:100%;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
}

@media (max-width:390px){
  .rosy-mobile-brand strong{font-size:20px}
  .rosy-mobile-account{font-size:11px;padding-inline:4px}
  .rosy-bottom-nav{left:5px;right:5px;padding-inline:2px}
  .rosy-bottom-nav a{font-size:8px}
  .prop-shell,.dashboard-shell,.profile-shell{padding-inline:9px!important}
  .booking-facts{grid-template-columns:minmax(0,1fr)!important}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .rosy-reveal{opacity:1!important;transform:none!important}
}

/* Rosy V3.1.9 — shell público único: header + sidebar + dock compartidos */
:root{--rosy-public-topbar-height:78px}
body{padding-top:var(--rosy-public-topbar-height)}
.rosy-public-topbar{position:fixed;z-index:940;top:0;left:var(--rosy-sidebar-width);right:0;height:var(--rosy-public-topbar-height);background:rgba(255,250,248,.96);border-bottom:1px solid #eadde3;backdrop-filter:blur(20px);display:flex;align-items:center}
.rosy-public-topbar-inner{width:min(100% - 64px,1440px);height:100%;margin:auto;display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);align-items:center;gap:28px}
.rosy-public-brand{justify-self:start;display:flex;align-items:center;gap:10px;color:#1d1420;text-decoration:none;min-width:max-content}
.rosy-public-brand>b{display:grid;place-items:center;width:42px;height:42px;border-radius:15px;background:#f8dfe7;color:#9c3557;font:900 23px Georgia,serif}
.rosy-public-brand span strong,.rosy-public-brand span small{display:block}.rosy-public-brand span strong{font:900 21px/1 Georgia,serif}.rosy-public-brand span small{font:500 10px/1.2 Inter,system-ui,sans-serif;color:#6f6874;margin-top:3px}
.rosy-public-primary{justify-self:center;display:flex;align-items:center;gap:30px}.rosy-public-primary a,.rosy-public-account a{color:#1d1420;text-decoration:none;font:800 13px/1 Inter,system-ui,sans-serif;white-space:nowrap}
.rosy-public-primary a:hover,.rosy-public-account>a:not(.rosy-public-cta):hover{color:#b42f64}
.rosy-public-account{justify-self:end;display:flex;align-items:center;gap:18px}.rosy-public-account .rosy-public-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;border-radius:15px;background:linear-gradient(135deg,#d9477c,#8943d8);color:#fff;box-shadow:0 12px 30px rgba(178,63,112,.20)}
body.rosy-sidebar-collapsed .rosy-public-topbar{left:64px}
.rosy-mobile-bar{display:none}
@media(max-width:1100px){.rosy-public-topbar-inner{width:min(100% - 34px,1200px);grid-template-columns:auto 1fr auto}.rosy-public-primary{gap:18px}.rosy-public-brand span small{display:none}}
@media(max-width:820px){
 :root{--rosy-public-topbar-height:62px}
 body{padding-top:0!important}
 .rosy-public-topbar{display:none!important}
 .rosy-mobile-bar{display:grid!important}
 .rosy-mobile-brand{justify-self:start}.rosy-mobile-account{justify-self:end;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:40px!important;margin:0!important;padding:8px 10px!important}
 body:has(.rosy-mobile-bar)>main,body:has(.rosy-mobile-bar)>.app-main,body:has(.rosy-mobile-bar)>.auth-shell,body:has(.rosy-mobile-bar)>.account{inset:62px 0 calc(76px + env(safe-area-inset-bottom)) 0!important}
}

/* Rosy V3.3.3 — sidebar privado compartido y legible en todo el dashboard */
@media (min-width:821px){
  body:has(.rosy-sidebar-dashboard){--rosy-sidebar-width:168px}
  .rosy-sidebar-dashboard{width:var(--rosy-sidebar-width);background:rgba(255,255,255,.97);backdrop-filter:blur(18px)}
  .rosy-sidebar-dashboard .rosy-sidebar-head{justify-content:flex-start;padding-left:18px}
  .rosy-sidebar-dashboard .rosy-sidebar-logo{width:48px;height:48px;border-radius:15px;font-size:27px}
  .rosy-sidebar-dashboard nav,.rosy-sidebar-dashboard .rosy-sidebar-foot{padding:7px 10px;overflow-x:hidden}
  .rosy-sidebar-dashboard nav a,
  .rosy-sidebar-dashboard .rosy-sidebar-foot a,
  .rosy-sidebar-dashboard .rosy-sidebar-foot button{
    min-height:46px;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;
    padding:0 11px;font-size:11px;line-height:1.15;white-space:normal;text-align:left;overflow:hidden
  }
  .rosy-sidebar-dashboard nav a b,
  .rosy-sidebar-dashboard .rosy-sidebar-foot a b,
  .rosy-sidebar-dashboard .rosy-sidebar-foot button b{width:23px;flex:0 0 23px;text-align:center;font-size:15px}
  .rosy-sidebar-dashboard nav a span,
  .rosy-sidebar-dashboard .rosy-sidebar-foot a span,
  .rosy-sidebar-dashboard .rosy-sidebar-foot button span{min-width:0;overflow-wrap:break-word;word-break:normal}
  .rosy-sidebar-dashboard.collapsed{width:64px}
  .rosy-sidebar-dashboard.collapsed nav a,
  .rosy-sidebar-dashboard.collapsed .rosy-sidebar-foot a,
  .rosy-sidebar-dashboard.collapsed .rosy-sidebar-foot button{justify-content:center;padding:0}
  .rosy-sidebar-dashboard.collapsed nav a b,
  .rosy-sidebar-dashboard.collapsed .rosy-sidebar-foot a b,
  .rosy-sidebar-dashboard.collapsed .rosy-sidebar-foot button b{width:auto;flex-basis:auto}
  .rosy-sidebar-dashboard.collapsed span{display:none}
  body.rosy-sidebar-collapsed:has(.rosy-sidebar-dashboard){--rosy-sidebar-width:64px}
}

/* Rosy V3.6.1 — zona segura global para navegación inferior móvil */
@media (max-width:820px){
  :root{
    --rosy-mobile-dock-height:76px;
    --rosy-mobile-safe-bottom:calc(var(--rosy-mobile-dock-height) + max(14px,env(safe-area-inset-bottom)) + 18px);
  }
  html{scroll-padding-bottom:var(--rosy-mobile-safe-bottom)}
  body{padding-bottom:var(--rosy-mobile-safe-bottom)!important}
  body:has(.rosy-mobile-bar)>main,
  body:has(.rosy-mobile-bar)>.app-main,
  body:has(.rosy-mobile-bar)>.auth-shell,
  body:has(.rosy-mobile-bar)>.account{
    bottom:0!important;
    padding-bottom:var(--rosy-mobile-safe-bottom)!important;
    scroll-padding-bottom:var(--rosy-mobile-safe-bottom)!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
  }
  .market-store,.market-track,.dashboard-shell,.prop-shell,.profile-shell,
  .guest-booking-page,.guest-checklist-page{
    padding-bottom:var(--rosy-mobile-safe-bottom)!important;
    scroll-padding-bottom:var(--rosy-mobile-safe-bottom)!important;
  }
  main>section:last-child,.app-main>section:last-child,.market-store>section:last-child,
  .dashboard-shell>section:last-child,.prop-shell>section:last-child,.profile-shell>section:last-child{
    margin-bottom:18px;
  }
  input,select,textarea,button,a{scroll-margin-bottom:var(--rosy-mobile-safe-bottom)}
  textarea{max-width:100%;box-sizing:border-box}
  .rosy-bottom-nav{min-height:62px}
}


/* Rosy V3.6.1.1 — navegación inferior inteligente global */
@media (max-width:820px){
  .rosy-bottom-nav{
    will-change:transform,opacity;
    transition:transform .22s cubic-bezier(.22,.61,.36,1),opacity .18s ease,box-shadow .2s ease,background-color .2s ease!important;
  }
  .rosy-bottom-nav.is-hidden-by-scroll{
    transform:translate3d(0,calc(100% + max(28px,env(safe-area-inset-bottom))),0)!important;
    opacity:0;
    pointer-events:none;
  }
}
@media (prefers-reduced-motion:reduce){
  .rosy-bottom-nav{transition:none!important}
}

/* V3.9.5 — Accesibilidad AA: foco, teclado, movimiento reducido y diálogos */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:3px solid #8b2fc9;
  outline-offset:3px;
  box-shadow:0 0 0 2px #fff;
}
:where(input,select,textarea):focus-visible{border-color:#8b2fc9}
.rosy-skip-link{
  position:fixed;left:16px;top:12px;z-index:100000;transform:translateY(-160%);
  padding:10px 14px;border-radius:10px;background:#24121f;color:#fff;font:700 14px/1.2 system-ui,sans-serif;
  text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.18)
}
.rosy-skip-link:focus{transform:translateY(0)}
:where(button,[role="button"],a,input,select,textarea):disabled{cursor:not-allowed}
[aria-invalid="true"]{border-color:#b42318!important;box-shadow:0 0 0 1px #b42318}
.rosy-field-error{display:block;margin-top:6px;color:#8f1d18;font-size:.875rem;font-weight:650}
dialog::backdrop{background:rgba(25,16,24,.58)}
@media (prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media (forced-colors:active){
  :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid CanvasText;box-shadow:none}
}

/* Rosy V4.0.2 — shell móvil app-first. Capa aditiva sobre el shell certificado. */
:root{
  --rosy-app-vh:100dvh;
  --rosy-app-top-safe:env(safe-area-inset-top,0px);
  --rosy-app-bottom-safe:env(safe-area-inset-bottom,0px);
  --rosy-app-topbar:62px;
  --rosy-app-dock:72px;
}
@media (max-width:820px){
  html.rosy-app-shell,html.rosy-app-shell body{height:var(--rosy-app-vh);min-height:var(--rosy-app-vh)}
  body.rosy-shell-active{background:var(--rosy-color-surface-soft,#fffaf8);touch-action:pan-y}
  .rosy-mobile-bar{
    top:0!important;height:calc(var(--rosy-app-topbar) + var(--rosy-app-top-safe))!important;
    padding-top:var(--rosy-app-top-safe)!important;
    padding-left:max(12px,env(safe-area-inset-left))!important;padding-right:max(12px,env(safe-area-inset-right))!important;
    border-bottom-color:rgba(234,221,227,.82)!important;
  }
  body:has(.rosy-mobile-bar)>main,
  body:has(.rosy-mobile-bar)>.app-main,
  body:has(.rosy-mobile-bar)>.auth-shell,
  body:has(.rosy-mobile-bar)>.account{
    top:calc(var(--rosy-app-topbar) + var(--rosy-app-top-safe))!important;
    bottom:calc(var(--rosy-app-dock) + var(--rosy-app-bottom-safe))!important;
    min-height:0!important;
    scrollbar-width:none;
  }
  body:has(.rosy-mobile-bar)>main::-webkit-scrollbar,
  body:has(.rosy-mobile-bar)>.app-main::-webkit-scrollbar,
  body:has(.rosy-mobile-bar)>.auth-shell::-webkit-scrollbar,
  body:has(.rosy-mobile-bar)>.account::-webkit-scrollbar{display:none}
  .rosy-menu-trigger,.rosy-mobile-account{min-width:44px;min-height:44px}
  .rosy-mobile-bar .rosy-menu-trigger{border-color:transparent;background:var(--rosy-color-surface-soft,#fffaf8)}
  .rosy-bottom-nav{
    left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;
    bottom:max(6px,var(--rosy-app-bottom-safe))!important;min-height:64px!important;
    padding:6px!important;border-radius:22px!important;overflow-x:auto;overflow-y:hidden;
    overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;
  }
  .rosy-bottom-nav::-webkit-scrollbar{display:none}
  .rosy-bottom-nav a{min-width:58px;min-height:48px!important;scroll-snap-align:center}
  .rosy-bottom-nav a.active{box-shadow:inset 0 0 0 1px rgba(207,52,143,.08)}
  .rosy-sidebar{height:var(--rosy-app-vh)!important;padding-top:var(--rosy-app-top-safe);padding-bottom:var(--rosy-app-bottom-safe)}
  .rosy-sidebar.open{transform:translate3d(0,0,0)}
  .rosy-sidebar-backdrop{height:var(--rosy-app-vh);backdrop-filter:blur(2px)}
  html.rosy-keyboard-open .rosy-bottom-nav{transform:translate3d(0,120%,0)!important;pointer-events:none}
  html.rosy-keyboard-open body:has(.rosy-mobile-bar)>main,
  html.rosy-keyboard-open body:has(.rosy-mobile-bar)>.app-main,
  html.rosy-keyboard-open body:has(.rosy-mobile-bar)>.auth-shell,
  html.rosy-keyboard-open body:has(.rosy-mobile-bar)>.account{bottom:0!important}
}
@media (display-mode:standalone) and (max-width:820px){
  .rosy-mobile-bar{background:rgba(255,255,255,.98)}
  .rosy-bottom-nav{background:rgba(255,255,255,.98)}
}
