/* RETOO - identidad visual 2026. Aplicar después de las hojas funcionales.
   Marca: lima #BBF714 / azul #1129D3 / blanco #FFFFFF / negro #000000.
   Los tonos suaves sólo se emplean en superficies; rojo y ámbar indican estados.
   No modificar grids, tamaños de inputs, navegación táctil ni lógica de reservas. */
:root{
  --retoo-lime:#BBF714;
  --retoo-blue:#1129D3;
  --retoo-white:#FFFFFF;
  --retoo-black:#000000;
  --retoo-paper:#F7F8FF;
  --retoo-soft-blue:#EDF0FF;
  --retoo-soft-lime:#F3FFD4;
  --retoo-border:#DDE2FA;
  --retoo-muted:#505667;
  accent-color:var(--retoo-blue);
}
body.retoo-play,body.retoo-business,body.retoo-admin{
  font-family:"Trebuchet MS",Arial,sans-serif;
  color:var(--retoo-black);
  background:var(--retoo-paper);
}
body.retoo-play button,
body.retoo-business button,
body.retoo-admin button{font-family:inherit}
body.retoo-play :is(button,input,select,textarea,a):focus-visible,
body.retoo-business :is(button,input,select,textarea,a):focus-visible,
body.retoo-admin :is(button,input,select,textarea,a):focus-visible{
  outline:3px solid var(--retoo-blue);
  outline-offset:3px;
}
body.retoo-play :is(.top,.hero,.banner2) :is(button,a,input):focus-visible,
body.retoo-business .bar :is(button,a):focus-visible,
body.retoo-admin .header :is(button,a):focus-visible{
  outline-color:var(--retoo-lime);
}
body.retoo-play :is(input,select,textarea),
body.retoo-business :is(input,select,textarea),
body.retoo-admin :is(input,select,textarea){
  accent-color:var(--retoo-blue);
}

