/* CSS UNIFICADO PARA INDEX Y PERFIL */
:root {
    --bg-color-main: #0a0a0d;
    /* Un tono oscuro con levísima presencia violeta nocturno */
    --bg-purple: #271231;
    /* Purpura oscuro para las cabeceras */
    --bg-card: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-purple: #9747BD;
    /* Color oficial púrpura vivo */
    --bg-search: #411E52;
    /* Fondo para barra y buscador */
    --accent-purple-hover: #b86ed9;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Eliminar highlight azul de tap en móvil y outline de focus */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none;
    outline: none !important;
    box-shadow: none;
}

html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

a:focus,
button:focus,
div:focus,
span:focus,
input:focus {
    outline: none !important;
    box-shadow: none !important;
}

body {
    background-color: var(--bg-color-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

/* =========================================
   ELEMENTOS DE CABECERA Y BÚSQUEDA (INDEX)
========================================= */
.top-header {
    background-color: var(--bg-purple);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 20px 20px 10px 20px;
}

.header-menu-icon {
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

.header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 2px;
}

.btn-top-square {
    background-color: var(--accent-purple);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.search-container {
    background-color: var(--bg-purple);
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #111;
}

.search-input-wrapper {
    flex-grow: 1;
    background-color: var(--bg-search);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 12px 0;
    outline: none;
    font-size: 15px;
}

.btn-filter {
    background-color: var(--bg-search);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
}

.btn-filter.has-filters {
    color: var(--accent-purple);
    position: relative;
}

.btn-filter.has-filters::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #f87171;
    border-radius: 50%;
}

/* =========================================
   GRID VITRINA DE 2 COLUMNAS (INDEX)
========================================= */
.vitrina-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 20px 90px 20px;
}

.vitrina-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 90px 20px;
}

.vitrina-list .mini-card {
    flex-direction: row;
    align-items: stretch;
    padding: 8px;
    border-radius: 14px;
}

.vitrina-list .mini-card-img-container {
    width: 80px;
    height: 80px;
    padding: 0;
    flex-shrink: 0;
}

.vitrina-list .mini-card-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 10px;
}

.vitrina-list .mini-card-info {
    padding: 4px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    min-width: 0;
}

