/* =============================================================================
   SISTEMA DE DISEÑO BASE — FRAMEFFX
   =============================================================================
   Vanilla CSS sin frameworks externos. Estructurado con variables nativas y layouts modernos con flex y grid.
   ============================================================================= */


/* =============================================================================
   1. RESET Y BASE
   ============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #EAF1F5;
    background-color: #020b12;
    /* Evita el scroll horizontal causado por orbes y elementos absolutos */
    overflow-x: hidden;
}

/* ─── Fondo de gradiente de alta calidad ─────────────────────────────────
   Gradientes CSS en capas con alta saturación y opacidad visible.
   Tres focos de luz de color bien diferenciados sobre base oscura.
   ─────────────────────────────────────────────────────────────────────────── */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    /* Base: azul pizarra oscuro — no negro puro para que los gradientes resalten */
    background-color: #040d17;

    /* Sistema de focos de luz en capas:
       1. Teal brillante (esquina superior izquierda)   — foco principal
       2. Azul eléctrico (esquina superior derecha)     — foco secundario
       3. Violeta (inferior derecha)                     — acento de profundidad
       4. Base lineal con variación cromática perceptible */
    background-image:
        radial-gradient(ellipse 80% 60% at 0% 0%,
            hsla(178, 85%, 38%, 0.38) 0%,
            hsla(178, 80%, 30%, 0.10) 45%,
            transparent 70%),
        radial-gradient(ellipse 65% 55% at 100% 0%,
            hsla(205, 95%, 52%, 0.22) 0%,
            hsla(205, 90%, 40%, 0.06) 50%,
            transparent 72%),
        radial-gradient(ellipse 55% 45% at 100% 100%,
            hsla(258, 75%, 58%, 0.18) 0%,
            transparent 65%),
        linear-gradient(160deg,
            #071320 0%,
            #040d18 35%,
            #030b15 65%,
            #05101c 100%);

    background-attachment: fixed;
    background-size: cover;
}

/* ─── Grid sutil superpuesto ─────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(77, 208, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 208, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 100%);
}

/* ─── .bg-grain eliminado ────────────────────────────────── */
.bg-grain {
    display: none;
}




/* =============================================================================
   2. LAYOUT GLOBAL
   ============================================================================= */

/* Sticky footer: columna flex de altura mínima de pantalla completa */
.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    /* Siempre por encima de las capas de fondo */
}

/* El main crece para empujar el footer hacia el fondo */
.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}


/* =============================================================================
   3. CABECERA Y NAVEGACIÓN
   ============================================================================= */

.header {
    background: #0E1924;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    margin-left: 22px;
    text-decoration: none;
    color: #EAF1F5;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #07D6C4;
}

/* --- Zona de usuario autenticado en el nav --- */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-user-email {
    font-size: 13px;
    color: rgba(234, 241, 245, 0.65);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Enlace del perfil en el nav */
.nav-user-profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 5px 14px 5px 5px;
    border-radius: 30px;
    background: rgba(25, 211, 197, 0.05);
    border: 1px solid rgba(25, 211, 197, 0.15);
    transition: background 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease;
    margin-left: 0 !important;
    position: relative;
    overflow: hidden;
}

/* Barra de brillo al hacer hover */
.nav-user-profile-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(25, 211, 197, 0.12) 50%,
            transparent 60%);
    background-size: 200% 100%;
    background-position: 200% center;
    transition: background-position 0.5s ease;
    pointer-events: none;
}

.nav-user-profile-link:hover {
    background: rgba(25, 211, 197, 0.09);
    border-color: rgba(25, 211, 197, 0.55);
    box-shadow:
        0 0 0 3px rgba(25, 211, 197, 0.08),
        0 0 14px rgba(25, 211, 197, 0.15);
}

.nav-user-profile-link:hover::after {
    background-position: -200% center;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    transition: box-shadow 0.25s ease;
}

.nav-user-profile-link:hover .nav-avatar,
.nav-user-profile-link:hover .nav-avatar-placeholder {
    box-shadow: 0 0 0 2px rgba(25, 211, 197, 0.5);
}

.nav-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19d3c5, #4dd0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #041017;
    transition: box-shadow 0.25s ease;
}

.nav-user-profile-link .nav-user-email {
    color: #dadada !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
    letter-spacing: 0.3px;
}

.nav-user-profile-link:hover .nav-user-email {
    color: #19d3c5;
}

/* Botón de login para visitantes */
.nav-login-btn {
    margin-left: 20px;
    padding: 7px 18px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017 !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-login-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    color: #041017 !important;
}

/* Formulario y botón de cierre de sesión */
.logout-form {
    margin: 0;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 123, 134, 0.3);
    color: rgba(255, 123, 134, 0.8);
    padding: 5px 13px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.logout-btn:hover {
    border-color: #ff7b86;
    color: #ff7b86;
    background: rgba(255, 123, 134, 0.08);
    box-shadow: 0 0 10px rgba(255, 123, 134, 0.12);
}

/* --- Mobile Menu Styles --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2.5px;
    background: #EAF1F5;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #0E1924;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.nav-open {
        right: 0;
    }

    .nav a {
        margin-left: 0;
        margin-bottom: 20px;
        font-size: 16px;
        width: 100%;
        display: block;
    }

    .nav-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 20px;
        margin-top: 10px;
    }

    .nav-user-profile-link {
        width: 100%;
    }

    .nav-login-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
}


/* =============================================================================
   4. PIE DE PÁGINA
   ============================================================================= */

.footer {
    flex-shrink: 0;
    /* Nunca se comprime dentro del flex column */
    margin-top: 0;
    text-align: center;
    padding: 22px 24px;
    background: #0E1924;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(234, 241, 245, 0.55);
}


/* =============================================================================
   5. HÉROE GENÉRICO
   ============================================================================= */

.hero {
    text-align: center;
    padding: 60px 20px 30px;
}

/* Héroe compacto para páginas de autenticación */
.hero-login {
    padding: 20px 20px 10px;
}

.hero h1 {
    margin: 0;
    font-size: 2.4rem;
}

.hero-sub {
    margin-top: 10px;
    font-size: 1rem;
    color: rgba(234, 241, 245, 0.7);
}


/* =============================================================================
   6. FORMULARIOS GLOBALES
   ============================================================================= */

.form-box {
    background: rgba(20, 40, 55, 0.85);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    max-width: 480px;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-field label {
    font-size: 13px;
    color: rgba(234, 241, 245, 0.75);
    margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
    padding: 12px 14px;
    font-size: 14px;
    background: rgba(14, 25, 36, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #EAF1F5;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #19d3c5;
    background: rgba(14, 25, 36, 0.95);
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.15);
}

/* Campo de subida de archivo */
.form-field input[type="file"] {
    padding: 8px 12px;
    background: rgba(25, 211, 197, 0.05);
    border: 1px dashed rgba(25, 211, 197, 0.4);
    cursor: pointer;
    color: rgba(234, 241, 245, 0.8);
}

.form-field input[type="file"]::file-selector-button {
    background: rgba(25, 211, 197, 0.15);
    border: 1px solid rgba(25, 211, 197, 0.3);
    color: #19d3c5;
    padding: 6px 14px;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.form-field input[type="file"]:hover {
    border-color: #19d3c5;
    background: rgba(25, 211, 197, 0.08);
}

.form-field input[type="file"]::file-selector-button:hover {
    background: #19d3c5;
    color: #041017;
}

/* Botón de envío genérico */
.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Inputs genéricos reutilizados en perfil y otras páginas */
.form-input,
.form-input-file {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    background: #0E1924;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #EAF1F5;
}

.form-input:focus {
    outline: none;
    border-color: #19d3c5;
}

.form-input:disabled {
    background: #050a0f;
    color: rgba(234, 241, 245, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.8;
}


/* =============================================================================
   7. TABLAS
   ============================================================================= */

.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.simple-table th,
.simple-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}


/* =============================================================================
   8. PAGINACIÓN
   ============================================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    font-size: 14px;
}

.pagination span {
    color: rgba(234, 241, 245, 0.75);
}

.pagination a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(20, 40, 55, 0.8);
    color: #EAF1F5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #19d3c5;
    color: #041017;
    border-color: #19d3c5;
    transform: translateY(-1px);
}


/* =============================================================================
   9. TARJETAS GENÉRICAS Y GRID
   ============================================================================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.card {
    background: rgba(20, 40, 55, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* Línea superior decorativa */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
}

.card h2 {
    margin: 0 0 14px 0;
    font-size: 1.3rem;
    text-align: center;
}

.card p {
    margin: 12px 0;
}

/* Cuerpo con dos zonas: descripción y metadatos */
.card-body {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    align-items: center;
    justify-content: center;
    /* Centra el bloque */
    max-width: 700px;
    /* Limita el ancho */
    margin-left: auto;
    margin-right: auto;
}

.card-desc {
    flex: 2;
    text-align: left;
    max-width: 420px;
}

.card-meta {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Estadísticas genéricas */
.stat-title {
    color: rgba(234, 241, 245, 0.65);
    font-size: 0.8rem;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #19d3c5;
    margin-top: 6px;
}


/* =============================================================================
   PÁGINAS ESPECÍFICAS
   ============================================================================= */


/* =============================================================================
   10. AUTENTICACIÓN — LOGIN Y REGISTRO
   ============================================================================= */

/* Barra de navegación en la página de autenticación */
.topbar {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 14px 20px;
    font-size: 14px;
}

.topbar a {
    text-decoration: none;
    color: rgba(234, 241, 245, 0.75);
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: #19d3c5;
}

/* Contenedor de página de auth — centra el formulario verticalmente */
.login-page {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Orbe de login eliminado — el gradiente del fondo ya da suficiente profundidad */
.login-page::before {
    display: none;
}

.login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

/* Tarjeta principal del formulario */
.login-box {
    width: 100%;
    max-width: 520px;
    background: rgba(12, 22, 34, 0.96);
    border: 1px solid rgba(77, 208, 255, 0.14);
    border-radius: 24px;
    padding: 52px 52px 44px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Línea de acento superior */
.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff, #a78bfa);
}

/* Glow sutil en la esquina superior */
.login-box::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 208, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Logo y badge de marca superior */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
    gap: 12px;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #19d3c5;
    background: rgba(25, 211, 197, 0.08);
    border: 1px solid rgba(25, 211, 197, 0.25);
}

#login-title,
#signup-title {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.4px;
    text-align: center;
    line-height: 1.1;
}

.login-subtitle {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: rgba(234, 241, 245, 0.55);
    text-align: center;
}

/* Campos del formulario dentro del login-box */
.login-box .form-field {
    margin-bottom: 20px;
}

.login-box .form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(234, 241, 245, 0.75);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.login-box .form-field input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: rgba(8, 16, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #EAF1F5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-box .form-field input:focus {
    outline: none;
    border-color: #19d3c5;
    background: rgba(10, 22, 35, 0.95);
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.12);
}

