/*
  Name: components.css
  Version: v2025.08.02-01
  Language: css
  Runtime: browser
  Notes: Componentes extraídos de styles.css preservando diseño exacto
*/

/* =========================================
   TUTORDS - COMPONENTES COMPARTIDOS
   Header, Footer, Language Selector
   ========================================= */

/* =========================================
   1. HEADER Y NAVEGACIÓN
   ========================================= */

/* Header principal */
.header {
    padding: 15px 20px;
    background-color: white;
    /* Elevation más notoria para desktop y mobile */
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.10), 0 1px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: relative; /* asegura que la sombra quede por encima del siguiente bloque */
    z-index: 9000;
    flex-shrink: 0;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Navegación */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - Mejorado para evitar distorsión */
.logo {
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
    height: 35px; /* Altura fija */
}

.logo img {
    height: 35px;
    width: auto; /* Ancho automático para mantener proporción */
    display: block;
    object-fit: contain; /* Mantener proporción sin distorsión */
}

/* Enlaces de navegación */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--body-text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* =========================================
   2. MENÚ MÓVIL (HAMBURGER)
   ========================================= */

/* Botón hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
    transition: opacity 0.3s ease;
}

.hamburger:hover {
    opacity: 0.7;
}

/* Líneas del hamburger */
.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: var(--body-text-color);
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

/* Animación del hamburger cuando está activo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Menú móvil desplegable */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10001; /* Sobre el banner (#scrolling-banner z-index: 9999) */
    display: flex;
    flex-direction: column;
    padding: 20px 12px 12px; /* lateral 12px consistente */
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    /* Eliminar transform para evitar stacking-context que afecta al dropdown en iOS */
    /* transform: translateZ(0); */
    will-change: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Enlaces en el menú móvil */
.mobile-menu .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    text-align: left;
}

/* Animación escalonada de los enlaces */
.mobile-menu.active .nav-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s; }

/* Hover en enlaces del menú móvil */
.mobile-menu .nav-link:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Botón en menú móvil */
.mobile-menu .btn {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transition-delay: 0.3s;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu.active .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay del menú móvil */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000; /* Sobre el banner fijo */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   3. FOOTER BANNER ANIMADO
   ========================================= */

/* Banner principal */
#scrolling-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 45px !important;
    background-color: var(--primary-color) !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
}

/* Footer bottom: iconos sociales + logo en la misma línea */
.footer-bottom {
    display: flex !important;
    align-items: center !important;
    gap: 35px !important;
    flex-shrink: 0 !important;
}

/* Iconos de redes sociales */
.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Contenedor del texto animado */
.banner-scroll-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 20px;
}

/* Efecto de desvanecimiento en los bordes */
.banner-scroll-container::before,
.banner-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 1;
    pointer-events: none;
}

.banner-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #E91E63, transparent);
}

.banner-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #E91E63, transparent);
}

/* Contenido animado */
.banner-content {
    display: inline-block;
    animation: scroll 60s linear infinite;
    white-space: nowrap;
}

/* Texto del banner */
.banner-text {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
    display: inline-block;
}

/* Logo del footer */
.footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 25px;
}

.footer-logo img {
    height: 25px;
    width: auto;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.footer-logo:hover img {
    opacity: 0.5;
}

/* Animación de scroll para el banner */
@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   4. SELECTOR DE IDIOMAS
   ========================================= */

/* Contenedor principal */
.language-selector {
    position: relative;
    display: inline-block;
}

/* Botón del selector */
.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--card-border-color);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: var(--body-text-color);
    font-family: var(--font-body);
}

.language-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Icono del globo */
.globe-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Código de idioma */
.language-code {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

/* Icono chevron */
.chevron-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.language-selector.open .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 182, 193, 0.25);
    min-width: 220px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid var(--card-border-color);
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar del dropdown */
.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* Opciones de idioma */
.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--body-text-color);
    font-family: var(--font-body);
    text-align: left;
}

.language-option:hover {
    background: var(--gray-light);
}

