/* Padding para el fixed header */
@media (min-width: 992px) {
    body {
        padding-top: 60px;
    }
}

.navbar-solid-fixed {
    z-index: 1030;
}

header.nav-link {
    color: white;
}

header.navbar-solid-fixed .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}


header.navbar-solid-fixed .nav-link:hover::after,
header.navbar-solid-fixed .nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
    opacity: 0.8;
}

/* --- Estilos del Carrito Dropdown (Preview) --- */
.dropdown-menu {
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
}

.nav-cart {
    position: relative;
    text-decoration: none;
    color: white;
}

.nav-cart.dropdown-toggle {
    padding-right: 20px;
}

.cart-count,
.cart-count-mobile {
    font-size: 0.65em;
    padding: .35em .5em;
    line-height: 1;
}

/* Separador visual para los ítems del carrito */
.cart-item-preview {
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.cart-item-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* --- Estilos Móviles --- */
@media (max-width: 991.98px) {
    .site-header .dropdown-menu {
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
        overflow-x: hidden;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .site-header .dropdown-menu[data-bs-popper] {
        position: fixed !important;
        top: 70px !important;
        left: 12px !important;
        right: 12px !important;
        transform: none !important;
        width: auto !important;
        margin: 0 !important;
    }

    .site-header .dropdown-menu-end[data-bs-popper] {
        left: 12px !important;
        right: 12px !important;
    }

    .navbar-solid-fixed {
        position: static;
        box-shadow: none;
    }

    .nav-divider {
        display: none !important;
    }

    .nav-cart.d-lg-none {
        margin-right: 20px !important;
    }


    .site-header .navbar-nav {
        align-items: center;
        width: 100%;
    }

    .site-header .navbar-nav .nav-link {
        display: inline-block;
        padding: .6rem 0;
    }
}

.login-btn {
    width: 70px;
    height: 70px;
    padding: 0;
    font-size: 1.5rem;
}

/* Estilo para TODOS los links dentro del footer */
footer a {
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
}

footer a:hover,
footer a:focus {
    color: #fff !important;
    text-decoration: underline !important;
    cursor: pointer;
}

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__link {
    color: #f8f9fa !important;
    font-size: 0.92rem;
    font-weight: 500;
}

.site-header__link:hover {
    color: #f3ce49 !important;
}

/* Carrito Blanco Puro */
.site-header__icon-link {
    color: #ffffff !important;
    transition: 0.3s;
}

.site-header__icon-link:hover {
    color: #f3ce49 !important;
}

/* BOTÓN ENTRAR (Estilo Minimalista y Elegante) */
.btn-login-modern {
    background-color: rgba(255, 255, 255, 0.1);
    /* Fondo muy sutil */
    color: #ffffff !important;
    padding: 7px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    /* Borde suave */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login-modern i {
    color: #f3ce49;
    /* Solo el icono mantiene el toque de color de la marca */
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* Pill de Usuario */
.user-pill-trigger {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 14px 4px 4px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-pill-avatar {
    width: 32px;
    height: 32px;
    background: #f3ce49;
    color: #1e4fa1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Dropdown con espacio lateral extra */
.user-popover-menu {
    border: none;
    border-radius: 16px;
    width: 290px;
    padding: 10px 0;
    margin-top: 15px !important;
}

.user-popover-header {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-popover-avatar-bg {
    width: 45px;
    height: 45px;
    background: #f1f3f5;
    color: #1e4fa1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.user-name {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
}

.user-email {
    margin: 0;
    font-size: 0.75rem;
}

.popover-item {
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.popover-item:hover {
    background-color: #f8f9fa;
    color: #1e4fa1;
}

.text-primary {
    color: #1e4fa1 !important;
}

.logout-button-modern {
    width: 100%;
    background-color: #fff1f1;
    color: #dc3545;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.2s;
}

.logout-button-modern:hover {
    background-color: #dc3545;
    color: white;
}

.site-header__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-toggle::after {
    display: none;
}

.site-header .navbar-toggler:focus,
.site-header .navbar-toggler:focus-visible,
.site-header .navbar-toggler:not(.collapsed) {
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.site-header .navbar-toggler,
.site-header .navbar-toggler i {
    color: #fff !important;
}

.site-footer {
    background-color: #154da0;
    /* Tu azul institucional */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    /* O la fuente que uses */
}

/* Títulos con línea decorativa */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #f3ce49;
    /* El amarillo suave que definimos antes */
}

/* Enlaces del Footer */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact-info a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #f3ce49;
    padding-left: 5px;
    /* Pequeño desplazamiento al hacer hover */
}

.footer-contact-info a:hover {
    color: #ffffff;
}

/* Iconos de Contacto */
.text-accent {
    color: #f3ce49;
}

/* Redes Sociales */
.footer-socials a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: #f3ce49;
    color: #154da0;
    transform: translateY(-3px);
}

/* Logo con filtro para que se vea blanco si es necesario */
.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Divider y Copyright */
.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* ========== Social login (círculo grande + shadow) ========== */
.login-btn {
    width: 64px;
    /* MÁS GRANDE */
    height: 64px;
    /* MÁS GRANDE */
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .20);
    transition: transform .12s ease, box-shadow .12s ease;
    padding: 0;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.login-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(30, 79, 161, .35), 0 18px 36px rgba(0, 0, 0, .24);
}

.social-auth-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

body {
    font-family: openSansRegular;
    padding-top: 50px;
}