.login-box .form-field input::placeholder {
    color: rgba(234, 241, 245, 0.3);
}

/* Bloque de errores del formulario */
.login-box .form-errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 100, 100, 0.35);
    border-radius: 12px;
    background: rgba(120, 15, 15, 0.2);
    color: #ffc8c8;
}

.login-box .form-errors p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Botón de submit del login */
.login-box .submit-btn {
    margin-top: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 24px rgba(25, 211, 197, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-box .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(25, 211, 197, 0.35);
    opacity: 1;
}

/* Divisor visual entre secciones del formulario */
.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: rgba(234, 241, 245, 0.2);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Enlace de alternancia login ↔ registro */
.form-switch-link {
    margin: 24px 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(234, 241, 245, 0.5);
    line-height: 1.5;
}

.form-switch-link a {
    color: #19d3c5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.form-switch-link a:hover {
    color: #4dd0ff;
    text-decoration: underline;
}

/* Etiqueta "(opcional)" */
.form-optional {
    font-size: 0.78rem;
    color: rgba(234, 241, 245, 0.35);
    font-weight: 400;
}

/* Error inline por campo */
.form-field-error {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #ff7b86;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pantallas grandes: login más espacioso */
@media (min-width: 1440px) {
    .login-box {
        max-width: 600px;
        padding: 64px 64px 54px;
    }

    .login-box .form-field input {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 14px;
    }

    .login-box .submit-btn {
        padding: 17px;
        font-size: 17px;
    }
}


/* =============================================================================
   11. LANDING PAGE
   ============================================================================= */

/* --- Hero --- */
.landing-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    /* Nunca excede el viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    overflow-x: clip;
    overflow-y: visible;
    box-sizing: border-box;
}

/* Degradado de fondo sobre la imagen del body */
.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%,
            rgba(25, 211, 197, 0.08) 0%,
            rgba(2, 11, 18, 0) 70%);
    pointer-events: none;
}

/* Orbes decorativos — sustituidos por luces de acento precisas y limpias */
/* Se eliminan los orbes con filter:blur y colores sólidos que quedaban
   amorfos y poco profesionales. En su lugar, dos destellos de gradiente
   suaves que se integran con el fondo sin competir con él. */
.landing-orb {
    display: none;
    /* Desactivados: el fondo CSS ya aporta profundidad */
}

.landing-orb-1 {
    display: none;
}

.landing-orb-2 {
    display: none;
}

@keyframes landing-float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(0, 0);
    }
}

.landing-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.landing-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #19d3c5;
    background: rgba(25, 211, 197, 0.1);
    border: 1px solid rgba(25, 211, 197, 0.3);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 28px;
}

.landing-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.landing-gradient-text {
    background: linear-gradient(90deg, #19d3c5, #4dd0ff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: landing-shimmer 4s linear infinite;
}

@keyframes landing-shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.landing-hero-sub {
    margin: 20px auto 0;
    max-width: 56ch;
    color: rgba(234, 241, 245, 0.72);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Estadísticas del hero --- */
.landing-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    padding: 18px 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.landing-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.landing-hero-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #EAF1F5;
    letter-spacing: -0.5px;
    line-height: 1;
}

.landing-hero-stat-label {
    font-size: 0.72rem;
    color: rgba(234, 241, 245, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.landing-hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

/* Botones de llamada a la acción */
.landing-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.landing-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 0 rgba(25, 211, 197, 0);
}

.landing-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(25, 211, 197, 0.35);
    color: #041017;
}

.landing-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    background: transparent;
    color: #eaf1f5;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(234, 241, 245, 0.25);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-cta-secondary:hover {
    border-color: #19d3c5;
    color: #19d3c5;
}

/* Indicador de scroll */
.landing-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(234, 241, 245, 0.4);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: landing-bounce 2s ease-in-out infinite;
    z-index: 2;
}

.landing-scroll-hint svg {
    width: 18px;
    height: 18px;
    stroke: rgba(234, 241, 245, 0.4);
}

@keyframes landing-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* --- Secciones generales --- */
.landing-section {
    padding: 100px 40px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    /* Contiene cualquier grid que intente desbordarse */
    overflow: hidden;
}

.landing-section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4dd0ff;
    margin-bottom: 14px;
}

.landing-section-title {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.landing-section-sub {
    margin: 0 auto;
    color: rgba(234, 241, 245, 0.72);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 60ch;
}

.landing-section-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

/* --- Barra divisora --- */
.landing-divider {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(25, 211, 197, 0.25) 30%,
            rgba(77, 208, 255, 0.25) 70%,
            transparent);
}

