/* ==========================================================================
   PASIONES.ONLINE - MASTER RESPONSIVE STYLESHEET (CLEAN & UNIFIED)
   ========================================================================== */

:root {
    --primary: #d6004c;
    --primary-dark: #b0003e;
    --primary-light: #fff0f5;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --gold: #f59e0b;
    --gold-bg: #fffdf5;
    --gold-border: #f59e0b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-gray: #f1f5f9;
    --border-color: #cbd5e1;
    --whatsapp-green: #25d366;
    --whatsapp-dark: #128c7e;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 1. UNIVERSAL RESET & ZERO-OVERFLOW */
*, *::before, *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* iOS Input & Select Fixes (No Auto-Zoom, Clean Native Look) */
input, textarea, button {
    font-size: 15px !important;
    border-radius: 6px;
}
select {
    font-size: 15px !important;
    border-radius: 6px;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    background: #ffffff !important;
    cursor: pointer;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    max-width: 100%;
}

/* 2. HEADER */
.main-header {
    background: #ffffff;
    border-bottom: 2px solid var(--primary);
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.logo-area {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.logo-dot {
    color: var(--primary);
}

.logo-sub {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-toggle-search {
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-toggle-search:hover, .btn-toggle-search.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #fbcfe8;
}

.btn-my-ads {
    background: var(--secondary-light);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-my-ads:hover {
    background: #334155;
}

.btn-publish {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-publish:hover {
    background: var(--primary-dark);
}

.free-badge {
    background: #fde047;
    color: #000;
    font-size: 10px !important;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 900;
}

/* 3. PASION.COM COLLAPSIBLE SEARCH DRAWER */
.pasion-search-bar {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 12px 16px;
    width: 100%;
}

.pasion-search-bar.closed {
    display: none;
}

.pasion-search-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px 180px 180px 1fr 120px;
    gap: 10px;
    align-items: flex-end;
}

.search-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-field-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-field-group select, .search-field-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--border-color);
    background: white;
    font-size: 13.5px !important;
    color: var(--text-dark);
    height: 40px;
    border-radius: 6px;
}

.search-field-group select {
    cursor: pointer;
}

.search-field-group select:focus, .search-field-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(214, 0, 76, 0.15);
}

.btn-pasion-search {
    background: var(--primary);
    color: white;
    border: none;
    height: 40px;
    font-weight: 900;
    font-size: 14px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

.btn-pasion-search:hover {
    background: var(--primary-dark);
}

/* 4. MAIN CONTENT LAYOUT */
.main-content-layout {
    max-width: 1300px;
    margin: 18px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 20px;
    width: 100%;
}

/* SIDEBAR ACCORDION */
.sidebar-box {
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.province-accordion {
    list-style: none;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.province-item {
    border-bottom: 1px solid #f1f5f9;
}

.province-header {
    padding: 8px 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
    border-radius: 4px;
    font-weight: 600;
}

.province-header:hover, .province-header.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
}

.city-sublist {
    list-style: none;
    padding: 4px 0 6px 14px;
    background: #f8fafc;
    border-radius: 4px;
    margin: 2px 0 6px 0;
    display: none;
}

.city-sublist.open {
    display: block;
}

.city-item {
    padding: 5px 8px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-radius: 4px;
}

.city-item:hover, .city-item.active {
    color: var(--primary);
    background: #ffe4e6;
    font-weight: 700;
}

.sidebar-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.sidebar-banner h4 {
    font-size: 13px;
    margin-bottom: 4px;
    color: #fbbf24;
}

.sidebar-banner p {
    font-size: 11.5px;
    color: #cbd5e1;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-vip-banner {
    background: var(--gold);
    color: #111;
    font-weight: 800;
    border: none;
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 12px !important;
    cursor: pointer;
    width: 100%;
}

/* FEED SECTION */
.feed-header {
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.feed-title-box h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.count-badge {
    font-size: 12px;
    color: var(--text-muted);
}

.feed-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.feed-sort select {
    padding: 4px 8px;
    font-size: 12px !important;
    background: white;
    border: 1px solid var(--border-color);
}

/* VIP SHOWCASE GRID */
.vip-showcase {
    background: var(--gold-bg);
    border: 2px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 18px;
}

.vip-header-tag {
    font-size: 12px;
    font-weight: 900;
    color: #b45309;
    margin-bottom: 10px;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.vip-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #fde68a;
    display: flex;
    flex-direction: column;
}

.vip-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #000;
}

.vip-card-body {
    padding: 10px;
    flex: 1;
}

.vip-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vip-card-loc {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ADS LIST */
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ad-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.ad-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.ad-card.is-vip {
    background: #fffdf5;
    border: 2px solid var(--gold-border);
}

.ad-thumb-box {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 140px;
    background: #000;
}

.ad-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-badge-ribbon {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--gold);
    color: #000;
    font-size: 10px !important;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.ad-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.ad-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.ad-price-pill {
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    font-size: 12px !important;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ad-location {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.ad-description {
    font-size: 13px;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ad-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    gap: 8px;
}

.btn-phone {
    background: var(--secondary);
    color: white;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.btn-wa {
    background: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.btn-bump {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px !important;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 12px;
    cursor: pointer;
    min-height: 28px;
}

/* PAGINATION */
.pagination {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.page-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px !important;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 5. MODALS UNIVERSALES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: white;
    border-radius: 12px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    background: #e2e8f0;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.15s ease-in-out;
}

.modal-close:hover, .modal-close:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
    transform: scale(1.08);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: white;
}

.btn-submit-ad {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px !important;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    min-height: 44px;
}

/* 6. DETALLE DE ANUNCIO (FOTO SUPERIOR FIJA -> METADATOS -> BANNER -> MINIATURAS) */
.detail-card {
    max-width: 650px !important;
    width: 100% !important;
    padding: 18px !important;
}

.detail-main-photo-box {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 440px;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-main-photo {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
}

.detail-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.3;
}

.detail-desc-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 12px 0;
    white-space: pre-line;
}

.detail-thin-banner {
    margin: 14px 0;
    width: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #334155;
    color: white;
    cursor: pointer;
}

.detail-thin-banner-badge {
    background: var(--gold);
    color: #000;
    font-size: 10px !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
}

.detail-thin-banner-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px !important;
    font-weight: 800;
    cursor: pointer;
}

.detail-gallery-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.detail-gallery-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.detail-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-gallery-thumb-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    background: #000;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.detail-gallery-thumb-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.detail-gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery-zoom-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 9px !important;
    padding: 1px 4px;
    border-radius: 3px;
}

/* 7. LIGHTBOX ZOOM MODAL */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
    z-index: 1000002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000010;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: all 0.15s ease-in-out;
}

.lightbox-close:hover, .lightbox-close:active {
    background: var(--primary);
    border-color: white;
    transform: scale(1.1);
}

.lightbox-img-container {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-zoom-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* 8. MODAL DE VERIFICACIÓN +18 */
.age-modal-overlay {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 1000000 !important;
}

.age-card {
    text-align: center;
    max-width: 460px !important;
    border: 2px solid var(--primary);
    padding: 28px 20px !important;
}

.age-icon-box {
    font-size: 48px;
    margin-bottom: 8px;
}

.age-card h2 {
    font-size: 19px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 10px;
}

.age-text {
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 8px;
}

.age-subtext {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 20px;
}

.age-btn-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-age-enter {
    background: var(--primary);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px !important;
    font-weight: 900;
    cursor: pointer;
}

.btn-age-exit {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 700;
    cursor: pointer;
}

/* 9. COOKIE BANNER & FLOATING SUPPORT */
.cookie-banner {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 860px;
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    z-index: 9999;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.btn-accept-cookies {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 800;
    cursor: pointer;
}

.floating-support-btn {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    background: #0f172a;
    color: #38bdf8;
    border: 2px solid #38bdf8;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 12px !important;
    cursor: pointer;
    z-index: 999;
}

/* FOOTER */
.main-footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)) 16px;
    text-align: center;
    font-size: 12px;
    margin-top: 40px;
}

/* 10. RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .pasion-search-container {
        grid-template-columns: 1fr 1fr;
    }
    .search-text-input, .btn-pasion-search {
        grid-column: span 2;
    }
    .main-content-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-provinces {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 10px 12px;
    }
    .logo-area {
        align-items: center;
    }
    .logo-text {
        font-size: 26px;
    }
    .logo-sub {
        font-size: 12px;
    }
    .header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        width: 100%;
    }
    .btn-toggle-search, .btn-my-ads, .btn-publish {
        justify-content: center;
        padding: 8px 4px;
        font-size: 12px !important;
        width: 100%;
    }
    .free-badge {
        display: none;
    }
    .pasion-search-container {
        grid-template-columns: 1fr;
    }
    .search-text-input, .btn-pasion-search {
        grid-column: span 1;
    }
    .ad-card {
        grid-template-columns: 1fr;
    }
    .ad-thumb-box {
        height: 180px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

/* FontAwesome Standard Icon Rendering */
.fa-solid, .fa-brands, .fa-regular {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    vertical-align: -0.125em;
}



/* ==========================================================================
   OFFICIAL MONETIZATION ARCHITECTURE (6 AD ZONES - 100% RESPONSIVE & ANTI-CLS)
   ========================================================================== */

.ad-slot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: border-color 0.2s;
}

.ad-slot-label {
    font-size: 10px !important;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    user-select: none;
    display: block;
}

.ad-slot-placeholder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

/* 📍 1. BANNER CABECERA (POST-BUSCADOR) */
.ad-slot-header {
    max-width: 1300px;
    width: calc(100% - 32px);
    margin: 12px auto;
    min-height: 100px;
}

.ad-slot-header .ad-banner-frame {
    width: 728px;
    height: 90px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📍 2. BANNER IN-FEED (CADA 10 ANUNCIOS) */
.ad-slot-infeed {
    width: 100%;
    margin: 14px 0;
    min-height: 110px;
    border-radius: var(--radius);
}

.ad-slot-infeed .ad-banner-frame {
    width: 728px;
    height: 90px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📍 3. BANNER INTERIOR DEL ANUNCIO (MODAL / FICHA) */
.ad-slot-inside-ad {
    width: 100%;
    margin: 16px auto;
    min-height: 270px;
}

.ad-slot-inside-ad .ad-banner-frame {
    width: 100%;
    max-width: 336px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📍 4. BANNER SIDEBAR FLOTANTE STICKY (SOLO PC) */
.ad-slot-sidebar-sticky {
    width: 100%;
    margin-top: 18px;
    min-height: 270px;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 10;
}

.ad-slot-sidebar-sticky .ad-banner-frame {
    width: 100%;
    max-width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📍 5. BANNER PIE DE PÁGINA (PRE-PAGINACIÓN) */
.ad-slot-pagination {
    width: 100%;
    margin: 24px auto 16px auto;
    min-height: 100px;
}

.ad-slot-pagination .ad-banner-frame {
    width: 728px;
    height: 90px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📍 6. ESPACIO PARA SOCIAL BAR (NOTIFICACIÓN FLOTANTE) */
#adsterraSocialBarContainer {
    position: fixed;
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 998; /* Below modals and floating support */
    pointer-events: auto;
}

/* RESPONSIVE MEDIA QUERIES PARA ANUNCIOS */
@media (max-width: 992px) {
    .ad-slot-sidebar-sticky {
        display: none !important; /* Oculto en móviles y tablets */
    }
}

@media (max-width: 768px) {
    .ad-slot-header {
        min-height: 70px;
        width: calc(100% - 20px);
    }
    .ad-slot-header .ad-banner-frame {
        width: 320px;
        height: 50px;
    }
    
    .ad-slot-infeed {
        min-height: 270px;
    }
    .ad-slot-infeed .ad-banner-frame {
        width: 300px;
        height: 250px;
    }

    .ad-slot-inside-ad .ad-banner-frame {
        width: 300px;
        height: 250px;
    }

    .ad-slot-pagination {
        min-height: 70px;
    }
    .ad-slot-pagination .ad-banner-frame {
        width: 320px;
        height: 50px;
    }

    #adsterraSocialBarContainer {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        left: 10px;
    }
}


/* DESKTOP HEADER & LOGO ENHANCEMENT */
@media (min-width: 992px) {
    .logo-text {
        font-size: 32px !important;
        font-weight: 900 !important;
        letter-spacing: -0.6px !important;
    }
    .logo-sub {
        font-size: 14px !important;
        color: #475569 !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
    }
    .header-container {
        padding: 14px 20px !important;
    }
}

/* LANGUAGE SWITCHER WIDGET */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 2px 4px;
    gap: 2px;
    font-size: 12px !important;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.lang-btn {
    padding: 4px 8px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 11.5px !important;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 4px rgba(214, 0, 76, 0.3);
}
