:root {
    --pk-bg: #0C0A10;
    --pk-bg-secondary: #1A151E;
    --pk-card: #211724;
    --pk-primary: #FF3296;
    --pk-primary-hover: #F72585;
    --pk-pink-light: #FF8CC8;
    --pk-purple: #751344;
    --pk-text: #FFFFFF;
    --pk-text-muted: #B9A8B6;
    --pk-border: rgba(255, 50, 150, 0.25);
    --pk-glow: 0 0 18px rgba(255, 50, 150, 0.35);
}

html,
body {
    background-color: var(--pk-bg) !important;
    background-image: none !important;
    color: var(--pk-text);
    font-family: "Outfit", sans-serif !important;
}

body::before {
    display: none;
}

.contenedor-principal,
.container,
.container-fluid {
    color: var(--pk-text);
}

a {
    color: var(--pk-pink-light);
}

a:hover {
    color: var(--pk-primary);
}

.text-dark,
.text-secondary,
.text-body {
    color: var(--pk-text) !important;
}

.text-muted,
.text-gold-dark {
    color: var(--pk-text-muted) !important;
}

.text-gold,
.form-label i.text-gold {
    color: var(--pk-primary) !important;
}

.border-gold {
    border-color: var(--pk-border) !important;
}

.bg-light,
.bg-white,
.bg-themed {
    background-color: var(--pk-card) !important;
    color: var(--pk-text) !important;
}

/* Header */
.navbar,
.golden-navbar,
.navbar.scrolled {
    background-color: var(--pk-bg) !important;
    border-bottom: 1px solid var(--pk-border);
    box-shadow: 0 8px 24px rgba(255, 50, 150, 0.08);
    font-family: "Outfit", sans-serif !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.navbar-brand img,
.pk-logo,
.navbar.scrolled .navbar-brand img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
}

#mascotaAnimada,
.mascota-icon,
.navbar.scrolled #mascotaAnimada,
.navbar.scrolled .mascota-icon {
    width: 44px !important;
    height: 44px !important;
}

.pk-menu-icon {
    object-fit: contain;
    padding: 4px;
}

.cart-bubble-wrapper,
.navbar.scrolled .cart-bubble-wrapper {
    width: auto !important;
    height: auto !important;
}

.cart-icon {
    width: auto !important;
    height: auto !important;
    border-radius: 0;
    font-size: 1.45rem;
    color: var(--pk-primary);
    line-height: 1;
}

.cart-bubble {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    width: auto !important;
    height: auto !important;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--pk-border);
    border-radius: 14px;
    background: var(--pk-bg-secondary);
    color: var(--pk-text);
    text-decoration: none;
    box-shadow: none;
}

.cart-bubble-label {
    color: var(--pk-pink-light);
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
}

.cart-bubble:hover {
    border-color: var(--pk-primary);
    box-shadow: var(--pk-glow);
    transform: translateY(-2px);
}

.cart-count-badge {
    background-color: var(--pk-primary) !important;
    color: #fff !important;
}

#mascotaOptions {
    background: var(--pk-bg-secondary);
    border: 1px solid var(--pk-border) !important;
    box-shadow: var(--pk-glow);
}

.menu-icon-label {
    font-family: "Outfit", sans-serif;
    color: var(--pk-text);
    -webkit-text-stroke: 0;
    text-shadow: none;
    font-size: 0.78rem;
}

/* Promo */
.pk-promo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 0.85rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--pk-border);
    border-radius: 999px;
    background: rgba(255, 50, 150, 0.06);
}

.pk-promo-mark,
.pk-footer-brand {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.14em;
    color: var(--pk-text);
}

.pk-promo-slogan,
.pk-footer-slogan {
    color: var(--pk-pink-light);
    font-size: 0.92rem;
}

.pk-giro-alert {
    background: var(--pk-bg-secondary);
    color: var(--pk-text);
    border: 1px solid var(--pk-primary);
}

/* Categorías */
.category-icon-btn,
.subcat-icon-btn,
#subcategoryIconsWrapper .btn {
    background: var(--pk-bg-secondary);
    color: var(--pk-text) !important;
    border: 1px solid var(--pk-border) !important;
    border-radius: 16px;
    min-height: 44px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-icon-btn:hover,
.subcat-icon-btn:hover,
#subcategoryIconsWrapper .btn:hover {
    border-color: var(--pk-primary) !important;
    box-shadow: var(--pk-glow);
    color: #fff !important;
    transform: translateY(-2px);
}