/* --- Tarjetas de características --- */
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.landing-feature-card {
    background: rgba(8, 18, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    padding: 36px 30px 30px;
    box-sizing: border-box;
    min-width: 0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Número decorativo de fondo */
.landing-feature-num {
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
    color: #EAF1F5;
}

/* Línea de acento superior (visible en hover) */
.landing-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-feature-card--teal::before {
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
}

.landing-feature-card--blue::before {
    background: linear-gradient(90deg, #4dd0ff, #60a5fa);
}

.landing-feature-card--purple::before {
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.landing-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.landing-feature-card--teal:hover {
    border-color: rgba(25, 211, 197, 0.25);
}

.landing-feature-card--blue:hover {
    border-color: rgba(77, 208, 255, 0.25);
}

.landing-feature-card--purple:hover {
    border-color: rgba(167, 139, 250, 0.25);
}

.landing-feature-card:hover::before {
    opacity: 1;
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-feature-card--teal .landing-feature-icon {
    background: rgba(25, 211, 197, 0.1);
    color: #19d3c5;
}

.landing-feature-card--blue .landing-feature-icon {
    background: rgba(77, 208, 255, 0.1);
    color: #4dd0ff;
}

.landing-feature-card--purple .landing-feature-icon {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.landing-feature-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.landing-feature-card p {
    margin: 0;
    color: rgba(234, 241, 245, 0.65);
    font-size: 0.91rem;
    line-height: 1.6;
    flex: 1;
}

.landing-feature-link {
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease;
    margin-top: auto;
}

.landing-feature-card--teal .landing-feature-link {
    color: #19d3c5;
}

.landing-feature-card--blue .landing-feature-link {
    color: #4dd0ff;
}

.landing-feature-card--purple .landing-feature-link {
    color: #a78bfa;
}

.landing-feature-link:hover {
    opacity: 0.75;
}

/* --- Sección marketplace --- */
.landing-market-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.landing-market-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.landing-market-copy p {
    color: rgba(234, 241, 245, 0.72);
    line-height: 1.65;
    margin: 0 0 28px;
}

.landing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.landing-tag {
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid rgba(77, 208, 255, 0.3);
    background: rgba(77, 208, 255, 0.08);
    color: #4dd0ff;
    font-size: 0.8rem;
    font-weight: 600;
}

.landing-market-visual {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(14, 25, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.landing-market-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.landing-market-visual:hover .landing-market-img {
    transform: scale(1.03);
}

.landing-market-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(4, 16, 23, 0.55) 0%,
            transparent 50%);
    pointer-events: none;
}

.landing-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(234, 241, 245, 0.25);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 24px;
    text-align: center;
}

.landing-placeholder-icon {
    font-size: 2.8rem;
    opacity: 0.4;
}

/* --- Servicios (lista horizontal) --- */
.landing-services-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.landing-svc-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    background: rgba(8, 18, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    padding: 36px 40px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.landing-svc-row--reverse {
    grid-template-columns: auto 1fr;
}

.landing-svc-row--reverse .landing-svc-content {
    order: 2;
}

.landing-svc-row--reverse .landing-svc-visual {
    order: 1;
}

.landing-svc-row:hover {
    transform: translateX(4px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.landing-svc-row:nth-child(1):hover {
    border-color: rgba(25, 211, 197, 0.25);
}

.landing-svc-row:nth-child(2):hover {
    border-color: rgba(77, 208, 255, 0.25);
}

.landing-svc-row:nth-child(3):hover {
    border-color: rgba(167, 139, 250, 0.25);
}

.landing-svc-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-svc-content h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.landing-svc-content p {
    margin: 0;
    color: rgba(234, 241, 245, 0.65);
    line-height: 1.65;
    font-size: 0.95rem;
    max-width: 60ch;
}

.landing-svc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    margin-top: 4px;
    transition: opacity 0.2s ease;
}

.landing-svc-link:hover {
    opacity: 0.75;
}

.landing-svc-link--teal {
    color: #19d3c5;
}

.landing-svc-link--blue {
    color: #4dd0ff;
}

.landing-svc-link--purple {
    color: #a78bfa;
}

.landing-svc-visual {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-svc-visual--teal {
    background: rgba(25, 211, 197, 0.08);
    border: 1px solid rgba(25, 211, 197, 0.15);
}

.landing-svc-visual--blue {
    background: rgba(77, 208, 255, 0.08);
    border: 1px solid rgba(77, 208, 255, 0.15);
}

.landing-svc-visual--purple {
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.landing-svc-icon {
    font-size: 3rem;
}

/* Badges de servicio */
.landing-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
}

.landing-service-badge-teal {
    background: rgba(25, 211, 197, 0.12);
    color: #19d3c5;
    border: 1px solid rgba(25, 211, 197, 0.3);
}

.landing-service-badge-blue {
    background: rgba(77, 208, 255, 0.12);
    color: #4dd0ff;
    border: 1px solid rgba(77, 208, 255, 0.3);
}

.landing-service-badge-purple {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

/* --- Sección de llamada a la acción final --- */
.landing-cta-section {
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%,
            rgba(25, 211, 197, 0.06) 0%,
            transparent 70%);
    pointer-events: none;
}

.landing-cta-card {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(14, 25, 36, 0.7);
    border: 1px solid rgba(25, 211, 197, 0.15);
    border-radius: 28px;
    padding: 60px 48px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 32px 80px rgba(0, 0, 0, 0.4);
}

.landing-cta-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(25, 211, 197, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.landing-cta-card h2 {
    margin: 16px 0 20px;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.12;
}

.landing-cta-inner-sub {
    margin: 0 auto 36px;
    color: rgba(234, 241, 245, 0.65);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 52ch;
}

/* Responsive landing — tablet: 3 columnas a 2 */
@media (max-width: 900px) {
    .landing-market-layout {
        grid-template-columns: 1fr;
    }

    .landing-market-visual {
        aspect-ratio: 16/8;
    }

    .landing-features-grid,
    .landing-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Responsive landing — móvil: 2 columnas a 1 */
@media (max-width: 640px) {
    /* Evitar overflow horizontal en el hero */
    .landing-hero {
        padding: 0 16px;
        overflow-x: hidden;
    }

    .landing-hero-inner {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0 4px;
        box-sizing: border-box;
    }

    /* Reducir el clamp mínimo para móviles pequeños */
    .landing-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
        word-break: break-word;
        hyphens: auto;
    }

    .landing-gradient-text {
        display: inline;
        word-break: break-word;
    }

    .landing-section {
        padding: 70px 20px;
    }

    .landing-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .landing-cta-primary,
    .landing-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .landing-features-grid,
    .landing-services-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   12. HOME / DASHBOARD
   ============================================================================= */

.home-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 34px;
}

.home-hero-copy {
    background: linear-gradient(145deg, rgba(14, 25, 36, 0.96), rgba(20, 40, 55, 0.88));
    border: 1px solid rgba(77, 208, 255, 0.16);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.home-eyebrow {
    margin: 0 0 12px;
    color: #19d3c5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.76rem;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    line-height: 1.12;
}

.home-sub {
    margin-top: 14px;
    color: rgba(234, 241, 245, 0.78);
    max-width: 58ch;
    line-height: 1.55;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.home-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-summary.card:hover {
    transform: none;
}

/* KPIs del hero (3 columnas: diseño fusionado de las dos definiciones originales) */
.home-kpis {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-kpi-label {
    margin: 0;
    color: rgba(234, 241, 245, 0.65);
    font-size: 0.8rem;
}

.home-kpi-value {
    margin: 6px 0 0;
    font-size: 1.6rem;
    color: #4dd0ff;
    font-weight: 700;
}

.home-summary-note {
    margin: 14px 0 0;
    color: rgba(234, 241, 245, 0.75);
    line-height: 1.45;
}

/* --- Panel de filtros compacto --- */
.home-filter-panel {
    margin-top: 6px;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
    padding: 18px 22px !important;
    /* Más compacto que el .card genérico */
}

.home-filter-panel.card:hover {
    transform: none;
}

.home-filter-head {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.home-filter-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.home-filter-head p {
    margin: 0;
    color: rgba(234, 241, 245, 0.52);
    font-size: 0.85rem;
}

/* Grid de filtros: input + select + botones */
.home-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: flex-end;
  }
  
  .home-filters > .form-field {
      flex: 1;
      min-width: 200px;
  }

.home-filters select,
.home-filters input {
    width: 100%;
}

.home-filters .form-field {
    margin-bottom: 0;
}

.home-filters .form-field label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(234, 241, 245, 0.45);
    margin-bottom: 5px;
}

.home-filters .form-field input {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13.5px;
}

/* Select de filtros (compartido con los IDs #estado y #orden) */
.home-filters .form-field select,
#estado,
#orden {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13.5px;
    line-height: 1.2;
    background: #0E1924;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    color: #EAF1F5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #19d3c5 50%),
        linear-gradient(135deg, #19d3c5 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 10px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.home-filters .form-field select:focus,
#estado:focus,
#orden:focus {
    outline: none;
    border-color: #19d3c5;
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.15);
}

.home-filter-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 0;
    align-self: end;
}

/* --- Botones de acción del hero --- */
.home-btn-primary {
    width: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13.5px;
}

.home-btn-secondary {
    width: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13.5px;
    border-radius: 8px;
    color: #eaf1f5;
    background: rgba(20, 40, 55, 0.72);
    border: 1px solid rgba(234, 241, 245, 0.22);
    transition: all 0.2s ease;
}

.home-btn-secondary:hover {
    border-color: #19d3c5;
    color: #19d3c5;
    transform: translateY(-1px);
}

/* Botón de acción destructiva: cancelar reserva */
.home-btn-danger {
    width: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(230, 57, 70, 0.12);
    color: #ff7b86;
    border: 1px solid rgba(230, 57, 70, 0.4);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.home-btn-danger:hover {
    background: rgba(230, 57, 70, 0.25);
    border-color: #E63946;
    color: #ff9aa2;
    transform: translateY(-1px);
}

/* --- Grid de clases --- */
.home-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}

/* --- Card de clase en el home --- */
.home-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Cada zona gestiona su propio espaciado */
    padding: 20px 22px 0 !important;
    /* El botón gestiona el padding inferior */
    overflow: hidden;
}

/* Zona superior: título y badge de estado */
.home-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.home-card h2 {
    text-align: left;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    /* Crece; el badge no lo aplasta */
}

/* Badge de estado */
.home-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-status-activa {
    background: rgba(25, 211, 197, 0.1);
    color: #19d3c5;
    border-color: rgba(25, 211, 197, 0.38);
}

.home-status-cancelada {
    background: rgba(230, 57, 70, 0.1);
    color: #ff7b86;
    border-color: rgba(230, 57, 70, 0.38);
}

.home-status-finalizada {
    background: rgba(77, 208, 255, 0.1);
    color: #8ee0ff;
    border-color: rgba(77, 208, 255, 0.35);
}

/* Badge de estado: pendiente de pago */
.home-status-pendiente_pago {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
}

/* Descripción de la card */
.home-card-description {
    margin: 0 0 14px;
    color: rgba(234, 241, 245, 0.68);
    font-size: 0.875rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fila de metadatos: sangra hasta los bordes de la card */
.home-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: auto;
    /* Empuja la fila y los botones hacia el fondo */
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-left: -22px;
    margin-right: -22px;
    margin-bottom: 0;
    padding: 12px 22px;
    background: rgba(0, 0, 0, 0.18);
}

.home-meta-row>div {
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.home-meta-row>div:first-child {
    padding-left: 0;
}

.home-meta-row>div:last-child {
    border-right: none;
}

.home-meta-row p {
    margin: 0;
}

/* Área de acciones al pie de la card */
.home-card-actions {
    margin: 0 -22px;
    /* Sangra hasta los bordes */
    padding: 12px 22px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

/* Botón de reserva a ancho completo dentro del área de acciones */
.home-card-actions .submit-btn {
    flex: 1;
    min-height: 38px;
    font-size: 13.5px;
    padding: 0 14px;
    border-radius: 8px;
    justify-content: center;
}

/* El form también crece para que el botón ocupe todo el ancho */
.home-card-actions form {
    flex: 1;
    display: flex;
}

.home-card-actions form .submit-btn {
    flex: 1;
    width: 100%;
}

.home-card-actions a {
    text-decoration: none;
    color: rgba(234, 241, 245, 0.86);
}

.home-card-actions a:hover {
    color: #19d3c5;
}

.home-link-main {
    color: #4dd0ff;
    font-weight: 600;
    font-size: 0.88rem;
}

.home-link-danger:hover {
    color: #ff7b86 !important;
}

/* Estado vacío */
.home-empty-state {
    text-align: center;
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 40px;
}

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

/* Sección de listado con separador visual entre bloques */
.home-listing {
    margin-bottom: 40px;
}

.home-listing+.home-listing {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-pagination {
    margin-top: 34px;
}

/* Responsive home — tablet */
@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    /* En tablet: input + select en fila, botones debajo */
    .home-filters {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .home-filter-actions {
        grid-column: span 2;
    }
}

/* Responsive home — móvil */
@media (max-width: 640px) {

    .home-hero-copy,
    .home-summary {
        padding: 22px;
    }

    .home-filter-panel {
        padding: 14px 16px !important;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-btn-primary,
    .home-btn-secondary {
        width: 100%;
    }

    /* En móvil: filtros en columna */
    .home-filters {
        grid-template-columns: 1fr;
    }

    .home-filter-actions {
        grid-column: auto;
    }

    /* Meta-row en móvil */
    .home-meta-row {
        grid-template-columns: repeat(3, 1fr);
        margin: 0 -16px;
        padding: 10px 16px;
    }

    .home-meta-row>div {
        padding: 0 8px;
    }

    .home-card-actions {
        margin: 0 -16px;
        padding: 10px 16px;
    }

    .home-card {
        padding: 16px 16px 0 !important;
    }
}


/* =============================================================================
   13. MARKETPLACE
   ============================================================================= */

/* Tarjeta heredada — mantenida para compatibilidad con templates anteriores */
.custom-card {
    background: rgba(14, 25, 36, 0.95) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(77, 208, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(25, 211, 197, 0.15);
    border-color: rgba(25, 211, 197, 0.5) !important;
}

.mkt-page {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 80px;
}

/* --- Hero --- */
.mkt-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    text-align: center;
}

.mkt-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.mkt-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #19d3c5;
    background: rgba(25, 211, 197, 0.08);
    border: 1px solid rgba(25, 211, 197, 0.2);
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.mkt-hero-title {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.mkt-gradient-text {
    background: linear-gradient(90deg, #19d3c5 0%, #4dd0ff 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mkt-hero-sub {
    margin: 0 auto 36px;
    max-width: 56ch;
    color: rgba(234, 241, 245, 0.68);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Orbes del hero del marketplace — sustituidos por una línea de acento limpia */
/* El fondo global ya tiene profundidad cromática; estos orbes sobraban y
   producían artefactos visuales en pantallas de alta densidad. */
.mkt-hero-orb {
    display: none;
}

.mkt-hero-orb--1 {
    display: none;
}

.mkt-hero-orb--2 {
    display: none;
}

@keyframes mkt-orb-float {
    from {
        transform: translateX(-50%) translateY(0);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* --- Chips de categoría --- */
.mkt-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mkt-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(234, 241, 245, 0.65);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.mkt-cat-chip:hover {
    color: #EAF1F5;
    background: rgba(25, 211, 197, 0.08);
    border-color: rgba(25, 211, 197, 0.3);
}

.mkt-cat-chip--active {
    color: #041017;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(25, 211, 197, 0.3);
}

.mkt-cat-chip--active:hover {
    color: #041017;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    opacity: 0.9;
}

/* --- Sección grid --- */
.mkt-grid-section {
    padding: 0 0 40px;
}

.mkt-count-bar {
    margin-bottom: 20px;
    padding: 0 2px;
}

.mkt-count-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(234, 241, 245, 0.35);
}

.mkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* --- Card de producto --- */
.mkt-card {
    display: flex;
    flex-direction: column;
    background: rgba(10, 18, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.mkt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(25, 211, 197, 0.2);
    border-color: rgba(25, 211, 197, 0.2);
}

/* Imagen del producto */
.mkt-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(8, 15, 24, 0.8);
}

.mkt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.88);
}

.mkt-card:hover .mkt-card-img {
    transform: scale(1.04);
    filter: brightness(1);
}

/* Placeholder cuando no hay imagen */
.mkt-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, rgba(10, 20, 32, 0.9), rgba(20, 35, 55, 0.8));
    color: rgba(234, 241, 245, 0.3);
    font-size: 0.82rem;
}

.mkt-card-no-img-icon {
    font-size: 2.2rem;
    opacity: 0.4;
}

/* Badge de tipo flotante sobre la imagen */
.mkt-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.mkt-badge-presets {
    background: rgba(25, 211, 197, 0.15);
    color: #19d3c5;
    border-color: rgba(25, 211, 197, 0.3);
}

.mkt-badge-plugins {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
}

.mkt-badge-project_files {
    background: rgba(77, 208, 255, 0.15);
    color: #4dd0ff;
    border-color: rgba(77, 208, 255, 0.3);
}

.mkt-badge-guias {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

/* Cuerpo de la card */
.mkt-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
    gap: 8px;
}

.mkt-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #EAF1F5;
    line-height: 1.3;
}

.mkt-card-desc {
    margin: 0;
    color: rgba(234, 241, 245, 0.55);
    font-size: 0.88rem;
    line-height: 1.55;
    flex: 1;
}

/* Pie de card: precio y botón de compra */
.mkt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mkt-card-price {
    font-size: 1.55rem;
    font-weight: 800;
    color: #EAF1F5;
    letter-spacing: -0.5px;
    line-height: 1;
}

.mkt-price-currency {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(234, 241, 245, 0.5);
    margin-left: 2px;
}

.mkt-buy-form {
    margin: 0;
}

.mkt-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.mkt-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(25, 211, 197, 0.35);
    opacity: 0.92;
}

.mkt-buy-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Estado vacío del marketplace */
.mkt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 100px 40px;
    background: rgba(14, 25, 36, 0.6);
    border: 1px dashed rgba(77, 208, 255, 0.15);
    border-radius: 24px;
    text-align: center;
}

.mkt-empty-icon {
    font-size: 4rem;
    opacity: 0.45;
}

.mkt-empty h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #EAF1F5;
}

.mkt-empty p {
    margin: 0;
    max-width: 48ch;
    color: rgba(234, 241, 245, 0.55);
    line-height: 1.6;
}

.mkt-empty-cta {
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mkt-empty-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive marketplace — tablet */
@media (max-width: 900px) {
    .mkt-hero {
        padding: 60px 0 40px;
    }

    .mkt-hero-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
}

/* Responsive marketplace — móvil */
@media (max-width: 640px) {
    .mkt-grid {
        grid-template-columns: 1fr;
    }

    .mkt-cat-nav {
        gap: 8px;
    }

    .mkt-cat-chip {
        font-size: 0.78rem;
        padding: 7px 14px;
    }
}

/* Responsive marketplace — pantalla grande */
@media (min-width: 1440px) {
    .mkt-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 36px;
    }

    .mkt-hero-title {
        font-size: clamp(3rem, 4vw, 4.5rem);
    }
}


/* =============================================================================
   14. CLASES Y MENTORÍAS
   ============================================================================= */

/* --- Hero --- */
.cls-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    text-align: center;
}

.cls-hero-orb {
    display: none;
}

.cls-hero-orb--1 {
    display: none;
}

.cls-hero-orb--2 {
    display: none;
}

@keyframes cls-orb-float {
    from {
        transform: translateX(-50%) translateY(0);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

.cls-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.cls-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #19d3c5;
    background: rgba(25, 211, 197, 0.08);
    border: 1px solid rgba(25, 211, 197, 0.22);
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.cls-hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cls-gradient-text {
    background: linear-gradient(90deg, #19d3c5 0%, #4dd0ff 50%, #2dc7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cls-hero-sub {
    margin: 0 auto 32px;
    max-width: 54ch;
    color: rgba(234, 241, 245, 0.68);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Franja de estadísticas clave */
.cls-kpi-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 16px 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(25, 211, 197, 0.12);
    backdrop-filter: blur(8px);
    width: fit-content;
    margin: 0 auto 28px;
}

.cls-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cls-kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #19d3c5;
    letter-spacing: -0.5px;
    line-height: 1;
}

.cls-kpi-label {
    font-size: 0.7rem;
    color: rgba(234, 241, 245, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cls-kpi-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
}

/* --- Botones --- */
.cls-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cls-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(25, 211, 197, 0.35);
    color: #041017;
    opacity: 0.95;
}

.cls-btn-sm {
    padding: 9px 16px;
    font-size: 13px;
}

.cls-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 123, 134, 0.08);
    color: #ff7b86;
    border: 1px solid rgba(255, 123, 134, 0.2);
    transition: all 0.2s ease;
}

.cls-clear-btn:hover {
    background: rgba(255, 123, 134, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

/* --- Sección catálogo --- */
.cls-catalog-section {
    padding-bottom: 60px;
}

.cls-catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cls-catalog-header-text h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
}

.cls-catalog-header-text p {
    margin: 0;
    color: rgba(234, 241, 245, 0.5);
    font-size: 0.88rem;
}

/* Barra de búsqueda inline */
.cls-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cls-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.cls-search-icon {
    position: absolute;
    left: 12px;
    color: rgba(234, 241, 245, 0.35);
    pointer-events: none;
}

.cls-search-input {
    padding: 9px 12px 9px 36px;
    background: rgba(10, 18, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #EAF1F5;
    font-size: 13.5px;
    font-family: inherit;
    width: 220px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cls-search-input:focus {
    outline: none;
    border-color: rgba(25, 211, 197, 0.5);
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.12);
}

.cls-select {
    padding: 9px 36px 9px 12px;
    background: rgba(10, 18, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #EAF1F5;
    font-size: 13.5px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #19d3c5 50%),
        linear-gradient(135deg, #19d3c5 50%, transparent 50%);
    background-position:
        calc(100% - 14px) calc(50% - 2px),
        calc(100% - 8px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.cls-select:focus {
    outline: none;
    border-color: rgba(25, 211, 197, 0.5);
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.12);
}

/* Contador de resultados */
.cls-count-bar {
    margin-bottom: 18px;
}

.cls-count-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(234, 241, 245, 0.3);
}

/* --- Grid --- */
.cls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.cls-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    opacity: 0.75;
}

/* --- Card de clase --- */
.cls-card {
    display: flex;
    flex-direction: column;
    background: rgba(10, 18, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cls-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(25, 211, 197, 0.2);
    border-color: rgba(25, 211, 197, 0.2);
}

.cls-card--reserved:hover {
    border-color: rgba(25, 211, 197, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(25, 211, 197, 0.2);
}

.cls-card--done {
    opacity: 0.7;
}

.cls-card--done:hover {
    opacity: 1;
    border-color: rgba(77, 208, 255, 0.2);
}

/* Franja de cabecera coloreada según estado */
.cls-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cls-card-header--activa {
    background: rgba(25, 211, 197, 0.06);
}

.cls-card-header--confirmada {
    background: rgba(25, 211, 197, 0.06);
}

.cls-card-header--pendiente {
    background: rgba(251, 191, 36, 0.06);
}

.cls-card-header--finalizada {
    background: rgba(77, 208, 255, 0.04);
}

.cls-card-header--cancelada {
    background: rgba(255, 123, 134, 0.05);
}

/* Badge de estado */
.cls-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.cls-status--activa {
    background: rgba(25, 211, 197, 0.12);
    color: #19d3c5;
    border-color: rgba(25, 211, 197, 0.3);
}

.cls-status--confirmada {
    background: rgba(25, 211, 197, 0.1);
    color: #19d3c5;
    border-color: rgba(25, 211, 197, 0.3);
}

.cls-status--pendiente {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.cls-status--finalizada {
    background: rgba(77, 208, 255, 0.1);
    color: #4dd0ff;
    border-color: rgba(77, 208, 255, 0.3);
}

.cls-status--cancelada {
    background: rgba(255, 123, 134, 0.1);
    color: #ff7b86;
    border-color: rgba(255, 123, 134, 0.3);
}

/* Precio en cabecera */
.cls-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #EAF1F5;
    letter-spacing: -0.3px;
    line-height: 1;
}

.cls-card-price small {
    font-size: 0.7em;
    font-weight: 500;
    color: rgba(234, 241, 245, 0.45);
    margin-left: 2px;
}

.cls-card-price--muted {
    color: rgba(234, 241, 245, 0.45);
    font-size: 1rem;
}

/* Cuerpo */
.cls-card-body {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cls-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #EAF1F5;
}

.cls-card-desc {
    margin: 0;
    color: rgba(234, 241, 245, 0.58);
    font-size: 0.86rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadatos: fecha y duración con iconos */
.cls-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cls-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: rgba(234, 241, 245, 0.5);
}

.cls-meta-item svg {
    color: rgba(25, 211, 197, 0.6);
    flex-shrink: 0;
}

/* Pie de card: botones */
.cls-card-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

/* Botón de reserva */
.cls-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cls-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(25, 211, 197, 0.35);
    opacity: 0.95;
}

/* Badge de "ya reservada" */
.cls-reserved-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #19d3c5;
    background: rgba(25, 211, 197, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(25, 211, 197, 0.2);
}

/* Botón de cancelar */
.cls-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid rgba(255, 123, 134, 0.3);
    color: rgba(255, 123, 134, 0.8);
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.cls-cancel-btn:hover {
    border-color: #ff7b86;
    color: #ff7b86;
    background: rgba(255, 123, 134, 0.06);
    box-shadow: 0 0 10px rgba(255, 123, 134, 0.1);
}

/* --- Secciones "Mis clases" --- */
.cls-my-section {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cls-my-section--faded {
    padding-top: 40px;
}

.cls-section-header {
    margin-bottom: 28px;
}

.cls-section-header h2 {
    margin: 8px 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
}

.cls-section-header p {
    margin: 0;
    color: rgba(234, 241, 245, 0.5);
    font-size: 0.88rem;
}

.cls-section-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cls-section-header-badge--active {
    background: rgba(25, 211, 197, 0.08);
    color: #19d3c5;
    border: 1px solid rgba(25, 211, 197, 0.2);
}

.cls-section-header-badge--done {
    background: rgba(77, 208, 255, 0.07);
    color: #4dd0ff;
    border: 1px solid rgba(77, 208, 255, 0.2);
}

/* --- Estado vacío --- */
.cls-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 80px 40px;
    background: rgba(10, 18, 28, 0.6);
    border: 1px dashed rgba(25, 211, 197, 0.15);
    border-radius: 20px;
    text-align: center;
}

.cls-empty--small {
    padding: 48px 32px;
}

.cls-empty-icon {
    font-size: 3.5rem;
    opacity: 0.4;
}

.cls-empty h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #EAF1F5;
}

.cls-empty p {
    margin: 0;
    max-width: 46ch;
    color: rgba(234, 241, 245, 0.55);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Responsive clases — tablet */
@media (max-width: 900px) {
    .cls-hero {
        padding: 60px 0 40px;
    }

    .cls-catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cls-search-form {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .cls-search-field {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cls-search-input {
        width: 100%;
    }

    .cls-select {
        grid-column: 1 / 2;
        width: 100%;
    }

    .cls-clear-btn {
        grid-column: 2 / 3;
    }
}

/* Responsive clases — móvil */
@media (max-width: 640px) {
    .cls-hero-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

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

    .cls-kpi-strip {
        flex-direction: column;
        gap: 16px;
        padding: 16px 24px;
        align-items: center;
        text-align: center;
    }

    .cls-kpi-divider {
        width: 40px;
        height: 1px;
    }

    .cls-search-form {
        grid-template-columns: 1fr;
    }

    .cls-select {
        grid-column: 1 / -1;
    }

    .cls-clear-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Responsive clases — pantalla grande */
@media (min-width: 1440px) {
    .cls-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 28px;
    }
}


/* =============================================================================
   15. MIS COMPRAS — DASHBOARD DE PEDIDOS
   ============================================================================= */

/* Tarjeta con glow violeta para diferenciarse visualmente de las reservas */
.purchase-card {
    border-color: rgba(167, 139, 250, 0.22) !important;
    background: linear-gradient(145deg,
            rgba(12, 20, 36, 0.98),
            rgba(30, 18, 56, 0.85)) !important;
    position: relative;
    overflow: hidden;
    animation: purchase-card-in 0.45s ease both;
}

.purchase-card::before {
    background: linear-gradient(90deg, #a78bfa, #7c3aed) !important;
}

.purchase-card:hover {
    border-color: rgba(167, 139, 250, 0.5) !important;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2) !important;
}

@keyframes purchase-card-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fila superior: tipo de producto y fecha */
.purchase-type-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.purchase-date {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(234, 241, 245, 0.45);
}

/* Badge de estado del pedido */
.purchase-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.purchase-badge-completado {
    background: rgba(25, 211, 197, 0.12);
    color: #19d3c5;
    border-color: rgba(25, 211, 197, 0.4);
}

.purchase-badge-pendiente {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
}

.purchase-badge-reembolsado {
    background: rgba(77, 208, 255, 0.1);
    color: #4dd0ff;
    border-color: rgba(77, 208, 255, 0.35);
}

.purchase-badge-cancelado {
    background: rgba(230, 57, 70, 0.12);
    color: #ff7b86;
    border-color: rgba(230, 57, 70, 0.4);
}

/* Botón de descarga de producto */
.purchase-download-btn {
    background: linear-gradient(90deg, #a78bfa, #7c3aed) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.purchase-download-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45) !important;
    color: #fff !important;
}

/* Mensajes de límite de descargas o sin archivo disponible */
.purchase-limit-msg,
.purchase-no-file {
    font-size: 0.85rem;
    color: rgba(234, 241, 245, 0.45);
    font-style: italic;
    padding: 6px 0;
}

.purchase-limit-msg {
    color: #fbbf24;
}

/* Estado vacío */
.purchase-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 4px;
    opacity: 0.55;
}

.purchase-marketplace-link {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.purchase-marketplace-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}


/* =============================================================================
   16. MODAL DE RESERVA Y PAGO
   ============================================================================= */

/* Overlay de fondo: oscuro con desenfoque */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 11, 18, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    animation: modal-overlay-in 0.2s ease;
}

.booking-modal-overlay[hidden] {
    display: none;
}

@keyframes modal-overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Tarjeta del modal */
.booking-modal-card {
    width: 100%;
    max-width: 460px;
    background: rgba(10, 18, 30, 0.97);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 22px;
    padding: 32px 30px 28px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    position: relative;
    overflow: hidden;
    animation: modal-card-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Línea de acento superior */
.booking-modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #19d3c5, #a78bfa, #7c3aed);
}

/* Glow decorativo */
.booking-modal-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes modal-card-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

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

/* Cabecera */
.booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.booking-modal-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 999px;
    padding: 3px 12px;
}

.booking-modal-close {
    background: transparent;
    border: none;
    color: rgba(234, 241, 245, 0.45);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s ease;
    position: relative;
    z-index: 1;
}

.booking-modal-close:hover {
    color: #EAF1F5;
}

/* Título de la clase */
.booking-modal-title {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* Grid de detalles: duración, inicio, precio */
.booking-modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.booking-modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.booking-modal-meta-item:last-child {
    border-right: none;
}

.booking-modal-meta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(234, 241, 245, 0.4);
}

.booking-modal-meta-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #EAF1F5;
}

/* Precio con acento especial */
.booking-modal-meta-price .booking-modal-meta-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #19d3c5;
}

/* Aviso informativo */
.booking-modal-notice {
    margin: 0 0 24px;
    font-size: 0.82rem;
    color: rgba(234, 241, 245, 0.48);
    line-height: 1.55;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(167, 139, 250, 0.4);
}

/* Fila de botones */
.booking-modal-actions {
    display: flex;
    gap: 10px;
}

.booking-modal-btn-cancel {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    color: rgba(234, 241, 245, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.booking-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #EAF1F5;
}

.booking-modal-btn-pay {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, #19d3c5, #a78bfa);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 22px rgba(167, 139, 250, 0.3);
    letter-spacing: 0.2px;
}

.booking-modal-btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(167, 139, 250, 0.45);
}

.booking-modal-btn-pay:active {
    transform: translateY(0);
}

/* Responsive modal — móvil */
@media (max-width: 500px) {
    .booking-modal-card {
        padding: 24px 20px 20px;
        border-radius: 18px;
    }

    .booking-modal-meta {
        grid-template-columns: 1fr;
    }

    .booking-modal-meta-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .booking-modal-meta-item:last-child {
        border-bottom: none;
    }

    .booking-modal-actions {
        flex-direction: column-reverse;
    }

    .booking-modal-btn-pay,
    .booking-modal-btn-cancel {
        flex: none;
        width: 100%;
    }
}


/* =============================================================================
   17. BANNERS DE PAGO — STRIPE
   ============================================================================= */

.stripe-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    animation: banner-in 0.35s ease;
    position: relative;
}

@keyframes banner-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stripe-banner-ok {
    background: rgba(25, 211, 197, 0.08);
    border-color: rgba(25, 211, 197, 0.3);
}

.stripe-banner-warn {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
}

.stripe-banner-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.stripe-banner-body {
    flex: 1;
}

.stripe-banner-body strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.stripe-banner-body p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(234, 241, 245, 0.72);
}

.stripe-banner-close {
    background: transparent;
    border: none;
    color: rgba(234, 241, 245, 0.5);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.stripe-banner-close:hover {
    color: #EAF1F5;
}


/* =============================================================================
   18. PERFIL DE USUARIO
   ============================================================================= */

/* --- Layout antiguo (mantenido para compatibilidad) --- */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
    min-height: calc(100vh - 200px);
}

@media (min-width: 1024px) {
    .profile-layout {
        grid-template-columns: 450px 1fr;
        padding: 40px 20px;
    }
}

.profile-box {
    background: rgba(20, 40, 55, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    width: 100%;
}

/* Elimina el efecto de levantamiento heredado de .card */
.profile-box:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: -30px -30px 30px -30px;
    /* Expande la cabecera sobre el padding del contenedor */
    padding: 30px;
    background: rgba(8, 15, 22, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #19d3c5;
}

.profile-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19d3c5, #4dd0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #041017;
}

.profile-title-group h2 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
}

.profile-title-group p {
    margin: 0;
    color: rgba(234, 241, 245, 0.7);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-bio-field {
    margin-top: 20px;
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

/* --- Perfil actual con diseño renovado (prf-*) --- */

/* Main sin contenedor genérico */
.prf-site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Wrapper de la página de perfil */
.prf-page {
    position: relative;
    padding: 40px 0 80px;
    overflow-x: hidden;
    min-height: calc(100vh - 68px);
    width: 100%;
}

/* --- Orbes del perfil eliminados (sustituidos por el fondo global) --- */
.prf-orb {
    display: none;
}

.prf-orb--1 {
    display: none;
}

.prf-orb--2 {
    display: none;
}

@keyframes prf-orb-appear {
    to {
        opacity: 0;
    }
}

/* --- Layout de dos columnas --- */
.prf-layout {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
}

/* --- Card principal (sidebar izquierdo) --- */
.prf-card {
    background: rgba(10, 18, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 60px rgba(0, 0, 0, 0.45);
    position: sticky;
    top: 80px;
}

/* Línea de acento teal en la parte superior */
.prf-card::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #19d3c5 0%, #4dd0ff 50%, #a78bfa 100%);
}

/* --- Identidad: avatar + nombre + estadísticas --- */
.prf-card-identity {
    padding: 28px 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Avatar con overlay de cámara al hacer hover */
.prf-identity-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.prf-identity-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid rgba(25, 211, 197, 0.45);
    box-shadow:
        0 0 0 4px rgba(25, 211, 197, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.prf-identity-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19d3c5, #4dd0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #041017;
    border: 2px solid rgba(25, 211, 197, 0.4);
    box-shadow:
        0 0 0 4px rgba(25, 211, 197, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.25s ease;
}

/* Indicador de estado online */
.prf-identity-ring {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #080f1a;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.55);
    pointer-events: none;
}

/* Overlay de cámara al hacer hover */
.prf-identity-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(4, 10, 18, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(234, 241, 245, 0.9);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.prf-identity-avatar-wrap:hover .prf-identity-avatar-overlay {
    opacity: 1;
}

.prf-identity-avatar-wrap:hover .prf-identity-avatar,
.prf-identity-avatar-wrap:hover .prf-identity-avatar-placeholder {
    border-color: #19d3c5;
    box-shadow:
        0 0 0 5px rgba(25, 211, 197, 0.12),
        0 14px 36px rgba(25, 211, 197, 0.18);
}

/* Nombre y email */
.prf-identity-info {
    min-width: 0;
}

.prf-identity-name {
    margin: 0 0 3px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #EAF1F5;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prf-identity-email {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(234, 241, 245, 0.46);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estadísticas compactas */
.prf-identity-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    width: fit-content;
}

.prf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.prf-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #EAF1F5;
    letter-spacing: -0.2px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prf-stat-value--active {
    color: #22c55e;
    font-size: 0.78rem;
}

.prf-stat-label {
    font-size: 0.58rem;
    color: rgba(234, 241, 245, 0.36);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    white-space: nowrap;
}

.prf-stat-sep {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* --- Separador de sección --- */
.prf-card-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin: 20px 0 0;
    color: rgba(234, 241, 245, 0.3);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prf-card-divider::before,
.prf-card-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* --- Formulario --- */
.prf-form {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Input file oculto pero funcional */
.prf-file-hidden-wrap {
    display: none;
}

.prf-file-hidden-wrap input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Grupos de campos */
.prf-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

/* Grid de dos columnas para nombre y email */
.prf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

/* Labels */
.prf-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(234, 241, 245, 0.58);
    letter-spacing: 0.1px;
    user-select: none;
}

.prf-label svg {
    color: rgba(25, 211, 197, 0.55);
    flex-shrink: 0;
}

.prf-label-opt {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(234, 241, 245, 0.25);
}

/* Inputs */
.prf-input-wrap {
    position: relative;
}

.prf-form input[type="text"],
.prf-form input[type="email"],
.prf-form input[type="tel"],
.prf-form textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    background: rgba(6, 12, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    color: #EAF1F5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: block;
    box-sizing: border-box;
    resize: none;
}

.prf-form input[type="text"]:focus,
.prf-form input[type="email"]:focus,
.prf-form input[type="tel"]:focus,
.prf-form textarea:focus {
    outline: none;
    border-color: rgba(25, 211, 197, 0.55);
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.1);
}

.prf-form input::placeholder,
.prf-form textarea::placeholder {
    color: rgba(234, 241, 245, 0.2);
}

.prf-form textarea {
    min-height: 90px;
}

/* Error de campo */
.prf-field-error {
    font-size: 0.78rem;
    color: #ff7b86;
    margin-top: -3px;
}

/* Botón guardar */
.prf-actions {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prf-save-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(90deg, #19d3c5, #4dd0ff);
    color: #041017;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 5px 18px rgba(25, 211, 197, 0.22);
}

.prf-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(25, 211, 197, 0.35);
    opacity: 0.94;
}

.prf-save-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- Columna derecha: historial de compras --- */
.prf-main {
    min-width: 0;
}

/* Cabecera de sección */
.prf-section-header {
    margin-bottom: 20px;
}

.prf-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    width: fit-content;
    margin-bottom: 8px;
}

.prf-section-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.22);
    color: #c4b5fd;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.prf-section-title {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #EAF1F5;
}

.prf-section-sub {
    margin: 0;
    font-size: 0.83rem;
    color: rgba(234, 241, 245, 0.42);
    line-height: 1.5;
}

/* Grid de compras */
.prf-purchases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* --- Tarjeta de compra --- */
.prf-purchase-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg,
            rgba(10, 18, 30, 0.98),
            rgba(22, 12, 44, 0.90));
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 18px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.prf-purchase-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.prf-purchase-card:hover {
    border-color: rgba(167, 139, 250, 0.38);
    box-shadow:
        0 16px 44px rgba(124, 58, 237, 0.16),
        0 0 0 1px rgba(167, 139, 250, 0.14);
}

/* Línea de acento superior */
.prf-purchase-card::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    flex-shrink: 0;
}

/* Cabecera de la tarjeta */
.prf-purchase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(167, 139, 250, 0.04);
}

.prf-purchase-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.prf-purchase-badge--completado {
    background: rgba(25, 211, 197, 0.1);
    color: #19d3c5;
    border-color: rgba(25, 211, 197, 0.32);
}

.prf-purchase-badge--pendiente {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.32);
}

.prf-purchase-badge--cancelado {
    background: rgba(255, 123, 134, 0.1);
    color: #ff7b86;
    border-color: rgba(255, 123, 134, 0.32);
}

.prf-purchase-type {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(167, 139, 250, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cuerpo de la tarjeta */
.prf-purchase-body {
    flex: 1;
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prf-purchase-title {
    margin: 0;
    font-size: 0.97rem;
    font-weight: 700;
    color: #EAF1F5;
    line-height: 1.3;
}

.prf-purchase-desc {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(234, 241, 245, 0.48);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadatos en cuadrícula 2x2 */
.prf-purchase-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.16);
}

.prf-purchase-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.prf-purchase-meta-item:nth-child(even) {
    border-right: none;
}

.prf-purchase-meta-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.prf-purchase-meta-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(234, 241, 245, 0.32);
}

.prf-purchase-meta-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #EAF1F5;
    line-height: 1.2;
}

.prf-purchase-meta-value--price {
    font-size: 1rem;
    font-weight: 800;
    color: #a78bfa;
    letter-spacing: -0.3px;
}

/* Pie: descarga */
.prf-purchase-footer {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.018);
}

.prf-download-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 9px;
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 18px rgba(124, 58, 237, 0.28);
    justify-content: center;
}

.prf-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 26px rgba(124, 58, 237, 0.42);
    color: #fff;
}

.prf-download-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.prf-download-remaining {
    margin-left: auto;
    font-size: 0.68rem;
    opacity: 0.6;
    white-space: nowrap;
}

.prf-download-limit,
.prf-download-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    font-size: 12.5px;
    border-radius: 9px;
}

