/* ==========================================================================
   COMPONENT: FOOTER GLOBAL (TCREA 3D)
   ========================================================================== */

.site-footer {
  background-color: #0A111F; /* Theme Dark Navy */
  color: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.site-footer__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* ==========================================================================
   BANDA 1: MAIN FOOTER (5 COLUMNS GRID)
   ========================================================================== */
.site-footer__main {
  padding: 5rem 0 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__main-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Brand Column Special Layout */
.site-footer__col--brand {
  padding-right: 2rem;
}

.site-footer__logo {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-transform: uppercase;
  font-style: italic;
}

.site-footer__slogan {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
}

.site-footer__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin: 0;
}

/* Social links (rounded circles) */
.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.site-footer__social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer__social-link:hover {
  background-color: var(--primary, #b7102a);
  border-color: var(--primary, #b7102a);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Standard Columns Link List */
.site-footer__title {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin: 0;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--primary, #b7102a);
}

/* ==========================================================================
   BANDA 2: BOTTOM BAR (VALUE PROPOSITIONS)
   ========================================================================== */
.site-footer__bottom {
  padding: 3rem 0;
  background-color: #080D17; /* Slightly darker navy */
}

.site-footer__bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.site-footer__value-prop {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__value-icon {
  font-size: 2.25rem;
  color: var(--primary, #b7102a);
  flex-shrink: 0;
}

.site-footer__value-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__value-title {
  font-family: var(--font-headline, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-footer__value-sub {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ==========================================================================
   CUSTOM ROW (CATÁLOGO, CUENTA Y EMPRESA)
   ========================================================================== */
.site-footer__custom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  align-items: start;
  width: 100%;
  grid-column: span 3;
}

/* Ocultar la sección inferior en móviles */
@media (max-width: 767px) {
  .site-footer__bottom {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-footer__main {
    padding: 4rem 0 3rem 0;
  }

  .site-footer__main-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .site-footer__col--brand {
    grid-column: span 2;
    padding-right: 0;
    max-width: 32rem;
  }

  .site-footer__custom-row {
    grid-column: span 2;
  }

  .site-footer__bottom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .site-footer__main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer__col--brand {
    grid-column: span 1;
  }

  .site-footer__custom-row {
    grid-column: span 1;
    gap: 1.5rem;
  }

  .site-footer__bottom-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .site-footer__value-prop {
    gap: 0.75rem;
  }

  .site-footer__value-icon {
    font-size: 2rem;
  }
}
/* ==========================================================================
   APP BOTTOM TAB BAR (MOBILE ONLY)
   ========================================================================== */
@media (min-width: 1025px) {
  .app-tab-bar {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .site-footer {
    padding-bottom: 5.5rem; /* Space for the fixed bottom bar */
  }
  
  .app-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4.25rem; /* 68px */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--surface-variant, #e1e3e4);
    border-top-left-radius: var(--radius-3xl, 1.5rem); /* Esquinas superiores muy redondeadas */
    border-top-right-radius: var(--radius-3xl, 1.5rem);
    display: grid !important;
    grid-template-columns: 2fr 17fr 1.5fr 17fr 1.5fr 25fr 1.5fr 17fr 1.5fr 17fr 2fr;
    align-items: center;
    padding: 0 !important;
    box-sizing: border-box;
    z-index: 1030;
    overflow: hidden; /* Asegura que los items hijos respeten las esquinas redondeadas */
  }
  
  .app-tab-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--outline, #8f6f6e);
    font-family: var(--font-label, 'Inter', sans-serif);
    font-size: clamp(0.55rem, 2.2vw, 0.625rem);
    font-weight: 600;
    transition: color 0.2s ease;
    width: 100% !important; /* Ocupa todo el ancho asignado a la columna del grid */
    height: 100%;
    gap: 0.15rem;
    white-space: nowrap;
  }
  
  .app-tab-bar__item:hover,
  .app-tab-bar__item--active {
    color: var(--primary, #b7102a);
  }
  
  .app-tab-bar__icon {
    font-size: 1.35rem !important;
  }

  .app-tab-bar__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-tab-bar__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: var(--primary, #b7102a);
    color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 0.85rem;
    height: 0.85rem;
    padding: 0 2px;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-sizing: content-box;
  }

  .app-tab-bar__fab-wrapper {
    position: relative;
    width: 100% !important; /* Ocupa todo el ancho asignado a la columna central del grid */
    height: 100%;
  }
  
  .app-tab-bar__fab {
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary, #b7102a);
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(183, 16, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    z-index: 1035;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .app-tab-bar__fab:hover {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 10px 24px rgba(183, 16, 42, 0.5);
    background-color: #92001c;
  }
  
  .app-tab-bar__fab-icon {
    font-size: 1.15rem !important;
  }
  
  .app-tab-bar__fab-label {
    display: none !important; /* Eliminar letras BUSCAR o INICIO bajo el logo central */
  }
  
  .app-tab-bar__item--active ~ .app-tab-bar__fab-label {
    color: var(--primary, #b7102a);
  }

  /* FAB modificador para contener el logotipo en pequeño */
  .app-tab-bar__fab--logo {
    background-color: transparent !important; /* Quitar fondo blanco */
    border: none !important; /* Quitar borde */
    box-shadow: none !important; /* Quitar sombra */
    border-radius: 0 !important; /* Quitar redondez */
    width: 100% !important; /* Adaptarse al 100% del contenedor del 20% */
    height: 100% !important; /* Ocupar el 100% de la altura de la barra */
    left: 0 !important; /* Eliminar desplazamiento para centrado absoluto dentro del wrapper */
    transform: none !important; /* Desactivar traslación horizontal */
    top: 0 !important; /* Centrado vertical completo en la barra */
    padding: 0.25rem !important; /* Relleno ligero para visualización premium */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-tab-bar__logo-img,
  .app-tab-bar__fab--logo .custom-logo,
  .app-tab-bar__fab--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* Posicionamiento determinista en el Grid de 11 columnas */
  .app-tab-bar > *:nth-child(1) {
    grid-column: 2;
  }
  .app-tab-bar > *:nth-child(2) {
    grid-column: 4;
  }
  .app-tab-bar > *:nth-child(3) {
    grid-column: 6; /* Columna central asignada al logo (25%) */
  }
  .app-tab-bar > *:nth-child(4) {
    grid-column: 8;
  }
  .app-tab-bar > *:nth-child(5) {
    grid-column: 10;
  }
}
