/* components.css
   Componentes reutilizables (SOLO clases, sin selectores por etiqueta)
*/

/* ===== Componentes base ===== */
.admin-body .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 36px;
  padding: 8px 14px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}

.admin-body .btn:hover,
.admin-body .btn:focus-visible{
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.admin-body .btn:focus-visible{
  outline: 2px solid #bbdefb;
  outline-offset: 2px;
}

.admin-body .btn-primary{
  color: #fff;
  background: #0d47a1;
  border-color: #0d47a1;
  box-shadow: 0 4px 10px rgba(13,71,161,.18);
}

.admin-body .btn-secondary{
  color: #0d47a1;
  background: #eef5ff;
  border-color: #cdddf7;
}

.admin-body .btn-danger{
  color: #fff;
  background: #b42318;
  border-color: #b42318;
  box-shadow: 0 4px 10px rgba(180,35,24,.16);
}

.admin-body .input,
.admin-body .select{
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #ccd3db;
  border-radius: 6px;
  color: #111827;
  background: #fff;
  font-size: 14px;
}

.admin-body .input:focus,
.admin-body .select:focus{
  border-color: #1565c0;
  outline: 2px solid rgba(21,101,192,.15);
  outline-offset: 0;
}

.admin-body .form-group{
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce){
  .admin-body .btn{
    transition: none;
  }
}

/* ===== WhatsApp floating button (Premium / Flat) =====
   - Sin esfera / sin glow
   - Sin animación constante
   - Micro-interacción solo en hover/focus
*/
.wa-float-wrap{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  pointer-events: none;
}

.wa-float-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  border: 1px solid rgba(255,255,255,.18);
  text-decoration: none;
  pointer-events: auto;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.14);
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.wa-float-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.wa-float-svg{
  width: 28px;
  height: 28px;
  display: block;
  fill: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

.wa-float-tooltip{
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .2px;
  white-space: nowrap;
  color: #ffffff;
  background: rgba(10,16,28,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.wa-float-tooltip::after{
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: rgba(10,16,28,.92);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}

.wa-float-btn:hover,
.wa-float-btn:focus-visible{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 4px 12px rgba(0,0,0,.16);
  filter: saturate(1.03);
}

.wa-float-btn:hover .wa-float-tooltip,
.wa-float-btn:focus-visible .wa-float-tooltip{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* En touch no hay hover: ocultamos tooltip para que no “moleste” */
@media (hover: none){
  .wa-float-tooltip{ display: none; }
}

@media (max-width: 420px){
  .wa-float-wrap{ right: 14px; bottom: 14px; }
  .wa-float-btn{ width: 54px; height: 54px; }
  .wa-float-ico{ width: 26px; height: 26px; }
  .wa-float-svg{ width: 26px; height: 26px; }
  .wa-float-tooltip{ right: 64px; font-size: 12.5px; padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce){
  .wa-float-btn{ transition: none; }
  .wa-float-tooltip{ transition: none; }
}

/* ===== Cabecera pública: ubicación y alcance =====
   Bandera argentina dibujada en CSS para no depender del emoji del sistema.
   Se activa únicamente en cabeceras públicas que incluyen .nav-search-link.
*/
.header:has(.nav-search-link) .header-inner{
  position: relative;
  padding-bottom: 24px;
}

.header:has(.nav-search-link) .header-inner::after{
  content: "Santa Fe, Argentina  ·  Envíos a todo el país";
  position: absolute;
  right: 0;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 14px;
  padding-left: 25px;
  color: #1d3f70;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18px;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.85);
  background-image:
    radial-gradient(circle at 9px 6px, #f6b40e 0 1.4px, transparent 1.6px),
    linear-gradient(to bottom, #74acdf 0 33.33%, #ffffff 33.33% 66.66%, #74acdf 66.66% 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: 18px 12px, 18px 12px;
  background-position: left center, left center;
  animation: public-header-location-breathe 5.8s ease-in-out infinite;
}

@keyframes public-header-location-breathe{
  0%,
  100%{
    opacity: .78;
    transform: translateY(0);
  }

  50%{
    opacity: 1;
    transform: translateY(-1px);
  }
}

@media (max-width: 900px){
  .header:has(.nav-search-link) .header-inner{
    padding-bottom: 22px;
  }

  .header:has(.nav-search-link) .header-inner::after{
    right: 0;
    bottom: 11px;
    padding-left: 22px;
    font-size: 10.5px;
    letter-spacing: .08px;
    background-size: 16px 11px, 16px 11px;
  }
}

@media (max-width: 520px){
  .header:has(.nav-search-link) .header-inner::after{
    content: "Santa Fe  ·  Envíos a todo el país";
    padding-left: 21px;
    font-size: 9.5px;
    background-size: 15px 10px, 15px 10px;
  }
}

@media (prefers-reduced-motion: reduce){
  .header:has(.nav-search-link) .header-inner::after{
    animation: none;
  }
}

/* ===== Firma de desarrollo / TatenSoft ===== */
.developer-footer{
  width: 100%;
  margin-top: auto;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(15,47,92,.10);
  background: linear-gradient(180deg, rgba(248,250,252,.25) 0%, #f8fafc 100%);
  color: #66758a;
  font-family: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
}

.developer-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.developer-footer__copy{
  color: #52627a;
  font-weight: 650;
}

.developer-footer__label,
.developer-footer__rights{
  color: #7b8799;
}

.developer-footer__separator{
  color: #c1cad6;
}

.developer-footer__link{
  color: #0d47a1;
  font-weight: 800;
  letter-spacing: .15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.developer-footer__link:hover,
.developer-footer__link:focus-visible{
  color: #1565c0;
  border-bottom-color: rgba(21,101,192,.42);
  transform: translateY(-1px);
}

.developer-footer__link:focus-visible{
  outline: 2px solid rgba(21,101,192,.18);
  outline-offset: 3px;
  border-radius: 3px;
}

.login-body .developer-footer{
  width: 100%;
  max-width: 350px;
  margin-top: 14px;
  padding: 0;
  border-top: 0;
  background: transparent;
}

.login-body .developer-footer__inner{
  padding: 9px 12px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 5px 16px rgba(15,47,92,.06);
  font-size: 11px;
  gap: 4px 6px;
}

@media (max-width: 520px){
  .developer-footer{
    padding: 15px 14px 18px;
  }

  .developer-footer__inner{
    font-size: 11px;
    gap: 4px 6px;
  }

  .developer-footer__rights{
    flex-basis: 100%;
  }

  .login-body .developer-footer{
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  .developer-footer__link{
    transition: none;
  }
}
