/* assets/css/cin-layout.css
   CIN shared UI helpers (keeps Helios look)
   - Top banner spacing via --cin-banner-height
   - Floating WhatsApp button (with optional label)
   - Footer form polish
   - Footer sitemap columns (corporativo elegante)
*/

/* =============================
   Banner helper (JS sets variable)
   ============================= */
:root{
  --cin-banner-height: 0px;
}

/* If you have a fixed nav, you can use this variable in main.css.
   This file does not force #nav to be fixed (Helios defaults remain). */

/* =============================
   Top banner (optional)
   ============================= */
.top-banner{
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #ffd400;
  color: #1a1a1a;
}

/* =============================
   Footer form tweaks
   ============================= */
#footer form.alt input,
#footer form.alt textarea{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
}

#footer .actions.special .button.primary{
  width: 100%;
}

/* =============================
   Footer sitemap (corporativo)
   ============================= */
#footer .footer-sitemap{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
  margin-top: 0.75rem;
}

@media screen and (min-width: 980px){
  #footer .footer-sitemap{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#footer .footer-col-title{
  margin: 0 0 .55rem 0;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .95;
}

#footer .footer-links{
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer .footer-links li{
  margin: 0 0 .35rem 0;
}

#footer .footer-links a{
  text-decoration: none;
  border: 0;
  opacity: .9;
}

#footer .footer-links a:hover{
  opacity: 1;
  text-decoration: underline;
}

#footer .footer-links .footer-sep{
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* =============================
   WhatsApp floating button (with label)
   ============================= */
.whatsapp-float{
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  background: #25D366;
  color: #fff;
}

.whatsapp-float svg{
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-float:focus{
  outline: 3px solid rgba(255,255,255,0.75);
  outline-offset: 3px;
}

/* Expanded variant shows a small label (nice for corporate UX).
   Add class "expanded" to enable label. */
.whatsapp-float .whatsapp-text{
  display: none;
  white-space: nowrap;
  margin-left: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: .02em;
  opacity: .95;
}

.whatsapp-float.expanded{
  width: auto;
  padding: 0 14px 0 12px;
  gap: 8px;
}

.whatsapp-float.expanded .whatsapp-text{
  display: inline-block;
}

/* Subtle entrance */
@keyframes cinSlideIn{
  from{ transform: translateX(10px); opacity: 0; }
  to{ transform: translateX(0); opacity: 1; }
}

.whatsapp-float{
  animation: cinSlideIn .35s ease-out both;
}

/* =============================
   Small accessibility polish
   ============================= */
#footer .footer-sitemap a:focus{
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 2px;
  border-radius: 6px;
}