.language-option.active {
    background: rgba(233, 30, 99, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

/* Nombre del idioma */
.language-name {
    flex: 1;
    margin-right: 10px;
}

/* Check icon para idioma activo */
.check-icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
    stroke-width: 3;
    flex-shrink: 0;
}

/* Selector en menú móvil */
.mobile-language-selector {
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.mobile-language-title {
    font-size: 12px;
    color: var(--body-text-color);
    margin-bottom: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   MOBILE LANGUAGE ACCORDION (solo móvil)
   ========================================= */
@media (max-width: 992px) {
    /* Columna única y padding lateral cero en todos los ítems internos */
    .mobile-menu .mobile-language-selector,
    .mobile-menu .language-button,
    .mobile-menu .language-dropdown .language-option,
    .mobile-menu .profile-dropdown-item,
    .mobile-menu .language-accordion .accordion-header,
    .mobile-menu .language-accordion .language-option {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ALINEACIÓN 100% CONSISTENTE CON CSS GRID */
    /* Filas del menú (perfil, precios, faq, etc.) */
    .mobile-menu .profile-dropdown-item {
        display: grid !important;
        grid-template-columns: 20px 12px 1fr !important; /* icono | gap | texto */
        align-items: center !important;
    }
    .mobile-menu .profile-dropdown-item svg { grid-column: 1; }
    .mobile-menu .profile-dropdown-item span { grid-column: 3; margin-left: 0 !important; }

    /* Opciones del selector de idiomas (dropdown) */
    .mobile-menu .language-dropdown .language-option {
        display: grid !important;
        grid-template-columns: 20px 12px 1fr auto !important; /* flag | gap | nombre | check */
        align-items: center !important;
    }
    .mobile-menu .language-dropdown .language-flag { grid-column: 1; margin-right: 0 !important; width: 20px !important; }
    .mobile-menu .language-dropdown .language-name { grid-column: 3; margin-left: 0 !important; }
    .mobile-menu .language-dropdown .check-icon { grid-column: 4; }

    /* Encabezado del acordeón de idioma */
    .mobile-menu .language-accordion .accordion-header { display: grid !important; grid-template-columns: 1fr auto !important; }
    .mobile-menu .language-accordion .accordion-header .header-left {
        display: grid !important;
        grid-template-columns: 20px 12px 1fr !important; /* icono | gap | texto */
        align-items: center !important;
    }
    .mobile-menu .language-accordion .globe-icon { grid-column: 1; width: 18px !important; height: 18px !important; }
    .mobile-menu .language-accordion .current-language { grid-column: 3; margin-left: 0 !important; }

    /* Título del bloque de idioma sin indentación extra */
    .mobile-language-title { padding-left: 0 !important; margin-left: 0 !important; }

    /* Dropdown del idioma en flujo y sin chrome visual */
    .mobile-menu .language-selector { width: 100%; }
    .mobile-menu .language-button { border: none; padding: 0; background: transparent; }
    .mobile-menu .language-dropdown {
        position: static !important;
        top: auto !important; right: auto !important; left: auto !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin-top: 8px !important;
        max-height: none !important;
        padding-bottom: 82px; /* +70px total bajo el último idioma */
    }
    /* Dropdown del idioma en flujo y sin chrome visual */
    .mobile-menu .language-selector { width: 100%; }
    .mobile-menu .language-button { border: none; padding: 0; background: transparent; }
    .mobile-menu .language-dropdown {
        position: static;
        top: auto; right: auto; left: auto;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 8px;
    }
    .language-accordion {
        border: none; /* sin bordes para consistencia visual del menú */
        border-radius: 0;
        overflow: visible; /* permitir que el contenedor crezca con el contenido en iOS */
        background: transparent;
        width: 100%;
        margin-bottom: 10px; /* separación uniforme entre bloques */
    }

    .language-accordion .accordion-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent;
        border: none;
        padding: 12px 0; /* laterales por el contenedor */
        cursor: pointer;
        font-family: var(--font-body);
    }

    .language-accordion .accordion-header .header-left {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--heading-color);
        font-weight: 600;
    }

    .language-accordion .accordion-content {
        display: none; /* cerrado por defecto */
        border-top: 1px solid var(--card-border-color);
        max-height: none;
        overflow: visible;
        background: #fff; /* fondo sólido para no ver el contenido debajo */
        position: static;
    }

    .language-accordion.open .chevron-icon {
        transform: rotate(180deg);
        transition: transform 0.2s ease;
    }
    .language-accordion.open .accordion-content {
        display: block; /* mostrar en flujo para empujar completamente */
        max-height: none;
    }

    .language-accordion .language-option {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0; /* laterales por el contenedor para alinear con todo */
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        cursor: pointer;
    }

    .language-accordion .language-option:last-child {
        border-bottom: none;
    }
}

/* CONSISTENCIA VISUAL DE ÍTEMS EN MENÚ MÓVIL */
@media (max-width: 992px) {
    .mobile-menu .profile-dropdown-item,
    .mobile-menu .language-accordion .language-option,
    .mobile-menu .language-accordion .accordion-header,
    .mobile-menu .language-dropdown .language-option {
        padding: 12px 0 !important; /* laterales por el contenedor */
        align-items: center !important;
        gap: 12px !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin: 0 !important;
    }

    /* Ajustar indentación del texto para alinear columnas icono/texto */
    .mobile-menu .profile-dropdown-item span,
    .mobile-menu .language-accordion .language-name,
    .mobile-menu .language-accordion .current-language {
        display: inline-block;
        transform: translateY(1px); /* compensa altura visual de iconos */
    }

    /* Unificar tamaño de iconos en el menú móvil */
    .mobile-menu .profile-dropdown-item svg,
    .mobile-menu .language-accordion .globe-icon,
    .mobile-menu .language-accordion .check-icon,
    .mobile-menu .language-dropdown .check-icon {
        width: 18px !important;
        height: 18px !important;
    }

    /* Ancho fijo para columna de iconos/flags */
    .mobile-menu .profile-dropdown-item svg { flex: 0 0 20px; }
    .mobile-menu .language-dropdown .language-flag,
    .mobile-menu .language-accordion .language-flag { display: inline-block; width: 20px; }
    .mobile-menu .language-dropdown .language-flag { margin-right: 12px; }

    /* Gap uniforme entre icono/flag y texto */
    .mobile-menu .profile-dropdown-item span,
    .mobile-menu .language-dropdown .language-name,
    .mobile-menu .language-accordion .language-name { margin-left: 12px; }

    /* Título del bloque de idioma alineado al mismo borde */
    .mobile-language-title {
        margin-left: 0;
    }
}

/* =========================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablets y móviles */
@media (max-width: 992px) {
    /* Mostrar hamburger y ocultar nav desktop */
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Ajustes del header */
    .header {
        padding: 12px 15px;
        position: sticky; /* Asegura visibilidad en móviles al hacer scroll */
        top: 0;
        z-index: 9000; /* por encima del contenido y hero; debajo del overlay del menú (10000) */
        background: white; /* evitar transparencia al superponer */
        /* Elevation consistente también en mobile */
        box-shadow: 0 6px 24px rgba(17, 24, 39, 0.12), 0 1px 0 rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .logo {
        height: 35px !important;
    }
    
    .logo img {
        height: 35px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ajustes del banner footer */
    .social-icons {
        gap: 10px;
        padding-right: 10px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .banner-scroll-container {
        margin-right: 20px;
    }
    
    /* Reducir efecto de fading en móvil */
    .banner-scroll-container::before,
    .banner-scroll-container::after {
        width: 20px;
    }
    
    /* Animación más lenta en móvil */
    .banner-content {
        padding: 0 30px;
        animation-duration: 80s;
    }
    
    .banner-text {
        font-size: 0.9rem;
        margin: 0 15px;
    }
    
    .footer-logo {
        padding-right: 10px;
        height: 20px;
    }
    
    .footer-logo img {
        height: 20px;
    }
    
    /* Language selector mobile */
    .language-button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .globe-icon {
        width: 16px;
        height: 16px;
    }
    
    .language-code {
        font-size: 13px;
    }
    
    .chevron-icon {
        width: 12px;
        height: 12px;
    }
    
    .language-dropdown {
        right: -10px;
        left: auto;
        min-width: 180px;
        max-height: 60vh;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Scrollbar más visible en móvil */
    .language-dropdown::-webkit-scrollbar {
        width: 8px;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 4px;
    }
    
    .language-dropdown::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
}

/* Fix para alineación en el header */
.nav-links .language-selector {
    margin-left: 10px;
}

/* =========================================
   MOBILE MENU - LOCK SCROLL EN APERTURA
   (Evita que el fondo se desplace en móviles y garantiza prioridad de capas)
   ========================================= */
@media (max-width: 992px) {
    html.mobile-menu-open,
    body.mobile-menu-open {
        overflow: hidden !important;
    }
    body.mobile-menu-open {
        position: fixed;
        width: 100%;
    }
}

/* =========================================
   PROFILE STYLES
   ========================================= */

/* Profile Trigger Button */
.profile-trigger {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--card-border-color);
    background: transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-trigger:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Profile Photo */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Default Profile Icon (SVG) */
.profile-default-icon {
    width: 20px;
    height: 20px;
    color: #E91E63; /* Fuchsia */
    fill: currentColor;
}

/* Profile Dropdown */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 182, 193, 0.25);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999; /* AUMENTADO z-index para asegurar visibilidad */
    display: none !important;
}

.user-profile-dropdown.open .profile-dropdown-menu {
    display: block !important;
}

/* ASEGURAR QUE EL CONTENEDOR PADRE TENGA POSITION RELATIVE */
.user-profile-dropdown {
    position: relative;
}

.profile-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    color: var(--body-text-color) !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: none !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 14px !important;
}

.profile-dropdown-item:hover {
    background-color: rgba(255, 182, 193, 0.1) !important;
}

.profile-dropdown-item:last-child {
    border-bottom: none !important;
}

.profile-dropdown-item svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2 !important;
    color: var(--primary-color) !important;
}

/* Mobile Profile Styles */
.mobile-profile {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-profile-actions {
    max-height: none;
    overflow: visible !important;
    margin-top: 10px;
    padding-right: 0;
}

/* Auth actions at bottom - spacing */
@media (max-width: 992px) {
    .mobile-auth-actions {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}

/* Scrollbar para dropdowns móviles */
.mobile-profile-actions::-webkit-scrollbar,
.profile-dropdown-menu::-webkit-scrollbar,
.mobile-language-selector::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar {
    width: 10px;
}

.mobile-profile-actions::-webkit-scrollbar-track,
.profile-dropdown-menu::-webkit-scrollbar-track,
.mobile-language-selector::-webkit-scrollbar-track,
.mobile-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
}

.mobile-profile-actions::-webkit-scrollbar-thumb,
.profile-dropdown-menu::-webkit-scrollbar-thumb,
.mobile-language-selector::-webkit-scrollbar-thumb,
.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 182, 193, 0.6);
    border-radius: 5px;
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.mobile-profile-actions::-webkit-scrollbar-thumb:hover,
.profile-dropdown-menu::-webkit-scrollbar-thumb:hover,
.mobile-language-selector::-webkit-scrollbar-thumb:hover,
.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 182, 193, 0.8);
}

