/* ============================================================
   TODOS COMPRAN — Design System v2
   Paleta extraída del logo oficial
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* ── Marca ─────────────────────────────────── */
    --tc-blue:          #1B55B4;   /* azul principal del logo */
    --tc-blue-dark:     #143E87;
    --tc-blue-light:    #EEF4FF;
    --tc-orange:        #F57C20;   /* naranja acento del logo */
    --tc-orange-dark:   #D4620E;
    --tc-orange-light:  #FFF3E8;

    /* ── Neutros ────────────────────────────────── */
    --tc-gray-50:       #F8FAFC;
    --tc-gray-100:      #F1F5F9;
    --tc-gray-200:      #E2E8F0;
    --tc-gray-400:      #94A3B8;
    --tc-gray-600:      #475569;
    --tc-gray-800:      #1E293B;
    --tc-gray-900:      #0F172A;

    /* ── Semánticos ─────────────────────────────── */
    --tc-success:       #059669;
    --tc-success-light: #ECFDF5;
    --tc-danger:        #DC2626;
    --tc-danger-light:  #FEF2F2;
    --tc-warning:       #D97706;
    --tc-warning-light: #FFFBEB;
    --tc-info:          #0284C7;
    --tc-info-light:    #E0F2FE;

    /* ── Superficies ────────────────────────────── */
    --tc-bg:            #F2F5FA;
    --tc-surface:       #FFFFFF;
    --tc-border:        #E2E8F0;
    --tc-border-focus:  var(--tc-blue);

    /* ── Tipografía ─────────────────────────────── */
    --tc-font:          'Inter', 'Segoe UI', system-ui, sans-serif;

    /* ── Efectos ────────────────────────────────── */
    --tc-shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --tc-shadow:        0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --tc-shadow-md:     0 8px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
    --tc-shadow-lg:     0 20px 40px rgba(0,0,0,.12);
    --tc-radius-sm:     8px;
    --tc-radius:        12px;
    --tc-radius-lg:     16px;
    --tc-radius-xl:     24px;
    --tc-transition:    .2s cubic-bezier(.4,0,.2,1);
}

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

html {
    font-size: 14px;
    scroll-behavior: smooth;
}
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: var(--tc-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tc-gray-800);
    background-color: var(--tc-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a {
    color: var(--tc-blue);
    text-decoration: none;
    transition: color var(--tc-transition);
}
a:hover { color: var(--tc-blue-dark); }

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

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--tc-gray-900);
    letter-spacing: -.02em;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    font-family: var(--tc-font);
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: var(--tc-radius-sm);
    transition: all var(--tc-transition);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.btn:focus-visible {
    outline: 3px solid rgba(27,85,180,.35);
    outline-offset: 2px;
}

/* Primario */
.btn-primary {
    background: var(--tc-blue);
    border-color: var(--tc-blue);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--tc-blue-dark);
    border-color: var(--tc-blue-dark);
    box-shadow: 0 4px 12px rgba(27,85,180,.35);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Outline primario */
.btn-outline-primary {
    color: var(--tc-blue);
    border-color: var(--tc-blue);
}
.btn-outline-primary:hover {
    background: var(--tc-blue);
    border-color: var(--tc-blue);
}

/* Naranja (CTA principal) */
.btn-orange, .btn-publicar {
    background: var(--tc-orange);
    border-color: var(--tc-orange);
    color: #fff;
    font-weight: 700;
    padding: .55rem 1.6rem;
    border-radius: 50px;
}
.btn-orange:hover, .btn-publicar:hover, .btn-publicar:focus {
    background: var(--tc-orange-dark);
    border-color: var(--tc-orange-dark);
    color: #fff;
    box-shadow: 0 6px 16px rgba(245,124,32,.40);
    transform: translateY(-2px);
}
.btn-orange:active, .btn-publicar:active { transform: translateY(0); }

/* Secundario */
.btn-secondary {
    background: var(--tc-gray-100);
    border-color: var(--tc-gray-200);
    color: var(--tc-gray-800);
}
.btn-secondary:hover {
    background: var(--tc-gray-200);
    border-color: var(--tc-gray-200);
    color: var(--tc-gray-800);
}

