/*** Desktop ***/
/*Nav*/
.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1250px;
  padding: 0 2rem;
}

.nav-links {
  /* columna del centro */
  justify-self: center;
}

.nav-links li a {
    font-family: var(--font-main);
    font-size: var(--fs-title2);
    color: var(--secondary); /* Se queda igual */
    font-weight: 600;
    margin: 0 5px;
    position: relative;
    text-decoration: none;
    /* Eliminamos la transición de color ya que no cambiará */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary); /* La línea sí usa el color de marca */
    
    /* Animación desde el centro */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    will-change: transform;
}

/* Solo animamos el pseudo-elemento, el color del 'a' no se toca */
.nav-links li a:hover::after {
    transform: scaleX(1);
}

.btn-quote-v1 {
    justify-self: end;
}

.main-header {
    position: -webkit-sticky; /* Soporte para Safari */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease, padding 0.3s ease;

    background-color: var(--background1);
    border-bottom: 2px solid var(--stroke);
}

.main-header--scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0; 
}

/*Nav*/

/*logo*/
.logoDFW-min-svg {
    /* Controla el tamaño fácil */
    width: 38px; 
    height: auto;
    
    /* Pinta todas las líneas (paths) internas */
    fill: var(--primary); 
    
    /* Opcional: suaviza los bordes si quieres un look menos rudo */
    stroke-linejoin: round;
    
    /* Si quieres que cambie de color al pasar el mouse */
    transition: fill 0.3s ease;
}

.footer_logo_container .logoDFW-min-svg:hover {
    fill: var(--background1);
}

.brand-name {
    font-family: var(--font-main);
    font-size: var(--fs-h6);
    font-weight: bold;
    color: var(--primary);
}

.brand-sub{
    font-family: var(--font-main);
    font-size: var(--fs-body);
    font-weight: bold;
    color: var(--bodyText);
    letter-spacing: 1px;
}

/*logo*/

/* Get Quote Button */

.nav-links li.d-lg-none {
    display: none;
}

.btn-desktop {
    display: block; /* Visible por defecto */
}
/* Get Quote Button */

/* Hamburger icon */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 35px; /* Controlas el tamaño aquí */
    padding: 0;
    display: none; /* Se activa en media query */
    z-index: 1000;
}

.icon-hamburger {
    fill: var(--secondary); /* Color de tus líneas */
    transition: fill 0.3s ease;
}

.hamburger:hover .icon-hamburger {
    fill: var(--primary); /* Cambia de color al pasar el mouse */
}
/* Hamburger icon */

/*** Desktop ***/


/*** Tablet/Dektop mini ***/
@media (max-width: 990px) {
    .nav-container {
        grid-template-columns: 1fr auto; 
        padding: 0.5rem 1.5rem; /* Un poco más compacto en móvil */
    }

    .nav-links {
        display: flex; 
        flex-direction: column;
        
        position: fixed;
        top: var(--header-height);
        right: -120%;
        width: 250px;
        height: calc(100vh - var(--header-height));
        background: var(--background1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
        transition: right 0.4s ease-in-out;

        padding: 2rem 1rem 3rem 1rem; /* ← padding-bottom aumentado */
        gap: 1.2rem;
        justify-content: flex-start; /* items arriba */
        align-items: center; /* ← de vuelta a center para centrar el texto */
        
        overflow-y: auto; 
        overflow-x: hidden;
    }

    .nav-links.active {
        /* No necesitamos cambiar display aquí, ya es flex arriba */
        right: 0;
    }

    /* HACEMOS LOS LINKS MÁS "GRUESOS" PARA TOCAR */
    .nav-links li {
        width: 100%;
        list-style: none;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 0.8rem 1rem; /* Aumentamos el grosor vertical */
        font-size: 1.2rem;
        font-weight: 600;
        border-radius: 8px; /* Opcional: para que el área de clic se sienta como botón */
        transition: background 0.3s ease;
    }

    /* Feedback visual al tocar el link en móvil */
    .nav-links li a:active {
        background: rgba(0, 0, 0, 0.05);
    }

    /* EL BOTÓN DENTRO DEL MENÚ */
    .nav-links li.d-lg-none {
        display: block;
        padding-top: 1rem;
    }

    .hamburger {
        display: block;
    }

    .btn-desktop {
        display: none !important;
    }

    .nav-links li.d-lg-none {
        display: flex;
        justify-content: center;
    }
}
/*** Tablet/Dektop mini ***/

/*** Tablet y Móviles ***/
@media (max-width: 768px) {
    .nav-links li a {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-links li a {
        font-size: 1.4rem;
    }

}
/*** Tablet y Móviles ***/