.prf-download-limit {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.prf-download-unavailable {
    color: rgba(234, 241, 245, 0.38);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* --- Estado vacío --- */
.prf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 32px;
    background: rgba(10, 18, 28, 0.6);
    border: 1px dashed rgba(167, 139, 250, 0.16);
    border-radius: 20px;
    text-align: center;
}

.prf-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.07);
    border: 1px solid rgba(167, 139, 250, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(167, 139, 250, 0.4);
}

.prf-empty-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #EAF1F5;
}

.prf-empty-desc {
    margin: 0;
    max-width: 40ch;
    color: rgba(234, 241, 245, 0.45);
    line-height: 1.6;
    font-size: 0.88rem;
}

.prf-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 18px rgba(124, 58, 237, 0.3);
}

.prf-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.42);
    color: #fff;
}

/* Responsive perfil — tablet */
@media (max-width: 960px) {
    .prf-layout {
        grid-template-columns: 1fr;
        padding: 0 24px;
        gap: 24px;
    }

    .prf-card {
        position: static;
    }
}

/* Responsive perfil — móvil */
@media (max-width: 640px) {
    .prf-page {
        padding: 24px 0 60px;
    }

    .prf-layout {
        padding: 0 16px;
    }

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

    .prf-purchases-grid {
        grid-template-columns: 1fr;
    }

    .prf-identity-avatar,
    .prf-identity-avatar-placeholder {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}

/* Responsive perfil — pantalla grande */
@media (min-width: 1440px) {
    .prf-layout {
        max-width: 1360px;
        grid-template-columns: 380px 1fr;
        gap: 36px;
    }
}


/* =============================================================================
   RESPONSIVE GLOBAL — PANTALLAS QHD Y SUPERIORES
   ============================================================================= */

/* --- Pantallas QHD (≥ 1440px): escala tipografías, contenedores y espaciados --- */
@media (min-width: 1440px) {

    /* Contenedor genérico de contenido */
    .content {
        max-width: 1400px;
        padding: 56px 32px;
    }

    /* Landing: secciones más amplias */
    .landing-section {
        max-width: 1440px;
        padding: 130px 48px;
    }

    .landing-divider {
        max-width: 1440px;
    }

    /* Hero: texto más grande y con más espacio */
    .landing-hero-inner {
        max-width: 1020px;
    }

    .landing-hero h1 {
        font-size: clamp(3.2rem, 5vw, 5.2rem);
    }

    .landing-hero-sub {
        font-size: 1.25rem;
        max-width: 62ch;
    }

    .landing-eyebrow {
        font-size: 0.8rem;
        padding: 6px 20px;
    }

    /* CTAs más grandes */
    .landing-cta-primary,
    .landing-cta-secondary {
        font-size: 17px;
        padding: 16px 36px;
    }

    /* Títulos de sección */
    .landing-section-title {
        font-size: clamp(2.2rem, 3.2vw, 3.4rem);
    }

    .landing-section-sub {
        font-size: 1.1rem;
        max-width: 66ch;
    }

    .landing-section-header {
        margin-bottom: 76px;
    }

    /* Feature cards */
    .landing-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .landing-feature-card {
        padding: 38px 34px;
    }

    .landing-feature-card h3 {
        font-size: 1.25rem;
    }

    .landing-feature-card p {
        font-size: 1rem;
    }

    .landing-feature-icon {
        width: 58px;
        height: 58px;
        font-size: 1.7rem;
    }

    /* Marketplace */
    .landing-market-layout {
        gap: 60px;
    }

    .landing-market-copy h2 {
        font-size: clamp(2rem, 3vw, 2.8rem);
    }

    .landing-market-copy p {
        font-size: 1.05rem;
    }

    /* Servicios */
    .landing-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .landing-service-card {
        padding: 40px 34px;
    }

    .landing-service-card h3 {
        font-size: 1.35rem;
    }

    .landing-service-card p {
        font-size: 1rem;
    }

    /* Sección CTA final */
    .landing-cta-section {
        padding: 140px 48px;
    }

    .landing-cta-inner {
        max-width: 800px;
    }

    .landing-cta-inner h2 {
        font-size: clamp(2.4rem, 4vw, 3.6rem);
    }

    .landing-cta-inner p {
        font-size: 1.15rem;
    }

    /* Orbes más grandes para llenar la pantalla */
    .landing-orb-1 {
        width: 700px;
        height: 700px;
    }

    .landing-orb-2 {
        width: 560px;
        height: 560px;
    }

    /* Home / Dashboard */
    .home-hero h1 {
        font-size: clamp(2.2rem, 3vw, 3.2rem);
    }

    .home-hero {
        gap: 32px;
        margin-bottom: 44px;
    }

    .home-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }

    /* Cabecera más espaciosa */
    .header {
        padding: 18px 48px;
    }

    .logo-img {
        height: 46px;
    }

    .nav a {
        font-size: 15px;
        margin-left: 28px;
    }
}