/* Light (usado en iconos flotantes) */
.btn-light {
    background: rgba(255,255,255,.92);
    border-color: var(--tc-border);
    color: var(--tc-gray-800);
    backdrop-filter: blur(4px);
}
.btn-light:hover {
    background: #fff;
    border-color: var(--tc-gray-400);
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-control, .form-select {
    font-family: var(--tc-font);
    border: 1.5px solid var(--tc-border);
    border-radius: var(--tc-radius-sm);
    padding: .6rem .9rem;
    color: var(--tc-gray-800);
    background-color: var(--tc-surface);
    transition: border-color var(--tc-transition), box-shadow var(--tc-transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--tc-blue);
    box-shadow: 0 0 0 3px rgba(27,85,180,.12);
    outline: none;
}
.form-control::placeholder { color: var(--tc-gray-400); }

.form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--tc-gray-600);
    margin-bottom: .4rem;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.tc-header {
    background-color: var(--tc-surface);
    box-shadow: 0 1px 0 var(--tc-border), var(--tc-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(8px);
}

/* Logo */
.tc-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.tc-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}
.tc-logo:hover { opacity: .85; }

/* Barra de búsqueda */
.tc-search-bar {
    position: relative;
    width: 100%;
    max-width: 560px;
}
.tc-search-input {
    width: 100%;
    padding: .7rem 3.2rem .7rem 1.1rem;
    border: 1.5px solid var(--tc-border);
    border-radius: 50px;
    font-family: var(--tc-font);
    font-size: .95rem;
    background: var(--tc-gray-50);
    color: var(--tc-gray-800);
    transition: all var(--tc-transition);
    appearance: none;
}
.tc-search-input:focus {
    outline: none;
    border-color: var(--tc-blue);
    background: var(--tc-surface);
    box-shadow: 0 0 0 3px rgba(27,85,180,.12);
}
.tc-search-input::placeholder { color: var(--tc-gray-400); }

.tc-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--tc-blue);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--tc-transition);
    font-size: 1rem;
}
.tc-search-btn:hover {
    background: var(--tc-blue-dark);
    box-shadow: 0 2px 8px rgba(27,85,180,.35);
}

/* Badge de localidad */
.tc-localidad-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    background-color: var(--tc-gray-50);
    border-radius: 50px;
    color: var(--tc-gray-800);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--tc-transition);
    border: 1.5px solid var(--tc-border);
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-localidad-badge:hover {
    border-color: var(--tc-blue);
    background: var(--tc-blue-light);
    color: var(--tc-blue);
}
.tc-localidad-badge i { color: var(--tc-orange); flex-shrink: 0; }

/* Nav links */
.tc-header .nav-link {
    font-weight: 500;
    color: var(--tc-gray-600);
    padding: .5rem .75rem;
    border-radius: var(--tc-radius-sm);
    transition: all var(--tc-transition);
}
.tc-header .nav-link:hover { color: var(--tc-blue); background: var(--tc-blue-light); }
.tc-header .dropdown-menu {
    border: 1.5px solid var(--tc-border);
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow-md);
    padding: .5rem;
}
.tc-header .dropdown-item {
    border-radius: var(--tc-radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--tc-gray-700);
    padding: .5rem .75rem;
    transition: all var(--tc-transition);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.tc-header .dropdown-item:hover {
    background: var(--tc-blue-light);
    color: var(--tc-blue);
}

/* ============================================================
   CARDS
   ============================================================ */
.tc-card {
    background: var(--tc-surface);
    border-radius: var(--tc-radius-lg);
    box-shadow: var(--tc-shadow-sm);
    border: 1.5px solid var(--tc-border);
    transition: box-shadow var(--tc-transition), transform var(--tc-transition), border-color var(--tc-transition);
    overflow: hidden;
}
.tc-card:hover {
    box-shadow: var(--tc-shadow-md);
    transform: translateY(-3px);
    border-color: var(--tc-gray-200);
}

/* ── Card de anuncio ── */
.tc-anuncio-card {
    display: flex;
    flex-direction: column;
    position: relative;
}
.tc-anuncio-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--tc-gray-100);
}
/* picture actúa como bloque de 200px para que el <img> interior lo herede */
.tc-anuncio-card .card-img-wrap picture {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.tc-anuncio-card .card-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.tc-anuncio-card:hover .card-img-wrap img { transform: scale(1.04); }

.tc-anuncio-card .card-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tc-gray-100) 0%, var(--tc-gray-200) 100%);
    color: var(--tc-gray-400);
    font-size: 2.5rem;
}

