/*
 * Custom Styles - Anuncios.com
 * Modern, Sexy & Premium Design
 * Updated: 2026
 */

/* ========================================
   CSS Variables - Sexy Color Palette
   ======================================== */
:root {
    /* Background colors - Neutral warm tones for image-centric design */
    --bg-color: #FAFAF8;
    --bg-secondary: #fff;
    --bg-tertiary: #F3F2F0;
    --bg-card: #ffffff;

    /* Text colors */
    --text-color: #1D1B20;
    --text-muted: #5F5868;
    --text-light: #49454F;

    /* Accent colors */
    --accent-rose: #ff4d7a;

    /* Accent - Red palette matching backend */
    --primary: #e6295f;
    --primary-light: #ff6b9d;
    --primary-dark: #c41e4f;
    --secondary: #ff8fab;
    --accent: #E8E6E3;
    --gold: #D4A862;
    --purple: #e6295f;
    --purple-light: #ffb3c6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e6295f 0%, #ff6b9d 50%, #ff8fab 100%);
    --gradient-hot: linear-gradient(135deg, #e6295f 0%, #ff4d6d 50%, #ff6b9d 100%);
    --gradient-sexy: linear-gradient(135deg, #c41e4f 0%, #e6295f 50%, #ff6b9d 100%);
    --gradient-gold: linear-gradient(135deg, #D4A862 0%, #E2BF7A 50%, #F0D9A8 100%);
    --gradient-dark: linear-gradient(180deg, #fff 0%, #FAFAF8 100%);
    --gradient-header: linear-gradient(135deg, #1C1C28 0%, #2D1520 50%, #1C1C28 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(230, 41, 95, 0.03) 0%, transparent 70%);

    /* Borders */
    --border-color: #E8E6E3;
    --border-glow: rgba(230, 41, 95, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10);
    --shadow-glow: 0 0 30px rgba(230, 41, 95, 0.15);
    --shadow-glow-sm: 0 0 15px rgba(230, 41, 95, 0.10);
    --shadow-gold: 0 0 20px rgba(212, 168, 98, 0.25);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Ficha page variables */
    --btn-color: #e6295f;
    --btn-over-color: #c41e4f;
    --highlight: #F3F2F0;
    --highlight-border: #E8E6E3;
    --header-gradient-start: #1C1C28;
    --header-gradient-end: #e6295f;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    background-image: var(--gradient-glow);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

b, strong {
    font-weight: 600;
    color: var(--text-color);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Sofia Sans Condensed", "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.6rem;
    padding-bottom: 0.75rem;
    margin-top: 2.5rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

h3 {
    font-size: 1.3rem;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

a:hover {
    text-decoration: none;
    color: var(--primary);
}

/* ========================================
   Header - Logo Bar
   ======================================== */
.header-logo {
    background: var(--gradient-header);
    padding: 16px 24px;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    --bs-gutter-x: 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.header-logo::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: white !important;
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.logo-mark {
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    line-height: 1;
}

.logo-word-accent {
    font-weight: 700;
    color: var(--purple-light);
}

/* Header navigation */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.btn-nav {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.btn-nav:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-nav-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    box-shadow: var(--shadow-glow-sm);
}

.btn-nav-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px) scale(1.02);
}

.btn-nav i {
    font-size: 1rem;
}

.fav-counter {
    background: var(--accent-rose);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    font-weight: 700;
}

/* ========================================
   Header - Search Form
   ======================================== */
.header-form {
    background: var(--bg-secondary);
    padding: 28px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    --bs-gutter-x: 0;
    position: relative;
    z-index: 10;
}

.header-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.form-control,
.form-select {
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    color: var(--text-color);
    transition: all var(--transition-fast);
    height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 41, 95, 0.12);
    outline: none;
    background-color: var(--bg-tertiary);
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2379747E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select option {
    background-color: #ffffff;
    background-image: none;
    color: #1D1B20;
    padding: 8px 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--bg-tertiary);
}

.form-check-input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(230, 41, 95, 0.12);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-light);
}

/* Age selects */
.edad {
    width: calc(50% - 4px);
    float: left;
}

.edad:first-of-type {
    margin-right: 8px;
}

/* Verificados checkbox */
.verificados {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   Search Form Styles
   ======================================== */
.search-form .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-form .form-label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.search-form .form-select-sm,
.search-form .form-control-sm {
    padding: 10px 14px;
    font-size: 0.8rem;
}

.search-form .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

.search-form .btn-outline-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.search-form .btn-link {
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--text-muted);
}

.search-form .btn-link:hover {
    color: var(--primary) !important;
}

/* Quick filters bar */
.quick-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.quick-filters-group {
    display: inline-flex;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.quick-filters-sep {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

.qf-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.qf-pill:hover {
    color: var(--text-color);
    background: rgba(0,0,0,0.04);
}

.qf-pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(230, 41, 95, 0.3);
}

.qf-pill i {
    font-size: 0.7rem;
}

.qf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.qf-toggle:hover {
    border-color: var(--primary);
    color: var(--text-color);
}

.qf-toggle.active {
    background: rgba(230, 41, 95, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.qf-toggle.active i {
    color: var(--primary);
}

.qf-toggle.qf-online i {
    font-size: 0.5rem;
    color: #22c55e;
}

.qf-toggle.qf-online.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #16a34a;
}

.qf-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.qf-more:hover {
    color: var(--primary);
}

.qf-more[aria-expanded="true"] {
    color: var(--primary);
}

@media (max-width: 767px) {
    .quick-filters {
        gap: 5px;
    }
    .quick-filters-sep {
        display: none;
    }
    .qf-pill {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
    .qf-toggle {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
}

#filtrosAvanzados {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

/* ========================================
   Buttons - Sexy Gradients
   ======================================== */
.btn {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.main-button {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-sm);
}

.main-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.main-button:active {
    transform: translateY(-1px);
}

/* Secondary button */
.btn-secondary-custom {
    background: var(--gradient-sexy);
    color: white;
    box-shadow: 0 0 20px rgba(230, 41, 95, 0.2);
}

.btn-secondary-custom:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(230, 41, 95, 0.3);
}

/* ========================================
   Cards - Target styles
   ======================================== */
.target,
.target-ads {
    padding: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.target::before,
.target-ads::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.target:hover,
.target-ads:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), var(--shadow-glow-sm);
    transform: translateY(-2px);
}

.target:hover::before,
.target-ads:hover::before {
    opacity: 1;
}

.target a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
    transition: all var(--transition-fast);
}

.target a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.target hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 14px 0;
    opacity: 0.4;
}

/* Provincia cards */
.provincia-card {
    height: 100%;
}

.provincia-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.provincia-header i {
    color: var(--primary);
    font-size: 1.1rem;
}

.provincia-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.provincia-links a {
    font-size: 0.85rem;
    padding: 6px 0;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.provincia-links a:hover {
    color: var(--primary);
    padding-left: 12px;
}

.provincia-more {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Highlighted cards - Premium/Destacado */
.target-ads-highlight {
    padding: 24px;
    border: 1px solid rgba(212, 168, 98, 0.35);
    background: linear-gradient(145deg, rgba(212, 168, 98, 0.06) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md), 0 0 24px rgba(212, 168, 98, 0.18);
    position: relative;
    overflow: hidden;
}

.target-ads-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.target-ads-highlight::after {
    content: "★ DESTACADO";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #D4A862, #C49A52);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 1.2px;
    box-shadow: 0 2px 8px rgba(212, 168, 98, 0.3);
}

/* ========================================
   Ad Card Styles in Listing
   ======================================== */
.list-ads .ad-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.list-ads .ad-card-link:hover {
    text-decoration: none;
}

.list-ads .ad-card-link:hover .target-ads,
.list-ads .ad-card-link:hover .target-ads-highlight {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow-sm);
}

.ad-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-age {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-right: 10px;
}

.ad-nationality {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.ad-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 10px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-location i {
    color: var(--primary);
}

/* No results */
.no-results {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.no-results i {
    color: var(--primary);
    opacity: 0.5;
}

/* Pagination */
.pagination {
    gap: 6px;
}

.pagination .page-link {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow-sm);
}

/* ========================================
   Image Cards
   ======================================== */
.target-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.target-img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

/* Gallery links */
a[data-fancybox] {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

a[data-fancybox]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 1;
}

a[data-fancybox]:hover::before {
    opacity: 1;
}

a[data-fancybox]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Featured card links */
.featured-card {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.featured-info {
    padding: 8px 4px 0;
}

.featured-info strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.15) 30%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-md);
}

.featured-card:hover::after {
    opacity: 1;
}

.featured-card:hover .target-img {
    transform: scale(1.08);
}

/* Placeholder card */
.placeholder-card {
    background: var(--bg-tertiary);
    cursor: default;
}

.placeholder-card::after {
    display: none;
}

.placeholder-card .target-img {
    opacity: 0.4;
}

/* Gallery grid */
.gallery-grid {
    margin-bottom: 1rem;
}

.gallery-item {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.gallery-item::before {
    content: "\F52D";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 1.8rem;
    z-index: 2;
    transition: transform var(--transition-fast);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover .target-img {
    transform: scale(1.08);
}

/* ========================================
   Tags List
   ======================================== */
.tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags li {
    float: none;
    line-height: 1;
    padding: 0;
}

.tags li a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.tags li a:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-sm);
}

.tags li a.target {
    padding: 10px 20px;
    border-radius: var(--radius-xl);
}

/* Services list variant */
.services-list li a {
    background: linear-gradient(145deg, rgba(230, 41, 95, 0.06) 0%, var(--bg-tertiary) 100%);
    border-color: rgba(230, 41, 95, 0.12);
}

.services-list li a:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

/* Icon colors */
.text-warning {
    color: var(--gold) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* ========================================
   Content Sections
   ======================================== */
.container {
    max-width: 1200px;
}

section {
    margin-bottom: 2.5rem;
}

section.banner {
    margin-top: 2.5rem;
}

/* Content cards for home text */
.home-content {
    margin-top: 2.5rem;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.content-card:hover::before {
    opacity: 1;
}

.content-card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--text-color);
}

.content-card p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Location display */
.location {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.location i {
    color: var(--primary);
}

/* Notice/Price display */
.notice {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Publication date */
.fecha-publi {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================================
   Ad Detail Page
   ======================================== */
.ad-detail {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.main-photo {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-contact .btn {
    font-size: 1rem;
    padding: 14px 24px;
}

.btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Info list */
.info-list {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
}

.info-value {
    color: var(--text-light);
}

/* Ad description */
.ad-description {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 4px solid var(--primary);
    position: relative;
}

.ad-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.ad-description p {
    margin-bottom: 0;
    line-height: 1.9;
}

/* ========================================
   Telephone Section
   ======================================== */
.telf p {
    font-size: 1rem;
    text-align: right;
}

.telf p a {
    margin-right: 30px;
    color: var(--text-color);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.telf p a:hover {
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
footer {
    width: 100%;
    background: var(--gradient-header);
    color: white;
    margin-top: 5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.footer {
    --bs-gutter-x: 0;
    display: flex;
    flex-wrap: wrap;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

.linksFooter {
    text-align: center;
}

.linksFooter a {
    color: white;
    padding: 0 16px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    position: relative;
}

.linksFooter a:hover {
    color: var(--primary);
}

.linksFooter a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.linksFooter a:hover::after {
    width: 80%;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ========================================
   Age Verification Dialog
   ======================================== */
#dialog-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#dialog-content .background-dark {
    background: var(--gradient-header);
    position: relative;
}

#dialog-content .background-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.disclaimer-content {
    padding: 2.5rem;
}

.disclaimer-content p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.disclaimer-content b {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.disclaimer-gray {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

#dialog-content input[type="button"] {
    padding: 14px 56px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#dialog-content #si {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-sm);
}

#dialog-content #si:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

#dialog-content #no {
    background: var(--bg-tertiary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

#dialog-content #no:hover {
    background: var(--bg-color);
    border-color: var(--text-muted);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

/* Spacing helpers */
.tl-3 {
    padding-right: 3px;
}

.tl {
    padding-right: 25px;
}

.tr {
    padding-left: 25px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 991px) {
    .header-form .row {
        gap: 12px 0;
    }

    h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 0.85rem;
    }

    .header-logo {
        padding: 14px 16px;
        text-align: center;
    }

    .header-logo .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }

    .logo {
        justify-content: center;
    }

    .header-form {
        padding: 24px 16px;
    }

    .header-form .row {
        gap: 14px 0;
    }

    .edad {
        width: 100%;
        margin-bottom: 8px;
    }

    .edad:first-of-type {
        margin-right: 0;
    }

    .tl,
    .tr {
        padding: 12px;
        margin: auto;
    }

    .target,
    .target-ads,
    .target-ads-highlight {
        padding: 18px;
        margin: auto;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }

    .main-button {
        width: 100%;
        padding: 14px 24px;
    }

    footer {
        margin-top: 3rem;
        padding: 2rem 0;
    }

    .linksFooter a {
        display: inline-block;
        padding: 10px;
    }

    .fecha-publi {
        text-align: left;
        margin-top: 12px;
    }
}

@media (max-width: 575px) {
    .logo-img {
        height: 34px;
    }

    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .header-logo .text-right {
        text-align: center !important;
        font-size: 0.8rem;
    }

    .header-nav {
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .btn-nav {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .verificados {
        justify-content: center;
    }

    .tags {
        justify-content: center;
    }

    .target-ads-highlight::after {
        font-size: 0.5rem;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */
.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0 4px;
    font-size: 0.82rem;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav .breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 0.7rem;
}

.breadcrumb-nav span:last-child {
    color: var(--text-color);
    font-weight: 500;
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .scroll-top {
        bottom: 90px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-glow-sm);
    }
    50% {
        box-shadow: var(--shadow-glow);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.container section {
    animation: fadeIn 0.5s ease-out;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Selection color */
::selection {
    background-color: rgba(230, 41, 95, 0.2);
    color: var(--text-color);
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--purple) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--purple-light) 100%);
}

/* ========================================
   Agency Badge - Anunciante Tipo
   ======================================== */
.ad-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.ad-badge-agency {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--gradient-sexy);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(230, 41, 95, 0.25);
}

.ad-badge-agency i {
    font-size: 0.7rem;
}

/* Badge independiente */
.ad-badge-independiente {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

/* Verified badge */
.ad-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ========================================
   Special Effects
   ======================================== */

/* Glow effect on hover for special elements */
.glow-on-hover {
    transition: all var(--transition-fast);
}

.glow-on-hover:hover {
    box-shadow: var(--shadow-glow);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Neon border effect */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.neon-border:hover::before {
    opacity: 1;
    filter: blur(8px);
}

/* ========================================
   Tags relacionados
   ======================================== */
.tags-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--highlight-border);
}

.tags-section h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--text-color);
}

.tags-section h2 i {
    color: var(--primary);
}

/* ========================================
   Quick Categories - Home
   ======================================== */
.quick-categories {
    margin-bottom: 1.5rem;
}

.quick-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.quick-cat-btn i {
    font-size: 1.1rem;
    color: var(--primary);
}

.quick-cat-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-cat-btn:hover i {
    color: #fff;
}

@media (max-width: 768px) {
    .quick-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .quick-cat-btn {
        padding: 12px 14px;
        font-size: 0.8rem;
    }
}

/* ========================================
   Tags Grid
   ======================================== */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tag-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.tag-link i {
    font-size: 0.75rem;
    opacity: 0.6;
}

.tag-link:hover i {
    opacity: 1;
}

/* Links en datos de ficha */
.info-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--primary-light);
    transition: all var(--transition-fast);
}

.info-link:hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

/* ========================================
   Verified Badge
   ======================================== */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-badge i {
    font-size: 0.75rem;
}

/* ========================================
   Price Badge
   ======================================== */
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--accent);
}

/* ========================================
   Photo Count Badge
   ======================================== */
.photo-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

/* Online indicator */
.online-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #22c55e;
    font-size: 0.55rem;
    background: rgba(0,0,0,0.5);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Online filter button */
.online-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.online-filter-btn i {
    font-size: 0.5rem;
    color: #22c55e;
}

.online-filter-btn:hover {
    border-color: #22c55e;
    color: var(--text-color);
}

.online-filter-btn.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #16a34a;
}

.ad-card-wrapper {
    position: relative;
}

/* Fix: row inside card has negative margins that cause overlap between adjacent cards */
.ad-card-link > .row.target-ads,
.ad-card-link > .row.target-ads-highlight {
    --bs-gutter-x: 0;
}

.ad-card-link > .row > [class*="col-"]:first-child {
    padding-right: 16px;
}

.target-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* ========================================
   Favorite Button
   ======================================== */
.favorite-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
}

.favorite-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.favorite-btn.active i::before {
    content: "\f415";
}

/* ========================================
   Sort & View Controls Bar
   ======================================== */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--highlight-border);
}

.controls-bar .sort-select {
    border: 1px solid var(--highlight-border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.85rem;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-toggle button {
    background: var(--bg-color);
    border: 1px solid var(--highlight-border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-toggle button.active,
.view-toggle button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   Compact Card View
   ======================================== */
.list-ads.view-small .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

.list-ads.view-small .target-ads,
.list-ads.view-small .target-ads-highlight {
    padding: 8px !important;
}

.list-ads.view-small .col-4 {
    flex: 0 0 80px;
    max-width: 80px;
}

.list-ads.view-small .ad-title {
    font-size: 0.9rem;
}

.list-ads.view-small .ad-text {
    display: none;
}

.list-ads.view-small .photo-count {
    display: none;
}

.list-ads.view-small .favorite-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

/* ========================================
   SEO Text Section
   ======================================== */
.seo-text {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 30px;
    border: 1px solid var(--highlight-border);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
}

.seo-text h2 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.seo-text p {
    margin-bottom: 8px;
}

/* Texto libre (WYSIWYG) */
.texto-libre-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
}

.texto-libre-section h3,
.texto-libre-section h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.texto-libre-section p {
    margin-bottom: 10px;
}

.texto-libre-section a {
    color: var(--primary);
}

/* ========================================
   Popular Tags (Home)
   ======================================== */
.popular-tags {
    padding: 30px 0;
}

.popular-tags h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.popular-tags .tags-grid {
    justify-content: center;
}
