/* =============================================================================
   YoDesk Pro • Landing Page & Web Portal Stylesheet
   Estética Dark Neón Industrial (Cyan #06b6d4, Esmeralda #10b981, Grafito #080d1a)
   ============================================================================= */

:root {
    --bg-dark: #070a12;
    --bg-card: #0b1120;
    --border-cyan: rgba(6, 182, 212, 0.4);
    --cyan-glow: #06b6d4;
    --emerald-glow: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--cyan-glow);
}

.btn-cyan {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cyan-glow);
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 40%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Universal Pin Bar */
.pin-connect-box {
    max-width: 650px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 2px solid var(--border-cyan);
    border-radius: 1.25rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.2);
}

.pin-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pin-input::placeholder {
    color: #475569;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: normal;
}

/* Sections */
.section-wrapper {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.section-title-area {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.portal-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan-glow);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.25);
}

.card-badge-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    margin-right: 6px;
}

.card-badge-offline {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    margin-right: 6px;
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(145deg, #0f172a, #0b1120);
    border: 2px solid rgba(6, 182, 212, 0.5);
    border-radius: 1.5rem;
    padding: 2.25rem;
    text-align: left;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.pricing-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #0284c7;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.pricing-price {
    font-size: 2.75rem;
    font-weight: 900;
    color: #fff;
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-col: column;
    gap: 0.75rem;
}

.pricing-features li {
    font-size: 0.88rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
}

.modal-box {
    background: #0b1120;
    border: 2px solid var(--border-cyan);
    border-radius: 1.5rem;
    max-width: 440px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.35);
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 0.75rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
}

.auth-tab.active {
    background: #0284c7;
    color: #fff;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

.form-input:focus {
    border-color: var(--cyan-glow);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Category Tabs Bar */
.category-tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-tab-btn {
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.category-tab-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
    color: #fff;
}

.category-tab-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(2, 132, 199, 0.4));
    border-color: #06b6d4;
    color: #67e8f9;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

/* Currency & Language Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.lang-selector-group {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.6rem;
    overflow: hidden;
}

.btn-lang {
    padding: 0.3rem 0.55rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-lang.active {
    background: #06b6d4;
    color: #0b1120;
}

.select-lang-dropdown {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.4rem;
    outline: none;
    cursor: pointer;
}

.select-lang-dropdown option {
    background: #0f172a;
    color: #fff;
}

/* SuperAdmin & Portal Modal Overlays */
.modal-overlay-large {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-box-large {
    background: #0b1120;
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 1.5rem;
    max-width: 1050px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(6, 182, 212, 0.25);
    position: relative;
}

.superadmin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.superadmin-tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}

.superadmin-tab-btn.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #67e8f9;
}

.superadmin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.superadmin-table th {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem 0.9rem;
    color: #94a3b8;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.superadmin-table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.superadmin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer Link Superadmin */
.superadmin-footer-btn {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 0.75rem;
}

.superadmin-footer-btn:hover {
    color: #06b6d4;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.85rem;
}