.tc-anuncio-card .card-body {
    padding: 1rem 1rem .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tc-anuncio-card .card-title {
    font-size: .975rem;
    font-weight: 600;
    color: var(--tc-gray-900);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.tc-precio {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tc-blue);
    letter-spacing: -.01em;
}

.tc-precio-consultar {
    font-size: .85rem;
    color: var(--tc-gray-400);
    font-style: italic;
}

/* Alias scoped to anuncio card (backward compat) */
.tc-anuncio-card .tc-precio { color: var(--tc-blue); }
.tc-anuncio-card .tc-precio-consultar { color: var(--tc-gray-400); }

.card-meta {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-top: auto;
}
.card-meta span {
    font-size: .8rem;
    color: var(--tc-gray-400);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.card-meta i { font-size: .8rem; }

/* Scoped alias */
.tc-anuncio-card .card-meta { margin-top: auto; }

/* Footer de la card */
.tc-anuncio-card .card-footer {
    border-top: 1.5px solid var(--tc-border);
    background: var(--tc-gray-50);
    padding: .6rem 1rem;
}

/* Badge de destacado */
.tc-badge-destacado {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: .2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Badges de tipo de anuncio */
.tc-tipo-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .65rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.tc-tipo-venta     { background: var(--tc-blue-light);    color: var(--tc-blue); }
.tc-tipo-servicio  { background: #EDE9FE;                 color: #6D28D9; }
.tc-tipo-negocio   { background: var(--tc-orange-light);  color: var(--tc-orange-dark); }
.tc-tipo-profesionista { background: #FDF2F8;             color: #9D174D; }
.tc-tipo-empleo    { background: var(--tc-success-light); color: var(--tc-success); }

.tc-categoria-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 500;
    background: var(--tc-gray-100);
    color: var(--tc-gray-600);
    border: 1px solid var(--tc-border);
}

/* Botón de favorito */
.btn-favorito {
    font-size: .85rem;
    font-weight: 600;
    border-radius: 50px;
    padding: .35rem .9rem;
    color: var(--tc-gray-600);
    border-color: var(--tc-border);
    transition: all var(--tc-transition);
    background: transparent;
}
.btn-favorito:hover, .btn-favorito.activo {
    background: var(--tc-danger-light);
    color: var(--tc-danger);
    border-color: var(--tc-danger);
}
.btn-favorito.activo i::before { content: '\f415'; } /* bi-heart-fill */

/* ============================================================
   HERO SECTION
   ============================================================ */
.tc-hero {
    background: linear-gradient(135deg, var(--tc-blue) 0%, #0E3B8F 60%, #0A2E6E 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
}
.tc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.tc-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 60px;
    background: var(--tc-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.tc-hero .hero-content { position: relative; z-index: 1; }

.tc-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.tc-hero .lead { color: rgba(255,255,255,.85); font-size: clamp(.95rem, 2vw, 1.15rem); }

/* Hero search */
.tc-hero-search {
    display: flex;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto;
}
.tc-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: .9rem 1.4rem;
    font-family: var(--tc-font);
    font-size: 1rem;
    color: var(--tc-gray-800);
    background: transparent;
}
.tc-hero-search input::placeholder { color: var(--tc-gray-400); }
.tc-hero-search button {
    background: var(--tc-orange);
    border: none;
    color: #fff;
    padding: .9rem 2rem;
    font-family: var(--tc-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--tc-transition);
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}
.tc-hero-search button:hover { background: var(--tc-orange-dark); }

/* Chips de búsqueda rápida */
.tc-quick-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.tc-quick-chip {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: .3rem .85rem;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: all var(--tc-transition);
}
.tc-quick-chip:hover {
    background: rgba(255,255,255,.28);
    color: #fff;
    border-color: rgba(255,255,255,.5);
}

/* ============================================================
   SECCIONES DE CONTENIDO
   ============================================================ */
.tc-section { padding: 2.5rem 0; }

.tc-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
.tc-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tc-gray-900);
    letter-spacing: -.02em;
    margin: 0;
}
.tc-section-title span {
    color: var(--tc-blue);
}
.tc-section-link {
    font-size: .875rem;
    font-weight: 600;
    color: var(--tc-blue);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.tc-section-link:hover { color: var(--tc-blue-dark); }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.tc-categoria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.1rem .75rem;
    background: var(--tc-surface);
    border: 1.5px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    color: var(--tc-gray-700);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--tc-transition);
    min-height: 90px;
}
.tc-categoria-item i {
    font-size: 1.6rem;
    color: var(--tc-blue);
    transition: transform var(--tc-transition);
}
.tc-categoria-item:hover {
    border-color: var(--tc-blue);
    background: var(--tc-blue-light);
    color: var(--tc-blue);
    box-shadow: var(--tc-shadow);
    transform: translateY(-2px);
}
.tc-categoria-item:hover i { transform: scale(1.15); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.tc-cta-banner {
    background: linear-gradient(135deg, var(--tc-blue) 0%, #0E3B8F 100%);
    border-radius: var(--tc-radius-xl);
    padding: 2.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.tc-cta-banner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}
.tc-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -20px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.tc-cta-banner .cta-content { position: relative; z-index: 1; }
.tc-cta-banner h2 { color: #fff; font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: .5rem; }
.tc-cta-banner p { color: rgba(255,255,255,.82); margin-bottom: 1.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.tc-footer {
    background: var(--tc-gray-900);
    color: rgba(255,255,255,.75);
    margin-top: 4rem;
    padding: 3rem 0 0;
}
.tc-footer-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.tc-footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: .5rem; }

.tc-footer-heading {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 1rem;
}
.tc-footer-links-col { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.tc-footer-links-col a {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    font-weight: 400;
    transition: color var(--tc-transition);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.tc-footer-links-col a:hover { color: #fff; }

.tc-footer-social { display: flex; gap: .75rem; margin-top: .5rem; }
.tc-footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    transition: all var(--tc-transition);
}
.tc-footer-social a:hover {
    background: var(--tc-blue);
    border-color: var(--tc-blue);
    color: #fff;
    transform: translateY(-2px);
}

.tc-footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}
.tc-footer-bottom p { margin: 0; font-size: .825rem; color: rgba(255,255,255,.4); }
.tc-footer-bottom a { color: rgba(255,255,255,.4); font-size: .825rem; }
.tc-footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* ============================================================
   WIZARD / PASOS
   ============================================================ */
.tc-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    counter-reset: step;
}
.tc-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    flex: 1;
    position: relative;
}
.tc-wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: var(--tc-border);
    z-index: 0;
    transition: background var(--tc-transition);
}
.tc-wizard-step.completed:not(:last-child)::after { background: var(--tc-blue); }

.tc-wizard-step-number {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    background: var(--tc-gray-100);
    color: var(--tc-gray-400);
    border: 2px solid var(--tc-border);
    position: relative;
    z-index: 1;
    transition: all var(--tc-transition);
}
.tc-wizard-step.active .tc-wizard-step-number {
    background: var(--tc-blue);
    color: #fff;
    border-color: var(--tc-blue);
    box-shadow: 0 0 0 4px rgba(27,85,180,.18);
}
.tc-wizard-step.completed .tc-wizard-step-number {
    background: var(--tc-success);
    color: #fff;
    border-color: var(--tc-success);
}
.tc-wizard-step-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--tc-gray-400);
    text-align: center;
    white-space: nowrap;
}
.tc-wizard-step.active .tc-wizard-step-label { color: var(--tc-blue); }
.tc-wizard-step.completed .tc-wizard-step-label { color: var(--tc-success); }

/* ============================================================
   PANEL / DASHBOARD
   ============================================================ */
.tc-stat-card {
    background: var(--tc-surface);
    border: 1.5px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--tc-transition);
}
.tc-stat-card:hover { box-shadow: var(--tc-shadow); transform: translateY(-2px); }

