/* QuePautas.com - Clean Minimalist E-Commerce Theme (Estilo Vinted / Mercari) */
:root {
    --qp-dark: #0f172a;
    --qp-navy: #1e293b;
    --qp-teal: #06b6d4;
    --qp-teal-bright: #00d2c8;
    --qp-teal-dark: #0891b2;
    --qp-blue: #2563eb;
    --qp-blue-hover: #1d4ed8;
    --qp-bg: #f8fafc;
    --qp-card-bg: #ffffff;
    --qp-border: #e2e8f0;
    --qp-text: #0f172a;
    --qp-muted: #64748b;
    --qp-light-blue: #f0f9ff;
    --qp-pill-bg: #f1f5f9;
    --qp-pill-hover: #e2e8f0;
    --qp-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    --qp-shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.09);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--qp-bg);
    color: var(--qp-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* HEADER NAVBAR FRESCO CON BUSCADOR TIPO PÍLDORA */
.header {
    background-color: var(--qp-dark);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 2px solid var(--qp-teal-bright);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand-logo {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    color: var(--qp-teal-bright);
    font-family: 'Outfit', sans-serif;
    font-size: 27px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.6px;
    flex-shrink: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.9;
}

.brand-logo .logo-com {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    text-transform: lowercase;
    letter-spacing: 0;
    margin-left: 2px;
}

/* BUSCADOR TIPO PÍLDORA INTEGRADO EN HEADER */
.header-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 3px;
    flex: 1;
    max-width: 600px;
    height: 44px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-country-select {
    position: relative;
    width: 135px;
    height: 100%;
    border-right: 1px solid var(--qp-border);
    flex-shrink: 0;
}

.search-country-select select {
    width: 100%;
    height: 100%;
    padding: 0 8px 0 32px;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 800;
    color: var(--qp-dark);
    background: transparent;
    cursor: pointer;
    appearance: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-country-select i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--qp-blue);
    font-size: 14px;
    pointer-events: none;
}

.search-input-field {
    flex: 1;
    height: 100%;
    position: relative;
}

.search-input-field input {
    width: 100%;
    height: 100%;
    padding: 0 12px;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: var(--qp-dark);
    font-weight: 500;
    border-radius: 0 30px 30px 0;
}

.btn-header-search {
    background: linear-gradient(135deg, var(--qp-teal-bright) 0%, var(--qp-teal) 100%);
    color: var(--qp-dark);
    border: none;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 3px;
}

.btn-header-search:hover {
    transform: scale(1.05);
    background: #ffffff;
    color: var(--qp-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.header-link:hover {
    color: var(--qp-teal-bright);
}

.btn-post {
    background: linear-gradient(135deg, var(--qp-teal-bright) 0%, var(--qp-teal) 100%);
    color: var(--qp-dark);
    font-weight: 800;
    font-size: 13.5px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 210, 200, 0.25);
    transition: all 0.2s ease;
}

.btn-post:hover {
    background: #ffffff;
    color: var(--qp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.4);
}

/* ENCABEZADO DE PÁGINA IZQUIERDA */
/* HERO BANNER DE ALTO IMPACTO VISUAL */
.hero-banner-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 40px 20px 35px 20px;
    border-bottom: 3px solid var(--qp-teal-bright);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-content-wrap {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 210, 200, 0.15);
    color: var(--qp-teal-bright);
    border: 1px solid rgba(0, 210, 200, 0.3);
    font-size: 12.5px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-h1-hero {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
}

.main-h1-sub-hero {
    font-size: 15px;
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.5;
}

/* ENCABEZADOS DE SECCIÓN */
.section-title-wrap {
    margin-bottom: 18px;
}

.section-block-title {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--qp-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-block-title i.text-teal {
    color: var(--qp-teal-bright);
}

.section-block-sub {
    font-size: 13.5px;
    color: var(--qp-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* TARJETAS MODERNAS DE PAÍSES DE EXPANSIÓN (AL PIE DEL SITIO) */
.countries-featured-section {
    max-width: 1280px;
    margin: 45px auto 40px auto;
    padding: 32px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.countries-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.country-hero-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.country-hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.25s ease;
}

.country-card-mx::before { background: linear-gradient(90deg, #006847, #ce1126); }
.country-card-co::before { background: linear-gradient(90deg, #fcd116, #003893, #ce1126); }
.country-card-pe::before { background: linear-gradient(90deg, #d91023, #ffffff, #d91023); }
.country-card-cl::before { background: linear-gradient(90deg, #0039a6, #d91023); }
.country-card-ar::before { background: linear-gradient(90deg, #75aadb, #ffffff, #75aadb); }
.country-card-ec::before { background: linear-gradient(90deg, #ffdd00, #003893, #ce1126); }

.country-hero-box:hover::before {
    height: 7px;
}

.country-hero-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    border-color: var(--qp-teal-bright);
}

.country-box-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.flag-img-hero {
    width: 44px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.08);
}

.country-box-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--qp-dark);
}

.country-status-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    margin-top: 3px;
}

.tag-mx { background: #e0f2fe; color: #0369a1; }
.tag-co { background: #fef3c7; color: #92400e; }
.tag-pe { background: #fee2e2; color: #991b1b; }
.tag-cl { background: #e0e7ff; color: #3730a3; }
.tag-ar { background: #e0f2fe; color: #0284c7; }
.tag-ec { background: #fef9c3; color: #854d0e; }

.country-box-desc {
    font-size: 13.5px;
    color: var(--qp-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.btn-country-link {
    background-color: var(--qp-dark);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 13.5px;
    padding: 11px 18px;
    border-radius: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-country-link:hover {
    background-color: var(--qp-teal-bright);
    color: var(--qp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 210, 200, 0.35);
}


/* SECCIÓN ÚLTIMAS PUBLICACIONES RECIENTES */
.recent-ads-section {
    max-width: 1280px;
    margin: 30px auto 35px auto;
    padding: 0 20px;
}

/* SECCIÓN ÚLTIMAS PUBLICACIONES RECIENTES (ESTILO TIENDA / CATALOGO MODERNO) */
.recent-ads-section {
    max-width: 1280px;
    margin: 30px auto 35px auto;
    padding: 0 20px;
}

.recent-ads-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

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

.recent-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--qp-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recent-section-title i.text-teal {
    color: var(--qp-teal-bright);
}

.btn-see-more-circle {
    color: #7c3aed;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.btn-see-more-circle i {
    font-size: 18px;
    color: #7c3aed;
    transition: transform 0.25s ease;
}

.btn-see-more-circle:hover {
    color: #6d28d9;
    transform: translateX(2px);
}

/* BARRA DE PESTAÑAS HORIZONTAL (SCROLLABLE EN MÓVIL) */
.recent-tabs-wrapper {
    margin-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.recent-tabs-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.recent-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.recent-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
}

.recent-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.recent-tab-btn.active {
    color: #6d28d9;
    font-weight: 800;
    background: #f3e8ff;
}

/* LAYOUT PRINCIPAL DEL CUERPO (BANNER LATERAL + CARDS) */
.recent-body-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* BANNER LATERAL PROMO TIPO CATALOGO */
.recent-side-banner {
    width: 230px;
    min-width: 230px;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 16px;
    padding: 24px 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(49, 46, 129, 0.25);
}

.recent-side-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.side-banner-badge {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.side-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
}

.side-banner-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.btn-side-banner {
    background: #ffffff;
    color: #312e81;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-side-banner:hover {
    background: var(--qp-teal-bright);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 200, 0.4);
}

.recent-cards-wrapper {
    flex: 1;
    min-width: 0;
}

/* GRID DE TARJETAS DE PRODUCTO (4 EN DESKTOP) */
.recent-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.recent-ad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.recent-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.recent-card-img-link {
    display: block;
    text-decoration: none;
}

.recent-card-img-wrap {
    width: 100%;
    height: 165px;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.recent-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.recent-ad-card:hover .recent-card-img-wrap img {
    transform: scale(1.06);
}

.btn-fav-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    z-index: 2;
}

.btn-fav-heart:hover, .btn-fav-heart.active {
    background: #fee2e2;
    color: #ef4444;
}

.recent-country-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.06);
}

.recent-country-badge .flag-img-sm {
    width: 15px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 0;
}

.recent-card-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.recent-cat-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #15803d;
    background: #dcfce7;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    width: fit-content;
    letter-spacing: 0.3px;
}

.recent-card-price {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.recent-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    height: 35px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.recent-card-title a {
    color: #334155;
    text-decoration: none;
}

.recent-card-title a:hover {
    color: var(--qp-teal-dark);
}

.recent-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.recent-card-footer i {
    color: var(--qp-teal-bright);
}

.recent-card-location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

/* RESPONSIVE MEDIA QUERIES PARA MÓVIL Y TABLET */
@media (max-width: 992px) {
    .recent-body-layout {
        flex-direction: column;
    }
    .recent-side-banner {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 18px 20px;
    }
    .side-banner-badge {
        margin-bottom: 6px;
    }
    .side-banner-title {
        font-size: 17px;
        margin-bottom: 4px;
    }
    .side-banner-desc {
        margin-bottom: 0;
        font-size: 12px;
    }
    .recent-ads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .recent-ads-container {
        padding: 16px 14px;
    }
    .recent-side-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .side-banner-desc {
        margin-bottom: 14px;
    }
    .btn-side-banner {
        width: 100%;
    }
    .recent-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .recent-card-img-wrap {
        height: 135px;
    }
    .recent-card-content {
        padding: 10px;
    }
    .recent-card-price {
        font-size: 15px;
    }
}

.no-ads-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    color: var(--qp-muted);
    font-size: 14px;
    font-weight: 600;
}

.no-ads-placeholder a {
    color: var(--qp-dark);
    text-decoration: underline;
    font-weight: 800;
}

/* RESPONSIVE PARA RECENT ADS */
@media (max-width: 1100px) {
    .recent-ads-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 600px) {
    .recent-ads-section {
        margin: 20px auto 25px auto;
        padding: 0 14px;
    }
    .recent-ads-container {
        padding: 16px 14px;
    }
    .recent-ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .recent-card-img-wrap {
        height: 130px;
    }
    .recent-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .btn-see-more-link {
        display: none;
    }
}

/* LAYOUT PRINCIPAL: DIRECTORIO CATEGORÍAS + ANUNCIO LATERAL 300x600 GAM */
.main-directory-layout {
    max-width: 1280px;
    margin: 10px auto 45px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    align-items: start;
}

.directory-container {
    background: #ffffff;
    border: 1px solid var(--qp-border);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: var(--qp-shadow);
}

.directory-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--qp-bg);
    padding-bottom: 10px;
}

.directory-header-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--qp-dark);
}

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

.directory-category-block {
    display: flex;
    flex-direction: column;
}

.category-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--qp-teal-bright);
}

.category-block-icon {
    font-size: 17px;
    color: var(--qp-dark);
}

.category-block-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--qp-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-block-title:hover {
    color: var(--qp-teal);
}

/* ETIQUETAS SUBCATEGORÍAS ESTILO VINTED / MERCARI */
.subcategories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.subcategories-pills a {
    display: inline-flex;
    align-items: center;
    background-color: var(--qp-pill-bg);
    color: #334155;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.subcategories-pills a:hover {
    background-color: var(--qp-dark);
    color: var(--qp-teal-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* ASIDE SIDEBAR BANNER 300x600 GAM / ADSENSE */
.sidebar-ad-wrapper {
    position: sticky;
    top: 75px;
}

.gam-ad-container-300x600 {
    width: 300px;
    min-height: 600px;
    background: #ffffff;
    border: 1px solid var(--qp-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--qp-shadow);
    position: relative;
    overflow: hidden;
}

.ad-slot-box {
    width: 100%;
    height: 550px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.ad-slot-box.ad-slot-available {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #94a3b8;
    position: relative;
    padding: 30px 20px;
}

.ad-badge-available {
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.ad-icon-pulse {
    font-size: 42px;
    color: var(--qp-teal);
    margin-bottom: 14px;
}

.ad-slot-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 12px 0 20px 0;
    max-width: 230px;
}

.btn-ad-pautar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--qp-dark);
    color: var(--qp-teal-bright) !important;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
    margin-bottom: 22px;
}

.btn-ad-pautar:hover {
    background: var(--qp-teal-bright);
    color: var(--qp-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 210, 200, 0.35);
}

.ad-watermark-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.watermark-colombiads {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45) !important;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.ad-slot-box i {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--qp-dark);
}

.ad-slot-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--qp-dark);
    margin-bottom: 4px;
}

.ad-slot-dimensions {
    font-size: 12px;
    font-weight: 700;
    color: var(--qp-muted);
}

.ad-patrocinado-tag {
    text-align: right;
    font-size: 11px;
    color: var(--qp-muted);
    font-weight: 700;
    padding-top: 6px;
}

/* FOOTER GLOBAL CON MARCA DE AGUA */
.footer {
    background-color: var(--qp-dark);
    color: #ffffff;
    padding: 40px 20px 25px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--qp-teal-bright);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 20px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 15px;
}


/* 📱 RESPONSIVO OPTIMIZADO PARA MÓVIL (< 768px) */
@media (max-width: 1024px) {
    .main-directory-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-ad-wrapper {
        position: static;
        display: flex;
        justify-content: center;
    }

    .gam-ad-container-300x600 {
        width: 100%;
        max-width: 300px;
    }

    .directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        padding: 10px 14px !important;
        gap: 10px 10px !important;
    }

    .header-brand-wrap {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .brand-logo {
        font-size: 22px !important;
    }

    .brand-logo .logo-com {
        font-size: 11.5px !important;
    }

    .header-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        justify-content: flex-end !important;
    }

    .header-link {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }

    .header-link i {
        display: inline-block !important;
        margin-right: 2px !important;
        font-size: 12px !important;
    }

    .btn-post {
        font-size: 11.5px !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    .header-search-form {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 44px !important;
        border-radius: 25px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        padding: 3px !important;
        display: flex !important;
    }

    .search-country-select {
        width: 95px !important;
        border-right: 1px solid #e2e8f0 !important;
        flex-shrink: 0 !important;
    }

    .search-country-select select {
        font-size: 11.5px !important;
        padding: 0 4px 0 24px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }

    .search-country-select i {
        left: 8px !important;
        font-size: 12px !important;
        color: var(--qp-teal) !important;
    }

    .search-input-field {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .search-input-field input {
        width: 100% !important;
        font-size: 13px !important;
        padding: 0 10px !important;
        color: #1e293b !important;
    }

    .search-input-field input::placeholder {
        font-size: 12px !important;
        color: #94a3b8 !important;
    }

    .btn-header-search {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        margin-right: 2px !important;
        border-radius: 50% !important;
        background: var(--qp-dark) !important;
        color: var(--qp-teal-bright) !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
        flex-shrink: 0 !important;
    }

    .page-header-container {
        margin-top: 16px;
        padding: 0 14px;
    }

    .main-h1 {
        font-size: 20px;
    }

    .main-h1-sub {
        font-size: 12.5px;
    }

    .countries-featured-section {
        margin: 14px auto 20px auto;
        padding: 0 14px;
    }

    .countries-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .country-hero-box {
        padding: 14px;
    }

    .country-flag-badge {
        font-size: 28px;
    }

    .country-box-title {
        font-size: 17px;
    }

    .country-box-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .btn-country-link {
        font-size: 12px;
        padding: 8px 12px;
    }

    .main-directory-layout {
        margin-top: 10px;
        padding: 0 14px;
    }

    .directory-container {
        padding: 16px 14px;
    }

    .directory-header-title h2 {
        font-size: 16px;
    }

    .directory-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Fix Estilos de Botones Globales (Prevenir botones blancos o invisibles) */
.btn-post-dash,
.btn-submit-post,
.auth-btn-submit,
.btn-auth-submit {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #00d2c8 !important;
    border: none !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-post-dash:hover,
.btn-submit-post:hover,
.auth-btn-submit:hover,
.btn-auth-submit:hover {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 210, 200, 0.35) !important;
}