.category-icon-btn.active,
#subcategoryIconsWrapper .btn.active,
.subcat-icon-btn.active {
    background: var(--pk-primary) !important;
    border-color: var(--pk-primary) !important;
    color: #fff !important;
    box-shadow: var(--pk-glow);
}

.category-scroll-container::-webkit-scrollbar-thumb,
.subcategory-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(255, 50, 150, 0.45);
}

.category-header h4 {
    color: var(--pk-text) !important;
}

/* Buscador y filtros */
.form-control,
.form-select,
.form-floating > .form-control {
    background-color: var(--pk-bg-secondary) !important;
    color: var(--pk-text) !important;
    border: 1px solid var(--pk-border) !important;
    border-radius: 12px;
}

.form-control::placeholder {
    color: var(--pk-text-muted);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pk-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 50, 150, 0.28) !important;
}

.form-floating > label {
    color: var(--pk-text-muted) !important;
}

#catalogSearchRow .bi {
    color: var(--pk-pink-light);
}

.btn-outline-secondary,
.btn-outline-gold,
.btn-login {
    color: var(--pk-text) !important;
    background: transparent !important;
    border: 1px solid var(--pk-border) !important;
    border-radius: 10px;
}

.btn-outline-secondary:hover,
.btn-outline-gold:hover,
.btn-login:hover {
    background: var(--pk-purple) !important;
    border-color: var(--pk-primary) !important;
    color: #fff !important;
    box-shadow: var(--pk-glow);
}

.btn-cosmetic,
.btn-cosmetic.btn-sm.add-to-cart-btn,
.btn-add-highlight,
.pk-button-primary {
    background: var(--pk-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-cosmetic:hover,
.btn-cosmetic.btn-sm.add-to-cart-btn:hover,
.btn-add-highlight:hover,
.pk-button-primary:hover {
    background: var(--pk-primary-hover) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 50, 150, 0.5);
}

.add-to-cart-btn:disabled,
.btn-cosmetic:disabled,
.btn:disabled {
    opacity: 0.55;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Tarjetas */
#product-container > .product-card {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
}

#product-container .carousel-row .product-card,
.carousel-row .product-card {
    flex: 0 0 auto;
    width: 240px;
    max-width: 78vw;
}

.product-card .card,
.pk-product-card {
    width: 100%;
    background: var(--pk-card) !important;
    color: var(--pk-text);
    border: 1px solid var(--pk-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card .card:hover,
.pk-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--pk-primary) !important;
    box-shadow: var(--pk-glow);
}

.product-card .card:hover::before {
    content: none;
    display: none;
}

.product-image-wrapper {
    background: var(--pk-bg) !important;
    border: none !important;
    height: 220px;
}

.product-image,
.carousel-inner img,
.card-img-top.product-image {
    object-fit: contain !important;
}

.pk-product-name {
    color: var(--pk-text) !important;
    font-size: 1.05rem;
}

.pk-product-category {
    color: var(--pk-pink-light) !important;
    margin-bottom: 0.15rem;
}

.pk-product-meta,
.product-card small,
.product-card h6 {
    color: var(--pk-text-muted);
    font-size: 0.82rem;
}

.product-card .bg-light {
    background: var(--pk-bg) !important;
    border-color: var(--pk-border) !important;
}

.product-card .card-footer {
    background: transparent !important;
}

.carousel-card .product-image-wrapper {
    height: 160px;
}

/* Modales, carrito, admin */
.modal-content,
.modal-content.bg-themed,
.card,
.list-group-item,
.dropdown-menu {
    background: var(--pk-bg-secondary) !important;
    color: var(--pk-text) !important;
    border-color: var(--pk-border) !important;
}

.modal-content.bg-themed::before {
    display: none;
}

.pk-modal-header,
.modal-header,
.modal-footer {
    background: var(--pk-bg) !important;
    color: var(--pk-text) !important;
    border-color: var(--pk-border) !important;
}

.btn-close {
    filter: invert(1) grayscale(1);
}

.table {
    color: var(--pk-text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--pk-text);
    --bs-table-border-color: var(--pk-border);
    --bs-table-striped-bg: rgba(255, 50, 150, 0.05);
    --bs-table-hover-bg: rgba(255, 50, 150, 0.08);
}

.page-link {
    background: var(--pk-card);
    color: var(--pk-text);
    border-color: var(--pk-border);
}

#globalSpinner {
    background-color: rgba(12, 10, 16, 0.72) !important;
}