/* --- Pantallas ultra-wide (≥ 1920px) --- */
@media (min-width: 1920px) {
    .landing-section {
        max-width: 1680px;
        padding: 160px 80px;
    }

    .landing-divider {
        max-width: 1680px;
    }

    .landing-hero h1 {
        font-size: clamp(4rem, 5.5vw, 6rem);
    }

    .landing-hero-sub {
        font-size: 1.35rem;
    }

    .landing-hero-inner {
        max-width: 1200px;
    }

    .content {
        max-width: 1600px;
    }

    .header {
        padding: 20px 80px;
    }
}


/* =============================================================================
   FOOTER — COMPLETO
   ============================================================================= */

.site-footer {
    position: relative;
    background: #020b12;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 0;
}

/* Glow superior decorativo */
.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(25, 211, 197, 0.6) 30%,
            rgba(77, 208, 255, 0.6) 70%,
            transparent);
    pointer-events: none;
}

.footer-glow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(25, 211, 197, 0.07) 0%, transparent 80%);
    pointer-events: none;
}

/* Área principal del footer — 4 columnas */
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 32px 56px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

/* ── Columna Marca ── */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-link {
    display: inline-block;
    width: fit-content;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 0.85;
}

.footer-tagline {
    margin: 0;
    color: rgba(234, 241, 245, 0.55);
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 34ch;
}