/* Sitio de jugadores: cabecera, portada y buscador */
body.retoo-play{
  --deep:var(--retoo-blue);
  --green:var(--retoo-lime);
  --ink:var(--retoo-black);
  --muted:var(--retoo-muted);
  --line:var(--retoo-border);
  --bg:var(--retoo-paper);
}
.retoo-play .top{background:var(--retoo-blue)}
.retoo-play .hero::before{
  background-image:linear-gradient(90deg,rgba(9,21,116,.97) 0%,rgba(17,41,211,.87) 48%,rgba(17,41,211,.45) 100%),url("https://images.unsplash.com/photo-1607414721186-5309963d7b52?auto=format&fit=crop&w=1500&q=80");
}
.retoo-play .hero::after{border-color:rgba(187,247,20,.28)}
.retoo-play .hero h1 span,.retoo-play .eyebrow{color:var(--retoo-lime)}
.retoo-play .hero p{color:#FFF}
.retoo-play .note{color:#F2F3FF}
.retoo-play .search{box-shadow:0 15px 34px rgba(0,0,0,.22)}
.retoo-play .search button{background:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .search button:hover{background:#D0FF4D}
.retoo-play .navtab{color:#FFF}
.retoo-play .navtab.active{background:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .sign{border-color:#FFF;color:#FFF}
.retoo-play .sign:hover{background:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .eyebrow{background:rgba(187,247,20,.14);border-color:rgba(187,247,20,.5)}
.retoo-play main .eyebrow{background:var(--retoo-soft-lime);border-color:var(--retoo-lime);color:var(--retoo-blue)}
.retoo-play :is(.sub,.location,.note-inline,.quiet,.page-heading p,.map-caption){color:var(--retoo-muted)}
.retoo-play :is(.venue,.card,.record){border-color:var(--retoo-border)}
.retoo-play .venue:hover{box-shadow:0 12px 31px rgba(17,41,211,.13)}
.retoo-play .sport{color:var(--retoo-black);border-color:var(--retoo-border);background:var(--retoo-white)}
.retoo-play .sport.active{background:var(--retoo-lime);border-color:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .muted-link{color:var(--retoo-blue)}
.retoo-play .filter-select,.retoo-play .filter-price{border-color:var(--retoo-border)}
.retoo-play .filter-select select,.retoo-play .filter-select input{color:var(--retoo-black)}
.retoo-play .filter-submit{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-play .filter-clear{background:var(--retoo-soft-blue);color:var(--retoo-blue);border-color:var(--retoo-border)}
.retoo-play .switch{border-color:var(--retoo-border)}
.retoo-play .switch button[aria-pressed="true"]{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-play .venue-art:not(:has(img)){background:linear-gradient(140deg,var(--retoo-blue),#4056E8)}
.retoo-play .venue-art .type{background:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .venue-art .fav[aria-pressed="true"]{background:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .features span{background:var(--retoo-soft-blue);color:var(--retoo-blue)}
.retoo-play .venue .venue-foot .view{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-play .venue .venue-foot .view:hover{background:#0C1FA9}
.retoo-play .price strong{color:var(--retoo-blue)}
.retoo-play .banner{background:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .banner p{color:var(--retoo-black)}
.retoo-play .banner button{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-play .banner2{background:var(--retoo-blue)}
.retoo-play .banner2 p{color:var(--retoo-white)}
.retoo-play .banner2 button{background:var(--retoo-lime);border-color:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .primary{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-play .primary:hover:not(:disabled){background:#0C1FA9}
.retoo-play .subtle{background:var(--retoo-soft-blue);border-color:var(--retoo-border);color:var(--retoo-blue)}
.retoo-play .status-card .eyebrow,.retoo-play .play-overlay .eyebrow{color:var(--retoo-blue);background:transparent;border:0}
.retoo-play .profile-card :is(input,select),.retoo-play .play-overlay input{border-color:var(--retoo-border);color:var(--retoo-black)}
.retoo-play .slot-grid .slot{background:var(--retoo-soft-blue);border-color:var(--retoo-border);color:var(--retoo-blue)}
.retoo-play .slot-grid .slot.selected{background:var(--retoo-lime);border-color:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .slot-grid .slot:disabled{background:#F0F0F4;color:#717485}
.retoo-play .booking-summary,.retoo-play .share-summary{background:var(--retoo-soft-lime);border-color:var(--retoo-lime);color:var(--retoo-black)}
.retoo-play .dialog-close{background:var(--retoo-soft-blue);color:var(--retoo-blue)}
.retoo-play .badge.ok{background:var(--retoo-soft-lime);color:var(--retoo-black)}
.retoo-play .play-message:not(.error){background:var(--retoo-soft-blue);border-color:var(--retoo-border);border-left-color:var(--retoo-blue);color:var(--retoo-black)}
.retoo-play .bottomnav{border-top-color:var(--retoo-border)}
.retoo-play .bottomnav .bottomnav-item{color:#535A74}
.retoo-play .bottomnav .bottomnav-item.active,
.retoo-play .bottomnav.wheel-nav .bottomnav-item.active:not(.is-centered),
.retoo-play .bottomnav.wheel-nav .bottomnav-item.is-centered{color:var(--retoo-blue)}
.retoo-play .bottomnav .bottomnav-item.active span{background:var(--retoo-soft-lime)}
.retoo-play .bottomnav.wheel-nav{background:linear-gradient(180deg,#FFF,var(--retoo-paper));box-shadow:0 -6px 24px rgba(17,41,211,.12)}
.retoo-play .bottomnav.wheel-nav .bottomnav-item.is-centered .wheel-icon{background:var(--retoo-lime);box-shadow:0 4px 16px rgba(17,41,211,.16)}
.retoo-play .bottomnav.wheel-nav .bottomnav-item.is-centered svg{color:var(--retoo-blue)}

/* Login, recuperación y cuenta */
.retoo-play .ra-panel{color:var(--retoo-black)}
.retoo-play .ra-logo,.retoo-play .ra-panel a{color:var(--retoo-blue)}
.retoo-play .ra-kicker{background:var(--retoo-soft-lime);color:var(--retoo-blue)}
.retoo-play .ra-tabs{background:var(--retoo-soft-blue)}
.retoo-play .ra-tabs button{color:var(--retoo-blue)}
.retoo-play .ra-tabs button[aria-selected="true"]{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-play .ra-panel label.ra-field input{border-color:var(--retoo-border);color:var(--retoo-black)}
.retoo-play .ra-panel label.ra-field input:focus{border-color:var(--retoo-blue);outline-color:var(--retoo-lime)}
.retoo-play .ra-primary{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-play .ra-secondary{border-color:var(--retoo-border);color:var(--retoo-blue)}
.retoo-play .ra-user,.retoo-play .ra-msg[data-ok="true"]{background:var(--retoo-soft-lime);color:var(--retoo-black)}
.retoo-play .ra-close{background:var(--retoo-soft-blue);color:var(--retoo-blue)}

/* Panel del establecimiento y agenda */
body.retoo-business{--ink:var(--retoo-black)}
.retoo-business .bar{background:var(--retoo-blue)}
.retoo-business .brand{display:flex;align-items:flex-start;gap:4px;width:auto}
.retoo-business .brand-logo{display:block;width:auto;height:36px;max-width:170px;object-fit:contain}
.retoo-business .brand small{position:static;color:var(--retoo-lime);margin-top:1px;font-size:10px}
.retoo-business .back{color:var(--retoo-white)}
.retoo-business .eyebrow{color:var(--retoo-blue)}
.retoo-business .select-panel{background:var(--retoo-soft-blue)}
.retoo-business .notice:not([data-error="true"]):not([data-ok="true"]){background:var(--retoo-soft-blue);border-color:var(--retoo-border)}
.retoo-business .card,.retoo-business .record,.retoo-business .dashboard-kpi,.retoo-business .cal-day{border-color:var(--retoo-border)}
.retoo-business .biz-tabs{background:var(--retoo-soft-blue)}
.retoo-business .biz-tabs button{color:var(--retoo-blue)}
.retoo-business .biz-tabs button[aria-pressed="true"]{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-business :is(.actions button,.state-card a,.range-toolbar button,.report-actions button){background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-business :is(.secondary-btn,.record-actions button,.cloud-account-actions button){color:var(--retoo-blue);border-color:var(--retoo-border)}
.retoo-business .form-card :is(input,textarea,select),.retoo-business :is(.calendar-toolbar,.range-toolbar) input{border-color:var(--retoo-border);color:var(--retoo-black)}
.retoo-business .form-card input[type="checkbox"]{accent-color:var(--retoo-blue)}
.retoo-business .tag:not(.off):not(.cancelled),.retoo-business .status{background:var(--retoo-soft-lime);color:var(--retoo-black)}
.retoo-business .cal-event:not(.block):not(.cancelled){background:var(--retoo-soft-blue);color:var(--retoo-blue)}
.retoo-business .cal-day.is-today{background:var(--retoo-soft-lime);border-color:var(--retoo-lime)}
.retoo-business .kpi{background:var(--retoo-soft-blue);border-color:var(--retoo-border)}
.retoo-business .kpi strong{color:var(--retoo-blue)}
.retoo-business .chart-track,.retoo-business .dashboard-rank-track,.retoo-business .dashboard-histogram-rail{background:var(--retoo-soft-blue)}
.retoo-business .chart-fill,.retoo-business .dashboard-rank-fill{background:var(--retoo-blue)}
.retoo-business .dashboard-histogram-fill{background:linear-gradient(0deg,var(--retoo-blue),#5670FF)}
.retoo-business .dashboard-heading{background:linear-gradient(115deg,#0C1CA2,var(--retoo-blue))}
.retoo-business .dashboard-heading .eyebrow{color:var(--retoo-lime)}
.retoo-business .dashboard-heading p{color:var(--retoo-white)}
.retoo-business .dashboard-period-actions button[aria-pressed="true"]{background:var(--retoo-lime);border-color:var(--retoo-lime);color:var(--retoo-black)}
.retoo-business .dashboard-period-actions .dashboard-refresh{background:var(--retoo-white);border-color:var(--retoo-white);color:var(--retoo-blue)}
.retoo-business .dashboard-kpi:first-child{background:var(--retoo-soft-lime);border-color:var(--retoo-lime)}
.retoo-business .dashboard-kpi:nth-child(4){background:var(--retoo-soft-blue)}
.retoo-business .dashboard-kpi strong{color:var(--retoo-blue)}
.retoo-business .dashboard-kpi-label{color:var(--retoo-black)}
.retoo-business .dashboard-rank-head strong,.retoo-business .dashboard-histogram-number{color:var(--retoo-blue)}
.retoo-business .dashboard-action-link,.retoo-business .dashboard-appointment-date,.retoo-business .dashboard-shortcuts button{background:var(--retoo-soft-blue);color:var(--retoo-blue)}
.retoo-business .dashboard-shortcuts span{color:var(--retoo-blue)}
.retoo-business .dashboard-appointment-status{background:var(--retoo-soft-lime);color:var(--retoo-black)}
.retoo-business .biz-toast:not([data-tone="error"]){background:var(--retoo-soft-blue);color:var(--retoo-black);border-color:var(--retoo-border);border-left-color:var(--retoo-blue)}
.retoo-business .biz-toast:not([data-tone="error"]) .biz-toast-icon{background:var(--retoo-lime);color:var(--retoo-black)}

/* Admin y Cloud: misma identidad, estados peligrosos mantienen rojo */
body.retoo-admin{--dark:var(--retoo-blue);--ink:var(--retoo-black);--lime:var(--retoo-lime);--pale:var(--retoo-soft-blue);--line:var(--retoo-border)}
.retoo-admin .header{background:var(--retoo-blue)}
.retoo-admin .brand{display:flex;align-items:flex-start;gap:3px;flex-direction:column}
.retoo-admin .brand-logo{display:block;width:auto;height:34px;max-width:160px;object-fit:contain}
.retoo-admin .brand small{color:var(--retoo-lime)}
.retoo-admin .return{color:var(--retoo-white)}
.retoo-admin .eyebrow{color:var(--retoo-blue)}
.retoo-admin .notice:not(.error),.retoo-admin .credentials{background:var(--retoo-soft-blue);border-color:var(--retoo-border)}
.retoo-admin :is(.application,.create-card,.cloud-owner){border-color:var(--retoo-border)}
.retoo-admin .filters,.retoo-admin .cloud-nav{background:var(--retoo-soft-blue)}
.retoo-admin .filters button,.retoo-admin .cloud-nav button{color:var(--retoo-blue)}
.retoo-admin .filters button[aria-pressed="true"],
.retoo-admin .cloud-nav button[aria-pressed="true"]{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-admin .approve,.retoo-admin .cloud-submit{background:var(--retoo-blue);color:var(--retoo-white)}
.retoo-admin .pill:not([data-status="rejected"]):not([data-status="approved"]){background:var(--retoo-soft-lime);color:var(--retoo-black)}
.retoo-admin .pill[data-status="approved"]{background:var(--retoo-soft-lime);color:var(--retoo-black)}
.retoo-admin .cloud-form-grid :is(input,textarea){border-color:var(--retoo-border);color:var(--retoo-black)}
.retoo-admin .credentials strong{color:var(--retoo-blue)}
.retoo-admin .cloud-account-actions button:not(.danger-outline),.retoo-admin .outline{border-color:var(--retoo-border);color:var(--retoo-blue)}

/* Respetar la señal de interacción y todos los layouts móviles existentes. */
@media(max-width:570px){
  .retoo-business .brand-logo{height:31px;max-width:146px}
  .retoo-admin .brand-logo{height:31px;max-width:146px}
}
@media(prefers-reduced-motion:reduce){
  body.retoo-play *,body.retoo-business *,body.retoo-admin *{scroll-behavior:auto}
}


/* Correcciones móviles: campos Safari, fecha de reserva y ruleta Android (2026-10-16). */
/* Safari/iOS amplía al enfocar inputs con fuente inferior a 16px.
   No se modifica el viewport ni se impide el zoom manual accesible. */
@media(max-width:930px){
  body.retoo-play input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.retoo-play select,
  body.retoo-play textarea{
    font-size:16px;
    line-height:1.35;
  }
  .retoo-play .search{max-width:100%;min-width:0}
  .retoo-play .search label{min-width:0}
  .retoo-play .search input{min-width:0;width:100%;font-size:16px}
  .retoo-play .filters{min-width:0}
  .retoo-play .filters .filter-select{
    min-width:0;
    flex-wrap:wrap;
  }
  .retoo-play .filters .filter-select :is(input,select){
    box-sizing:border-box;
    min-width:0;
    width:100%;
    max-width:100%;
    font-size:16px;
  }
  .retoo-play .filters .filter-price{min-width:0}
  .retoo-play .filters .filter-price input{
    flex:1 1 0;
    min-width:0;
    max-width:100%;
    font-size:16px;
  }
  .retoo-play .ra-panel label.ra-field input,
  .retoo-play .profile-card :is(input,select),
  .retoo-play .play-overlay input{font-size:16px}
}

/* Safari mantiene un tamaño mínimo intrínseco para el control de fecha.
   Se limita al ancho útil del modal, sin ocultar el selector nativo. */
.retoo-play .play-overlay{max-inline-size:100%}
.retoo-play .play-overlay .dialog{
  box-sizing:border-box;
  min-inline-size:0;
  max-inline-size:calc(100vw - 24px);
}
.retoo-play .selected-date,
.retoo-play .selected-date > label{
  box-sizing:border-box;
  min-inline-size:0;
  max-inline-size:100%;
}
.retoo-play .selected-date > label{flex:1 1 0}
.retoo-play .selected-date input[type="date"]{
  display:block;
  box-sizing:border-box;
  inline-size:100%;
  min-inline-size:0;
  max-inline-size:100%;
  padding-inline:10px;
  overflow:hidden;
  font-size:16px;
  line-height:1.35;
}
.retoo-play .selected-date input[type="date"]::-webkit-date-and-time-value{
  min-inline-size:0;
  max-inline-size:100%;
}
@media(max-width:720px){
  .retoo-play .selected-date{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    width:100%;
    max-width:100%;
    gap:10px;
  }
  .retoo-play .selected-date > label,
  .retoo-play .selected-date #slots-refresh{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
  }
  .retoo-play .play-overlay .dialog{width:100%;max-width:calc(100vw - 24px)}
}

/* Android/Chrome: barra inferior más compacta. Conserva el área segura del
   sistema, el gesto horizontal, el snap central y el estado activo.
   iOS Safari conserva las dimensiones actuales de su menú inferior. */
@supports not (-webkit-touch-callout: none){
  @media(max-width:930px) and (pointer:coarse){
    .retoo-play .bottomnav.wheel-nav{
      height:calc(76px + env(safe-area-inset-bottom,0px));
      padding-top:2px;
      padding-bottom:calc(3px + env(safe-area-inset-bottom,0px));
      align-items:center;
    }
    .retoo-play .bottomnav.wheel-nav .bottomnav-item{
      height:65px;
      gap:1px;
    }
    .retoo-play .bottomnav.wheel-nav .wheel-icon{
      width:44px;
      height:40px;
    }
    .retoo-play .bottomnav.wheel-nav .wheel-icon svg{width:29px;height:29px}
    .retoo-play .bottomnav.wheel-nav .bottomnav-item.is-centered svg{width:34px;height:34px}
    .retoo-play .bottomnav.wheel-nav .wheel-label{font-size:10px}
    .retoo-play main{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
    .retoo-play footer{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  }
}
