/* ============================================
   CITY PAGE — FindYourLocalJob
   Estilos para landing pages de ciudad
   Reutiliza patrones de home.css
   ============================================ */

html {
    overflow-x: clip;
    width: 100%;
    background: #1a1a2e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    position: relative;
    background: #fff;
    color: #1a1a2e;
}

/* ── Contenedor genérico ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 32px 0;
}

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

.section-header .section-title {
    margin: 0;
}

.section-see-all {
    color: #0077B5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.section-see-all:hover {
    gap: 10px;
}

/* ══════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════ */

.city-breadcrumb {
    background: #f8fafc;
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e8e8e8;
}

.city-breadcrumb .section-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-breadcrumb a {
    color: #0077B5;
    text-decoration: none;
}

.city-breadcrumb a:hover {
    text-decoration: underline;
}

.city-breadcrumb i {
    font-size: 0.65rem;
    color: #999;
}

.city-breadcrumb span {
    color: #666;
}

/* ══════════════════════════════════════
   HERO (versión compacta)
   ══════════════════════════════════════ */

.city-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 60px;
    width: 100%;
}

.city-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0077B5 0%, #005885 40%, #1a1a2e 100%);
    z-index: 0;
}

.city-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 160, 220, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.city-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
    width: 100%;
}

.city-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.city-hero h1 span {
    background: linear-gradient(135deg, #00D4FF, #00A0DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.city-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.city-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    transition: all 0.3s;
}

.city-hero-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   JOBS GRID (reutiliza patrón de home.css)
   ══════════════════════════════════════ */

.city-jobs-section {
    padding: 60px 0 80px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.jobs-grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.jobs-grid-loading i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #0077B5;
}

.job-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.job-card-header {
    background: #0077B5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.job-card-company-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.job-card-company-btn {
    font-size: 0.78rem;
    color: #0077B5;
    background: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.job-card-company-btn:hover {
    background: #e6f0f7;
    transform: scale(1.03);
}

.job-card-content {
    padding: 14px 16px 0;
}

.job-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-body {
    padding: 0 16px;
    flex: 1;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.job-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #666;
    background: #f5f7fa;
    padding: 4px 10px;
    border-radius: 6px;
}

.job-card-tag i {
    color: #0077B5;
    font-size: 0.75rem;
}

.job-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-card-action {
    font-size: 0.85rem;
    color: #0077B5;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-card-apply-btn {
    background: #0077B5;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.job-card-apply-btn:hover {
    background: #005f8f;
}

.jobs-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.jobs-grid-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

/* ══════════════════════════════════════
   INFO + STATS
   ══════════════════════════════════════ */

.city-info-section {
    padding: 60px 0;
    background: #f8fafc;
}

.city-info-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.city-info-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px 0;
}

.city-info-text p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.city-info-text p:last-child {
    margin-bottom: 0;
}

.city-info-stats {
    display: flex;
    gap: 32px;
}

.city-stat {
    text-align: center;
    padding: 24px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.city-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0077B5;
    line-height: 1;
    margin-bottom: 8px;
}

.city-stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* ══════════════════════════════════════
   DIRECTORIO DE CIUDADES
   ══════════════════════════════════════ */

.city-directory-section {
    padding: 60px 0;
}

.city-directory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f7fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.city-link:hover {
    background: #e8f4fd;
    border-color: #0077B5;
    color: #0077B5;
    transform: translateY(-2px);
}

.city-link i {
    color: #0077B5;
    font-size: 0.75rem;
}

/* ══════════════════════════════════════
   CTA
   ══════════════════════════════════════ */

.city-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
}

.city-cta-content {
    text-align: center;
    color: white;
}

.city-cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.city-cta-content p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin: 0 0 28px 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.city-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.city-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.city-cta-btn--primary {
    background: white;
    color: #0077B5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.city-cta-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.city-cta-btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.city-cta-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.city-footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand .footer-logo img {
    height: 28px;
    width: 28px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00D4FF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .city-hero h1 {
        font-size: 2rem;
    }

    .city-hero-subtitle {
        font-size: 1rem;
    }

    .city-hero {
        padding: 60px 0 48px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .city-info-stats {
        justify-content: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .city-cta-content h2 {
        font-size: 1.4rem;
    }

    .city-jobs-section {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .city-hero h1 {
        font-size: 1.6rem;
    }

    .city-hero-cta {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .city-info-stats {
        flex-direction: column;
        gap: 16px;
    }

    .city-stat {
        padding: 20px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .city-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
