/* ============================================================
   VIBEZ — Estilos personalizados
   Archivo servido directamente (no depende de Vite/npm).
   Cargado junto a Tailwind CDN en el layout base.
   ============================================================ */

@import url('https://fonts.bunny.net/css?family=inter:300,400,500,600,700,800,900');

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #f0ecff;
    color: #0f172a;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* ============================================================
   Variables de color VIBEZ
   ============================================================ */
:root {
    --navy:         #0f172a;
    --morado:       #7c3aed;
    --morado-claro: #a855f7;
    --fondo:        #f0ecff;
    --rosa:         #ec4899;
    --neon-pink:    #f0abfc;
}

.text-navy          { color: var(--navy); }
.text-morado-vibez  { color: var(--morado); }
.bg-navy            { background-color: var(--navy); }
.bg-morado-vibez    { background-color: var(--morado); }

/* ============================================================
   LANDING (welcome.blade.php)
   ============================================================ */
.header-purple { background: linear-gradient(90deg, #6d28d9, #7c3aed, #9333ea); }

.text-gradient {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-animar 4s ease infinite;
}
.btn-cta {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 4px 20px rgba(124,58,237,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { transform: scale(1.06); box-shadow: 0 8px 32px rgba(124,58,237,0.7); }
.btn-ghost {
    border: 1.5px solid rgba(255,255,255,0.55);
    color: white;
    transition: background-color 0.2s ease;
}
.btn-ghost:hover { background-color: rgba(255,255,255,0.15); }
.pill {
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    color: #6d28d9;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: default;
}
.pill:hover { transform: translateY(-2px); background: rgba(124,58,237,0.18); }

/* Orbs animados del fondo (landing) */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.shape-1 { width:500px; height:500px; background:#7c3aed; top:-120px; left:-150px; animation: flotar-lento 12s ease-in-out infinite alternate; }
.shape-2 { width:380px; height:380px; background:#ec4899; bottom:0; right:-100px; animation: flotar-lento 9s ease-in-out infinite alternate-reverse; }
.shape-3 { width:260px; height:260px; background:#6d28d9; top:40%; left:45%; animation: flotar-lento 7s ease-in-out infinite alternate 2s; }

@keyframes flotar-lento {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(28px, 18px) scale(1.1); }
}
@keyframes fadeSlideUp {
    from { opacity:0; transform:translateY(28px); }
    to   { opacity:1; transform:translateY(0); }
}
.hero-content { animation: fadeSlideUp 0.7s ease both; }

/* ============================================================
   NAVBAR DE LA APP
   ============================================================ */
.nav-vibez {
    background: rgba(7, 6, 12, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    box-shadow: none;
}
.logo-isotipo {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--morado), var(--morado-claro));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 14px; flex-shrink: 0;
    box-shadow: 0 0 14px rgba(168,85,247,0.55);
}
.nav-link {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem; font-weight: 600;
    transition: color 0.15s ease;
    text-decoration: none;
}
.nav-link:hover, .nav-link-activo { color: #fff; }
.btn-nav-ghost {
    color: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.18);
    padding: 6px 18px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-nav-ghost:hover { color: white; border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.07); }
.btn-nav-solido {
    background: linear-gradient(135deg, var(--morado), var(--morado-claro));
    color: white;
    padding: 6px 18px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(168,85,247,0.45);
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-nav-solido:hover { opacity: 0.9; transform: scale(1.04); box-shadow: 0 0 22px rgba(168,85,247,0.65); }
.footer-vibez {
    background: linear-gradient(90deg, #05000f 0%, #0f172a 100%);
    border-top: 1px solid rgba(124,58,237,0.12);
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero-home {
    background: linear-gradient(160deg, #05000f 0%, #130228 35%, #0a0118 65%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}
/* Orb morado superior izquierda */
.hero-home::before {
    content: '';
    position: absolute;
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(168,85,247,0.22) 0%, transparent 65%);
    top: -160px; left: -120px;
    animation: flotar-orb 11s ease-in-out infinite alternate;
    pointer-events: none;
}
/* Orb rosa inferior derecha */
.hero-home::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.18) 0%, transparent 65%);
    bottom: -80px; right: -60px;
    animation: flotar-orb 8s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}
@keyframes flotar-orb {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(32px, 22px) scale(1.12); }
}

/* Texto del hero con gradiente animado */
.text-gradient-claro {
    background: linear-gradient(135deg, #c084fc 0%, #f0abfc 40%, #ec4899 80%, #c084fc 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-animar 5s ease infinite;
}
@keyframes gradient-animar {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Estrellitas decorativas del hero */
.hero-particula {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-particula-1 { width:7px; height:7px; background:#a855f7; top:22%; left:12%; opacity:0.7; animation: parpadear 3s ease infinite; }
.hero-particula-2 { width:5px; height:5px; background:#ec4899; top:38%; right:18%; opacity:0.6; animation: parpadear 2.5s ease infinite 1s; }
.hero-particula-3 { width:9px; height:9px; background:#c084fc; bottom:28%; left:22%; opacity:0.5; animation: parpadear 4s ease infinite 0.5s; }
.hero-particula-4 { width:5px; height:5px; background:#f0abfc; top:55%; right:12%; opacity:0.7; animation: parpadear 2s ease infinite 1.5s; }
.hero-particula-5 { width:6px; height:6px; background:#818cf8; top:70%; left:40%; opacity:0.5; animation: parpadear 3.5s ease infinite 2s; }
@keyframes parpadear {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%       { opacity: 0.9; transform: scale(1.6); }
}

/* ============================================================
   BARRA DE FILTROS
   ============================================================ */
.barra-filtros {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(124,58,237,0.12);
    box-shadow: 0 4px 24px rgba(124,58,237,0.08);
    position: sticky;
    top: 3.5rem;
    z-index: 40;
    overflow: visible;
}
.filtro-grupo { display: flex; flex-direction: column; gap: 4px; }
.filtro-label {
    font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.11em;
    color: var(--morado); opacity: 0.65; 
}

/* ─── Custom Select (reemplaza el select nativo del navegador) ─── */
.custom-select-wrapper {
    position: relative;
    background: #f7f4ff;
    border: 1.5px solid #ddd6fe;
    border-radius: 10px;
    padding: 8px 36px 8px 14px;
    font-size: 0.875rem; font-weight: 600;
    color: var(--navy); cursor: pointer;
    min-width: 155px;
    transition: border-color 0.15s, box-shadow 0.15s;
    user-select: none; -webkit-user-select: none;
}
.custom-select-wrapper:hover { border-color: rgba(124,58,237,0.5); }
.custom-select-wrapper.abierto {
    border-color: var(--morado);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.13);
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}
.custom-select-display {
    display: block; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.custom-select-arrow {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--morado);
    transition: transform 0.2s ease;
    pointer-events: none;
}
.custom-select-wrapper.abierto .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}
.custom-select-dropdown {
    position: absolute;
    top: 100%; left: -1.5px; right: -1.5px;
    background: white;
    border: 1.5px solid var(--morado);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 36px rgba(124,58,237,0.2);
    z-index: 300;
    overflow: hidden;
    max-height: 220px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #ddd6fe transparent;
}
.custom-select-dropdown::-webkit-scrollbar { width: 4px; }
.custom-select-dropdown::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 99px; }
.custom-select-option {
    padding: 9px 14px;
    font-size: 0.875rem; font-weight: 500;
    color: var(--navy); cursor: pointer;
    transition: background 0.1s, color 0.1s;
    display: flex; align-items: center; gap: 6px;
}
.custom-select-option:hover { background: #f0eeff; color: var(--morado); }
.custom-select-option.seleccionado {
    background: linear-gradient(90deg, #ede9fe, #f5f3ff);
    color: var(--morado); font-weight: 700;
}
.custom-select-option.seleccionado::before { content: '✓'; font-size: 0.72rem; }

/* Botón limpiar filtros */
.btn-limpiar {
    background: transparent;
    border: 1.5px solid #ddd6fe;
    color: var(--morado);
    padding: 8px 16px; border-radius: 10px;
    font-size: 0.8rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-limpiar:hover { background: #ede9fe; border-color: var(--morado); transform: scale(1.02); }

/* ============================================================
   TARJETAS DE EVENTOS
   ============================================================ */
.card-evento {
    background: white;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(124,58,237,0.07);
    display: flex; flex-direction: column;
}
.card-evento:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 48px rgba(124,58,237,0.22), 0 0 0 1.5px rgba(124,58,237,0.12);
}
.card-imagen-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #e0d9ff, #f0e8ff);
}
.card-imagen {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-evento:hover .card-imagen { transform: scale(1.08); }

/* Badges de categoría — color unificado al morado de la app */
.badge-categoria {
    position: absolute; top: 10px; left: 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 4px 10px; border-radius: 999px;
}
.badge-categoria[data-cat] {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

.badge-precio {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg, var(--morado), var(--morado-claro));
    color: white;
    font-size: 0.75rem; font-weight: 800;
    padding: 4px 12px; border-radius: 999px;
    box-shadow: 0 2px 10px rgba(124,58,237,0.45);
}
.badge-gratis {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 2px 10px rgba(5,150,105,0.45);
}

.card-cuerpo {
    padding: 14px 16px 16px;
    flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.card-titulo {
    font-weight: 800; font-size: 0.95rem;
    color: var(--navy); line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex; align-items: center; gap: 5px;
    color: rgba(15,23,42,0.5); font-size: 0.8rem;
}
.icono-meta { width: 13px; height: 13px; flex-shrink: 0; color: var(--morado); }
.card-organizador {
    margin-top: auto; padding-top: 8px;
    border-top: 1px solid #f0eeff;
    font-size: 0.75rem; font-weight: 700;
    color: var(--morado);
}

/* ============================================================
   TARJETAS DE BOLSA DE TRABAJO
   ============================================================ */
.card-trabajo {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
    border: 1.5px solid #ede9fe;
    display: flex; flex-direction: column;
}
.card-trabajo:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 48px rgba(15,23,42,0.14);
    border-color: var(--morado);
}
.card-trabajo-header {
    background: linear-gradient(135deg, #05000f 0%, #1e1035 50%, #2d1b69 100%);
    padding: 22px 18px 18px;
    display: flex; align-items: flex-start; justify-content: space-between;
    position: relative; overflow: hidden;
}
/* Neon glow en el header de tarjeta trabajo */
.card-trabajo-header::before {
    content: '';
    position: absolute;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(168,85,247,0.28) 0%, transparent 70%);
    top: -40px; right: -20px;
    pointer-events: none;
}
.icono-trabajo { width: 36px; height: 36px; color: rgba(196,132,252,0.85); position: relative; }
.badge-trabajo {
    background: linear-gradient(135deg, var(--morado), var(--morado-claro));
    color: white;
    font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.07em;
    padding: 4px 10px; border-radius: 999px;
    position: relative;
    box-shadow: 0 2px 10px rgba(124,58,237,0.45);
}
.card-salario {
    font-size: 0.85rem; font-weight: 800;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 4px;
}

/* ============================================================
   SECCIÓN BOLSA DE TRABAJO — separador visual
   ============================================================ */
.seccion-vibez-titulo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.4rem; font-weight: 900; color: var(--navy);
}
.seccion-vibez-sub {
    font-size: 0.875rem; color: rgba(15,23,42,0.45);
    font-weight: 400; margin-top: 2px; margin-bottom: 20px;
}
.linea-divisora {
    border: none;
    border-top: 2px solid #ede9fe;
    margin: 40px 0 28px;
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
    width: 44px; height: 44px;
    border: 3px solid #ede9fe;
    border-top-color: var(--morado);
    border-right-color: var(--morado-claro);
    border-radius: 50%;
    animation: girar 0.75s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ============================================================
   BOTONES GENÉRICOS
   ============================================================ */
.btn-morado {
    display: inline-block;
    background: linear-gradient(135deg, var(--morado), var(--morado-claro));
    color: white;
    padding: 10px 28px; border-radius: 999px;
    font-weight: 700; font-size: 0.875rem;
    cursor: pointer; border: none;
    box-shadow: 0 4px 18px rgba(124,58,237,0.35);
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-morado:hover { opacity: 0.9; transform: scale(1.04); box-shadow: 0 8px 28px rgba(124,58,237,0.55); }

/* ============================================================
   DETALLE DE EVENTO
   ============================================================ */
.hero-detalle {
    background-size: cover; background-position: center; background-repeat: no-repeat;
    min-height: 420px; position: relative;
}
.hero-detalle-overlay {
    background: linear-gradient(to bottom, rgba(5,0,15,0.55) 0%, rgba(5,0,15,0.88) 100%);
    min-height: 420px;
}
.btn-volver {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem; font-weight: 500;
    text-decoration: none; transition: color 0.15s;
}
.btn-volver:hover { color: white; }
.badge-categoria-hero {
    background: linear-gradient(135deg, var(--morado), var(--morado-claro));
    color: white;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    padding: 4px 14px; border-radius: 999px;
}
.dato-hero {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.85); font-size: 0.9rem;
}
.seccion-detalle {
    background: white; border-radius: 20px; padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.03);
}
.seccion-titulo {
    font-size: 1.1rem; font-weight: 800; color: var(--navy);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px solid #f0eeff;
}
.ficha-dato {
    background: #f7f5ff; border-radius: 12px; padding: 14px 16px;
    display: flex; flex-direction: column; gap: 3px;
}
.ficha-dato-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(15,23,42,0.4);
}
.ficha-dato-valor { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.card-organizador-detalle { display: flex; align-items: flex-start; gap: 16px; }
.logo-empresa {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), #1e1b4b);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.texto-enlace { color: var(--morado); font-weight: 600; text-decoration: none; transition: opacity 0.15s; }
.texto-enlace:hover { opacity: 0.75; }
.ficha-compra {
    background: white; border-radius: 20px; padding: 28px;
    box-shadow: 0 4px 24px rgba(124,58,237,0.1);
    border: 2px solid #ede9fe;
}
.barra-aforo-fondo { background: #ede9fe; border-radius: 999px; height: 6px; overflow: hidden; }
.barra-aforo-relleno {
    height: 100%;
    background: linear-gradient(90deg, var(--morado), var(--morado-claro));
    border-radius: 999px; transition: width 0.5s ease;
}
.barra-aforo-critico { background: linear-gradient(90deg, #dc2626, #ef4444); }
.btn-comprar {
    background: linear-gradient(135deg, var(--morado), var(--morado-claro));
    color: white;
    padding: 14px 24px; border-radius: 14px;
    font-size: 1rem; font-weight: 800;
    cursor: pointer; border: none; width: 100%;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-comprar:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,58,237,0.58); }
.btn-secundario {
    background: transparent;
    border: 2px solid #ddd6fe; color: var(--morado);
    padding: 12px 24px; border-radius: 14px;
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer; text-decoration: none; display: block; text-align: center;
    transition: background 0.15s, border-color 0.15s;
}
.btn-secundario:hover { background: #f7f5ff; border-color: var(--morado); }
.hero-trabajo {
    background: linear-gradient(160deg, #05000f 0%, #1e1b4b 100%);
    min-height: 380px;
}
.ficha-mapa {
    background: white; border-radius: 20px; padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.03);
}

/* ============================================================
   NAVBAR — AVATAR DE USUARIO + DROPDOWN
   ============================================================ */
.nav-avatar-wrapper {
    position: relative;
}
.nav-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: 2px solid rgba(168,85,247,0.55);
    cursor: pointer; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: 0;
}
.nav-avatar:hover, .nav-avatar[aria-expanded="true"] {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168,85,247,0.28);
}
.nav-avatar-img {
    width: 100%; height: 100%; object-fit: cover;
}
.nav-avatar-iniciales {
    color: white; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.02em;
}
.nav-avatar-mood-dot {
    position: absolute; bottom: 1px; right: 1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    border: 2px solid #0f172a;
}

/* Dropdown */
.nav-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px);
    width: 230px;
    background: #0d0a18;
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.15);
    overflow: hidden;
    z-index: 999;
    animation: dropdownEntrar 0.18s ease;
}
@keyframes dropdownEntrar {
    from { opacity:0; transform: translateY(-8px) scale(0.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}
.nav-dropdown-header {
    padding: 14px 16px 12px;
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
}
.nav-dropdown-nombre {
    color: #fff; font-weight: 800; font-size: 0.875rem; margin: 0;
}
.nav-dropdown-email {
    color: rgba(255,255,255,0.55); font-size: 0.72rem; margin: 2px 0 0;
}
.nav-dropdown-mood {
    margin-top: 5px;
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 2px 10px; border-radius: 999px;
}
.nav-dropdown-divider {
    height: 1px; background: rgba(124,58,237,0.2); margin: 0;
}
.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    color: rgba(245,241,234,0.85); font-size: 0.875rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: background 0.12s, color 0.12s;
    background: none; border: none; width: 100%; text-align: left;
}
.nav-dropdown-item svg {
    width: 17px; height: 17px; flex-shrink: 0; color: #a855f7; stroke-width: 2;
}
.nav-dropdown-item:hover { background: rgba(124,58,237,0.18); color: #fff; }
.nav-dropdown-logout {
    color: rgba(248,113,113,0.85) !important;
}
.nav-dropdown-logout svg { color: rgba(248,113,113,0.85) !important; }
.nav-dropdown-logout:hover { background: rgba(220,38,38,0.12) !important; color: #f87171 !important; }

/* ============================================================
   PÁGINA DE PERFIL
   ============================================================ */
.perfil-hero {
    background: linear-gradient(160deg, #05000f 0%, #130228 50%, #0f172a 100%);
    border-bottom: 1px solid rgba(168,85,247,0.15);
}

/* Avatar grande */
.perfil-avatar-wrap {
    position: relative; cursor: pointer; flex-shrink: 0;
}
.perfil-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: 3px solid rgba(168,85,247,0.6);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 28px rgba(168,85,247,0.45);
}
.perfil-avatar img { width: 100%; height: 100%; object-fit: cover; }
.perfil-avatar-iniciales { color: white; font-weight: 900; font-size: 2rem; }
.perfil-avatar-overlay {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0,0,0,0.52);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.perfil-avatar-wrap:hover .perfil-avatar-overlay { opacity: 1; }

/* Tarjetas de sección */
.perfil-card {
    background: white; border-radius: 20px; padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(124,58,237,0.07);
}
.perfil-card-titulo {
    font-size: 1rem; font-weight: 800; color: #0f172a;
    margin-bottom: 4px;
}
.perfil-card-sub {
    font-size: 0.8rem; color: rgba(15,23,42,0.45);
    margin-bottom: 16px;
}

/* Campos del formulario de perfil */
.perfil-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 480px) { .perfil-grid-2 { grid-template-columns: 1fr; } }

.perfil-field {
    display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px;
}
.perfil-field label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(15,23,42,0.45);
}
.perfil-field input,
.perfil-field textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 9px 13px;
    font-size: 0.875rem; color: #0f172a;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit; background: #fafafa;
}
.perfil-field input:focus,
.perfil-field textarea:focus {
    border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
    background: white;
}
.perfil-field-hint { font-size: 0.7rem; color: rgba(15,23,42,0.35); }

/* Alerta del formulario */
.perfil-alerta {
    border-radius: 10px; padding: 10px 14px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 14px;
}
.perfil-alerta-ok    { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.perfil-alerta-error { background: #fef2f2; border: 1.5px solid #fca5a5; color: #991b1b; }

/* Botón guardar */
.btn-perfil-guardar {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white; border: none; border-radius: 999px;
    padding: 10px 26px; font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
    margin-top: 4px;
}
.btn-perfil-guardar:hover { opacity: 0.9; transform: scale(1.03); }
.btn-perfil-guardar:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Alerta de foto (cerca del avatar) */
.perfil-foto-error {
    font-size: 0.75rem; font-weight: 600; color: #991b1b;
    background: #fef2f2; border: 1px solid #fca5a5;
    border-radius: 8px; padding: 5px 10px; margin-top: 18px;
    display: none; text-align: center; max-width: 140px;
}

/* Sección amigos */
.perfil-solicitudes-wrap { margin-top: 16px; }
.perfil-solicitudes-titulo {
    font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(15,23,42,0.45);
    display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.perfil-badge-count {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white; font-size: 0.65rem; font-weight: 900;
    padding: 1px 7px; border-radius: 999px;
}
.perfil-solicitud-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #f0eeff;
}
.perfil-solicitud-item:last-child { border-bottom: none; }
.perfil-solicitud-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    color: white; font-weight: 800; font-size: 0.8rem;
}
.perfil-solicitud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.perfil-btn-aceptar, .perfil-btn-rechazar {
    width: 28px; height: 28px; border-radius: 50%;
    border: none; cursor: pointer; font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s, opacity 0.15s;
}
.perfil-btn-aceptar { background: #22c55e; color: white; }
.perfil-btn-rechazar { background: #ef4444; color: white; }
.perfil-btn-aceptar:hover, .perfil-btn-rechazar:hover { transform: scale(1.12); }

/* Resultados búsqueda amigos */
.perfil-busqueda-lista {
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.perfil-busqueda-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; cursor: default;
    border-bottom: 1px solid #f0eeff; background: white;
    transition: background 0.1s;
}
.perfil-busqueda-item:last-child { border-bottom: none; }
.perfil-busqueda-item:hover { background: #f7f5ff; }
.btn-enviar-solicitud {
    margin-left: auto; flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white; border: none; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    padding: 5px 12px; cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.btn-enviar-solicitud:hover { opacity: 0.88; transform: scale(1.04); }
.btn-enviado { background: #e2e8f0 !important; color: #64748b !important; cursor: default !important; }

/* ============================================================
   PERFIL — Bio en hero
   ============================================================ */
.perfil-bio-hero {
    color: rgba(255,255,255,0.75); font-size: 0.9rem;
    margin-top: 8px; line-height: 1.5; max-width: 480px;
}

/* ============================================================
   PERFIL — Mood en hero (badge grande, visible para todos)
   ============================================================ */
.perfil-mood-hero {
    display: inline-block; margin-top: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px; padding: 5px 14px;
    font-size: 0.9rem; color: white; font-weight: 600;
    backdrop-filter: blur(6px);
}

/* ============================================================
   PERFIL — Botón "Guardar foto" junto al avatar en el hero
   ============================================================ */
.btn-foto-hero {
    display: block; margin-top: 10px;
    font-size: 0.78rem; padding: 7px 18px;
}

/* ============================================================
   PERFIL — Badge "Pública" junto al label de biografía
   ============================================================ */
.perfil-badge-publica {
    display: inline-block; font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white; padding: 1px 7px; border-radius: 999px;
    vertical-align: middle; margin-left: 5px;
}

/* ============================================================
   PERFIL — Selector de mood (grid de chips tipo radio)
   ============================================================ */
.perfil-mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

/* Cada opción de mood es un label que envuelve un radio oculto */
.perfil-mood-opcion {
    display: flex; align-items: center; gap: 6px;
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: 8px 12px; cursor: pointer; background: #fafafa;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-size: 0.82rem; font-weight: 600; color: #0f172a;
    user-select: none;
}
/* Ocultamos el radio nativo; el estilo lo da el label */
.perfil-mood-opcion input[type="radio"] { display: none; }

.perfil-mood-opcion:hover {
    border-color: #a855f7;
    background: #f7f5ff;
}

/* Opción seleccionada actualmente */
.perfil-mood-activo {
    border-color: #7c3aed !important;
    background: #f0eeff !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
    color: #6d28d9;
}

/* ============================================================
   NAVBAR — Badge de mood flotante sobre el avatar
   ============================================================ */
.nav-mood-badge {
    position: absolute;
    bottom: -3px; right: -3px;
    width: 22px; height: 22px;
    background: white;
    border-radius: 50%;
    border: 2px solid rgba(124,58,237,0.35);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; line-height: 1;
    cursor: default; pointer-events: none;
}

/* ============================================================
   NAVBAR DROPDOWN — línea de mood debajo del email
   ============================================================ */
.nav-dropdown-mood {
    font-size: 0.78rem; color: #7c3aed; font-weight: 600;
    margin-top: 3px; margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — welcome.blade.php
   ============================================================ */

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
    .nav-logo-img { height: 40px; }

    /* Hero: padding reducido */
    .hero-home::before,
    .hero-home::after { opacity: 0.12; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
    .nav-logo-img { height: 36px; }

    /* Ocultar orbs decorativos para rendimiento en mobile */
    .shape-1, .shape-2, .shape-3 { display: none; }

    /* Perfil-mood grid: 2 columnas en vez de auto-fill */
    .perfil-mood-grid { grid-template-columns: 1fr 1fr; }
}
