/* Paleta de Colores Moderna y Radical */
:root {
    --bg-deep: #090a0f;       /* Fondo oscuro profundo */
    --bg-surface: #141622;    /* Superficie de tarjetas */
    --bg-surface-glow: #1d2032;
    --accent-neon: #a855f7;    /* Púrpura eléctrico */
    --accent-cyan: #06b6d4;    /* Neón Cyan */
    --accent-green: #10b981;   /* Esmeralda */
    --text-main: #f3f4f6;      /* Blanco roto de alta lectura */
    --text-muted: #9ca3af;     /* Gris para secundarios */
    --border-glow: rgba(168, 85, 247, 0.15);
    --border-flat: #24283e;
    --radius-lg: 20px;
    --radius-md: 12px;
    --font-modern: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Resets & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-modern);
    font-size: 14px;
    letter-spacing: -0.01em;
    padding-bottom: 40px;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP BAR (Elegante, compacta y semi-transparente) */
.top-bar {
    background-color: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-flat);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Joven y Fuerte */
.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    text-transform: lowercase;
    letter-spacing: -2px;
}
.logo span {
    color: var(--accent-neon);
}

/* Buscador Estilo Cápsula */
.search-form-modern {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-flat);
    border-radius: 30px;
    padding: 2px 6px 2px 14px;
    width: 55%;
    max-width: 320px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-form-modern:focus-within {
    border-color: var(--accent-neon);
    box-shadow: 0 0 15px var(--border-glow);
}
.search-input-modern {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.85rem;
    width: 100%;
}
.search-input-modern::placeholder { color: #4b5563; }
.search-btn-modern {
    background: var(--bg-surface-glow);
    color: var(--text-muted);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.search-btn-modern:hover { color: var(--accent-cyan); }

/* MENÚ STORIES / MINIATURAS (Look de Red Social) */
.shortcut-menu {
    padding: 16px 0;
    margin-bottom: 24px;
}
.menu-track {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 20px;
}
/* Ocultar barra de scroll estéticamente */
.menu-track::-webkit-scrollbar { display: none; }

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    transition: color 0.2s;
}
.menu-item span { margin-top: 6px; }

.thumb-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-flat);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.menu-item:hover .thumb-circle, .menu-item.active .thumb-circle {
    transform: translateY(-2px);
    border-color: var(--accent-neon);
    box-shadow: 0 4px 12px var(--border-glow);
}
.menu-item:hover, .menu-item.active { color: var(--text-main); }

/* GRID DE TARJETAS TIPO DASHBOARD */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.card-modern {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-flat);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.card-modern h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Efecto de Punto de Actividad parpadeando */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* LISTAS DENTRO DE LAS TARJETAS */
.item-list { list-style: none; }
.item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.03);
}
.item-list li:last-child { border-bottom: none; }
.item-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.item-list a:hover { color: var(--accent-cyan); }

/* Badges e Indicadores Modernos */
.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--bg-surface-glow);
    color: var(--accent-neon);
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.distance {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ELEMENTO OPINIONES DESTACADAS */
.featured-opinion {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}
.opinion-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}
.opinion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.community-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.like-pill {
    background: var(--bg-surface-glow);
    color: var(--text-main);
    border: 1px solid var(--border-flat);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.like-pill:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-neon);
}

/* CTA INTERACTIVO DE CREACIÓN */
.cta-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #141622 100%);
    border-color: rgba(168, 85, 247, 0.2);
    justify-content: space-between;
}
.cta-content h2 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text-main); }
.cta-content p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; line-height: 1.5; }

/* Botones en Degradé Neón */
.btn-gradient {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--accent-neon), #7c3aed);
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

/* Footer Minimalista */
.main-footer { text-align: center; padding: 40px 0; color: #374151; font-size: 0.75rem; font-weight: 600; }

/* Mobile Adaptabilidad */
@media (max-width: 480px) {
    .home-grid { grid-template-columns: 1fr; gap: 14px; }
    .search-form-modern { width: 50%; }
}