/* ========================================================
   LA GACETA DE NICOLÁS ROMERO - SISTEMA DE DISEÑO MODERNO
   ======================================================== */

:root {
    --brand-dark: #09131e;
    --brand-nav: #0f172a;
    --brand-primary: #0284c7;
    --brand-accent: #38bdf8;
    --brand-emerald: #059669;
    --brand-emerald-hover: #047857;
    --surface-bg: #f8fafc;
    --card-border: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--surface-bg);
    line-height: 1.5;
}

h1, h2, h3, h4, .brand-title {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Top Announcement */
.top-announcement-bar {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navbar */
.bg-brand-dark {
    background-color: var(--brand-nav) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hover-text-white:hover {
    color: #ffffff !important;
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    transition: all 0.25s ease;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Hero Section */
.hero-gradient-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero-gradient-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.badge-location-pill {
    background: rgba(56, 189, 248, 0.15);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

/* Search Bar */
.search-container-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.search-container-modern .form-control {
    border: none;
    font-size: 1.05rem;
}

.search-container-modern .form-control:focus {
    box-shadow: none;
}

/* Category Filter Pills */
.pill-category {
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.pill-category:hover, .pill-category.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* Modern Classified Cards */
.card-anuncio-modern {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-anuncio-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.badge-match-shield {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.price-tag-emerald {
    color: var(--brand-emerald);
    font-weight: 800;
    font-size: 1.15rem;
}

/* Truncate helpers */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Footer Modern */
.footer-modern {
    background: var(--brand-dark);
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}
