@import url('https://fonts.googleapis.com/css2?family=REM:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "REM", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*----------------------------------------------------------------------TEXTOS----------------------------------------------------------------------*/

.titulo1 {
    font-size: clamp(1.5rem, 3.5vw, 15rem);
    color:#f6f6f6;
}

.texto {
    font-size: clamp(1rem, 3.5vw, 2.5rem);
    color:#f6f6f6;
}

.TexAzul {
    font-size: clamp(1.5rem, 3.5vw, 15rem);
    color:#001689;
}

.TexAzulMin {
    font-size: clamp(1.2rem, 2.6vw, 11rem);
    color:#001689;
}

/*--------------------------------------------------------------------------------------------------------------------------------------------------*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color:#00000093;
    background-color: rgba(0, 0, 0, 0.623);
    transition: background 0.6s ease, box-shadow 0.6s ease, backdrop-filter 0.6s ease;
}

.offcanvas {
    max-width: 100vw; 
    overflow-x: hidden; 
}

.offcanvas-body img {
    max-width: 100%; 
    height: auto;
}

.hamburger {
    position: absolute !important;
    left: 65%;
}

.offcanvas-body .nav-link {
    position: relative;
    color: #f6f6f6;
    text-decoration: none;
    padding-bottom: 6px; 
    border-bottom: 3px solid #ffdd00; 
}

.offcanvas-body .nav-link:hover {
    color: #ffdd00;
}

.nav-icons .nav-icon {
    color: #ffdd00;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-icons .nav-icon:hover {
    transform: translateY(-4px);
    color: #ffdd00;
}

.nav-menu li a {
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
    color: #ffffff; 
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffdd00; 
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    color: #ffdd00;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a.active {
    color: #ffdd00;
}

.nav-menu li a.active::after {
    width: 100%;
}


.nav-menu {
    list-style: none;
    gap: 20px;
    display: flex;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffdd00;
}

#inicio {
    min-height: 100vh;
    background-image: url('/img/FondoPrincipal.webp');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
}

@media (max-width: 767px) {
    #inicio {
        background-image: url('/img/FondoPrincipalTelefono.webp');
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease 0.6s forwards;
}

#infobtn {
  background: #001689;
  color: white;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(9, 8, 15, 0.219);
  text-align: center;
  display: inline-block;
  white-space: normal;      
  overflow-wrap: break-word;
  max-width: 100%;     
  min-height: 50px;      
  font-size: clamp(1rem, 3vw, 1.5rem);
}

#infobtn:hover {
  background: #0622af;
  transform: translateY(-2px);
}

#fondoInicio {
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.5s;
}

.animate-fade-up.delay-2 {
    animation-delay: 1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0); 
    color: #ffdd006b;
    font-size: clamp(1rem, 3.5vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    opacity: 0;
    animation: fadeUpScroll 1s forwards;
    animation-delay: 1.5s;
    transition: opacity 0.5s ease;
}

.scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 1.5s infinite;
}

@keyframes fadeUpScroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px); 
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0); 
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}


/*--------------------------------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------Statistics Section------------------------------------------------------------------*/

.stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, #010931 0%, #001689 100%);
    color: white;
    border-radius: 0%;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2.5rem 2rem;
    background: rgba(65, 65, 65, 0.151);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    border: 1px solid #ffdd00;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.92;
    font-weight: 300;
}

.service-card { 
    transition: transform 0.3s; 
    border-radius: 10px; padding: 
    1.5rem; text-align: center; 
    background: #f8f9fa; 
}

.service-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
}


#listaSucursales .card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

#listaSucursales .col-md-6 {
    display: flex;
}

#listaSucursales .card p {
    margin-bottom: 6px;
}

#listaSucursales .card-img-top {
  object-fit: cover;
  height: 170px;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.ver-mapa {
    background-color: #0622af;
    color: #f6f6f6;
}

.ver-mapa:hover {
    background-color: #1b38c5;
    color: #f6f6f6;
}

@keyframes bounceOnce {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.bounce-once {
  animation: bounceOnce 0.6s ease;
}

@media (max-width: 576px) {
  #infobtn {
    min-height: 0;
  }
}

.offcanvas {
    background-color: #0622af;
}

.nav-link {
    color: #f6f6f6;
}

.nav-link:hover {
    color: #ffdd00;
}

.offcanvas-title {
    color: #f6f6f6;
}

#paginacionSucursales .page-link {
    background-color: #0622af;   
    color: white;
    border: 2px solid #ffdd00;  
    border-radius: 6px;
    margin: 0 3px;
}

#paginacionSucursales .page-link:hover {
    background-color: rgb(14, 84, 153);  
    color: white;
    border-color: #ffdd00;
}

#paginacionSucursales .active .page-link {
    background-color: #ffdd00;
    border-color: rgb(9, 56, 104);
    color: rgb(9, 56, 104);
}

#paginacionSucursales .disabled .page-link {
    background-color: #4a4b4b;
    border-color: #ffdd00;
    color: white;
}

#sucursales{
    background: linear-gradient(135deg, #010931 0%, #001689 100%);
}

#titulosucursal{
    color: #f6f6f6;
}

#buscadorestilo {
    background-color: #001689;
}

.subrayado-animado {
  position: relative;
  display: inline-block;
}

.subrayado-animado::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 4px;
  background: #ffdd00; 
  transition: width 0.6s ease-in-out;
}

.subrayado-animado.aos-animate::after {
  width: 100%;
  transition-delay: 0.4s;
}

.footer-link {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-link:hover {
  color: #ffdd00; 
}

footer {
    background: linear-gradient(135deg, #010931 0%, #001689 100%);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: invert(1); 
}

.footer-icon {
    color: #ffdd00;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
}