:root {
    --bg-app: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-surface-solid: #ffffff;
    --bg-card-hover: rgba(0, 180, 216, 0.04);
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-active: rgba(0, 180, 216, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #516377;
    
    --primary: #0077b6;
    --accent: #00b4d8;
    --accent-glow: rgba(0, 180, 216, 0.2);
    
    --success: #00c853;
    --success-glow: rgba(0, 200, 83, 0.25);
    --danger: #be123c;
    --danger-glow: rgba(190, 18, 60, 0.15);
    
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --shadow-main: 0 4px 20px 0 rgba(15, 23, 42, 0.06);
    --blur-val: 12px;
}

/* --- GENERAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.map-page-body {
    overflow: hidden !important;
    height: 100vh !important;
}

/* --- APP CONTAINER --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
}

.map-page-container {
    height: 100vh !important;
    overflow: hidden !important;
}

/* --- HEADER --- */
.app-header {
    height: 70px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 5000;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--accent-glow);
}

.icon-wind {
    color: #fff;
    width: 22px;
    height: 22px;
    animation: rotateWind 8s linear infinite;
}

@keyframes rotateWind {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-area h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
}

.badge-ia {
    background: linear-gradient(90deg, #7c4dff, #00e5ff);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 11px;
    color: #cbd5e1;
}

.global-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.stat-label {
    color: #cbd5e1;
}

.stat-value {
    font-weight: 700;
    color: #ffffff;
}

.text-accent {
    color: var(--accent) !important;
}

.status-ok {
    border-color: rgba(0, 230, 118, 0.2);
    background: rgba(0, 230, 118, 0.03);
}

.indicator-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    position: relative;
}

.indicator-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--success);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: scale(1);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* --- MAIN WORKSPACE --- */
.app-main {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* --- SIDEBAR LEFT (SPOT LIST) --- */
.sidebar-left {
    width: 320px;
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.section-title {
    padding: 20px 20px 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.section-title h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.spot-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 20px 12px;
}

.spot-list::-webkit-scrollbar {
    width: 6px;
}

.spot-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* --- SPOT CARD ITEM --- */
.spot-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-card-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.15);
}

.spot-card-item.selected {
    background: rgba(0, 180, 216, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.2);
}

/* --- ACTIVE & INACTIVE KITES CARD STYLES --- */
.spot-card-item.active-kites-card {
    background: #ffffff;
    border: 1.5px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.18);
}

.spot-card-item.active-kites-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 6px 22px rgba(0, 119, 182, 0.25);
}

.spot-card-item.active-kites-card .spot-item-name {
    color: var(--text-primary);
    font-weight: 700;
}

.spot-card-item.active-kites-card .spot-item-stat {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.spot-card-item.inactive-kites-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0.95;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.spot-card-item.inactive-kites-card:hover {
    opacity: 1.0;
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.15);
}

.spot-card-item.inactive-kites-card .spot-item-name {
    color: var(--text-primary);
}

.spot-card-item.inactive-kites-card .spot-item-municipality,
.spot-card-item.inactive-kites-card .spot-item-footer {
    color: var(--text-muted);
}

.spot-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.spot-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.spot-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.badge-green {
    background: #00c853 !important;
    color: #ffffff !important;
    border: 1px solid #00a040 !important;
}

.badge-red {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.spot-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.spot-item-municipality {
    font-size: 11px;
    color: var(--text-secondary);
}

.spot-item-stat {
    font-size: 12px;
    color: var(--text-primary);
}

.spot-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 8px;
}

/* --- CENTER MAP CONTAINER --- */
.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

.leaflet-tile-container img.leaflet-tile {
    filter: brightness(1.02) contrast(1.05) saturate(1.1);
    transition: filter 0.4s ease;
}

