/**
 * Header, footer y utilidades compartidas — páginas institucionales
 */
@import url("sitio-escala-compacta.css");
@import url("fondos-desktop-fixed.css");

:root {
  --ituarte-rojo: rgb(255, 12, 12);
  --ituarte-rojo-header: rgb(253, 17, 17);
  --ituarte-rojo-oscuro: #c62828;
  --ituarte-negro: #141414;
  --ituarte-gris: #64748b;
  --ituarte-gris-claro: #f4f4f5;
  --ituarte-blanco: #ffffff;
  --ituarte-sombra: 0 8px 30px rgba(0, 0, 0, 0.08);
  --ituarte-radio: 14px;
  /* Ancho/header base definidos en sitio-escala-compacta.css */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.pagina-institucional {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  color: var(--ituarte-negro);
  background-color: var(--ituarte-gris-claro);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.pagina-institucional img,
.pagina-institucional video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: var(--ituarte-ancho);
  margin-inline: auto;
}

.section-block {
  padding: 56px 0;
}

.section-block--tight {
  padding: 40px 0;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ituarte-rojo);
  margin-bottom: 10px;
}

.section-title {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ituarte-negro);
}

.section-lead {
  color: var(--ituarte-gris);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--ituarte-rojo);
  color: #fff;
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.25);
}

.btn-primary:hover {
  background: var(--ituarte-rojo-oscuro);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  background: var(--ituarte-negro);
  color: #fff;
}

.card {
  background: #fff;
  border-radius: var(--ituarte-radio);
  box-shadow: var(--ituarte-sombra);
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* ── Header rojo Ituarte ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--ituarte-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: var(--ituarte-rojo-header);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-bottom: none;
}

.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.site-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.site-nav .nav-instagram {
  color: #fff;
  font-size: 18px;
  padding: 8px 10px;
}

/* ── Footer rojo Ituarte ── */
.site-footer {
  background: var(--ituarte-rojo);
  color: #fff;
  padding: 40px 16px 24px;
  margin-top: auto;
}

.site-footer-grid {
  width: var(--ituarte-ancho);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #fff;
}

.site-footer p,
.site-footer li {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 4px 0;
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.site-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  transition: background 0.2s, color 0.2s;
}

.site-footer-social a:hover {
  background: rgba(0, 0, 0, 0.28);
}

.site-footer-copy {
  width: var(--ituarte-ancho);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ── Volver a Home (páginas institucionales secundarias) ── */
.barra-home-back {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 0 0;
  background: transparent;
  border: none;
}

.pagina-conocenos .barra-home-back {
  background: transparent;
  border: none;
}

.btn-home-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Work Sans", sans-serif;
  color: #fff;
  background: var(--ituarte-rojo);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.28);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-home-back:hover {
  color: #fff;
  background: var(--ituarte-rojo-oscuro);
  box-shadow: 0 6px 18px rgba(198, 40, 40, 0.35);
  transform: translateY(-1px);
}

.pagina-conocenos .btn-home-back {
  color: #fff;
  background: var(--ituarte-rojo);
}

.pagina-conocenos .btn-home-back:hover {
  color: #fff;
  background: var(--ituarte-rojo-oscuro);
}

.scroll-top {
  position: fixed;
  width: 44px;
  height: 44px;
  bottom: 88px;
  right: 18px;
  background: var(--ituarte-negro);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--ituarte-sombra);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float {
  position: fixed;
  width: 54px;
  height: 54px;
  bottom: 18px;
  right: 18px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  z-index: 900;
}

@media (max-width: 900px) {
  .site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: var(--ituarte-header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ituarte-rojo);
    padding: 10px 12px 14px;
    border-bottom: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: 10px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pagina-categoria .site-footer-grid,
  body.fondo-cada-producto .site-footer-grid,
  body.producto-exterior .site-footer-grid {
    text-align: center;
  }

  .pagina-categoria .site-footer-social,
  body.fondo-cada-producto .site-footer-social,
  body.producto-exterior .site-footer-social {
    justify-content: center;
  }

  .pagina-categoria .site-footer-grid > div:first-child,
  body.fondo-cada-producto .site-footer-grid > div:first-child,
  body.producto-exterior .site-footer-grid > div:first-child {
    text-align: center;
  }

  .pagina-categoria .site-footer-links ul,
  body.fondo-cada-producto .site-footer-links ul,
  body.producto-exterior .site-footer-links ul {
    display: inline-block;
    text-align: center;
  }
}

/* Escala desktop: ver sitio-escala-compacta.css (sin agrandar en 1600/1920) */