/* Redes sociales */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(234, 241, 245, 0.05);
    border: 1px solid rgba(234, 241, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(234, 241, 245, 0.55);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social-btn:hover {
    background: rgba(25, 211, 197, 0.1);
    border-color: rgba(25, 211, 197, 0.3);
    color: #19d3c5;
    transform: translateY(-2px);
}

/* Badge de calidad */
.footer-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(25, 211, 197, 0.06);
    border: 1px solid rgba(25, 211, 197, 0.2);
    color: rgba(25, 211, 197, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

/* ── Columnas de navegación ── */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-col-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(234, 241, 245, 0.9);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(234, 241, 245, 0.52);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #4dd0ff;
    padding-left: 4px;
}

/* ── Columna Newsletter ── */
.footer-col--newsletter {
    gap: 20px;
}

.footer-newsletter-sub {
    margin: 0;
    color: rgba(234, 241, 245, 0.52);
    font-size: 0.87rem;
    line-height: 1.6;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter-row {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease;
}

.footer-newsletter-row:focus-within {
    border-color: rgba(25, 211, 197, 0.5);
    box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.1);
}

.footer-newsletter-input {
    flex: 1;
    background: rgba(14, 25, 36, 0.8);
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 0.88rem;
    color: #EAF1F5;
    font-family: inherit;
}

.footer-newsletter-input::placeholder {
    color: rgba(234, 241, 245, 0.3);
}

.footer-newsletter-btn {
    background: linear-gradient(135deg, #19d3c5, #4dd0ff);
    border: none;
    padding: 0 16px;
    color: #020b12;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.footer-newsletter-btn:hover {
    opacity: 0.88;
    transform: scale(1.04);
}

.footer-newsletter-disclaimer {
    margin: 0;
    color: rgba(234, 241, 245, 0.3);
    font-size: 0.75rem;
}

/* Pills de software compatible */
.footer-compat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-compat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(234, 241, 245, 0.4);
}

.footer-compat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.footer-compat-pill {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(77, 208, 255, 0.06);
    border: 1px solid rgba(77, 208, 255, 0.15);
    color: rgba(77, 208, 255, 0.7);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Barra inferior ── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copyright {
    margin: 0;
    color: rgba(234, 241, 245, 0.38);
    font-size: 0.82rem;
}

.footer-copyright strong {
    color: rgba(234, 241, 245, 0.6);
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal-link {
    color: rgba(234, 241, 245, 0.38);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #4dd0ff;
}

.footer-legal-sep {
    color: rgba(234, 241, 245, 0.2);
    font-size: 0.82rem;
}

.footer-made-with {
    margin: 0;
    color: rgba(234, 241, 245, 0.28);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Responsive: 1280–900px → 2 columnas ── */
@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 60ch;
    }
}

/* ── Responsive: < 640px → 1 columna ── */
@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 48px 20px 40px;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 20px;
    }

    .footer-legal-links {
        flex-wrap: wrap;
    }

    .footer-made-with {
        align-self: center;
    }
}