/* --- SIDEBAR RIGHT (DETAILS) --- */
.sidebar-right {
    width: 380px;
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-left: 1px solid var(--border-color);
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.sidebar-right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* --- NO SELECTION STATE --- */
.no-selection-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.giant-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-selection-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-selection-state p {
    font-size: 12px;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* --- DETAILS CONTENT --- */
.details-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.title-block h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.title-block p {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.status-green {
    background: #00c853 !important;
    color: #ffffff !important;
    border: 1px solid #00a040 !important;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3) !important;
}

.status-red {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

/* --- IA IMAGE FRAME --- */
.detection-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #000;
}

.detection-frame-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.live-label {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.live-label .dot {
    width: 6px;
    height: 6px;
    background-color: var(--danger);
    border-radius: 50%;
    animation: flashDot 1.5s infinite;
}

@keyframes flashDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.time-label {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    color: var(--text-secondary);
}

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-value-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* --- BUTTON STREAM --- */
.stream-link-container {
    width: 100%;
}

.btn-stream {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.8), rgba(0, 240, 255, 0.6));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-stream:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-1px);
}

/* --- HISTORY SECTION --- */
.history-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.history-time {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.history-count {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- MAP MARKER STYLING --- */
.marker-container {
    background: none !important;
    border: none !important;
}

.custom-marker {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.marker-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.marker-pulse {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
}

/* Status: active (green) */
.active-marker .marker-dot {
    background-color: #00c853 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.6) !important;
}

.active-marker .marker-pulse {
    background-color: #00c853 !important;
    animation: markerPulse 1.4s infinite !important;
}

/* Status: inactive (grey/red) */
.inactive-marker .marker-dot {
    background-color: var(--text-muted);
}

.inactive-marker .marker-pulse {
    display: none;
}

@keyframes markerPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Leaflet Custom Overrides */
.leaflet-container {
    background: var(--bg-app) !important;
}
.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-main) !important;
}
.leaflet-bar a {
    background-color: var(--bg-surface-solid) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background-color 0.2s;
}
.leaflet-bar a:hover {
    background-color: var(--bg-card-hover) !important;
}

/* --- LOADING & UTILS --- */
.loading-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 150px;
    color: var(--text-secondary);
    gap: 12px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.05);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   --- RESPONSIVE DESIGN (MOBILE ADAPTABILITY) ---
   ========================================== */
@media (max-width: 1024px) {
    .app-header {
        padding: 0 16px;
    }
    
    .global-stats {
        gap: 10px;
    }
    
    .stat-bubble {
        padding: 4px 10px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    html {
        overflow-y: auto !important;
        height: auto !important;
    }

    body.map-page-body {
        overflow-y: auto !important;
        height: auto !important;
    }

    body.map-page-body .map-page-container {
        height: auto !important;
        display: block !important;
        overflow: visible !important;
    }

    .app-header {
        height: 60px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 16px !important;
        gap: 0 !important;
        box-sizing: border-box;
    }

    .logo-area {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .logo-area h1 {
        font-size: 16px !important;
        margin: 0 !important;
    }

    .logo-area .subtitle {
        display: none !important;
    }

    .global-stats {
        display: none !important; /* Ocultar en móvil para ganar espacio */
    }

    .menu-container {
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .app-main {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Mapa arriba (tamaño fijo de 220px), Lista abajo */
    .map-container {
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
        order: 1 !important;
        position: relative !important;
        display: block !important;
    }

    #map {
        height: 220px !important;
        min-height: 220px !important;
        width: 100% !important;
    }

    .sidebar-left {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        order: 2 !important;
        border-top: 1px solid var(--border-color) !important;
        border-right: none !important;
        border-bottom: none !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .spot-list {
        height: auto !important;
        overflow: visible !important;
    }

    /* Controles de Playas y buscador sticky en móvil al deslizar */
    .sidebar-sticky-wrapper {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: #ffffff !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    }

    /* Bottom Sheet deslizable para detalles en móvil */
    .sidebar-right {
        width: 100% !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 4000 !important;
        background: #ffffff !important;
        border-top: 3px solid var(--accent) !important;
        border-left: none !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15) !important;
        max-height: 75vh !important;
        transform: translateY(100%);
        transition: transform 0.3s ease-out !important;
        overflow-y: auto !important;
        box-sizing: border-box;
    }

    .sidebar-right.show-mobile {
        transform: translateY(0) !important;
    }
    
    .mobile-sheet-handler {
        display: flex !important;
    }
    
    .details-content {
        padding: 16px;
    }
}

/* ==========================================
   --- FASE 2: RED SOCIAL, GAMIFICACIÓN Y PREVISIÓN ---
   ========================================== */

/* --- APP NAVIGATION --- */
.app-nav {
    display: flex;
    gap: 16px;
    margin: 0 auto 0 24px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(0, 180, 216, 0.2);
    border-color: rgba(0, 180, 216, 0.4);
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.1);
}

/* --- SPOT TABS --- */
.spot-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    gap: 8px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-pane.hidden {
    display: none;
}

/* --- WINDGURU FORECAST GRID --- */
.forecast-section {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
}

.forecast-section h3,
.weekly-achievements h3,
.beach-feed-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forecast-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.forecast-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.forecast-table th,
.forecast-table td {
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 48px;
    color: var(--text-primary);
}

.forecast-table th {
    background: rgba(15, 23, 42, 0.7);
    font-weight: 700;
    color: #a5b4fc;
    font-size: 11px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.25);
}

.forecast-table td:first-child {
    font-weight: 600;
    text-align: left;
    background: #151726;
    color: #e2e8f0;
    position: sticky;
    left: 0;
    z-index: 10;
    min-width: 90px;
    border-right: 2px solid rgba(99, 102, 241, 0.3);
}

/* WindGuru color coding */
.wind-cell {
    font-weight: 700;
    color: #000 !important;
}

.speed-low { background-color: #8ed1fc; }
.speed-medium { background-color: #00d084; color: #fff !important; }
.speed-medium-high { background-color: #fcb900; }
.speed-high { background-color: #cf2e2e; color: #fff !important; }

.gust-low { background-color: #8ed1fc; }
.gust-medium { background-color: #00d084; color: #fff !important; }
.gust-medium-high { background-color: #fcb900; }
.gust-high { background-color: #cf2e2e; color: #fff !important; }

.temp-cell {
    font-weight: 600;
}
.temp-cool { background-color: #1a2436; color: #8ed1fc !important; }
.temp-warm { background-color: #2c2518; color: #fcb900 !important; }
.temp-hot { background-color: #381a1a; color: #cf2e2e !important; }

.wind-dir {
    display: inline-block;
    font-size: 14px;
}

.stars-cell {
    color: #fcb900 !important;
    font-size: 10px;
}

/* --- LOGROS DEL SPOT --- */
.weekly-achievements {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
}

.achievement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.achievement-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.achievement-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.achievement-label i {
    color: var(--accent);
}

.achievement-val {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- FEED SOCIAL --- */
.beach-feed-section {
    margin-top: 15px;
    margin-bottom: 75px; /* Dejar espacio para el FAB */
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease;
}

.feed-post-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.post-author {
    font-weight: 700;
    color: var(--text-primary);
}

.verified-pill {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-date {
    color: var(--text-muted);
}

.post-content {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.post-footer {
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 6px;
    margin-top: 2px;
}

/* --- FLOATING ACTION BUTTON --- */
.fab-register-session {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-register-session:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

/* --- MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    transition: all 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group textarea,
.form-group input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
}

.form-group textarea {
    resize: none;
    height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.geo-status {
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
}

.geo-status.info {
    display: block;
    background: rgba(0, 136, 204, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.geo-status.success {
    display: block;
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.geo-status.warn {
    display: block;
    background: rgba(252, 185, 0, 0.1);
    color: #fcb900;
    border: 1px solid rgba(252, 185, 0, 0.2);
}

.geo-status.error {
    display: block;
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.btn {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0,240,255,0.2);
}

/* --- PERFIL PAGE LAYOUT --- */
.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    padding: 20px;
    overflow-y: auto !important;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-main);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.card-title i {
    color: var(--accent);
}

/* User Card Details */
.avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 20px;
}

.avatar-clickable {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.avatar-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.4);
}

.avatar-clickable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    border-radius: 50%;
}

.avatar-clickable:hover .avatar-clickable-overlay {
    opacity: 1;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    border: 2px solid rgba(255,255,255,0.1);
}

.avatar-area h2 {
    font-size: 18px;
    font-weight: 700;
}

.user-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 240, 255, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.level-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.level-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.xp-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.xp-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 0.5s ease-in-out;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-box.font-small .stat-value {
    font-size: 15px;
}

.stat-box .stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-box .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Achievements vitrina */
.badges-vitrine {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.badge-item.unlocked {
    background: rgba(0, 240, 255, 0.02);
    border-color: rgba(0, 240, 255, 0.15);
}

.badge-item.locked {
    opacity: 0.4;
    background: rgba(0, 0, 0, 0.1);
}

.badge-icon-container {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.badge-item.unlocked .badge-icon-container {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 240, 255, 0.2));
    color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.badge-text h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-text p {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.unlocked-tag {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    color: var(--success);
    margin-top: 4px;
}

.xp-tag {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    color: var(--accent);
    margin-top: 4px;
}

/* GPX Drag Drop Widget */
.drag-drop-card {
    border: 2px dashed rgba(0, 240, 255, 0.2) !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drag-drop-card:hover,
.drag-drop-card.dragover {
    background: rgba(0, 240, 255, 0.02);
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
}

.drag-drop-card:hover .upload-icon,
.drag-drop-card.dragover .upload-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.upload-status {
    font-size: 12px;
    margin-top: 8px;
}

.upload-status.info { color: var(--accent); }
.upload-status.success { color: var(--success); }
.upload-status.error { color: var(--danger); }

/* Tracks Historial */
.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.track-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

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

.track-date {
    font-size: 10px;
    color: var(--text-muted);
}

.track-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.track-distance {
    font-size: 13px;
    color: var(--text-secondary);
}

.track-distance strong {
    color: var(--accent);
    font-size: 15px;
}

/* Toast alert notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(18, 20, 30, 0.95);
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.hidden {
    display: none;
}

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

#toast-icon {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.toast-body h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-body p {
    font-size: 11px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* --- WINDY CURRENT WIND CARD --- */
.current-wind-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

/* Dynamic Windy background gradients */
.wind-bg-low {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

.wind-bg-medium {
    background: linear-gradient(135deg, rgba(11, 163, 96, 0.45), rgba(60, 186, 146, 0.45)) !important;
    border-color: rgba(11, 163, 96, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(11, 163, 96, 0.15) !important;
}

.wind-bg-medium-high {
    background: linear-gradient(135deg, rgba(245, 175, 25, 0.45), rgba(241, 39, 17, 0.45)) !important;
    border-color: rgba(245, 175, 25, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(245, 175, 25, 0.15) !important;
}

.wind-bg-high {
    background: linear-gradient(135deg, rgba(211, 16, 39, 0.55), rgba(234, 56, 77, 0.55)) !important;
    border-color: rgba(211, 16, 39, 0.6) !important;
    box-shadow: 0 8px 32px 0 rgba(211, 16, 39, 0.25) !important;
}

.current-wind-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.wind-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.wind-value-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.wind-val {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wind-unit {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.wind-gusts-box {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 12px;
}

.gust-label {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.gust-val {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wind-direction-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.compass-icon-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.compass-arrow {
    width: 16px;
    height: 16px;
    color: var(--accent);
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1.25);
}

.wind-deg {
    font-size: 16px;
    font-weight: 700;
}

.wind-dir-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-left: auto;
}

/* === ESTILOS ADICIONALES PARA PERFIL Y FEED DE SESIÓN === */
.profile-avatar-img {
    border: 3px solid var(--success);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--success);
    background: #ffffff;
}

.gear-management-section {
    margin-top: 20px;
}

.gear-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.gear-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.btn-delete-gear {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-delete-gear:hover {
    background: rgba(239, 68, 68, 0.1);
}

.post-photo {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    transition: transform 0.2s;
}

.post-photo:hover {
    transform: scale(1.01);
}

.post-header-author-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--success);
}

.post-avatar-initials {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-gear-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
}
/* Hamburger Menu and Dropdown Styles */
.menu-container {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    z-index: 3000;
}

.menu-btn {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.menu-btn:hover {
    background: #f1f5f9;
    color: var(--accent);
    transform: scale(1.05);
    border-color: #cbd5e1;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 3100;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

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

.menu-dropdown.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f8fafc;
    color: var(--accent);
}

.menu-item i {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.menu-item:hover i {
    color: var(--accent);
}

/* --- CUSTOM MODAL & CARD (GLOBAL OVERLAYS) --- */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.custom-modal.show {
    display: flex !important;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 485px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--border-color);
    animation: modalIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* --- LANGUAGE SWITCHER SYSTEM --- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2px;
    margin-right: 12px;
    vertical-align: middle;
}

.lang-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-color);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 180, 255, 0.3);
}

/* Integración responsiva para menú móvil */
.mobile-lang-switcher {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

/* Contenedor de acciones del header (idioma + menú) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .header-actions {
        margin-left: auto !important;
    }
    .header-actions .menu-container {
        margin-left: 0 !important;
    }
}

