/* ============================================
   AVISOS.ONLINE - Common Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --header-height: 70px;
    --max-width: 1200px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Dark Mode */
.dark-mode {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: #1e3a5f;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
}

/* Header */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--primary-color);
}

/* Navigation */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-primary-nav {
    background: var(--primary-color);
    color: white !important;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
}

.btn-primary-nav:hover {
    background: var(--primary-hover);
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: 6px;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.dropdown-content a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4px 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: block; }
    .main-nav .nav-list {
        flex-direction: column;
        padding: 12px;
        gap: 2px;
    }
    .nav-dropdown:hover .dropdown-content {
        display: none;
    }
    .nav-dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }
    .nav-dropdown.open .dropdown-content {
        display: block;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 0;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.dark-mode .alert-success {
    background: #064e3b;
    color: #a7f3d0;
    border-color: #065f46;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dark-mode .alert-error {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

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

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input[type="text"].with-icon,
.form-group input[type="email"].with-icon,
.form-group input[type="password"].with-icon,
.form-group input[type="number"].with-icon,
.form-group input[type="tel"].with-icon {
    padding-left: 2.25rem;
}

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

.input-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

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

@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 40px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Hero Section */
.hero {
    height: 500px;
    background: linear-gradient(135deg, #ffc107 0%, #ff5722 100%);  /* 2563eb 7c3aed */
    background-image: url(/media/bg.jpg);
    background-size: cover;
    color: white;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

/*
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid #ffffff33;
  background: rgba(255, 255, 255, 0.06);
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
*/
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-highlight {
    color: #fcd34d;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
}

.glow {
    box-shadow: 0px 0px 10px #ffffff99;
    border: 1px solid #ffffff44;
}

.hero-publish a {
    font-size: 1rem;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 24px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 4px;
    box-shadow: var(--shadow-lg);
}

.search-icon {
    margin: 0 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 8px;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-cat-chip {
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.hero-cat-chip:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

@media (max-width: 640px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 40px 0; }
}

/* Section */
.section {
    padding: 48px 0;
}

.section-alt {
    background: var(--bg-primary);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Ad Cards Grid */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 480px) {
    .ads-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .ads-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .ads-grid { grid-template-columns: repeat(4, 1fr); }
}

.aviso-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.aviso-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.aviso-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.aviso-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aviso-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.aviso-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.aviso-badge-featured {
    background: var(--warning-color);
    color: #1a1a1a;
}

.aviso-badge-inactive {
    background: var(--danger-color);
    color: white;
}

.aviso-card-body {
    padding: 12px 14px;
}

.aviso-card-category {
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aviso-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aviso-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 6px 0;
}

.aviso-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.aviso-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Category Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

.cat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.cat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cat-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.cat-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cat-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, #ffc107, #ff5722);  /* 2563eb 7c3aed */
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 24px;
}

/* Footer */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 200px;
}

.social-link svg {
    width: 24px;
    height: 24px;
/*    border-radius: 50%;*/
/*    background: var(--bg-tertiary);*/
}

.social-link h5 {
    margin-left: 5px;
    line-height: 1rem;
    font-weight: 500;
}

.footer-social a {
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer-social a:hover {
}

.footer-social svg:hover {
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-tagline {
    margin-top: 16px;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    z-index: 50;
    transition: all 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.sun-icon { display: block; }
.moon-icon { display: none; }

.dark-mode .sun-icon { display: none; }
.dark-mode .moon-icon { display: block; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 24px 0;
}

/* Ad List (horizontal) */
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aviso-list-item {
    display: flex;
    gap: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.aviso-list-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.aviso-list-image {
    width: 180px;
    min-height: 140px;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.aviso-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aviso-list-body {
    flex: 1;
    padding: 14px 16px 14px 0;
}

.aviso-list-category {
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.aviso-list-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 4px 0;
}

.aviso-list-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 4px 0;
}

.aviso-list-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aviso-list-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .aviso-list-item { flex-direction: column; }
    .aviso-list-image {
        width: 100%;
        height: 180px;
    }
    .aviso-list-body { padding: 12px; }
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 40px 0;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-form {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 16px;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.error-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-content h2 {
    margin-bottom: 20px;
}

/* Utility */
.text-muted {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aviso-card, .cat-card {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