/* =============================================================================
   ADMIN — BOTONES DE ACCIÓN EN TARJETAS DE CLASES (home.html)
   ============================================================================= */

.home-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Botón base de acción de tarjeta */
.hca-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.hca-btn:hover {
    transform: translateY(-1px);
}

/* Variante Detalle — azul cian */
.hca-btn--detail {
    background: rgba(77, 208, 255, 0.07);
    color: #4dd0ff;
    border-color: rgba(77, 208, 255, 0.2);
}

.hca-btn--detail:hover {
    background: rgba(77, 208, 255, 0.14);
    border-color: rgba(77, 208, 255, 0.45);
    box-shadow: 0 4px 14px rgba(77, 208, 255, 0.12);
}

/* Variante Editar — verde turquesa */
.hca-btn--edit {
    background: rgba(25, 211, 197, 0.07);
    color: #19d3c5;
    border-color: rgba(25, 211, 197, 0.2);
}

.hca-btn--edit:hover {
    background: rgba(25, 211, 197, 0.14);
    border-color: rgba(25, 211, 197, 0.45);
    box-shadow: 0 4px 14px rgba(25, 211, 197, 0.12);
}

/* Variante Eliminar — rojo */
.hca-btn--danger {
    background: rgba(230, 57, 70, 0.07);
    color: #ff7b86;
    border-color: rgba(230, 57, 70, 0.2);
}