/* Mobile: eliminar forzado de alturas para evitar espacios en blanco */
@media (max-width: 768px) {
    .mobile-profile-actions {
        min-height: 0 !important;
        position: static !important;
    }
    
    .mobile-language-selector {
        min-height: 0 !important;
        position: static !important;
    }
    
    .mobile-language-selector::after,
    .mobile-profile-actions::after {
        content: none !important;
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        clear: none !important;
    }
}

@media (max-width: 992px) {
    .profile-dropdown-menu {
        max-height: 50vh;
        right: -10px;
        left: auto;
    }
}

.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-profile .profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
}

.profile-default-icon.profile-photo {
    background: rgba(233, 30, 99, 0.1);
    padding: 10px;
    box-sizing: border-box;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-weight: 600;
    color: var(--heading-color);
}

.profile-plan {
    font-size: 14px;
    color: var(--body-text-color);
    opacity: 0.7;
}

/* =========================================
   BREADCRUMB STYLES - CONSISTENTES EN TODAS LAS PÁGINAS
   ========================================= */
.breadcrumb {
    background: var(--gray-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--body-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-light);
    user-select: none;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 500;
}

/* ================================
   LANGUAGE SELECTOR DROPDOWN ITEMS - FORCED STYLES
   ================================ */

/* Forzar estilos del language selector para que coincidan con profile dropdown */
.language-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: none !important;
    border: none !important;
    color: var(--body-text-color) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    font-family: inherit !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.language-option:hover {
    background-color: rgba(255, 182, 193, 0.1) !important;
}

