/* =====================================================
   BASE.CSS (PRO) — Tienda AppCloud
   Global base styles + helpers + components shared
   Compatible con Bootstrap 5
===================================================== */

:root{
  /* Fallbacks (si variables.css no carga por algún motivo) */
  --primary: #FF6600;
  --primary-light: #FF944D;
  --dark: #111827;
  --bg: #F9F9F9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.08);
  --shadow-md: 0 10px 28px rgba(0,0,0,.12);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  background: var(--bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin: 0;
  color: #111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width:100%; display:block; }

a{ color: inherit; }

/* =====================================================
   Navbar (sticky) + estado scrolled
===================================================== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.navbar.scrolled{
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* Ajuste rápido para logos */
.navbar .navbar-brand img,
#logoEmpresa{
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* =====================================================
   Botones (tuning Bootstrap)
===================================================== */
.btn{
  border-radius: 14px;
  font-weight: 700;
}

.btn:focus{ box-shadow: none; }

.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus{
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-outline-primary{
  border-color: rgba(255,102,0,.35);
  color: var(--primary);
}
.btn-outline-primary:hover{
  background: rgba(255,102,0,.10);
  border-color: rgba(255,102,0,.55);
  color: var(--primary);
}

/* Botón tipo “usuario / acceso rápido” */
.btn-user{
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 999px;
}
.btn-user:hover{
  box-shadow: none;
}
.btn-user .material-symbols-rounded{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,102,0,.12);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-user:hover .material-symbols-rounded{
  background: rgba(255,102,0,.18);
  box-shadow: 0 12px 26px rgba(15,23,42,.12);
  transform: translateY(-1px);
}

/* Botones secundarios genéricos (si tu HTML los usa) */
.btn-pro{
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}
.btn-pro:hover{ background: var(--primary-light); border-color: var(--primary-light); }

.btn-cancelar{
  background: #fff;
  border: 1px solid rgba(17,24,39,.14);
  color: #111;
}
.btn-cancelar:hover{ background: rgba(17,24,39,.04); }

/* Disabled consistente */
.btn:disabled,
button:disabled{
  opacity: .6;
  cursor: not-allowed;
}

/* =====================================================
   Formularios / Inputs
===================================================== */
.form-control,
.form-select{
  border-radius: 14px;
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(255,102,0,.45);
  box-shadow: 0 0 0 .2rem rgba(255,102,0,.18);
}

/* Input premium redondeado (tu clase existente) */
.pro-input{
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 12px 45px 12px 15px;
}
.pro-input:focus{
  border-color: var(--primary-light);
  box-shadow: 0 0 0 .2rem rgba(255,102,0,.25);
}

/* Ícono a la derecha dentro de input (buscador, etc.) */
.icon-right{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
}

/* =====================================================
   Tarjetas / superficies
===================================================== */
.card{
  border-radius: var(--radius-md);
}

.surface{
  background: #fff;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   Toast / Notificaciones
===================================================== */
.toast-msg{
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  z-index: 3000;
  max-width: 92vw;
  font-weight: 700;
}

/* =====================================================
   Floating Action Button (scroll top / acciones)
===================================================== */
.fab{
  position: fixed;
  right: 14px;
  bottom: 92px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(255,102,0,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  z-index: 2000;
}
.fab:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
}

/* =====================================================
   Utilidades
===================================================== */
.text-primary{ color: var(--primary) !important; }
.bg-soft-primary{ background: rgba(255,102,0,.10) !important; }
.border-soft{ border: 1px solid rgba(17,24,39,.10) !important; }

/* =====================================================
   Responsive helpers
===================================================== */
@media (max-width: 420px){
  .btn{ border-radius: 12px; }
  .toast-msg{ bottom: 96px; }
}