.hca-btn--danger:hover {
    background: rgba(230, 57, 70, 0.14);
    border-color: rgba(230, 57, 70, 0.45);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.12);
}


/* =============================================================================
   MARKETPLACE — BADGE ADMIN (sin botón Comprar)
   ============================================================================= */

.mkt-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 183, 3, 0.08);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.22);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ── GOOGLE LOGIN BUTTON ── */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-login-btn:hover {
    background: #f8f9fa;
    border-color: #d2d4d8;
    color: #3c4043;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.1);
}

/* =============================================================================
   MOBILE RESPONSIVE FIXES
   ============================================================================= */

@media (max-width: 640px) {
    .login-box {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .form-box {
        padding: 16px;
    }

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

    .content {
        padding: 20px 15px;
    }

    #login-title, #signup-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 16px;
    }
}

/* =============================================================================
   DETAIL MODAL (QUICK VIEW)
   ============================================================================= */

.detail-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(2, 11, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.detail-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.detail-modal-card {
    background: rgba(10, 20, 28, 0.95);
    border: 1px solid rgba(25, 211, 197, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

.detail-modal-overlay.is-open .detail-modal-card {
    transform: translateY(0) scale(1);
}

.detail-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.detail-modal-close:hover {
    background: rgba(25, 211, 197, 0.2);
    color: #19d3c5;
    transform: rotate(90deg);
}

.detail-modal-media {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #020b12;
    position: relative;
}

.detail-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-modal-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 211, 197, 0.1), rgba(167, 139, 250, 0.1));
    color: rgba(234, 241, 245, 0.5);
    font-size: 3rem;
}

.detail-modal-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.detail-modal-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #19d3c5;
    margin-bottom: 12px;
}

.detail-modal-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.detail-modal-desc {
    color: rgba(234, 241, 245, 0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.detail-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.detail-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.detail-modal-price-tag {
    font-size: 2.2rem;
    font-weight: 800;
    color: #19d3c5;
    line-height: 1;
}

.detail-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Modificadores Responsive */
@media (max-width: 768px) {
    .detail-modal-card {
        grid-template-columns: 1fr;
    }
    
    .detail-modal-media {
        min-height: 200px;
        max-height: 300px;
    }
    
    .detail-modal-content {
        padding: 24px;
    }
}