.language-option:focus {
    outline: none !important;
    background-color: rgba(255, 182, 193, 0.1) !important;
}

.language-option:last-child {
    border-bottom: none !important;
}

.language-option.active {
    background: rgba(233, 30, 99, 0.08) !important;
    color: var(--primary-color) !important;
    font-weight: 500 !important;
}

.language-option .language-flag {
    font-size: 16px !important;
    min-width: 20px !important;
    flex-shrink: 0 !important;
}

.language-option .language-name {
    flex: 1 !important;
    font-size: 14px !important;
}

.language-option .check-icon {
    width: 16px !important;
    height: 16px !important;
    color: var(--primary-color) !important;
    stroke-width: 2 !important;
    flex-shrink: 0 !important;
}

/* ================================
   ESPACIADO TÍTULOS - BREADCRUMB
   ================================ */

/* Espaciado de 30px entre breadcrumb y títulos principales (TODAS las páginas excepto index) */

/* MÉTODO 1: Aplicar directamente a contenedores main específicos */
main.dashboard-main:not(.index-page main),
main.search-main,
main.categorias-main:not(.index-page main),
main.profesores-main:not(.index-page main),
main.planes-main:not(.index-page main),
main.como-funciona-main:not(.index-page main),
main.soporte-main:not(.index-page main),
main.pantone-main:not(.index-page main),
main.login-main:not(.index-page main) {
    padding-top: 30px !important;
}

/* MÉTODO 2: Para elementos que no tienen main container */
body:not(.index-page) .plans-hero,
body:not(.index-page) .planes-hero,
body:not(.index-page) .hero-section,
body:not(.index-page) .sesiones-hero,
body:not(.index-page) .admin-header {
    padding-top: 30px !important;
}

/* MÉTODO 3: Específico para páginas problemáticas - FUERZA TOTAL */
.dashboard-page main.dashboard-main,
main.search-main {
    padding-top: 30px !important;
    margin-top: 0 !important;
}