/* ============================================================
   EQUIPAMIENTO VISUAL — header-footer.css
   Estilos del header y footer compartidos por todas las páginas.
   ============================================================ */


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: 0.6rem;
  padding-inline-start: clamp(2rem, 6vw, 5rem);
  gap: 0;
}

.header__logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Nav */
.nav {
  margin-left: clamp(2rem, 6vw, 5rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav__link {
  font-size: 0.98rem;
  font-weight: 600;
  color: #00373D;
  padding: 0.4rem 0.78rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: #00373D;
  background: rgba(0, 55, 61, 0.10);
}

/* Hamburguesa */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222222;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-teal);
  color: var(--color-white);
}

.footer__main {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.footer__main-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 2.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.footer__heading {
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer__links li { margin-bottom: 0.45rem; }
.footer__links a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.60);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-white); }

.footer__address {
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__social-label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer__social-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.80);
  transition: background var(--transition), color var(--transition);
}
.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.footer__col--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.footer__cta-text {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.footer__cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn--footer-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-teal);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn--footer-pill:hover {
  background: var(--color-white);
}

.footer__email {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}
.footer__email:hover { color: var(--color-white); }


/* ============================================================
   RESPONSIVE — header y footer
   ============================================================ */
@media (max-width: 700px) {
  .nav__toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(75vw, 300px);
    background: var(--color-teal);
    padding: 5rem 2rem 2rem;
    margin-left: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }
  .nav.nav--open { transform: translateX(0); }

  .nav__list { flex-direction: column; gap: 0.5rem; }

  .nav__link {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    color: var(--color-white);
  }
  .nav__link:hover,
  .nav__link--active {
    background: rgba(255, 255, 255, 0.13);
    color: var(--color-white);
  }

  .nav__toggle span { background: #222; }

  .footer__main-inner { grid-template-columns: 1fr; }

  .footer__cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .footer__main-inner { grid-template-columns: 1fr 1fr; }
  .footer__col--cta { grid-column: 1 / -1; }
}


/* ============================================================
   CINTILLO — carrusel de logos de clientes
   ============================================================ */
.cintillo {
  background: #f7f7f7;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  padding-block: 0.8rem;
}

.cintillo__track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: cintillo-scroll 24s linear infinite;
}

.cintillo__track:hover {
  animation-play-state: paused;
}

.cintillo__logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes cintillo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cintillo__track { animation: none; }
}


/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.75); }
}
