:root {
    --bg-dark: #07090e;
    --bg-card: rgba(18, 22, 33, 0.7);
    --border-card: rgba(255, 255, 255, 0.08);
    --accent-cyan: #00f2fe;
    --accent-purple: #7928ca;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-accent: linear-gradient(135deg, #7928ca 0%, #b829ea 100%);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(121, 40, 202, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.12) 0%, transparent 40%);
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

/* Navbar Glassmorphism */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 100px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    background: var(--gradient-primary);
    color: #050b14;
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-card);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Barra de Sesión de Usuario */
.user-session-bar {
    max-width: 1100px;
    margin: 110px auto -80px;
    padding: 12px 24px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.user-avatar {
    font-size: 1.5rem;
}

.btn-small-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 170px 20px 70px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--accent-cyan);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-main {
    background: var(--gradient-primary);
    color: #050b14;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-card);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Stats Grid */
.stats-strip {
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Services Grid */
.services-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.4);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tag-list span {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 50px;
}

.card-btn {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.card-btn:hover {
    background: var(--accent-cyan);
    color: #050b14;
}

/* Tech & Estimator */
.tech-section, .estimator-section {
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.estimator-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.estimator-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
    text-align: left;
}

.est-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.est-check {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-cyan);
}

.estimator-result {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-card);
}

#total-price {
    color: var(--accent-cyan);
    font-size: 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto 120px;
    padding: 0 20px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.faq-icon {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 22px 18px;
}

/* ESTILOS DE MODALES */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #0f131f;
    border: 1px solid var(--border-card);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    padding: 35px 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
}

.full-width {
    width: 100%;
}

.text-center {
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.ticket-badge-result {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    border: 1px dashed var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 10px 24px;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 15px 0;
}

/* Botón Flotante */
.floating-ticket-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--gradient-primary);
    color: #050b14;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
    cursor: pointer;
    z-index: 999;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-card);
    color: var(--text-muted);
    font-size: 0.88rem;
}