.spinner-border.text-primary {
    color: var(--pk-primary) !important;
}

footer,
.pk-footer {
    background: var(--pk-bg) !important;
    color: var(--pk-text-muted) !important;
    border-top: 1px solid var(--pk-border);
}

.pk-footer-copy {
    font-size: 0.85rem;
}

.select2-container--default .select2-selection--single,
.select2-dropdown,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--pk-bg-secondary) !important;
    color: var(--pk-text) !important;
    border-color: var(--pk-border) !important;
}

@media (min-width: 768px) {
    #product-container > .product-card {
        flex: 0 0 calc(33.333% - 0.75rem);
        max-width: calc(33.333% - 0.75rem);
    }
}

@media (min-width: 992px) {
    #product-container > .product-card {
        flex: 0 0 calc(25% - 0.75rem);
        max-width: calc(25% - 0.75rem);
    }

    .navbar-brand img,
    .pk-logo {
        width: 72px !important;
        height: 72px !important;
    }
}

.pk-menu-glyph {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--pk-primary);
}

.menu-icon a,
.menu-icon button {
    color: var(--pk-text);
    text-decoration: none;
}

.menu-icon-label {
    color: var(--pk-pink-light);
}

.catalog-filters-panel .card,
.catalog-filters-header {
    background: transparent;
}

.catalog-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.filters-toggle-btn,
#activeFiltersCount {
    background: var(--pk-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
}

.pk-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pk-chip {
    color: var(--pk-text) !important;
    background: transparent !important;
    border: 1px solid var(--pk-border) !important;
    border-radius: 999px;
}

.pk-chip.active,
.filter-category-btn.active {
    background: var(--pk-primary) !important;
    border-color: var(--pk-primary) !important;
    color: #fff !important;
}

.input-group-text {
    background: var(--pk-bg) !important;
    color: var(--pk-primary) !important;
    border-color: var(--pk-border) !important;
}

.btn-gold,
.btn-gold-light,
.bg-gold,
.badge.bg-gold,
.table-gold,
.table-gold th {
    background-color: var(--pk-primary) !important;
    color: #fff !important;
    border-color: var(--pk-primary) !important;
}

.btn-gold-light:disabled,
.btn-gold:disabled {
    background: var(--pk-purple) !important;
    border-color: var(--pk-purple) !important;
    color: #fff !important;
}

.spinner-border.text-gold,
.text-warning,
.bi-exclamation-triangle.text-warning {
    color: var(--pk-primary) !important;
}

.chat-header,
.chat-widget-header,
#chat-header,
.message-mine .message-bubble,
.chat-send-btn {
    background: var(--pk-primary) !important;
    border-color: var(--pk-primary) !important;
    color: #fff;
}

#mensajeBienvenida {
    background: rgba(255, 50, 150, 0.1) !important;
    border-color: var(--pk-border) !important;
}

#mensajeBienvenida strong,
.chat-input:focus,
.chat-input:focus-visible,
.chat-send-btn:focus-visible {
    color: var(--pk-primary);
    border-color: var(--pk-primary) !important;
    outline-color: var(--pk-primary);
}

#chatTicketInfo {
    background: var(--pk-card) !important;
    border-bottom-color: var(--pk-primary) !important;
    color: var(--pk-pink-light) !important;
}

.pk-toast {
    background: var(--pk-card) !important;
    color: var(--pk-text) !important;
    border: 1px solid var(--pk-primary) !important;
    border-radius: 14px;
    box-shadow: var(--pk-glow);
    padding: 0.85rem 1rem;
    min-width: 280px;
    max-width: 380px;
    margin-bottom: 0.5rem;
}

.pk-toast-icon {
    font-size: 1.25rem;
}

.pk-toast-title {
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
}

