/* =====================================================
   SALA THEME — header-footer.css  v3
   =====================================================
   - Header sticky, logo 58px, nav centrado, hover azul
   - Footer fondo #17AACF, íconos sociales SVG reales
   ===================================================== */

/* ─── Variables globales ──────────────────────────── */
:root {
  --st-blue:     #416bd7;
  --st-blue-dk:  #118fad;
  --st-black:    #0a0a0a;
  --st-gray:     #3d3d3d;
  --st-white:    #ffffff;
  --st-border:   #e8e8e8;
  --st-font:     'Montserrat';
  --st-ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   HEADER
   ===================================================== */


/* ── Selector de idioma ── */
.st-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--st-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--st-gray);
  background: transparent;
  border: 1.5px solid #d8d8d8;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.22s var(--st-ease), color 0.22s var(--st-ease);
  line-height: 1;
}

.st-lang-btn:hover {
  border-color: var(--st-blue);
  color: var(--st-blue);
}

.st-lang-btn svg {
  flex-shrink: 0;
  transition: transform 0.22s var(--st-ease);
}

/* ── Hamburger (mobile) ── */
.st-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 12px;
}

.st-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--st-black);
  border-radius: 2px;
  transition: transform 0.25s var(--st-ease), opacity 0.25s var(--st-ease);
}

/* Menú móvil desplegable */
.st-mobile-nav {
  display: none;
  position: fixed;
  top: 80px; left: 0;
  width: 100%;
  background: var(--st-white);
  border-top: 1px solid var(--st-border);
  padding: 20px 24px 28px;
  z-index: 9998;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  animation: stSlideDown 0.28s var(--st-ease) both;
}

.st-mobile-nav.is-open { display: block; }

.st-mobile-nav ul { list-style: none; margin: 0; padding: 0; }

.st-mobile-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.st-mobile-nav a {
  display: block;
  padding: 13px 0;
  font-family: var(--st-font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--st-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.st-mobile-nav a:hover { color: var(--st-blue); }

@keyframes stSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   FOOTER — fondo azul #17AACF
   ===================================================== */

.sala-footer {
  background: #445050  !important;
  color: var(--st-white);
  padding: 72px 0 0;
  /* SIN outline, SIN bordes de debug */
}

.sala-footer__inner.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo centrado y blanco */
.sala-footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.sala-footer__logo img {
  width: auto;
  max-width: 200px;
  height: auto;
  display: block;
  /* Convierte cualquier logo a blanco */
  /* filter: brightness(0) invert(1); */
}

/* 3 columnas */
.sala-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 52px;
  align-items: start;
  padding-bottom: 52px;
}

.sala-footer__col h3 {
  margin: 0 0 14px;
  font-family: var(--st-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--st-white);
}

.sala-footer__col p {
  margin: 0 0 10px;
  font-family: var(--st-font);
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

/* Columna izquierda */
.sala-footer__col--contact {
  text-align: left;
  padding-left: 4px;
}

.sala-footer__col--contact p { max-width: 320px; }

/* Columna centro */
.sala-footer__col--hours {
  text-align: center;
}

.sala-footer__col--hours p {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* Columna derecha */
.sala-footer__col--menu {
  text-align: center;
}

/* Links */
.sala-footer__contact-links { margin-top: 18px !important; }

.sala-footer__contact-links a,
.sala-footer__col a {
  color: var(--st-white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.sala-footer__contact-links a:hover,
.sala-footer__col a:hover { opacity: 0.75; }

/* Menú footer */
.sala-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sala-footer-menu li { margin: 0 0 9px; }

.sala-footer-menu a {
  font-family: var(--st-font);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s, font-weight 0.2s;
}

.sala-footer-menu a:hover {
  color: var(--st-white);
  font-weight: 600;
}

/* ── Íconos sociales — círculos con SVG real ── */
.sala-footer__socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.sala-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: background 0.25s var(--st-ease), transform 0.25s var(--st-ease);
  flex-shrink: 0;
}

.sala-footer__socials a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.sala-footer__socials svg {
  width: 22px;
  height: 22px;
  fill: var(--st-white);
  display: block;
  flex-shrink: 0;
   background: transparent; /* importante */
}

/* Barra inferior */
.sala-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 20px 0 24px;
  text-align: center;
}

.sala-footer__bottom p {
  margin: 0;
  font-family: var(--st-font);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .site-header__inner { column-gap: 20px; }

  nav.primary-nav ul,
  .primary-menu { gap: 1.5rem; }

  .primary-menu a,
  nav.primary-nav a { font-size: 0.78rem; }
}

@media (max-width: 820px) {
  /* Ocultar nav y mostrar hamburger */
  nav.primary-nav { display: none; }
  .st-lang-btn    { display: none; }
  .st-hamburger   { display: flex; }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
  }

  /* Footer: una columna */
  .sala-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }

  .sala-footer__col--contact,
  .sala-footer__col--hours,
  .sala-footer__col--menu {
    text-align: center;
    padding: 0;
  }

  .sala-footer__col--contact p { max-width: 100%; }
  .sala-footer__col--hours p   { max-width: 100%; }
}

@media (max-width: 480px) {
  .custom-logo { height: 46px; max-height: 46px; }
  .sala-footer { padding-top: 52px; }
  .sala-footer__logo { margin-bottom: 36px; }
}


/*
.sala-footer {
  outline: 5px solid lime !important;
}

body::before {
  content: "CSS NUEVO CARGADO";
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999999;
  background: blue;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
}

*/