.mini-card {
    background-color: var(--bg-card);
    border-radius: 14px;
    padding-bottom: 5px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.mini-card-img-container {
    width: 100%;
    padding: 6px;
}

.mini-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.mini-card-info {
    padding: 8px 12px;
    min-width: 0;
}

.mini-card-location {
    color: var(--accent-purple);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mini-card-name {
    color: white;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-break: break-all;
}

.mini-card-tags {
    display: none;
}

.vitrina-list .mini-card-tags {
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* 2 líneas en móvil */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    /* Sobrescribe cualquier nowrap previo */
    font-size: 11px;
    color: #888 !important;
    line-height: 1.4;
    margin-top: 4px;
}

/* =========================================
   MENÚ INFERIOR (INDEX)
========================================= */
.vitrina-grid .mini-card-tags {
    display: none;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #121214;
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px 0;
    border-top: 1px solid #222;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--accent-purple);
}

.nav-icon {
    font-size: 22px;
}

/* =========================================
   ESTILOS DE LA PAGINA DETALLADA (perfil.php)
========================================= */
.portfolio-page-body {
    background-color: var(--bg-color-main);
}

.portfolio-container-mobile {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
}

.portfolio-card {
    background-color: var(--bg-color-main);
    width: 100%;
    max-width: 450px;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-slider-container {
    position: relative;
    width: calc(100% - 30px);
    margin: 15px auto 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
    border-radius: 16px;
}

.slider-tracks {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.slider-tracks::-webkit-scrollbar {
    display: none;
}

.slider-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    cursor: pointer;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

/* Botones de navegación del slider (estilo IG web) */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    /* Círculo blanco */
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: none;
    /* Oculto en móvil por defecto, se maneja con swipe */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.2s;
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav-btn .material-symbols-outlined {
    font-size: 22px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.portfolio-header {
    background-color: var(--bg-purple);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    width: 100%;
}

.btn-back-header {
    background: transparent;
    color: white;
    border: none;
    padding: 0;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    line-height: 1;
    font-weight: 300;
    text-decoration: none;
}

.portfolio-body {
    padding: 20px;
    background-color: var(--bg-color-main);
}

.portfolio-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-location {
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.portfolio-date {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.divider {
    border: 0;
    border-top: 1px dashed #333;
    margin: 20px 0;
}

.info-section h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.info-section p {
    font-size: 14px;
    color: #ebebeb;
    line-height: 1.4;
}

.btn-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-purple);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background-color: var(--accent-purple-hover);
}

.wa-icon {
    font-size: 20px;
    margin-right: 8px;
}

.report-box {
    margin-top: 25px;
    background-color: #1a1a1c;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #333;
}

.input-report {
    width: 100%;
    background-color: transparent;
    border: 1px solid #444;
    padding: 12px;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: var(--font-main);
}

/* Carrusel de Recomendaciones en Perfil */
.related-slider-tracks {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    width: 100%;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.related-slider-tracks::-webkit-scrollbar {
    display: none;
}

.related-card-item {
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #161618;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.related-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    padding: 4px;
}

.related-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.related-info-box {
    padding: 6px 8px 10px 8px;
    display: flex;
    flex-direction: column;
}

.related-info-box .r-city {
    color: var(--accent-purple);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1;
}

.related-info-box .r-name {
    color: white;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botones de navegación del carrusel de recomendados (solo desktop) */
.related-nav-btn {
    display: none;
    /* ocultos en móvil */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.related-nav-btn:hover {
    background: #fff;
}

.related-nav-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.related-nav-btn .material-symbols-outlined {
    font-size: 20px;
}

.related-prev {
    left: -16px;
}

.related-next {
    right: -16px;
}

/* =========================================
   LIGHTBOX FULLSCREEN MODAL
========================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.show {
    display: flex;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Conservar proporción original sin recortes */
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 22px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'OPSZ' 24;
}

/* =========================================
   CHIPS DE VISUALIZACION EN PERFIL
========================================= */
.chips-display-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

/* =========================================
   UI SUPERIOR: SIDEBAR, OVERLAYS Y BOTTOM SHEET
========================================= */
.ui-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ui-overlay.active {
    display: block;
    opacity: 1;
}

/* Menú Hamburguesa al 80% */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -85%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    /* fallback navegadores sin dvh */
    height: 100dvh;
    /* dvh excluye la barra de direcciones en móvil */
    background-color: #0c0c0e;
    z-index: 1010;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-menu.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

.sidebar-logo {
    color: var(--accent-purple);
    font-family: serif;
    font-size: 32px;
    line-height: 1;
}

.sidebar-close {
    color: #888;
    font-size: 22px;
    cursor: pointer;
    font-weight: 300;
}

.sidebar-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 24px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 0;
    transition: 0.2s;
}

.sidebar-link svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.5;
    transition: 0.2s;
}

.sidebar-link:hover {
    color: var(--accent-purple);
}

.sidebar-link:hover svg {
    stroke: var(--accent-purple);
}

.sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-top: 1px solid #1a1a1c;
}

.user-info-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.user-email {
    color: #888;
    font-size: 12px;
}

.user-opts {
    color: #e0e0e0;
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
}

/* Bottom Sheet Filtros Avanzados */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 90vh;
    background-color: #1a1a1c;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1010;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.bottom-sheet.open {
    bottom: 0;
}

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    background-color: #444;
    border-radius: 4px;
    margin: 12px auto;
}

.sheet-header-box {
    position: relative;
    padding: 10px 20px 20px 20px;
    text-align: center;
}

.sheet-title {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.sheet-close-btn {
    position: absolute;
    right: 20px;
    top: 0px;
    width: 34px;
    height: 34px;
    background: #2a2a2c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
}

.sheet-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px;
    padding-bottom: 90px;
}

/* Acordeón de Categorias */
.filter-category {
    padding: 18px 0;
    border-bottom: 1px solid #2a2a2c;
    cursor: pointer;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 15px;
    color: #eee;
}

.filter-header-arrow {
    transition: transform 0.2s;
    color: #888;
    font-size: 18px;
    line-height: 1;
}

.filter-body {
    display: none;
    padding-top: 15px;
}

.filter-category.open .filter-body {
    display: block;
}

.filter-category.open .filter-header-arrow {
    transform: rotate(90deg);
}

/* Footer de Filtros */
.sheet-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: #1a1a1c;
    border-top: 1px solid #2a2a2c;
    display: flex;
    gap: 15px;
}

.btn-sheet-clear {
    flex: 1;
    padding: 16px;
    border: 1px solid #555;
    background: transparent;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-sheet-apply {
    flex: 1;
    padding: 16px;
    border: none;
    background: var(--accent-purple);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Chips de Filtro interactivos rápidos */
.filter-chip {
    background-color: transparent;
    border: 1px solid #555;
    color: #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    display: inline-block;
    margin: 4px;
}

.filter-chip.active {
    background-color: #9747BD26;
    /* Color accent con transparencia en Hex */
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.display-chip {
    background-color: #161618;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

/* =========================================
   SISTEMAS DE FORMULARIOS MULTI-ROL Y LOGINS
========================================= */
.admin-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    color: #fff;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1a1a1c;
    text-align: center;
}

/* Inputs Base Premium */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.labels-flex {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-premium {
    width: 100%;
    padding: 15px;
    background: #161618;
    border: 1px solid #333;
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: 0.2s;
}

.input-premium:focus {
    border-color: var(--accent-purple);
    outline: none;
    background: #1a1a1c;
}

/* Grupo de Input con Prefijo (Telegram) */
.input-premium-group {
    display: flex;
    align-items: stretch;
    background: #161618;
    border: 1px solid #333;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.input-premium-group:focus-within {
    border-color: var(--accent-purple);
    background: #1a1a1c;
}

.input-premium-group .prefix {
    color: #aaa;
    font-size: 15px;
    padding: 15px 5px 15px 16px;
    display: flex;
    align-items: center;
    user-select: none;
}

.input-premium-group input {
    background: transparent;
    border: none;
    color: white;
    padding: 15px 15px 15px 5px;
    font-size: 15px;
    font-family: inherit;
    flex: 1;
    outline: none;
}

.char-counter {
    text-align: right;
    font-size: 11px;
    color: #555;
    margin-top: 5px;
    font-weight: 600;
}

/* Botones de acción general */
.btn-submit {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: bold;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-alt {
    background: transparent;
    border: 1px solid #555;
    color: #ddd;
    text-align: center;
    display: block;
    text-decoration: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: 0.2s;
}

.btn-alt:hover {
    border-color: #aaa;
    color: #fff;
}

/* Alertas form */
.msg {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.msg.success {
    background: #0d2a1f;
    border: 1px solid #4ade80;
    color: #4ade80;
}

.msg.error {
    background: #2e1114;
    border: 1px solid #f87171;
    color: #f87171;
}

/* =========================================
   REGLAS ESTRICTAS DE PLATAFORMA (TARJETA WARNING)
========================================= */
.rules-panel {
    background: #1a0f12;
    border: 1px solid #4a151b;
    border-radius: 16px;
    padding: 25px 20px;
    margin-top: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.rules-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.rules-icon {
    color: #ef4444;
    font-size: 28px !important;
}

.rules-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.rules-intro {
    color: #e5b3b3;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.rules-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: #f1f1f1;
    line-height: 1.5;
}

.rules-bullet {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

.rules-bullet .material-symbols-outlined {
    margin: 0 !important;
}

.rules-list strong {
    color: #fca5a5;
    font-weight: 700;
}

/* PANEL PROMOCIONAL DE POSICIONAMIENTO */
.promo-panel {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 25px 20px;
    margin-top: 50px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.promo-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.promo-icon {
    color: #f59e0b;
    font-size: 28px !important;
}

.promo-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.promo-intro {
    color: #f5c87b;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.promo-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.promo-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: #f1f1f1;
    line-height: 1.5;
}

.promo-bullet {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

.promo-bullet .material-symbols-outlined {
    margin: 0 !important;
}

.promo-list strong {
    color: #f59e0b;
    font-weight: 700;
}

/* Toggle Switch iOS Style */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .3s;
    border-radius: 24px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: var(--accent-purple);
}

.switch input:checked+.slider:before {
    transform: translateX(18px);
}

/* =========================================
   MEDIA QUERIES - DESKTOP / TABLET OPTIMIZATION
========================================= */

@media (min-width: 600px) {
    .vitrina-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (min-width: 900px) {

    /* Vitrina y contenedores principales */
    .vitrina-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto;
        gap: 20px;
        padding: 30px 20px 90px 20px;
    }

    .vitrina-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto;
        gap: 20px;
        padding: 30px 20px 90px 20px;
    }

    /* Ocultamiento condicional nativo */
    .desktop-hide {
        display: none !important;
    }

    /* Cabecera y Búsqueda: Fondo de borde a borde pero contenido centrado (max 1200px) */
    .top-header,
    .search-container {
        max-width: none !important;
        margin: 0 !important;
        padding-left: max(20px, calc(50% - 600px)) !important;
        padding-right: max(20px, calc(50% - 600px)) !important;
    }

    /* Bottom Nav centrado y un poco más estilizado */
    .bottom-nav {
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
        border-left: 1px solid #222;
        border-right: 1px solid #222;
    }

    /* Bottom Sheets como Modales Center-Bottom */
    .bottom-sheet {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }

    /* Cards sin hover en PC para look limpio */
    .mini-card {
        border: 1px solid transparent;
    }

    .filter-chip:hover,
    .chip:hover {
        background-color: #9747BD26;
        border-color: var(--accent-purple);
        color: var(--accent-purple);
    }

    /* Mostrar botones de navegación del slider flotantes */
    .slider-nav-btn {
        display: flex;
    }

    /* Mostrar botones del carrusel de recomendados */
    .related-nav-btn {
        display: flex;
    }

    /* Perfil: Expande ligeramente la tarjeta y slider */
    .portfolio-card {
        max-width: 600px;
        border-left: 1px solid #1a1a1c;
        border-right: 1px solid #1a1a1c;
    }

    .portfolio-slider-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        aspect-ratio: 4 / 5;
    }
}

@media (min-width: 1200px) {
    .vitrina-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }
}

/* =========================================
   ASIDE PERMANENTE (SIDEBAR) PARA TABLET GRANDE/PC
========================================= */
@media (min-width: 1024px) {

    /* Desplaza el contenido principal para hacer espacio al sidebar */
    body {
        padding-left: 320px;
    }

    /* Neutralización del Margen 'Fantasma' para páginas de Autenticación */
    body.auth-page {
        padding-left: 0 !important;
    }

    /* Fija el sidebar a la izquierda, ignorando el estado de JavaScript */
    .sidebar-menu {
        left: 0 !important;
        width: 320px !important;
        max-width: none !important;
        border-right: 1px solid #1a1a1c;
        transform: none !important;
        background-color: #0c0c0e;
        /* mismo bg, garantizado */
    }

    /* Ocultamos el botón de hamburguesa y cerrar que ya no se necesitan */
    .sidebar-close,
    .header-menu-icon {
        display: none !important;
    }

    /* Alternar al logo completo y centrar el sidebar header en PC */
    .sidebar-logo-mobile {
        display: none !important;
    }

    .sidebar-logo-desktop {
        display: block !important;
        margin: 0 auto;
    }

    .sidebar-header {
        justify-content: center;
    }

    /* Como fijamos position relativas al viewport, re-centramos elementos tomando en cuenta el sidebar */
    .bottom-nav,
    .bottom-sheet {
        left: calc(50% + 160px) !important;
    }

    /* Layout separado para el detalle del perfil en PC */
    .portfolio-card {
        max-width: 950px;
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
        border: none;
        border-radius: 0;
        margin: 40px auto;
        background: transparent;
        min-height: auto;
        box-shadow: none;
    }

    .portfolio-slider-container {
        width: 45%;
        margin: 0;
        border-radius: 24px;
        border: none;
        aspect-ratio: 3/4;
        /* Relación 3:4 en PC portrait */
        overflow: hidden;
    }

    /* El contenedor info se vuelve independiente, sin bordes, flotando a la derecha */
    .portfolio-body {
        width: 55%;
        padding: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* Vista lista más grande y cómoda en PC */
    .vitrina-list .mini-card {
        padding: 15px;
    }

    .vitrina-list .mini-card-img-container,
    .vitrina-list .mini-card-img {
        width: 140px;
        height: 140px;
        border-radius: 12px;
    }

    .vitrina-list .mini-card-info {
        height: auto;
        min-height: 140px;
        max-height: none;
        padding: 10px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .vitrina-list .mini-card-name {
        margin-bottom: 6px;
    }

    .vitrina-list .mini-card-location {
        margin-bottom: 6px;
    }

    .vitrina-list .mini-card-tags {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        /* 3 líneas en escritorio */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        font-size: 13.5px;
        color: #999 !important;
        margin-top: 8px;
    }
}

@media (min-width: 1200px) {
    .portfolio-card {
        max-width: 1100px;
        min-height: 700px;
    }

    .portfolio-slider-container {
        width: 50%;
    }

    .portfolio-body {
        width: 50%;
        padding: 40px 50px;
    }
}

/* =========================================
   FORZAR REGLAS PARA MOVILES
========================================= */
@media (max-width: 899px) {
    .slider-nav-btn {
        display: none !important;
    }
}



/* UI Empty State Dashboard */
.empty-welcome-card {
    padding: 30px 20px;
    background: #111;
    border-radius: 16px;
    color: #ccc;
    border: 1px solid #222;
}

.ewc-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.ewc-subtitle {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.ewc-subtitle strong {
    color: var(--accent-purple);
}

.ewc-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ewc-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ewc-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ewc-step p {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 3px;
}

.ewc-step strong {
    color: var(--accent-purple);
}

@media (min-width: 1024px) {
    .empty-welcome-card {
        max-width: 700px;
        margin: 50px auto;
        padding: 40px;
        text-align: center;
        border-radius: 24px;
        background: #0d0d0f;
    }

    .ewc-title {
        font-size: 28px;
    }

    .ewc-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .ewc-steps {
        flex-direction: row;
        flex-wrap: wrap;
        text-align: left;
        justify-content: center;
        gap: 20px;
    }

    .ewc-step {
        width: calc(50% - 15px);
        background: #161618;
        padding: 20px;
        border-radius: 16px;
        align-items: center;
    }

    .ewc-step p {
        margin-top: 0;
        font-size: 14px;
    }
}

.welcome-splash-card {
    margin: 20px 15px;
}

@media (min-width: 1024px) {
    .welcome-splash-card {
        margin: 50px auto !important;
        max-width: 600px;
    }
}

/* Scrollbars globales elegantes en PC */
@media (min-width: 1024px) {
    *::-webkit-scrollbar {
        width: 6px;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    *::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Chips clicables desde perfil (etiquetas como links) */
.display-chip--link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.display-chip--link:hover {
    background: rgba(164, 94, 194, 0.15);
}

/* Estilos de etiquetas en tarjetas (Vitrina) */
.mini-card-tags {
    font-size: 11px;
    margin-top: 8px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
}

.card-tag-item {
    cursor: pointer;
    transition: color 0.15s;
}

.card-tag-item:hover {
    color: var(--accent-purple);
}

.vitrina-list .card-tag-item {
    pointer-events: none;
}

.tag-bullet {
    color: #555;
}



/* Estilos para el renderizado de Markdown (Políticas y Términos) */
.markdown-legal-content {
    text-align: left;
    font-size: 15px;
    line-height: 1.7;
    color: #d1d5db;
    /* Gris claro para lectura cómoda */
}

.markdown-legal-content h1,
.markdown-legal-content h2,
.markdown-legal-content h3 {
    color: #8b5cf6;
    /* Púrpura SecretX */
    margin-top: 24px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.markdown-legal-content h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.markdown-legal-content p {
    margin-bottom: 16px;
}

.markdown-legal-content ul,
.markdown-legal-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.markdown-legal-content li {
    margin-bottom: 8px;
}

.markdown-legal-content strong {
    color: #ffffff;
    /* Negritas en blanco brillante para resaltar sobre el texto gris */
}

/* =========================================
   CHIPS DEL CREADOR/EDITOR DE PORTAFOLIO
========================================= */
.chip {
    background-color: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: 0.2s;
}

.chip.active {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background-color: #9747BD26;
}

/* =========================================
   COMPONENTES DE PAGINACIÓN Y CARGA (INDEX)
   ========================================= */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 15px 80px;
}

.btn-page {
    background: #161618;
    border: 1px solid #333;
    color: #ccc;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-page:disabled {
    opacity: 0.35;
    cursor: default;
}

.btn-page:not(:disabled):hover {
    background: #222;
}

.page-info {
    font-size: 13px;
    color: #666;
}

.grid-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #333;
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   COMPONENTES DE ADMINISTRACIÓN Y DASHBOARD
   ========================================= */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.badge.pend {
    background: #2a2a2c;
    color: #9ca3af;
}

.badge.aprob {
    background: #0d2a1f;
    color: #4ade80;
}

.badge.block {
    background: #2e1114;
    color: #f87171;
}

.badge.pause {
    background: #172554;
    color: #60a5fa;
}

.dash-card {
    background: #161618;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-card-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.user-banner {
    background: #1c1c1e;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 35px;
    border: 1px solid #333;
    transition: 0.2s;
}


.user-banner-img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: var(--accent-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.user-banner-info {
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-all;
}

.username {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.1;
}

.user-email {
    font-size: 14px;
    color: #888;
}

/* =========================================
   MEJORAS VISUALES Y TRANSICIONES (PERFIL)
   ========================================= */
.material-symbols-outlined {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   COMPLEMENTOS DE AUDITORÍA Y ERRORES
   ========================================= */
#pwHint {
    font-size: 12px;
    margin-top: 6px;
    transition: color 0.2s;
}

.deploy-audit-container {
    max-width: 800px;
    margin: 0 auto;
}

.deploy-audit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
}

.audit-table th,
.audit-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.audit-table th {
    background: #161618;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pass {
    background: #0d2a1f;
    color: #4ade80;
}

.status-badge.fail {
    background: #2e1114;
    color: #f87171;
}

.audit-msg {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
}

.error-page-container {
    max-width: 420px;
    width: 100%;
    background: #161618;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.error-icon-big {
    font-size: 64px;
    color: #444;
    margin-bottom: 20px;
}

.error-code-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    color: var(--accent-purple);
    margin: 0;
    line-height: 1;
}

.error-title-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
    letter-spacing: 0.5px;
}

.error-desc-text {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-home-error {
    display: inline-block;
    background: var(--accent-purple);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s, background 0.2s;
}

.btn-home-error:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* =========================================
   SISTEMA BEM: BOTONES DE ACCIÓN (portafolio.php / dashboard.php)
   Extraído de estilos en línea — Fuente de Verdad Única
========================================= */

/* --- BASE: Botón de acción vertical (matriz de íconos) --- */
.btn-action {
    width: 100%;
    background: #161618;
    border: none;
    padding: 16px 5px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: filter 0.2s;
}

.btn-action:hover {
    filter: brightness(1.2);
}

/* Icono dentro del botón de acción */
.btn-action .action-icon {
    font-size: 24px;
}

/* Etiqueta de texto dentro del botón de acción */
.btn-action .action-text {
    font-size: 11px;
    font-weight: 700;
}

/* --- MODIFICADORES DE COLOR (icon + label) --- */

/* Acento morado (Editar, Pausar, Usuario, Reportes, etc.) */
.btn-action-purple .action-icon,
.btn-action-purple .action-text {
    color: var(--accent-purple);
}

/* Amber/dorado (Subir / Top) */
.btn-action-top .action-icon,
.btn-action-top .action-text {
    color: #f59e0b;
}

/* Rojo peligro (Rechazar, Banear) */
.btn-action-danger .action-icon,
.btn-action-danger .action-text {
    color: #f87171;
}

/* Fondo rojo oscuro para Banear */
.btn-action-ban {
    background: #2e1114;
}

/* Aprobación (fondo lleno morado, texto blanco) */
.btn-action-approve {
    background: var(--accent-purple);
}

.btn-action-approve .action-icon,
.btn-action-approve .action-text {
    color: #fff;
}

/* Estado deshabilitado / cooldown */
.btn-action-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- MODIFICADORES DE CONTACTO (dashboard.php) --- */
/* WhatsApp Accent */
.btn-action-wa .action-icon,
.btn-action-wa .action-text {
    color: #25D366;
}

/* Telegram Accent */
.btn-action-te .action-icon,
.btn-action-te .action-text {
    color: #24A1DE;
}

/* =========================================
   SISTEMA DE DROPDOWNS PERSONALIZADOS (SX)
   ========================================= */
.sx-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.sx-dropdown-trigger {
    background: #0f0f11 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sx-dropdown-trigger:hover {
    border-color: var(--accent-purple);
}

.sx-dropdown-content {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sx-dropdown-trigger .chevron {
    font-size: 20px;
    color: #888;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.sx-dropdown-wrapper.open .chevron {
    transform: rotate(180deg);
}

.sx-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1a1a1c;
    border: 1px solid #333;
    border-radius: 12px;
    z-index: 200;
    overflow-y: auto;
    max-height: 250px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.sx-dropdown-wrapper.open .sx-dropdown-menu {
    display: block;
}

.sx-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s;
    color: #eee;
    font-size: 14px;
    font-weight: 600;
}

.sx-dropdown-item:hover {
    background: #2a2a2c;
    color: #fff;
}

.sx-dropdown-item .material-symbols-outlined,
.sx-dropdown-content .material-symbols-outlined {
    font-size: 18px;
    color: var(--accent-purple);
    flex-shrink: 0;
}


/* UI ABSTRACTION - CUSTOM SELECT */
.sx-select-wrapper {
    position: relative;
}

.sx-select-trigger {
    background: #0f0f11;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    user-select: none;
}

.sx-select-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sx-select-content .icon {
    font-size: 18px;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.sx-select-content .text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.sx-select-content .text.selected {
    color: #fff;
}

.sx-select-trigger .chevron {
    font-size: 20px;
    color: #888;
    transition: transform 0.2s;
    flex-shrink: 0;
}

/* Placeholder style for empty options (Final override) */
.sx-select-wrapper .sx-option-none {
    color: #777 !important;
    opacity: 0.7;
}

.sx-select-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1a1a1c;
    border: 1px solid #333;
    border-radius: 12px;
    z-index: 200;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    max-height: 250px;
    overflow-y: auto;
}

.sx-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.sx-select-option:hover {
    background: #2a2a2c;
}

.sx-select-option .icon {
    font-size: 18px;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.sx-select-option .text {
    font-size: 14px;
    font-weight: 600;
}

.sx-select-option .badge {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
}

/* COLOR OVERRIDES FOR CONTACT SELECTS */
.sx-select-wa .icon {
    color: #25D366 !important;
}

.sx-select-te .icon {
    color: #24A1DE !important;
}

/* =========================================
   AGE GATE (VERIFICACIÓN DE EDAD)
========================================= */
#sx-age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 13, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: #fff;
    font-family: var(--font-main);
}

.age-gate-content {
    max-width: 420px;
    width: 100%;
    animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-gate-logo {
    height: 100px;
    width: auto;
    margin-bottom: 35px;
    object-fit: contain;
}

.age-gate-warning {
    font-size: 15px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 45px;
}

.age-gate-warning strong {
    color: #fff;
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1.5px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.btn-age {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-age-yes {
    background-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(151, 71, 189, 0.3);
}

#btn-age-yes:active {
    transform: scale(0.97);
}

#btn-age-no {
    background-color: transparent;
    color: #666;
    border: 1px solid #222;
}

#btn-age-no:hover {
    color: #999;
    border-color: #444;
}

/* =========================================
   COMPONENTE TOGGLE SWITCH (PREMIUM)
   ========================================= */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2c2c2e;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #444;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #a1a1a6;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked+.slider {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

input:checked+.slider:before {
    background-color: #ffffff;
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* =========================================
   ESTILOS DE CONTENIDO LEGAL (MARKDOWN)
   ========================================= */
.markdown-legal-content {
    text-align: left;
    font-family: var(--font-main);
    line-height: 1.7;
    color: #d1d5db;
    /* Gris claro */
    font-size: 15px;
}

.markdown-legal-content h3 {
    color: #8b5cf6;
    /* Púrpura SecretX */
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.markdown-legal-content h4 {
    color: #a78bfa;
    /* Violeta claro */
    font-size: 17px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
}

.markdown-legal-content p {
    margin-bottom: 16px;
    color: #d1d5db;
}

.markdown-legal-content strong {
    color: #ffffff;
    /* Blanco brillante */
    font-weight: 700;
}

.markdown-legal-content ul,
.markdown-legal-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.markdown-legal-content li {
    margin-bottom: 8px;
    color: #d1d5db;
}

/* Scrollbar personalizado para el modal de SweetAlert si tiene mucho contenido */
.swal-secretx-theme {
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.swal-secretx-theme .swal2-html-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar estético */
.swal-secretx-theme .swal2-html-container::-webkit-scrollbar {
    width: 6px;
}

.swal-secretx-theme .swal2-html-container::-webkit-scrollbar-track {
    background: #111;
}

.swal-secretx-theme .swal2-html-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.swal-secretx-theme .swal2-html-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}