.pk-toast-message {
    color: var(--pk-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkout-info-card,
.checkout-product-card,
.address-option-card,
.address-option-icon,
.bg-soft-gold,
.alert-info,
.alert-warning {
    background: var(--pk-card) !important;
    color: var(--pk-text) !important;
    border-color: var(--pk-border) !important;
}

.checkout-info-card,
.checkout-info-card:hover {
    border: 1px solid var(--pk-border) !important;
    box-shadow: none !important;
    transform: none;
}

.checkout-info-card h5,
.checkout-section-title,
.checkout-info-card .text-muted,
.address-details .small {
    color: var(--pk-text) !important;
}

.checkout-info-card h5,
.checkout-section-title i,
.checkout-total .text-gold,
.address-option-icon,
.address-option-icon i {
    color: var(--pk-primary) !important;
}

.checkout-product-card,
.checkout-product-card:hover {
    border: 1px solid var(--pk-border) !important;
    box-shadow: none !important;
    transform: none;
}

.checkout-action-btn,
.checkout-action-btn:hover,
.checkout-action-btn:active,
.checkout-action-btn:disabled {
    background: var(--pk-primary) !important;
    color: #fff !important;
    border-color: var(--pk-primary) !important;
    box-shadow: var(--pk-glow) !important;
    animation: none !important;
}

.change-address-btn {
    border-color: var(--pk-primary) !important;
    color: var(--pk-pink-light) !important;
    background: transparent !important;
}

.change-address-btn:hover {
    background: var(--pk-primary) !important;
    color: #fff !important;
    border-color: var(--pk-primary) !important;
}

.address-option-card,
.address-option-card:hover,
.address-option-card.selected {
    border-color: var(--pk-primary) !important;
    background: var(--pk-bg-secondary) !important;
}

.alert-info,
.alert-warning {
    border: 1px solid var(--pk-border) !important;
}

@media (max-width: 768px) {
    .navbar-brand img,
    .pk-logo,
    .navbar.scrolled .navbar-brand img {
        width: 52px !important;
        height: 52px !important;
    }

    #mascotaAnimada,
    .mascota-icon,
    .navbar.scrolled #mascotaAnimada {
        width: 42px !important;
        height: 42px !important;
    }

    .cart-bubble-wrapper,
    .navbar.scrolled .cart-bubble-wrapper {
        width: auto !important;
        height: auto !important;
    }

    .cart-bubble {
        box-shadow: none;
    }

    #clearPriceFiltersBtn,
    .add-to-cart-btn,
    .view-detail-btn {
        min-height: 44px;
    }
}

.catalog-filters-panel {
    background: var(--pk-bg-secondary);
    border: 1px solid var(--pk-border);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: none;
    max-width: 100%;
}

.catalog-filters-panel .card,
.catalog-filters-panel .card.bg-light {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--pk-text);
}

.table-light,
.table-light > th,
.table-light > td,
.table > thead.table-light th {
    background: var(--pk-bg-secondary) !important;
    color: var(--pk-text) !important;
    border-color: var(--pk-border) !important;
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
    color: var(--pk-text);
    background: transparent;
    border-color: var(--pk-border);
    border-radius: 10px;
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
    background: var(--pk-primary) !important;
    color: #fff !important;
    border-color: var(--pk-primary) !important;
}

.nav-tabs {
    border-bottom-color: var(--pk-border);
}

[style*="#fff6f0"],
[style*="#fdf8ec"],
[style*="#fffdf2"] {
    background-color: var(--pk-card) !important;
    color: var(--pk-text) !important;
    border-color: var(--pk-border) !important;
}


/* === MENU MODERNO === */
/* === NAVBAR MODERNO === */
.modern-navbar {
  background: linear-gradient(135deg, #140910 0%, #2a1524 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(10px);
}

.navbar-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

/* Logo moderno */
.modern-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.modern-brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.modern-brand:hover .brand-logo {
  transform: rotate(5deg);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

/* Navegación desktop */
.navbar-nav-desktop {
  flex: 1;
  justify-content: center;
}

.nav-link-modern {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-modern:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link-modern i {
  font-size: 1.1rem;
}

/* Acciones del usuario */
.navbar-actions {
  margin-left: auto;
}

/* Enlaces sociales */
.social-links {
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  color: white;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.2) 0%, rgba(255, 50, 150, 0.1) 100%);
  border: 1px solid rgba(255, 50, 150, 0.3);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 50, 150, 0.3);
}

