/* =========================================================
   FOOTER AISLADO SOPORTFIX (/css/footer.css)
   Prefijo sf- para evitar conflictos con style.css
========================================================= */
.sf-footer,
.sf-footer *,
.sf-footer *::before,
.sf-footer *::after,
.sf-cookie-banner,
.sf-cookie-banner * {
  box-sizing: border-box;
}

.sf-footer {
  background: linear-gradient(180deg, #00285a 0%, #011c40 100%);
  color: #cbd5e1;
  padding: 64px 0 30px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  border-top: 1px solid rgba(44, 195, 244, 0.18);
}

.sf-footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- GRID PRINCIPAL (5 COLUMNAS EN ESCRITORIO) --- */
.sf-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr 1.35fr;
  gap: 36px;
  margin-bottom: 48px;
}

.sf-footer-col {
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* --- COLUMNA DE MARCA --- */
.sf-footer-logo {
  width: 185px;
  height: auto;
  margin-bottom: 18px;
  display: block;
}

.sf-footer-desc {
  line-height: 1.65;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.sf-location-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(44, 195, 244, 0.08);
  border: 1px solid rgba(44, 195, 244, 0.2);
  border-left: 3px solid #2cc3f4;
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.4;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.sf-location-badge:hover {
  transform: translateY(-2px);
  background: rgba(44, 195, 244, 0.14);
}

.sf-location-badge i {
  color: #2cc3f4;
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- REDES SOCIALES (CONTRASTE CORREGIDO) --- */
.sf-social-links {
  display: flex;
  gap: 12px;
}

.sf-social-links a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.sf-social-links a:hover {
  background: #2cc3f4;
  border-color: #2cc3f4;
  color: #021838;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(44, 195, 244, 0.35);
}

/* --- TÍTULOS DE COLUMNAS --- */
.sf-footer-title {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 22px;
  padding-bottom: 10px;
  position: relative;
}

.sf-footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, #2cc3f4, #4fa2ff);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.sf-footer-col:hover .sf-footer-title::after {
  width: 52px;
}

/* --- LISTAS DE ENLACES --- */
.sf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-footer-links li {
  margin-bottom: 12px;
}

.sf-footer-links li:last-child {
  margin-bottom: 0;
}

.sf-footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.sf-footer-links a i {
  font-size: 0.78rem;
  width: 16px;
  text-align: center;
  color: #2cc3f4;
  transition: transform 0.25s ease;
}

.sf-footer-links a:hover {
  color: #2cc3f4;
  transform: translateX(5px);
}

/* --- CONTACTO OFICIAL --- */
.sf-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.sf-contact-list a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sf-contact-list a:hover {
  color: #2cc3f4;
}

.sf-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(44, 195, 244, 0.12);
  border: 1px solid rgba(44, 195, 244, 0.24);
  color: #2cc3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* --- BANNER CALL TO ACTION (CTA) --- */
.sf-footer-cta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(44, 195, 244, 0.28);
  padding: 32px 36px;
  border-radius: 20px;
  margin-bottom: 36px;
  box-shadow: 0 20px 40px rgba(0, 10, 28, 0.28);
}

.sf-cta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.sf-cta-info {
  flex: 1;
}

.sf-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sf-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.sf-status-indicator.is-open .sf-status-dot {
  box-shadow: 0 0 10px #10b981;
  animation: sf-pulse-open 2s infinite;
}

.sf-status-indicator.is-closed {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.sf-status-indicator.is-closed .sf-status-dot {
  background: #ef4444;
}

@keyframes sf-pulse-open {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.sf-cta-title {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.2;
}

.sf-cta-subtitle {
  color: #cbd5e1;
  font-size: 0.98rem;
  margin: 0;
}

.sf-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.sf-btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(44, 195, 244, 0.42);
  filter: brightness(1.06);
  color: #ffffff;
}

.sf-call-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sf-call-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.sf-call-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.sf-call-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

/* --- COPYRIGHT Y LEGALES --- */
.sf-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(44, 195, 244, 0.22);
}

.sf-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.sf-bottom-flex p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.86rem;
}

.sf-brand-white {
  color: #ffffff;
  font-weight: 700;
}

.sf-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-legal-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

.sf-legal-links a:hover {
  color: #2cc3f4;
}

.sf-legal-links .sf-sep {
  color: rgba(44, 195, 244, 0.5);
}

/* --- BANNER DE COOKIES AISLADO --- */
/* --- BANNER DE COOKIES AISLADO (CERO CLS) --- */
.sf-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 19, 40, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  z-index: 10000;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    visibility 0.45s ease;
  font-family: "Inter", sans-serif;
}

.sf-cookie-banner.show-banner {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf-cookie-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #2cc3f4, #1a73e8);
}

.sf-cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sf-cookie-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sf-cookie-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(44, 195, 244, 0.14);
  color: #2cc3f4;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sf-cookie-text h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.sf-cookie-text p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.sf-cookie-text a {
  color: #2cc3f4;
  font-weight: 600;
  text-decoration: none;
}

.sf-cookie-text a:hover {
  text-decoration: underline;
}

.sf-cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.sf-btn-cookie-solid,
.sf-btn-cookie-outline {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.sf-btn-cookie-solid {
  background: #1a73e8;
  color: #ffffff;
  border: none;
}

.sf-btn-cookie-solid:hover {
  background: #2b71e2;
  transform: translateY(-2px);
}

.sf-btn-cookie-outline {
  background: transparent;
  color: #e2e8f0;
  border: 1.5px solid rgba(203, 213, 225, 0.45);
}

.sf-btn-cookie-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: #ffffff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1180px) {
  .sf-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .sf-cookie-container {
    flex-direction: column;
    text-align: center;
  }

  .sf-cookie-info {
    flex-direction: column;
  }

  .sf-cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sf-footer {
    padding: 48px 0 26px;
  }

  .sf-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sf-footer-col {
    align-items: center;
    text-align: center;
  }

  .sf-footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .sf-contact-list {
    align-items: flex-start;
    text-align: left;
  }

  .sf-footer-cta {
    padding: 26px 20px;
  }

  .sf-cta-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .sf-cta-title {
    font-size: 1.4rem;
  }

  .sf-bottom-flex {
    flex-direction: column;
    text-align: center;
  }

  .sf-cookie-buttons {
    flex-direction: column;
  }

  .sf-btn-cookie-solid,
  .sf-btn-cookie-outline {
    width: 100%;
  }
}