.tc-stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--tc-radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.tc-stat-icon-blue   { background: var(--tc-blue-light);    color: var(--tc-blue); }
.tc-stat-icon-green  { background: var(--tc-success-light); color: var(--tc-success); }
.tc-stat-icon-orange { background: var(--tc-orange-light);  color: var(--tc-orange); }
.tc-stat-icon-red    { background: var(--tc-danger-light);  color: var(--tc-danger); }

.tc-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--tc-gray-900); line-height: 1; }
.tc-stat-label { font-size: .8rem; font-weight: 500; color: var(--tc-gray-400); margin-top: .2rem; }

/* ============================================================
   ALERTAS Y NOTIFICACIONES
   ============================================================ */
.alert {
    border-radius: var(--tc-radius);
    border: 1.5px solid transparent;
    font-size: .9rem;
}
.alert-success { background: var(--tc-success-light); border-color: #A7F3D0; color: #065F46; }
.alert-danger   { background: var(--tc-danger-light);  border-color: #FECACA; color: #991B1B; }
.alert-warning  { background: var(--tc-warning-light); border-color: #FDE68A; color: #92400E; }
.alert-info     { background: var(--tc-info-light);    border-color: #BAE6FD; color: #075985; }

/* Toast container */
.tc-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 360px;
    width: calc(100% - 3rem);
}
.tc-toast {
    background: var(--tc-gray-900);
    color: #fff;
    border-radius: var(--tc-radius);
    padding: .9rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    box-shadow: var(--tc-shadow-lg);
    animation: tc-toast-in .3s cubic-bezier(.34,1.56,.64,1);
}
.tc-toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.tc-toast-success .tc-toast-icon { color: #34D399; }
.tc-toast-error   .tc-toast-icon { color: #F87171; }
.tc-toast-warning .tc-toast-icon { color: #FBBF24; }
.tc-toast-info    .tc-toast-icon { color: #60A5FA; }
.tc-toast-message { font-size: .875rem; font-weight: 500; line-height: 1.5; }

@keyframes tc-toast-in {
    from { opacity: 0; transform: translateX(24px) scale(.96); }
    to   { opacity: 1; transform: translateX(0)   scale(1);    }
}
@keyframes tc-toast-out {
    from { opacity: 1; transform: translateX(0)   scale(1);    }
    to   { opacity: 0; transform: translateX(24px) scale(.96); }
}

/* ============================================================
   MODAL DE LOCALIDAD
   ============================================================ */
.tc-modal-localidad .modal-content {
    border: none;
    border-radius: var(--tc-radius-xl);
    box-shadow: var(--tc-shadow-lg);
    overflow: hidden;
}
.tc-modal-localidad .modal-header {
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-blue-dark));
    color: #fff;
    border: none;
    padding: 1.25rem 1.5rem;
}
.tc-modal-localidad .modal-title { color: #fff; font-weight: 700; }
.tc-modal-localidad .btn-close { filter: brightness(0) invert(1); opacity: .7; }
.tc-modal-localidad .modal-body { padding: 1.5rem; }

/* Opciones en el selector de localidad */
.tc-localidad-option {
    padding: 10px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.tc-localidad-option:hover { border-color: var(--tc-blue); background: #f0f6ff; }

/* Badge de zona activa (tiene negocios) */
.tc-zona-activa-badge {
    font-size: .7rem;
    font-weight: 700;
    color: #198754;
    background: #d1e7dd;
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   SPINNER
   ============================================================ */
.tc-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--tc-border);
    border-top-color: var(--tc-blue);
    border-radius: 50%;
    animation: tc-spin .7s linear infinite;
}
@keyframes tc-spin { to { transform: rotate(360deg); } }

/* ============================================================
   UTILIDADES
   ============================================================ */
.tc-text-primary    { color: var(--tc-blue) !important; }
.tc-text-orange     { color: var(--tc-orange) !important; }
.tc-bg-primary      { background-color: var(--tc-blue) !important; }
.tc-bg-orange       { background-color: var(--tc-orange) !important; }
.tc-border-primary  { border-color: var(--tc-blue) !important; }
.tc-surface         { background: var(--tc-surface); }

/* Gradient text */
.tc-gradient-text {
    background: linear-gradient(90deg, var(--tc-blue), var(--tc-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .4s ease both; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in { animation: fadeIn .3s ease both; }

/* ============================================================
   PROGRESO
   ============================================================ */
.tc-progress-bar {
    height: 6px;
    background: var(--tc-gray-200);
    border-radius: 99px;
    overflow: hidden;
}
.tc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tc-blue), var(--tc-orange));
    border-radius: 99px;
    transition: width .5s ease;
}

/* ============================================================
   PERFIL DE USUARIO
   ============================================================ */
.tc-profile-header {
    background: linear-gradient(135deg, var(--tc-blue), var(--tc-blue-dark));
    border-radius: var(--tc-radius) var(--tc-radius) 0 0;
    color: #fff;
}
.tc-profile-header h1,
.tc-profile-header p { color: #fff; }

.tc-profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.3);
    object-fit: cover;
}
.tc-profile-avatar-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 4px solid rgba(255,255,255,.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,.8);
}

/* Avatar circular reutilizable para vendedor / perfil */
.tc-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--tc-blue-light);
    border: 3px solid var(--tc-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tc-blue);
    object-fit: cover;
}
.tc-avatar-lg {
    width: 120px; height: 120px;
    font-size: 3rem;
    border-radius: 50%;
    background: var(--tc-blue-light);
    border: 4px solid var(--tc-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--tc-blue);
    object-fit: cover;
}

.tc-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 99px;
    padding: .3rem .9rem;
    font-size: .8rem;
    font-weight: 600;
}

.tc-plan-limits { display: flex; flex-direction: column; gap: .75rem; }

.tc-limit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid var(--tc-border);
}
.tc-limit-item:last-of-type { border-bottom: none; }

.tc-upload-btn input[type="file"] { display: none; }

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination .page-link {
    color: var(--tc-blue);
    border-color: var(--tc-border);
    border-radius: var(--tc-radius-sm) !important;
    margin: 0 2px;
    font-weight: 500;
    transition: all var(--tc-transition);
}
.pagination .page-link:hover {
    background: var(--tc-blue-light);
    border-color: var(--tc-blue);
}
.pagination .page-item.active .page-link {
    background: var(--tc-blue);
    border-color: var(--tc-blue);
    color: #fff;
}

/* List-group estilo tc (filtros sidebar) */
.tc-list-group .list-group-item {
    border: none;
    border-radius: var(--tc-radius-sm) !important;
    margin-bottom: 2px;
    color: var(--tc-gray-600);
    font-size: .9rem;
    padding: .5rem .75rem;
    transition: all var(--tc-transition);
}
.tc-list-group .list-group-item:hover {
    background: var(--tc-blue-light);
    color: var(--tc-blue);
}
.tc-list-group .list-group-item.active {
    background: var(--tc-blue);
    color: #fff;
    font-weight: 600;
}
.tc-list-group .list-group-item.active .badge { background: rgba(255,255,255,.25) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .tc-hero { padding: 2rem 0 3rem; }
    .tc-hero-search { border-radius: var(--tc-radius-lg); flex-wrap: wrap; }
    .tc-hero-search input { border-radius: var(--tc-radius-lg) var(--tc-radius-lg) 0 0; }
    .tc-hero-search button { width: 100%; justify-content: center; border-radius: 0 0 var(--tc-radius-lg) var(--tc-radius-lg); }
    .tc-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .tc-section-header { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 992px) {
    .tc-search-bar { max-width: 560px; }
    .btn-publicar { padding: .6rem 1.8rem; }
}