/* Selector de idioma */
.language-selector {
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.language-flag-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-flag-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.language-flag-btn.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.flag-icon {
  width: 24px;
  height: 18px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flag-icon-mx {
  /* Bandera de México: Verde, Blanco, Rojo en franjas verticales con escudo simplificado */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect fill='%23006633' width='300' height='600'/%3E%3Crect fill='%23FFFFFF' width='300' height='600' x='300'/%3E%3Crect fill='%23CE1126' width='300' height='600' x='600'/%3E%3Cg fill='%23CE1126'%3E%3Cpath d='M450 300m-50 0a50 50 0 1 1 100 0a50 50 0 1 1 -100 0'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Cpath d='M450 300m-30 0a30 30 0 1 1 60 0a30 30 0 1 1 -60 0'/%3E%3Cpath d='M450 270l-12 12 12 12 12-12z'/%3E%3Cpath d='M450 330l-12-12 12-12 12 12z'/%3E%3Cpath d='M420 300l12-12 12 12-12 12z'/%3E%3Cpath d='M480 300l-12-12-12 12 12 12z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-cn {
  /* Bandera de China: Rojo con estrella grande amarilla y 4 estrellas pequeñas */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect fill='%23DE2910' width='900' height='600'/%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M150 150l0 0l45 15l-15 45l-45-15z'/%3E%3Cpath d='M150 150l15 45l-45 15l-15-45z'/%3E%3Cpath d='M150 150l-15 45l45 15l15-45z'/%3E%3Cpath d='M150 150l-15-45l45-15l15 45z'/%3E%3Cpath d='M150 150m-25 0a25 25 0 1 1 50 0a25 25 0 1 1 -50 0'/%3E%3C/g%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M240 120l0 0l45 15l-15 45l-45-15z'/%3E%3Cpath d='M240 120l15 45l-45 15l-15-45z'/%3E%3Cpath d='M240 120l-15 45l45 15l15-45z'/%3E%3Cpath d='M240 120l-15-45l45-15l15 45z'/%3E%3Cpath d='M240 120m-25 0a25 25 0 1 1 50 0a25 25 0 1 1 -50 0'/%3E%3C/g%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M240 240l0 0l45 15l-15 45l-45-15z'/%3E%3Cpath d='M240 240l15 45l-45 15l-15-45z'/%3E%3Cpath d='M240 240l-15 45l45 15l15-45z'/%3E%3Cpath d='M240 240l-15-45l45-15l15 45z'/%3E%3Cpath d='M240 240m-25 0a25 25 0 1 1 50 0a25 25 0 1 1 -50 0'/%3E%3C/g%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M150 330l0 0l45 15l-15 45l-45-15z'/%3E%3Cpath d='M150 330l15 45l-45 15l-15-45z'/%3E%3Cpath d='M150 330l-15 45l45 15l15-45z'/%3E%3Cpath d='M150 330l-15-45l45-15l15 45z'/%3E%3Cpath d='M150 330m-25 0a25 25 0 1 1 50 0a25 25 0 1 1 -50 0'/%3E%3C/g%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M90 240l0 0l45 15l-15 45l-45-15z'/%3E%3Cpath d='M90 240l15 45l-45 15l-15-45z'/%3E%3Cpath d='M90 240l-15 45l45 15l15-45z'/%3E%3Cpath d='M90 240l-15-45l45-15l15 45z'/%3E%3Cpath d='M90 240m-25 0a25 25 0 1 1 50 0a25 25 0 1 1 -50 0'/%3E%3C/g%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M150 240l0 0l90 30l-30 90l-90-30z'/%3E%3Cpath d='M150 240l30 90l-90 30l-30-90z'/%3E%3Cpath d='M150 240l-30 90l90 30l30-90z'/%3E%3Cpath d='M150 240l-30-90l90-30l30 90z'/%3E%3Cpath d='M150 240m-50 0a50 50 0 1 1 100 0a50 50 0 1 1 -100 0'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-us {
  /* Bandera de EE.UU.: franjas y cantón (simplificado) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Cpath fill='%23BF0A30' d='M0 0h900v600H0z'/%3E%3Cpath stroke='%23FFF' stroke-width='46.15' d='M0 69.2h900M0 161.5h900M0 253.8h900M0 346.2h900M0 438.5h900M0 530.8h900'/%3E%3Crect fill='%23002868' width='360' height='323'/%3E%3C/svg%3E");
}

/* Selector de idioma móvil */
.mobile-language-selector {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
}

.mobile-language-flag-btn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-language-flag-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.mobile-language-flag-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Menú de usuario */
.user-menu-wrapper {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.user-menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.user-menu-btn:hover::before {
  left: 100%;
}

.user-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-menu-wrapper.active .user-menu-btn {
  background: rgba(255, 50, 150, 0.2);
  border-color: rgba(255, 50, 150, 0.4);
}

.user-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.2) 0%, rgba(255, 50, 150, 0.1) 100%);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.user-menu-btn:hover .user-avatar {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.3) 0%, rgba(255, 50, 150, 0.15) 100%);
  transform: scale(1.1);
}

.user-name {
  color: white;
  font-weight: 500;
}

/* Dropdown de usuario - Estilo tipo burbuja moderno */
.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  min-width: 300px;
  max-height: 80vh; /* Limitar altura máxima */
  overflow-y: auto; /* Permitir scroll vertical */
  overflow-x: hidden; /* Prevenir scroll horizontal */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

.user-menu-wrapper.active .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.1) 0%, rgba(255, 50, 150, 0.05) 100%);
  border-radius: 20px 20px 0 0;
  margin: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 50, 150, 0.2);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-name-dropdown {
  color: #1a202c;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.user-email {
  color: #718096;
  font-size: 0.85rem;
}

