/*
Theme Name: SharkJobs
Theme URI: https://sharkcontents.com
Author: sharkcontents
Author URI: https://sharkcontents.com
Description: Tema de empleos multi-país con scraping Computrabajo (Guzzle HTTP engine). PHP 8.2+ recomendado para motor avanzado.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sharkjobs
Tags: job-board, minimalist, adsense-ready, responsive, one-column, two-columns
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #3B82F6;
    --color-secondary: #10B981;
    --color-secondary-dark: #059669;
    --color-accent: #F59E0B;
    --color-danger: #EF4444;
    --color-bg: #F9FAFB;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #111827;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-text-lighter: #9CA3AF;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-sans: 'Dosis', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Dosis', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --heading-weight: 700;
    --max-width: 1200px;
    --header-height: 64px;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.share-btn:hover {
    color: #fff;
}

ul, ol {
    list-style: none;
}

/* ========================================
   LAYOUT
======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 32px 0;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========================================
   HEADER
======================================== */
.site-header {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    /* Móvil primero: fijo. Escritorio pasa a sticky abajo. */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100000;
    height: var(--header-height);
    margin: 0;
    transform: none;
}

body {
    padding-top: var(--header-height);
}

@media (min-width: 1025px) {
    .site-header {
        position: sticky;
        left: auto;
        right: auto;
        width: auto;
        z-index: 100;
    }

    body {
        padding-top: 0;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo,
.custom-logo-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.site-logo:hover,
.custom-logo-link:hover {
    color: var(--color-primary-dark);
}

.site-logo .icon {
    font-size: 1.8rem;
}

.custom-logo-link img,
.custom-logo {
    max-height: 44px;
    width: auto;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .menu li {
    position: relative;
}

.main-nav .menu li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
}

.main-nav .menu li a:hover {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

.main-nav .menu li.current-menu-item a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Iconos SVG del menú */
.main-nav .menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.main-nav .menu-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.main-nav .menu-item-icon i {
    font-size: 18px;
    line-height: 1;
}

/* Submenú dropdown */
.main-nav .menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.main-nav .menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .menu li ul.sub-menu li a {
    display: flex;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 0;
}

/* Botón de búsqueda en header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-actions .btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    html body header.site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 100000 !important;
        margin: 0 !important;
        transform: none !important;
    }

    html body {
        padding-top: var(--header-height) !important;
    }

    html body.admin-bar header.site-header {
        top: 46px !important;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: 8px 0;
        z-index: 100;
    }

    .main-nav .menu.is-open {
        display: flex;
    }

    .main-nav .menu li a {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
    }

    .header-inner {
        position: relative;
    }
}

/* ========================================
   SEARCH BAR
======================================== */
.search-bar {
    background: var(--color-bg-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 200px auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 800px;
    margin: 0 auto;
}

.search-form input[type="text"],
.search-form select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    background: var(--color-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form input[type="text"]:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-form button {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-form button:hover {
    background: var(--color-primary-dark);
}

@media (max-width: 600px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    .search-form > * {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: var(--font-size-h1, 2.2rem);
    font-weight: var(--heading-weight, 800);
    margin-bottom: 12px;
}

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

.hero-search {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.hero-search .search-form input,
.hero-search .search-form select {
    border: none;
    box-shadow: var(--shadow-md);
}

/* ========================================
   CATEGORIES GRID
======================================== */
.section {
    padding: var(--section-spacing, 48px) 0;
}

.section-title {
    font-size: var(--font-size-h2, 1.5rem);
    font-weight: var(--heading-weight, 700);
    margin-bottom: 24px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

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

.category-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.category-card .icon svg,
.contract-type-card .contract-icon svg {
    display: block;
    width: 30px;
    height: 30px;
}

.category-card:hover .icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.category-card .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.category-card .count {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.taxonomy-empty-state {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    color: var(--color-text-light);
    text-align: center;
    background: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.taxonomy-empty-state svg {
    color: var(--color-primary);
}

/* ========================================
   EXPLORADOR HOME — DISEÑO B
======================================== */
.taxonomy-explorer-section {
    background: #fff;
    padding-top: clamp(36px, 4vw, 50px);
    padding-bottom: clamp(36px, 4vw, 50px);
}

.taxonomy-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(360px, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9e0ec;
    border-radius: 9px;
    color: #071d49;
}

.taxonomy-explorer-panel {
    min-width: 0;
    padding: clamp(30px, 3vw, 42px) clamp(24px, 3vw, 38px);
}

.taxonomy-categories-panel {
    border-right: 1px solid #d9e0ec;
}

.taxonomy-explorer-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    margin-bottom: 25px;
}

.taxonomy-explorer-heading h2 {
    margin: 0;
    color: #071d49;
    font-family: var(--font-sans);
    font-size: clamp(1.7rem, 2.15vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.taxonomy-heading-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.taxonomy-heading-icon svg {
    display: block;
}

.taxonomy-heading-icon.is-primary {
    color: #135deb;
    background: #eaf0ff;
}

.taxonomy-heading-icon.is-secondary {
    color: #08b879;
    background: #e1f8ef;
}

.taxonomy-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.taxonomy-category-item {
    min-width: 0;
    min-height: 214px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 15px;
    text-align: center;
    color: #071d49;
    border-right: 1px solid #d9e0ec;
    border-bottom: 1px solid #d9e0ec;
    transition: background-color 180ms ease, color 180ms ease;
}

.taxonomy-category-item:nth-child(4n) {
    border-right: 0;
}

.taxonomy-category-item:nth-child(n+5) {
    border-bottom: 0;
}

.taxonomy-category-item:hover,
.taxonomy-category-item:focus-visible {
    color: #135deb;
    background: #f6f9ff;
}

.taxonomy-category-item:focus-visible,
.taxonomy-contract-row:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(19, 93, 235, 0.3);
    outline-offset: -3px;
}

.taxonomy-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    color: #135deb;
}

.taxonomy-category-icon svg {
    width: 38px;
    height: 38px;
}

.taxonomy-category-name {
    max-width: 170px;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.taxonomy-category-count {
    color: #8290a8;
    font-size: 0.9rem;
    line-height: 1.3;
}

.taxonomy-contract-list {
    display: flex;
    flex-direction: column;
}

.taxonomy-contract-row {
    min-width: 0;
    min-height: 69px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 16px;
    color: #071d49;
    border-bottom: 1px solid #d9e0ec;
    transition: background-color 180ms ease, color 180ms ease;
}

.taxonomy-contract-row:last-child {
    border-bottom: 0;
}

.taxonomy-contract-row:hover,
.taxonomy-contract-row:focus-visible {
    color: #08a96f;
    background: #f4fcf9;
}

.taxonomy-contract-icon,
.taxonomy-contract-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.taxonomy-contract-icon {
    color: #08b879;
}

.taxonomy-contract-name {
    min-width: 0;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.taxonomy-contract-count {
    color: #8290a8;
    font-size: 0.9rem;
    white-space: nowrap;
}

.taxonomy-contract-arrow {
    color: #768399;
}

.taxonomy-explorer .taxonomy-empty-state {
    min-height: 250px;
    background: transparent;
    border: 0;
}

@media (max-width: 1000px) {
    .taxonomy-explorer {
        grid-template-columns: 1fr;
    }

    .taxonomy-categories-panel {
        border-right: 0;
        border-bottom: 1px solid #d9e0ec;
    }
}

@media (max-width: 640px) {
    .taxonomy-explorer-section .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .taxonomy-explorer-panel {
        padding: 22px 16px;
    }

    .taxonomy-explorer-heading {
        gap: 13px;
        min-height: 48px;
        margin-bottom: 18px;
    }

    .taxonomy-heading-icon {
        width: 46px;
        height: 46px;
    }

    .taxonomy-explorer-heading h2 {
        font-size: 1.45rem;
    }

    .taxonomy-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .taxonomy-category-item {
        min-height: 168px;
        padding: 20px 10px;
        border-right: 1px solid #d9e0ec;
        border-bottom: 1px solid #d9e0ec;
    }

    .taxonomy-category-item:nth-child(4n) {
        border-right: 1px solid #d9e0ec;
    }

    .taxonomy-category-item:nth-child(2n) {
        border-right: 0;
    }

    .taxonomy-category-item:nth-child(n+5) {
        border-bottom: 1px solid #d9e0ec;
    }

    .taxonomy-category-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .taxonomy-category-icon {
        margin-bottom: 4px;
    }

    .taxonomy-category-name {
        font-size: 0.92rem;
    }

    .taxonomy-contract-row {
        min-height: 66px;
        grid-template-columns: 28px minmax(0, 1fr) auto 18px;
        gap: 10px;
    }

    .taxonomy-contract-name {
        font-size: 0.94rem;
    }

    .taxonomy-contract-count {
        font-size: 0.78rem;
    }
}

.taxonomy-empty-state strong {
    color: var(--color-text);
    font-size: 1rem;
}

/* ========================================
   JOB CARDS
======================================== */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
}

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

.job-card .job-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-card-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.job-card-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.job-card:hover .job-card-icon-wrap {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.job-card .job-info {
    min-width: 0;
}

.job-card .job-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-card .job-title a {
    color: var(--color-text);
}

.job-card .job-title a:hover {
    color: var(--color-primary);
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-card .job-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.job-card .job-date {
    font-size: 0.8rem;
    color: var(--color-text-lighter);
}

.job-card .job-salary {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

@media (max-width: 600px) {
    .job-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .job-card .company-logo {
        margin: 0 auto;
    }
    .job-card .job-meta {
        justify-content: center;
    }
    .job-card .job-tags {
        align-items: center;
    }
}

/* ========================================
   TAGS / BADGES
======================================== */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-bg);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.tag-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    border-color: rgba(37, 99, 235, 0.2);
}

.tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-secondary);
    border-color: rgba(16, 185, 129, 0.2);
}

.tag-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
    border-color: rgba(245, 158, 11, 0.2);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

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

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

.btn-secondary:hover {
    /* Fallback solid color if --color-secondary-dark is an invalid hex from customizer. */
    background: #059669;
    background: var(--color-secondary-dark, #059669);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    background: var(--color-primary-dark, #1d4ed8);
    color: white;
}

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

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

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

.btn-block {
    width: 100%;
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-widget h3 {
    font-size: var(--font-size-h3, 1rem);
    font-weight: var(--heading-weight, 700);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

/* Sidebar Empleos por Ciudad */
.sidebar-locations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-location-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-location-item:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-location-name {
    font-weight: 500;
}

.sidebar-location-count {
    font-size: 0.8rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-location-item:hover .sidebar-location-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ========================================
   ADSENSE SLOTS
======================================== */
.ad-slot {
    text-align: center;
    margin: 16px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-header {
    min-height: 90px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.ad-slot-sidebar {
    min-height: 250px;
    min-width: 300px;
}

.ad-slot-incontent {
    min-height: 250px;
    margin: 24px 0;
}

.ad-slot-footer {
    min-height: 90px;
    margin-top: 32px;
}

.ad-slot-placeholder {
    background: repeating-linear-gradient(
        45deg,
        var(--color-border-light),
        var(--color-border-light) 10px,
        var(--color-bg) 10px,
        var(--color-bg) 20px
    );
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* Single Job - Icono de categoría */
.single-job-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.single-job-icon svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   SHARE BUTTONS (Redes Sociales)
======================================== */
.share-job {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.share-job-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 14px;
}

.share-job-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.share-btn:active {
    transform: translateY(-1px);
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-icon svg {
    width: 100%;
    height: 100%;
}

.share-label {
    white-space: nowrap;
}

/* Facebook */
.share-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5fbf 100%);
}
.share-facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.45);
}

/* Twitter/X */
.share-twitter {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}
.share-twitter:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* LinkedIn */
.share-linkedin {
    background: linear-gradient(135deg, #0A66C2 0%, #084e96 100%);
}
.share-linkedin:hover {
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.45);
}

/* WhatsApp */
.share-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1ebe57 100%);
}
.share-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* Copiar enlace */
.share-copy {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
}
.share-copy:hover {
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.45);
}
.share-copy.copied {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

@media (max-width: 600px) {
    .share-job-buttons {
        justify-content: center;
    }
    .share-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .share-label {
        display: none;
    }
    .share-btn {
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ========================================
   SINGLE JOB
======================================== */
.single-job-header {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.single-job-header h1 {
    font-size: var(--font-size-h1, 1.6rem);
    font-weight: var(--heading-weight, 700);
    margin-bottom: 12px;
}

.single-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.single-job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-job-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.job-content {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.job-content h2 {
    font-size: var(--font-size-h2, 1.2rem);
    font-weight: var(--heading-weight, 700);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.job-content h2:first-child {
    margin-top: 0;
}

.job-content p {
    margin-bottom: 12px;
    color: var(--color-text);
}

.job-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.job-content ul li {
    margin-bottom: 6px;
}

.job-summary-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.job-summary-box .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9rem;
}

.job-summary-box .summary-row:last-child {
    border-bottom: none;
}

.job-summary-box .summary-label {
    color: var(--color-text-light);
}

.job-summary-box .summary-value {
    font-weight: 600;
}

/* ========================================
   LOCATIONS GRID
======================================== */
.locations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.location-chip {
    padding: 8px 16px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text);
    transition: all 0.2s;
}

.location-chip:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 32px 0;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span.page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text);
}

.pagination a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .dots {
    min-width: auto;
    padding-right: 5px;
    padding-left: 5px;
    border-color: transparent;
    background: transparent;
}

.pagination-summary {
    display: none;
    color: var(--color-text-light);
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .pagination {
        width: 100%;
        margin: 26px 0 20px;
    }

    .pagination-summary {
        display: block;
    }

    .pagination-links {
        width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pagination .page-numbers:not(.prev):not(.next):not(.current) {
        display: none;
    }

    .pagination .prev,
    .pagination .next {
        flex: 1 1 0;
        max-width: 140px;
    }

    .pagination a,
    .pagination span.page-numbers {
        min-width: 40px;
        min-height: 40px;
        padding: 7px 10px;
        font-size: 0.84rem;
    }
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--color-bg-dark);
    color: #D1D5DB;
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-description {
    color: #9ca3af;
    font-size: .9rem;
    line-height: 1.6;
}

.footer-description p {
    margin: 0 0 .75rem;
}

.footer-description p:last-child {
    margin-bottom: 0;
}

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

.footer-col ul li a {
    color: #9CA3AF;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* ========================================
   ADS HORIZONTALES (solo 2 en home)
======================================== */
.ad-banner-horizontal {
    padding: 16px 0;
    background: transparent;
}

.ad-banner-horizontal .ad-slot {
    margin: 0 auto;
    min-height: 90px;
}

/* ========================================
   TIPOS DE CONTRATO (Cards)
======================================== */
.contract-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.contract-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.contract-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    color: var(--color-secondary);
}

.contract-icon i {
    font-size: 1.6rem;
    line-height: 1;
}

.contract-type-card:hover .contract-icon {
    background: var(--color-secondary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.contract-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.contract-count {
    font-size: 0.75rem;
    color: var(--color-text-lighter);
}

@media (max-width: 600px) {
    .contract-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   JOB OLD WARNING (empleos antiguos)
======================================== */
.job-old-warning {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    margin: 24px 0;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.job-old-warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    color: #B45309;
}

.job-old-warning-icon svg {
    width: 22px;
    height: 22px;
}

.job-old-warning-content {
    flex: 1;
}

.job-old-warning-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 4px;
}

.job-old-warning-content p {
    font-size: 0.9rem;
    color: #78350F;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .job-old-warning {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }
}

/* ========================================
   RESPONSIVE
======================================== */

/* ========================================
   SEARCH MODAL
======================================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: min(600px, calc(100% - 32px));
    max-width: 600px;
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY( -20px );
    transition: transform 0.3s ease;
    z-index: 10;
}

.search-modal.is-open .search-modal-container {
    transform: translateY( 0 );
}

.search-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6B7280;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.search-modal-close:hover {
    color: #EF4444;
}

.search-modal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: #1F2937;
}

.sharkjobs-inline-icon {
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
}

.search-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-modal-input-wrap {
    position: relative;
}

.search-modal-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-modal-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #F9FAFB;
    cursor: pointer;
}

.search-modal-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.location-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}

.location-picker-toggle,
.location-picker-menu {
    display: none;
}

.location-picker-label-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.location-picker-pin {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #DC2626;
}

.location-picker-label-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop: custom location picker in search modal and search forms (hero, etc.) */
.search-modal .location-picker-native,
.hero-search .location-picker-native,
.search-form .location-picker-native {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

.search-modal .location-picker.is-open,
.hero-search .location-picker.is-open,
.search-form .location-picker.is-open {
    z-index: 80;
}

.search-modal .location-picker-toggle,
.hero-search .location-picker-toggle,
.search-form .location-picker-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    color: #1F2937;
    background: #F9FAFB;
    box-shadow: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}

.hero-search .location-picker-toggle,
.search-form .location-picker-toggle {
    min-height: 46px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    font-size: 0.95rem;
}

.hero-search .location-picker-toggle {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.search-modal .location-picker-toggle:hover {
    color: #1F2937;
    background: #F9FAFB;
}

.hero-search .location-picker-toggle:hover,
.search-form .location-picker-toggle:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.search-modal .location-picker-toggle:focus-visible,
.search-modal .location-picker-toggle[aria-expanded="true"] {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hero-search .location-picker-toggle:focus-visible,
.hero-search .location-picker-toggle[aria-expanded="true"],
.search-form .location-picker-toggle:focus-visible,
.search-form .location-picker-toggle[aria-expanded="true"] {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.hero-search .location-picker-toggle[aria-expanded="true"] {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24), var(--shadow-md);
}

.search-modal .location-picker-label,
.hero-search .location-picker-label,
.search-form .location-picker-label {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.search-modal .location-picker-chevron,
.hero-search .location-picker-chevron,
.search-form .location-picker-chevron {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.search-modal .location-picker.is-open .location-picker-chevron,
.hero-search .location-picker.is-open .location-picker-chevron,
.search-form .location-picker.is-open .location-picker-chevron {
    transform: rotate(180deg);
}

.search-modal .location-picker-menu,
.hero-search .location-picker-menu,
.search-form .location-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 100;
    display: block !important;
    width: 100%;
    max-width: 100%;
    max-height: var(--location-picker-max-height, min(180px, 32dvh));
    padding: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.search-modal .location-picker-menu[hidden],
.hero-search .location-picker-menu[hidden],
.search-form .location-picker-menu[hidden] {
    display: none !important;
}

.search-modal .location-picker.opens-up .location-picker-menu,
.hero-search .location-picker.opens-up .location-picker-menu,
.search-form .location-picker.opens-up .location-picker-menu {
    top: auto;
    bottom: calc(100% + 6px);
}

.search-modal .location-picker-option,
.hero-search .location-picker-option,
.search-form .location-picker-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 30px;
    padding: 5px 10px;
    border: 0;
    border-radius: 7px;
    color: #1F2937;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}

.search-modal .location-picker-option .location-picker-pin,
.hero-search .location-picker-option .location-picker-pin,
.search-form .location-picker-option .location-picker-pin {
    width: 14px;
    height: 14px;
    color: #DC2626;
}

.search-modal .location-picker-option:hover,
.search-modal .location-picker-option:focus-visible,
.hero-search .location-picker-option:hover,
.hero-search .location-picker-option:focus-visible,
.search-form .location-picker-option:hover,
.search-form .location-picker-option:focus-visible {
    outline: none;
    color: #1E3A8A;
    background: #EFF6FF;
}

.search-modal .location-picker-option[aria-selected="true"],
.hero-search .location-picker-option[aria-selected="true"],
.search-form .location-picker-option[aria-selected="true"] {
    color: #1D4ED8;
    background: #DBEAFE;
    font-weight: 600;
}

.search-modal-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.search-modal-submit:hover {
    background: var(--color-primary-dark);
}

.search-modal-popular {
    margin-top: 20px;
    text-align: center;
}

.search-modal-popular p {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 10px;
}

.search-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #F3F4F6;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4B5563;
    margin: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.search-tag:hover {
    background: var(--color-primary);
    color: #fff;
}

@media (max-width: 600px) {
    .search-modal {
        align-items: flex-start;
        padding: 12px;
    }

    .search-modal-container {
        width: 100%;
        max-height: calc(100dvh - 24px);
        margin: auto 0;
        padding: 30px 18px 22px;
        border-radius: 14px;
    }

    .search-modal-title {
        font-size: 1.4rem;
    }

    .location-picker-native {
        display: none !important;
    }

    .location-picker.is-open {
        z-index: 80;
    }

    .location-picker-toggle,
    .search-form .location-picker-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 12px 16px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        color: var(--color-text);
        background: var(--color-bg);
        box-shadow: none;
        font-family: inherit;
        font-size: 0.95rem;
        font-weight: 400;
        line-height: 1.35;
        text-align: left;
        white-space: normal;
        cursor: pointer;
        touch-action: manipulation;
    }

    .location-picker-toggle:hover,
    .search-form .location-picker-toggle:hover {
        color: var(--color-text);
        background: var(--color-bg);
    }

    .location-picker-toggle:focus-visible,
    .location-picker-toggle[aria-expanded="true"] {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    .hero-search .location-picker-toggle {
        border-color: transparent;
        background: var(--color-bg);
        box-shadow: var(--shadow-md);
    }

    .hero-search .location-picker-toggle[aria-expanded="true"] {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24), var(--shadow-md);
    }

    .search-modal-form .location-picker-toggle {
        min-height: 52px;
        border: 2px solid #E5E7EB;
        border-radius: 10px;
        background: #F9FAFB;
        font-size: 1rem;
    }

    .location-picker-label {
        display: flex;
        align-items: center;
        min-width: 0;
        overflow: hidden;
        flex: 1 1 auto;
    }

    .location-picker-chevron {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 1.15rem;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .location-picker.is-open .location-picker-chevron {
        transform: rotate(180deg);
    }

    .location-picker-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: 0;
        z-index: 100;
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: var(--location-picker-max-height, min(280px, 42dvh));
        padding: 6px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid #CBD5E1;
        border-radius: 10px;
        background: #FFFFFF;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
        scrollbar-gutter: stable;
        -webkit-overflow-scrolling: touch;
    }

    .location-picker-menu[hidden] {
        display: none;
    }

    .location-picker.opens-up .location-picker-menu {
        top: auto;
        bottom: calc(100% + 6px);
    }

    .location-picker-option,
    .search-form .location-picker-option {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 40px;
        padding: 9px 11px;
        border: 0;
        border-radius: 7px;
        color: #1F2937;
        background: #FFFFFF;
        font-family: inherit;
        font-size: 0.93rem;
        font-weight: 400;
        line-height: 1.35;
        text-align: left;
        white-space: normal;
        cursor: pointer;
    }

    .search-modal .location-picker-option {
        min-height: 40px;
        padding: 9px 11px;
        font-size: 0.93rem;
    }

    .location-picker-option:hover,
    .location-picker-option:focus-visible,
    .search-form .location-picker-option:hover,
    .search-form .location-picker-option:focus-visible {
        outline: none;
        color: #1E3A8A;
        background: #EFF6FF;
    }

    .location-picker-option[aria-selected="true"],
    .search-form .location-picker-option[aria-selected="true"] {
        color: #1D4ED8;
        background: #DBEAFE;
        font-weight: 600;
    }
}
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
        margin-top: 0;
    }
    .hero h1 {
        font-size: calc(var(--font-size-h1, 2.2rem) * 0.76);
    }
    .section {
        padding: 32px 0;
    }
    .single-job-header,
    .job-content {
        padding: 20px;
    }
    .single-job-header h1 {
        font-size: calc(var(--font-size-h1, 1.6rem) * 0.82);
    }
    .single-job-actions {
        flex-direction: column;
    }
}

/* ========================================
   UTILITIES
======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ========================================
   FICHA DE EMPLEO 2.0
======================================== */
.sharkjobs-job-page {
    padding-top: 32px;
    padding-bottom: 36px;
}
.sharkjobs-job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.sharkjobs-job-main { min-width: 0; }
.sharkjobs-job-hero { padding: 30px; margin: 0 0 20px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.sharkjobs-job-hero-top { display: flex; gap: 20px; align-items: flex-start; }
.sharkjobs-job-heading { min-width: 0; }
.sharkjobs-job-heading h1 { margin: 0 0 5px; color: #0f172a; font-size: clamp(1.65rem, 2.5vw, var(--font-size-h1, 2.25rem)); line-height: 1.16; }
.sharkjobs-job-company { margin: 0; color: var(--color-primary); font-size: 1.18rem; font-weight: 700; }
.sharkjobs-job-hero .single-job-icon { width: 72px; height: 72px; border: 1px solid #cfe0ff; border-radius: 12px; background: #f1f6ff; }
.sharkjobs-job-hero .single-job-icon svg { width: 34px; height: 34px; }
.sharkjobs-job-hero .single-job-meta { gap: 10px 24px; margin: 22px 0 0 92px; color: #64748b; }
.sharkjobs-job-hero .single-job-meta span { gap: 7px; }
.sharkjobs-job-hero .single-job-meta svg { flex: 0 0 auto; color: #475569; }
.sharkjobs-job-actions-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 24px; }
.sharkjobs-apply-button { min-height: 44px; padding: 11px 22px; border-radius: 8px; box-shadow: 0 6px 16px rgba(37, 99, 235, .18); }
.sharkjobs-job-hero .share-job { display: flex; gap: 12px; align-items: center; margin: 0; padding: 0; border: 0; }
.sharkjobs-job-hero .share-job-title { margin: 0; color: #334155; font-size: .86rem; }
.sharkjobs-job-hero .share-job-buttons { gap: 8px; }
.sharkjobs-job-hero .share-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border: 1px solid #cbd5e1; border-radius: 50%; color: #475569; background: #fff; box-shadow: none; }
.sharkjobs-job-hero .share-btn svg { width: 17px; height: 17px; }
.sharkjobs-job-hero .share-btn:hover { transform: translateY(-1px); color: var(--color-primary); border-color: #93b4ff; background: #f8fbff; box-shadow: 0 4px 12px rgba(37, 99, 235, .12); }
.sharkjobs-job-hero .share-facebook { color: #1877f2; }
.sharkjobs-job-hero .share-twitter { color: #111827; }
.sharkjobs-job-hero .share-linkedin { color: #0a66c2; }
.sharkjobs-job-hero .share-whatsapp { color: #16a34a; }
.sharkjobs-job-hero .share-copy.copied { color: #fff; border-color: var(--color-secondary); background: var(--color-secondary); }

.sharkjobs-job-description { padding: 30px; margin: 0; border-radius: 12px; box-shadow: var(--shadow-sm); }
.sharkjobs-job-description > h2 { display: block; width: max-content; max-width: 100%; margin: 0 0 18px; padding: 0 0 10px; border-bottom: 3px solid var(--color-primary); color: #0f172a; font-size: var(--font-size-h2, 1.5rem); }
.sharkjobs-job-copy { color: #243244; font-size: 1rem; line-height: 1.75; }
.sharkjobs-job-copy > *:last-child { margin-bottom: 0; }
.sharkjobs-job-empty-description { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #334155; }
.sharkjobs-job-empty-description > span { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #dbeafe; color: var(--color-primary); }
.sharkjobs-job-empty-description h3 { margin: 0 0 5px; color: #0f172a; font-size: 1rem; }
.sharkjobs-job-empty-description p { margin: 0 0 9px; font-size: .925rem; line-height: 1.55; }
.sharkjobs-job-empty-description a { display: inline-flex; align-items: center; gap: 5px; color: var(--color-primary); font-weight: 700; text-decoration: none; }
.sharkjobs-job-ad { margin: 0 0 22px; padding: 12px; overflow: hidden; border: 1px solid #edf1f6; border-radius: 8px; text-align: center; background: #f8fafc; }
.sharkjobs-job-ad > span { display: block; margin-bottom: 8px; color: #94a3b8; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sharkjobs-ad { width: 100%; max-width: 100%; overflow: hidden; text-align: center; }
.sharkjobs-ad ins { max-width: 100%; margin: 0 auto; }
.sharkjobs-ad-mobile { display: none; }
@media (max-width: 768px) {
    .sharkjobs-ad-desktop:not(.sharkjobs-ad-only) { display: none; }
    .sharkjobs-ad-mobile { display: block; }
}

.sharkjobs-ad-footer-wrap {
    width: 100%;
    margin-top: 32px;
    margin-bottom: 32px;
    clear: both;
}

.sharkjobs-ad-footer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.sharkjobs-ad.sharkjobs-ad-footer:not(.sharkjobs-ad-footer-wrap *) {
    margin-top: 32px;
    margin-bottom: 32px;
}

.sharkjobs-ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    padding: 18px 16px;
    border: 1px dashed #93c5fd;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .08) 0%, rgba(59, 130, 246, .14) 100%),
        repeating-linear-gradient(
            -45deg,
            rgba(37, 99, 235, .05),
            rgba(37, 99, 235, .05) 8px,
            transparent 8px,
            transparent 16px
        );
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .35);
}

.sharkjobs-ad-placeholder-inner {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.sharkjobs-ad-placeholder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
}

.sharkjobs-ad-placeholder-label {
    color: #1e40af;
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.35;
}

.sharkjobs-ad-home_after_hero.sharkjobs-ad-placeholder,
.sharkjobs-ad-home_middle.sharkjobs-ad-placeholder,
.sharkjobs-ad-footer.sharkjobs-ad-placeholder,
.sharkjobs-ad-listing_between.sharkjobs-ad-placeholder {
    min-height: 110px;
}

.sharkjobs-ad-listing_sidebar.sharkjobs-ad-placeholder,
.sharkjobs-ad-job_description.sharkjobs-ad-placeholder {
    min-height: 250px;
}

.sharkjobs-job-ad.is-demo {
    padding: 0;
    border: 0;
    background: transparent;
}

.ad-banner-horizontal {
    padding: 18px 0;
}
.sharkjobs-job-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--color-border); }
.sharkjobs-job-details-grid h3 { margin: 0 0 10px; color: #0f172a; font-size: var(--font-size-h3, 1.25rem); }
.sharkjobs-job-details-grid ul { margin: 0; padding-left: 20px; list-style: disc; }
.sharkjobs-job-details-grid li { margin: 0 0 6px; color: #334155; line-height: 1.55; }
.sharkjobs-apply-bottom,
.sharkjobs-apply-bottom:visited {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border-radius: 8px;
    color: #fff !important;
    /* Solid hex first: invalid customizer vars must not wipe the green background. */
    background: #10b981 !important;
    background-image: none !important;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    text-decoration: none;
}
.sharkjobs-apply-bottom:hover,
.sharkjobs-apply-bottom:focus-visible,
.sharkjobs-apply-bottom:active {
    color: #fff !important;
    background: #059669 !important;
    background-image: none !important;
    filter: none;
    opacity: 1;
    visibility: visible;
    text-decoration: none;
}
.sharkjobs-apply-bottom:focus-visible { outline: 3px solid rgba(16, 185, 129, .3); outline-offset: 3px; }

.sharkjobs-job-sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-height) + 20px); }
.sharkjobs-job-sidebar .sidebar-widget { padding: 22px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.sharkjobs-job-sidebar .sidebar-widget > h2 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); color: #0f172a; font-size: 1.15rem; }
.sharkjobs-job-summary dl { margin: 0; padding: 2px 14px; border: 1px solid var(--color-border); border-radius: 9px; background: #fbfcfe; }
.sharkjobs-job-summary dl > div { display: grid; grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr); gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid #e8edf3; }
.sharkjobs-job-summary dl > div:last-child { border-bottom: 0; }
.sharkjobs-job-summary dt { color: #64748b; font-size: .82rem; }
.sharkjobs-job-summary dd { margin: 0; color: #1e293b; font-size: .85rem; font-weight: 700; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.sharkjobs-job-summary dd.is-success { color: var(--color-secondary-dark); }
.sharkjobs-related-list { display: grid; gap: 9px; }
.sharkjobs-related-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 9px; color: inherit; background: #fff; }
.sharkjobs-related-card:hover { color: inherit; border-color: #b9d0ff; background: #f8fbff; }
.sharkjobs-related-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9px; color: var(--color-primary); background: #eef4ff; }
.sharkjobs-related-copy { display: grid; min-width: 0; gap: 2px; }
.sharkjobs-related-copy strong { color: #172033; font-size: .91rem; line-height: 1.25; }
.sharkjobs-related-copy span { color: #64748b; font-size: .78rem; line-height: 1.3; }
.sharkjobs-related-copy .sharkjobs-related-company { color: var(--color-primary); font-weight: 600; }
.sharkjobs-related-copy small { color: #475569; font-size: .72rem; }
.sharkjobs-related-more { display: flex; justify-content: flex-end; gap: 6px; align-items: center; margin-top: 14px; font-size: .82rem; font-weight: 600; }
.sharkjobs-ad-footer-wrap + .site-footer {
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .sharkjobs-job-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; }
    .sharkjobs-job-hero,
    .sharkjobs-job-description { padding: 24px; }
    .sharkjobs-job-hero .single-job-meta { margin-left: 0; }
}

@media (max-width: 860px) {
    .sharkjobs-job-layout { grid-template-columns: 1fr; }
    .sharkjobs-job-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .sharkjobs-job-page {
        padding-top: 18px;
        padding-bottom: 24px;
    }
    .sharkjobs-ad-footer-wrap {
        margin-top: 24px;
        margin-bottom: 24px;
    }
    .sharkjobs-ad.sharkjobs-ad-footer:not(.sharkjobs-ad-footer-wrap *) {
        margin-top: 24px;
        margin-bottom: 24px;
    }
    .sharkjobs-ad-footer-wrap + .site-footer {
        margin-top: 24px;
    }
    .sharkjobs-job-hero,
    .sharkjobs-job-description { padding: 20px; }
    .sharkjobs-job-hero-top { gap: 14px; }
    .sharkjobs-job-hero .single-job-icon { width: 54px; height: 54px; }
    .sharkjobs-job-hero .single-job-icon svg { width: 27px; height: 27px; }
    .sharkjobs-job-heading h1 { font-size: clamp(1.4rem, 7vw, 1.8rem); }
    .sharkjobs-job-company { font-size: 1rem; }
    .sharkjobs-job-hero .single-job-meta { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
    .sharkjobs-job-actions-row { align-items: stretch; flex-direction: column; gap: 18px; }
    .sharkjobs-apply-button { width: 100%; }
    .sharkjobs-job-hero .share-job { justify-content: space-between; }
    .sharkjobs-job-hero .share-job-buttons { justify-content: flex-end; }
    .sharkjobs-job-details-grid,
    .sharkjobs-job-sidebar { grid-template-columns: 1fr; }
    .sharkjobs-job-ad { padding: 10px 4px; }
}

/* ========================================
   JOB CATEGORY GRID
======================================== */
.job-category-hero {
    padding: 42px 0;
}

.job-category-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.2rem);
}

.job-category-description {
    max-width: 720px;
    margin: 0 auto 26px;
    font-size: 1rem;
    opacity: .92;
}

.job-category-description > *:last-child {
    margin-bottom: 0;
}

.job-category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: .92rem;
}

.jobs-grid-category {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.job-card--grid {
    min-width: 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 22px;
    text-align: left;
}

.job-card--grid .job-card-icon {
    justify-content: flex-start;
}

.job-card--grid .job-title {
    display: -webkit-box;
    min-height: 2.8em;
    margin-bottom: 10px;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.job-card--grid .job-meta {
    display: grid;
    gap: 7px;
}

.job-card--grid .job-meta span {
    min-width: 0;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.job-card--grid .job-tags {
    align-items: flex-start;
    margin-top: auto;
    padding-top: 4px;
}

.job-card--grid .job-salary {
    overflow-wrap: anywhere;
}

.job-category-grid-ad {
    grid-column: 1 / -1;
}

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

@media (max-width: 640px) {
    .job-category-hero {
        padding: 34px 0;
    }

    .jobs-grid-category {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .job-card--grid {
        min-height: 0;
        padding: 20px;
        text-align: left;
    }

    .job-card--grid .job-card-icon {
        justify-content: flex-start;
    }

    .job-card--grid .job-meta {
        justify-content: initial;
    }

    .job-card--grid .job-tags {
        align-items: flex-start;
    }
}

/* ========================================
   HOME EDITORIAL WIDGET
======================================== */
.home-posts-widget-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-posts-widget-heading h3 {
    margin-bottom: 0;
}

.home-posts-widget-heading > a,
.home-posts-more {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 700;
}

.home-posts-widget-heading > a:hover {
    color: var(--color-primary-dark);
}

.home-posts-list {
    display: grid;
    gap: 10px;
}

.home-post-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.home-post-item:hover {
    color: inherit;
    border-color: #b9d0ff;
    background: #f8fbff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .08);
    transform: translateY(-1px);
}

.home-post-thumb {
    display: block;
    width: 72px;
    height: 58px;
    overflow: hidden;
    border-radius: 9px;
    color: var(--color-primary);
    background: linear-gradient(145deg, #eef4ff 0%, #e0eaff 100%);
}

.home-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.home-post-item:hover .home-post-thumb img {
    transform: scale(1.05);
}

.home-post-thumb > span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.home-post-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.home-post-title {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-post-item:hover .home-post-title {
    color: var(--color-primary);
}

.home-post-link {
    color: var(--color-primary);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .01em;
}

.home-posts-empty {
    color: var(--color-text-light);
    font-size: .86rem;
    line-height: 1.5;
}

/* ========================================
   WORDPRESS POSTS, PAGES AND CATEGORIES
======================================== */
.content-archive-hero {
    padding: 50px 0 42px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.content-archive-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.15;
}

.content-archive-description {
    max-width: 680px;
    margin: 14px auto 0;
    font-size: 1rem;
    opacity: .9;
}

.content-archive-description > *:last-child {
    margin-bottom: 0;
}

.content-archive-section {
    background: var(--color-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: var(--color-primary);
    background: #eaf1ff;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.025);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--color-text-lighter);
    font-size: .78rem;
}

.blog-card-meta a {
    color: var(--color-primary);
    font-weight: 600;
}

.blog-card-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.blog-card-title a {
    color: var(--color-text);
}

.blog-card-title a:hover {
    color: var(--color-primary);
}

.blog-card-body > p {
    margin: 0 0 18px;
    color: var(--color-text-light);
    font-size: .92rem;
    line-height: 1.6;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: .88rem;
    font-weight: 700;
}

.content-empty-state {
    max-width: 560px;
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 20px auto;
    padding: 44px 24px;
    border: 1px dashed var(--color-border);
    border-radius: 14px;
    color: var(--color-text-light);
    text-align: center;
    background: var(--color-bg-white);
}

.content-empty-state > span {
    color: var(--color-primary);
}

.content-empty-state h2,
.content-empty-state p {
    margin: 0;
}

.content-empty-state h2 {
    color: var(--color-text);
}

.content-empty-state .btn {
    margin-top: 8px;
}

.content-single-wrap {
    padding-top: 42px;
    padding-bottom: 10px;
}

.content-single {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
}

.content-single-header {
    padding: clamp(26px, 5vw, 48px) clamp(22px, 6vw, 58px) 28px;
}

.content-single-category {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: .82rem;
    font-weight: 700;
}

.content-single-header h1 {
    max-width: 760px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 6vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.content-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--color-text-light);
    font-size: .88rem;
}

.content-single-featured {
    aspect-ratio: 16 / 8;
    margin: 0;
    overflow: hidden;
    background: #eaf1ff;
}

.content-single-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-prose {
    padding: 34px clamp(22px, 6vw, 58px) 46px;
    color: #243244;
    font-size: 1.03rem;
    line-height: 1.78;
}

.content-prose > *:first-child {
    margin-top: 0;
}

.content-prose > *:last-child {
    margin-bottom: 0;
}

.content-prose h2,
.content-prose h3,
.content-prose h4 {
    margin: 1.7em 0 .65em;
    color: #0f172a;
    line-height: 1.25;
}

.content-prose p,
.content-prose ul,
.content-prose ol,
.content-prose blockquote,
.content-prose figure,
.content-prose table {
    margin: 0 0 1.25em;
}

.content-prose ul,
.content-prose ol {
    padding-left: 1.5em;
}

.content-prose ul {
    list-style: disc;
}

.content-prose ol {
    list-style: decimal;
}

.content-prose blockquote {
    padding: 14px 20px;
    border-left: 4px solid var(--color-primary);
    color: #475569;
    background: #f8fafc;
}

.content-prose img,
.content-prose iframe,
.content-prose table {
    max-width: 100%;
}

.content-prose table {
    width: 100%;
    border-collapse: collapse;
}

.content-prose th,
.content-prose td {
    padding: 10px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.content-prose .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.content-prose .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.content-prose .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.content-prose .alignnone {
    clear: both;
}

.content-prose .wp-caption {
    max-width: 100%;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 6px;
    border-radius: var(--border-radius-base);
    text-align: center;
    margin-bottom: 1.25em;
}

.content-prose .wp-caption.alignleft {
    margin: 0.5em 1.5em 1em 0;
}

.content-prose .wp-caption.alignright {
    margin: 0.5em 0 1em 1.5em;
}

.content-prose .wp-caption.aligncenter {
    margin: 1em auto;
}

.content-prose .wp-caption-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text-light);
    padding: 6px 0 2px;
    margin: 0;
}

.content-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 clamp(22px, 6vw, 58px) 38px;
    color: var(--color-text-light);
    font-size: .86rem;
}

.content-single-tags a {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--color-primary);
    background: #eef4ff;
}

.content-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 0 clamp(22px, 6vw, 58px) 38px;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
    padding-top: 28px;
}

.content-single-tags + .content-share {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.content-share-title {
    color: #334155;
    font-size: .9rem;
    font-weight: 700;
}

.content-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.content-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: #475569;
    background: #fff;
    box-shadow: none;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.content-share .share-btn svg {
    width: 18px;
    height: 18px;
}

.content-share .share-btn:hover {
    transform: translateY(-1px);
    color: var(--color-primary);
    border-color: #93b4ff;
    background: #f8fbff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .12);
}

.content-share .share-facebook {
    color: #1877f2;
}

.content-share .share-twitter {
    color: #111827;
}

.content-share .share-linkedin {
    color: #0a66c2;
}

.content-share .share-whatsapp {
    color: #16a34a;
}

.content-share .share-copy.copied {
    color: #fff;
    border-color: var(--color-secondary);
    background: var(--color-secondary);
}

.content-related {
    margin: 28px 0 8px;
}

.content-related h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
}

.content-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.content-related-card {
    display: grid;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.content-related-card:hover {
    color: inherit;
}

.content-related-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #eef4ff;
}

.content-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.content-related-card:hover .content-related-media img {
    transform: scale(1.04);
}

.content-related-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-primary);
}

.content-related-title {
    display: -webkit-box;
    overflow: hidden;
    color: #172033;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.content-related-card:hover .content-related-title {
    color: var(--color-primary);
}

.content-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
}

.content-post-navigation > div:last-child {
    text-align: right;
}

.content-post-navigation a {
    display: inline-block;
    padding: 10px 0;
    font-weight: 600;
}

.content-page .content-single-header {
    padding-bottom: 12px;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .content-archive-hero {
        padding: 38px 0 34px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .content-single-wrap {
        padding-top: 20px;
    }

    .content-single-header,
    .content-prose {
        padding-right: 20px;
        padding-left: 20px;
    }

    .content-single-tags,
    .content-share {
        padding-right: 20px;
        padding-left: 20px;
    }

    .content-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .content-single-header h1 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .content-single-featured {
        aspect-ratio: 16 / 10;
    }

    .content-post-navigation {
        grid-template-columns: 1fr;
    }

    .content-post-navigation > div:last-child {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .site-header .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .site-logo,
    .custom-logo-link {
        gap: 5px;
        font-size: 1.25rem;
    }

    .site-logo .icon {
        font-size: 1.45rem;
    }

    .custom-logo-link img,
    .custom-logo {
        max-height: 36px;
        max-width: 170px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-actions .btn {
        padding: 8px 10px;
    }

    .menu-toggle {
        padding: 7px;
    }
}
