/* -----------------------------------------------------------   1. VARIABLES Y BASE   ----------------------------------------------------------- */

:root {
  --aba-petrol: #007a87;
  --aba-dark-gray: #333333;
  --aba-line-gray: #d1d5db;
  --aba-black: #1A1A1A;
  --aba-gray-bg: #F2F4F7;
  --wa-green: #7eb344;
}

body {
  background-color: var(--aba-gray-bg) !important;
  margin: 0;
  padding: 0;
}

/* -----------------------------------------------------------   2. NAVBAR CON ANIMACIÓN DE DOBLE CAPA (PC)   ----------------------------------------------------------- */

.navbar {
  padding: 0;
  background-color: #fff;
  position: relative;
  overflow: visible !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 2000;
}

@media (min-width: 992px) {
  .navbar {
    background: #ffffff;
  }
}

/* FRANJA 2 (GRIS) - ENTRA PRIMERO */

@media (min-width: 992px) {
  .navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 75%;
    height: 100%;
    background-color: var(--aba-line-gray);
    transform: skewX(-20deg);
    transform-origin: top left;
    z-index: 1;
    animation: slideFranjaGris 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }
}

/* FRANJA 1 (VERDE) - ENTRA DESPUÉS */

@media (min-width: 992px) {
  .navbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 73%;
    height: 100%;
    background-color: var(--aba-petrol);
    transform: skewX(-20deg);
    transform-origin: top left;
    z-index: 2;
    animation: slideFranjaVerde 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.2s;
  }
}

@media (min-width: 992px) {
  .navbar .container {
    position: relative;
    z-index: 10;
  }
}

/* TEXTO BLANCO EN BARRA PRINCIPAL */

@media (min-width: 992px) {
  #navbarABA .navbar-nav .nav-link, #navbarABA .navbar-nav .dropdown-toggle {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 30px 15px !important;
    opacity: 1 !important;
  }
}

/* --- ESTILOS DEL SUBMENÚ (PC) --- */

@media (min-width: 992px) {
  .dropdown-menu {
    z-index: 3000 !important;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 10px 0;
    background-color: #ffffff !important;
  }
}

/* Color base del texto en el submenú */

@media (min-width: 992px) {
  #navbarABA .dropdown-menu .dropdown-item {
    color: #333333 !important;
    font-weight: 600;
    padding: 10px 20px !important;
    background: transparent !important;
    transition: all 0.3s ease;
  }
}

/* HOVER FORZADO: AQUÍ MATAMOS EL AZUL */

@media (min-width: 992px) {
  #navbarABA .dropdown-menu .dropdown-item:hover, #navbarABA .dropdown-menu .dropdown-item:focus, #navbarABA .dropdown-menu .dropdown-item:active {
    color: var(--aba-petrol) !important;
    background-color: #f8f9fa !important;
    padding-left: 28px !important;
    text-decoration: none !important;
  }
}

/* --- ANIMACIONES --- */

@keyframes slideFranjaGris {
  to {
    left: 30%;
  }
}

@keyframes slideFranjaVerde {
  to {
    left: 33%;
  }
}

/* -----------------------------------------------------------   3. FRANJA INFERIOR (#333333)   ----------------------------------------------------------- */

.barra-top {
  background-color: var(--aba-dark-gray) !important;
  color: #ffffff;
  text-align: center;
  padding: 15px 15px;
  position: relative;
  z-index: 1;
}

.barra-top p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -----------------------------------------------------------   4. VISTA MÓVIL (MANTIENE DISEÑO ROJO)   ----------------------------------------------------------- */

@media (max-width: 991px) {
  .navbar {
    overflow: visible !important;
  }
}

@media (max-width: 991px) {
  .navbar::before, .navbar::after {
    display: none;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-image: url('../../assets/img/background_menu_aba_red.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
  }
}

@media (max-width: 991px) {
  #navbarABA .navbar-nav .nav-link, #navbarABA .dropdown-toggle, #navbarABA .dropdown-item {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 12px 10px !important;
  }
}