.user-dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 50, 150, 0.2), transparent);
  margin: 1rem 0.75rem;
  border: none;
}

.dropdown-section-title {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 0.25rem;
}

.user-dropdown-menu {
  padding: 0.75rem;
  /* Asegurar que el contenido pueda hacer scroll si es necesario */
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-item-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  color: #1a202c;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  border: 1px solid rgba(255, 50, 150, 0.1);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.dropdown-item-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 50, 150, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-item-modern:hover::before {
  left: 100%;
}

.dropdown-item-modern:hover {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  color: #140910;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(255, 50, 150, 0.2);
  border-color: rgba(255, 50, 150, 0.3);
}

.dropdown-item-modern:active {
  transform: translateX(2px) scale(0.98);
}

.dropdown-item-modern i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  color: #ff3296 !important;
  font-size: 1.2rem !important;
  text-align: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%) !important;
  border-radius: 12px;
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.dropdown-item-modern:hover i {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.25) 0%, rgba(255, 50, 150, 0.15) 100%);
  transform: scale(1.1);
  color: #b8941f;
}

.dropdown-item-modern.logout-btn {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
}

.dropdown-item-modern.logout-btn:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.3);
}

.dropdown-item-modern.logout-btn i {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.dropdown-item-modern.logout-btn:hover i {
  background: rgba(220, 38, 38, 0.2);
  color: #b91c1c;
}

/* Botones colapsables del menú - Estilo tipo burbuja */
.dropdown-collapse-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 50, 150, 0.1);
  color: #1a202c;
  text-align: left;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.dropdown-collapse-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 50, 150, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-collapse-btn:hover::before {
  left: 100%;
}

.dropdown-collapse-btn:hover {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  color: #140910;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(255, 50, 150, 0.2);
  border-color: rgba(255, 50, 150, 0.3);
}

.dropdown-collapse-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.2) 0%, rgba(255, 50, 150, 0.12) 100%);
  border-color: rgba(255, 50, 150, 0.4);
  box-shadow: 0 4px 16px rgba(255, 50, 150, 0.25);
}

.dropdown-collapse-btn i:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ff3296;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dropdown-collapse-btn:hover i:first-child,
.dropdown-collapse-btn[aria-expanded="true"] i:first-child {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.25) 0%, rgba(255, 50, 150, 0.15) 100%);
  transform: scale(1.1);
  color: #b8941f;
}

.dropdown-collapse-btn .collapse-icon {
  width: auto;
  color: #64748b;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 50, 150, 0.1);
  border-radius: 8px;
}

.dropdown-collapse-btn:hover .collapse-icon {
  background: rgba(255, 50, 150, 0.2);
  color: #ff3296;
}

.dropdown-collapse-btn[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
  background: rgba(255, 50, 150, 0.25);
  color: #b8941f;
}

/* Submenú colapsable - Estilo tipo burbuja */
.dropdown-submenu {
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.08) 0%, rgba(255, 50, 150, 0.03) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 50, 150, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Botón de submenú anidado dentro de una sección colapsable */
.dropdown-submenu-btn {
  padding-left: 1.5rem;
  font-weight: 500;
  font-size: 0.85rem;
}

.dropdown-submenu-btn i:first-child {
  font-size: 1rem;
}

.mobile-submenu-btn {
  padding-left: 2rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.mobile-submenu-btn i:first-child {
  font-size: 1.1rem;
}

.dropdown-submenu .dropdown-item-modern {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  margin: 0;
  border: 1px solid rgba(255, 50, 150, 0.1);
}

.dropdown-submenu .dropdown-item-modern:hover {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  border-color: rgba(255, 50, 150, 0.25);
  transform: translateX(4px);
}

.dropdown-submenu .dropdown-item-modern i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  font-size: 1.1rem !important;
  color: #ff3296 !important;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%) !important;
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.dropdown-submenu .dropdown-item-modern:hover i {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.25) 0%, rgba(255, 50, 150, 0.15) 100%) !important;
  transform: scale(1.1);
  color: #b8941f !important;
}

