:root {
    --bg-color: #0f172a; /* Slate 900 */
    --text-color: #f8fafc; /* Slate 50 */
    --primary: #6366f1; /* Indigo 500 */
    --primary-hover: #4f46e5;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

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

/* Utilities */
.hidden { display: none !important; }

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

/* Botones */
button {
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.btn-large {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}
.btn-large:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}

/* Hero Section con Imagen */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}
.hero-content {
    flex: 1;
    text-align: left;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.highlight {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 30px;
}
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-image img { transform: none; }
}

/* Features y Radiografía Clínica */
.features {
    padding: 20px 5% 50px;
    max-width: 1000px;
    margin: 0 auto;
}
.metaphor-box {
    text-align: center;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}
.metaphor-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #818cf8;
}
.metaphor-box p {
    font-size: 1.15rem;
    color: #e2e8f0;
}
.metaphor-box strong {
    color: #fff;
}
.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, background 0.3s;
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
}
.feature-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.06);
}
.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}
.feature-card-content {
    display: flex;
    flex-direction: column;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f8fafc;
}
.feature-card p {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Pricing Cards (Glassmorphism) */
.pricing {
    padding: 50px 5%;
    text-align: center;
}
.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    width: 320px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease;
}
.card.glass:hover {
    transform: translateY(-10px);
}
.card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}
.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.card .price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}
.card ul {
    list-style: none;
    margin-bottom: 30px;
}
.card ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}
.card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}
.btn-login-plan {
    width: 100%;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid var(--glass-border);
}
.btn-login-plan:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Overlay Cargando */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.spinner {
    width: 50px; height: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dashboard Styles */
.dashboard-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.user-info img {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* FAQ Styles */
.faq {
    padding: 50px 5% 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
}
.faq-item h3 {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 10px;
}
.faq-item p {
    color: #94a3b8;
    font-size: 1rem;
}