@media (max-width: 991px) {
  .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* -----------------------------------------------------------   5. EXTRAS Y BANNERS   ----------------------------------------------------------- */

.navbar-brand img {
  height: 75px;
  display: block;
}

.btn-whatsapp {
  background-color: var(--wa-green);
  color: #FFFFFF !important;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
}

.x-banner-premium {
}

body {
  background-color: #e8ebe9 !important;
}

.aba-footer-modern {
}

.aba-footer-modern {
  background-color: #277985 !important;
  color: #ffffff !important;
  padding: 80px 0 0 0 !important;
  font-family: 'Archivo Black', sans-serif;
}

/* --- FOOTER PROFESIONAL ABA (VERSIÓN FINAL CONSOLIDADA) --- */

.aba-footer-modern {
  background-color: #277985 !important;
  color: #ffffff !important;
  padding: 80px 0 0 0 !important;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

/* 1. Identidad y Logo */

.aba-footer-logo {
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.aba-brand-description {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 280px;
  margin-bottom: 0;
}

/* 2. Títulos de sección */

.aba-footer-h5 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* 3. Lista de Contacto - CENTRADO TOTAL */

.aba-contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
}

.aba-contact-list li {
  width: 100%;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* 4. Botón de WhatsApp - COLORES INVERTIDOS */

.aba-btn-wa {
  background-color: #25D366;
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  margin-top: 10px;
}

.aba-btn-wa:hover {
  background-color: #ffffff;
  color: #277985 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 5. Contenedor QR */

.aba-qr-container {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 6. FRANJA INFERIOR - GRIS #333333 */

.aba-sub-footer {
  background-color: #333333 !important;
  padding: 30px 0;
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.aba-sub-footer p {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  margin: 0;
}

/* 7. AJUSTES RESPONSIVE */

@media (max-width: 768px) {
  .aba-footer-modern {
    padding-top: 50px !important;
  }
}

@media (max-width: 768px) {
  .aba-contact-list li {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .aba-sub-footer {
    padding: 25px 0;
  }
}

/* Tamaño para Pantallas Grandes (Escritorio) */

.logo-ajustado {
  width: 43% !important;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tamaño para Celulares (Móviles) - Mantenemos el 90% que te gustó */

@media (max-width: 767px) {
  .logo-ajustado {
    width: 90% !important;
  }
}

/* Esto hace que el fondo oscuro sea suave y traslúcido */

.modal-backdrop.show {
  opacity: 0.7;
}

/* Centra la foto en la pantalla */

.modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

/* Elimina el marco blanco del modal */

.modal-content {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Pega la imagen a los bordes del contenedor */

.modal-body {
  padding: 0 !important;
}

/* Opcional: Si quieres un borde muy fino y elegante en la foto */

.modal-body img {
  border: 6px solid rgba(255,255,255);
  border-radius: 4px;
}

/* Cambia el cursor a una lupa al pasar sobre el link de la foto */

.zoom-link {
  cursor: zoom-in;
  display: block;
}

/* Opcional: un efecto suave de brillo para que el usuario sepa que es clickable */

.zoom-link:hover img {
  /*filter: brightness(1.1);*/
  transition: filter 0.3s ease;
}

/* Ajuste para celulares en posición horizontal */

@media (max-height: 500px) {
  .modal-dialog {
    max-width: 90vw;
    margin: 0.5rem auto;
  }
}

@media (max-height: 500px) {
  .modal-body img {
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
    display: block;
  }
}

/* Centra el modal verticalmente para que no se pierda arriba */

@media (max-height: 500px) {
  .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
  }
}

/* CELULARES (Pantallas pequeñas) */

@media (max-width: 576px) {
  body {
    padding-top: 155px !important;
  }
}

/* TABLETS (Pantallas medianas) */

@media (min-width: 577px) and (max-width: 991px) {
  body {
    padding-top: 126px !important;
  }
}

/* COMPUTADORA (Ya se veía bien, lo mantenemos igual) */

@media (min-width: 992px) {
  body {
    padding-top: 120px !important;
  }
}