/* Estilos para menú móvil colapsable */
.mobile-menu-collapse-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 50, 150, 0.1);
  color: #1a202c;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.mobile-menu-collapse-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 50, 150, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-menu-collapse-btn:hover::before {
  left: 100%;
}

.mobile-menu-collapse-btn:hover {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(255, 50, 150, 0.2);
  border-color: rgba(255, 50, 150, 0.3);
}

.mobile-menu-collapse-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.2) 0%, rgba(255, 50, 150, 0.12) 100%);
  border-color: rgba(255, 50, 150, 0.4);
  box-shadow: 0 4px 16px rgba(255, 50, 150, 0.25);
}

.mobile-menu-collapse-btn i:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ff3296;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-menu-collapse-btn:hover i:first-child,
.mobile-menu-collapse-btn[aria-expanded="true"] i:first-child {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.25) 0%, rgba(255, 50, 150, 0.15) 100%);
  transform: scale(1.1);
  color: #b8941f;
}

.mobile-menu-collapse-btn .collapse-icon {
  width: auto;
  color: #64748b;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 50, 150, 0.1);
  border-radius: 8px;
}

.mobile-menu-collapse-btn:hover .collapse-icon {
  background: rgba(255, 50, 150, 0.2);
  color: #ff3296;
}

.mobile-menu-collapse-btn[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
  background: rgba(255, 50, 150, 0.25);
  color: #b8941f;
}

.mobile-menu-submenu {
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.08) 0%, rgba(255, 50, 150, 0.03) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 50, 150, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-submenu .mobile-menu-link {
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  margin: 0;
  border: 1px solid rgba(255, 50, 150, 0.1);
}

.mobile-menu-submenu .mobile-menu-link:hover {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  border-color: rgba(255, 50, 150, 0.25);
  transform: translateX(4px);
}

.mobile-menu-submenu .mobile-menu-link i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  font-size: 1.1rem !important;
  color: #ff3296 !important;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%) !important;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu-submenu .mobile-menu-link:hover i {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.25) 0%, rgba(255, 50, 150, 0.15) 100%) !important;
  transform: scale(1.1);
  color: #b8941f !important;
}

/* Botón login moderno - Estilo tipo burbuja dorado */
.btn-login-modern {
  display: flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #ff3296 0%, #b8941f 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 50, 150, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-login-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login-modern:hover::before {
  left: 100%;
}

.btn-login-modern:hover {
  background: linear-gradient(135deg, #b8941f 0%, #9a7d18 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 50, 150, 0.4);
}

.btn-login-modern:active {
  transform: translateY(0) scale(0.98);
}

/* Menú móvil - Botón hamburguesa moderno */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.625rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.mobile-menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.mobile-menu-btn:hover::before {
  left: 100%;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn.active {
  background: rgba(255, 50, 150, 0.2);
  border-color: rgba(255, 50, 150, 0.4);
}

.mobile-menu-btn span {
  width: 22px;
  height: 2.5px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mobile-menu-btn.active span {
  background: #ff3296;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  margin-top: 1rem;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.mobile-menu.active {
  max-height: 80vh;
  overflow-y: auto; /* Permitir scroll vertical */
  overflow-x: hidden; /* Prevenir scroll horizontal */
  -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

.mobile-menu-content {
  padding: 1.5rem 1rem;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.1) 0%, rgba(255, 50, 150, 0.05) 100%);
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 50, 150, 0.2);
}

.user-avatar-mobile {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff3296 0%, #b8941f 100%);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(255, 50, 150, 0.3);
  flex-shrink: 0;
}

.user-name-mobile {
  font-weight: 700;
  color: #1a202c;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.user-email-mobile {
  font-size: 0.85rem;
  color: #718096;
}

.mobile-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 50, 150, 0.2), transparent);
  margin: 1.5rem 0;
  border: none;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu-section-title {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-top: 0.25rem;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: #1a202c;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 50, 150, 0.1);
  position: relative;
  overflow: hidden;
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 50, 150, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-menu-link:hover::before {
  left: 100%;
}

.mobile-menu-link:hover {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%);
  color: #140910;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(255, 50, 150, 0.2);
  border-color: rgba(255, 50, 150, 0.3);
}

.mobile-menu-link:active {
  transform: translateX(2px) scale(0.98);
}

.mobile-menu-link i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  color: #ff3296 !important;
  font-size: 1.3rem !important;
  text-align: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.15) 0%, rgba(255, 50, 150, 0.08) 100%) !important;
  border-radius: 12px;
  transition: all 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu-link:hover i {
  background: linear-gradient(135deg, rgba(255, 50, 150, 0.25) 0%, rgba(255, 50, 150, 0.15) 100%);
  transform: scale(1.1);
  color: #b8941f;
}

.mobile-menu-link.logout-btn-mobile {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
}

.mobile-menu-link.logout-btn-mobile:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.3);
}

.mobile-menu-link.logout-btn-mobile i {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.mobile-menu-link.logout-btn-mobile:hover i {
  background: rgba(220, 38, 38, 0.2);
  color: #b91c1c;
}

.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #3b82f6;
  text-decoration: none;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.mobile-social-link:hover {
  color: white;
  background: linear-gradient(135deg, #ff3296 0%, #b8941f 100%);
  border-color: #ff3296;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 50, 150, 0.3);
}

/* Estilos para redes sociales y selector de idioma en móviles (header) */
@media (max-width: 991.98px) {
  .modern-navbar {
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.65rem;
  }

  .modern-navbar > .container-fluid {
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  }

  .navbar-content-wrapper {
    gap: 0.45rem;
    min-width: 0;
  }

  .modern-brand {
    min-width: 0;
    flex-shrink: 1;
    gap: 0.4rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .navbar-actions {
    gap: 0.35rem !important;
    min-width: 0;
    flex-shrink: 1;
  }

  .social-links {
    padding-right: 0.35rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    gap: 0.35rem;
    flex-shrink: 1;
  }
  
  .social-link {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  
  .language-selector {
    padding: 0 2px;
    gap: 0.25rem;
    margin-left: 0 !important;
    flex-shrink: 0;
  }
  
  .language-flag-btn {
    padding: 2px 3px;
  }
  
  .flag-icon {
    width: 18px;
    height: 13px;
  }

  .mobile-menu-btn {
    flex-shrink: 0;
    padding: 0.45rem;
  }
}

/* Estilos adicionales para móviles - menú tipo burbuja */
@media (max-width: 991px) {
  .mobile-menu {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .mobile-menu-content {
    padding: 1.25rem 0.75rem;
  }
  
  .mobile-menu-link,
  .mobile-menu-collapse-btn {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
  
  .mobile-menu-link i,
  .mobile-menu-collapse-btn i:first-child {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .user-avatar-mobile {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
  
  .user-name-mobile {
    font-size: 1rem;
  }
  
  .user-email-mobile {
    font-size: 0.8rem;
  }
}

/* Animación de entrada del menú */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.active .mobile-menu-content {
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de glassmorphism mejorado */
.mobile-menu.active {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}














/* Menú neon sobre el diseño de Aliados */
.modern-navbar {
  background: linear-gradient(135deg, #140910 0%, #2a1524 100%) !important;
  border-bottom: 1px solid rgba(255, 50, 150, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.modern-navbar > .container-fluid {
  flex-wrap: wrap;
  align-items: stretch;
}
.modern-navbar .navbar-content-wrapper {
  width: 100%;
}
.modern-navbar .mobile-menu {
  flex: 0 0 100%;
  width: 100%;
}
.modern-navbar .cart-bubble-wrapper {
  position: static !important;
  margin: 0 !important;
}
.user-dropdown,
.mobile-menu {
  background: linear-gradient(160deg, #211724 0%, #140910 100%) !important;
  border-color: rgba(255, 50, 150, 0.35) !important;
  color: #fff;
}
.user-name-dropdown,
.dropdown-item-modern,
.dropdown-collapse-btn,
.mobile-menu-link,
.mobile-menu-collapse-btn,
.user-name-mobile {
  color: #fff !important;
}
.dropdown-item-modern,
.dropdown-collapse-btn,
.mobile-menu-link,
.mobile-menu-collapse-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 50, 150, 0.18) !important;
}
.user-email,
.user-email-mobile,
.dropdown-section-title {
  color: #B9A8B6 !important;
}
.user-dropdown-header,
.mobile-user-info {
  background: rgba(255, 50, 150, 0.08) !important;
  border-color: rgba(255, 50, 150, 0.25) !important;
}
.dropdown-item-modern:hover,
.dropdown-collapse-btn:hover,
.mobile-menu-link:hover,
.mobile-menu-collapse-btn:hover {
  background: rgba(255, 50, 150, 0.16) !important;
  color: #fff !important;
}
