:root {
    --primary: #007AFF; /* Azul clásico iOS */
    --primary-hover: #005bb5;
    --bg-color: #FAFCFF; /* Un blanco perla con un toque sutil de azul */
    --text-main: #111111;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--text-main);
}

.btn-secondary {
    background-color: #EEF2F6;
    color: var(--text-main) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-weight: 600 !important;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5% 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.badge {
    display: inline-block;
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: #000;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

/* App Store Badge */
.appstore-badge {
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.appstore-badge img {
    height: 54px;
    width: auto;
}

.appstore-badge:hover {
    transform: translateY(-3px) scale(1.03);
    opacity: 0.9;
}

.download-hint {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

/* Presentación del Celular */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    perspective: 1000px; /* Para efecto 3D */
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, rgba(250, 252, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(40px);
}

.iphone-mockup {
    position: relative;
    width: 350px;
    height: 770px;
    background-color: #111;
    border-radius: 50px;
    padding: 10px;
    box-shadow: -20px 40px 80px rgba(0, 0, 0, 0.15), inset 0 0 0 2px #333;
    z-index: 1;
    overflow: hidden;
    transform: rotate3d(0, 1, 0, -15deg) rotate(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-mockup:hover {
    transform: rotate3d(0, 0, 0, 0deg) rotate(0deg) translateY(-10px);
}

/* Video ya incluye su propio Dynamic Island */

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 38px;
    background-color: #f1f4f9;
}

/* Responsividad */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        gap: 5rem;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    .download-hint {
        text-align: center;
    }
    .hero-image-container {
        justify-content: center;
    }
    .iphone-mockup {
        transform: none;
    }
    .iphone-mockup:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .appstore-badge img {
        height: 48px;
    }
    .iphone-mockup {
        width: 300px;
        height: 610px;
    }
}

/* Features Section */
.features-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 40px;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.features-header h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 30px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 122, 255, 0.05);
    display: flex;
    flex-direction: column;
}

/* Feature Video Demo */
.feature-video-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    aspect-ratio: 9 / 16;
    max-height: 560px;
}

.feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 122, 255, 0.08); /* Apple-like bluish shadow drop */
    background: #fff;
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.feature-icon i {
    color: var(--primary);
    font-size: 2.2rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.15) rotate(-5deg); /* Interaccion en el hover */
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-header h2 {
        font-size: 2.2rem;
    }
    .features-section {
        padding: 4rem 5%;
        border-radius: 25px;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Active Nav Link
   ============================================ */
.active-link {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */
.legal-page {
    padding: 2rem 5% 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-container {
    background: #fff;
    border-radius: 30px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

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

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 122, 255, 0.1);
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-main);
}

/* Medical Warning Box */
.legal-warning {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.04), rgba(255, 149, 0, 0.04));
    border: 1px solid rgba(255, 59, 48, 0.15);
    border-radius: 20px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.legal-warning p:first-child {
    color: #D32F2F;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.legal-warning ul {
    padding-left: 1.5rem;
}

.legal-warning li {
    color: #555;
    margin-bottom: 0.75rem;
}

/* Contact Box */
.contact-box {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid rgba(0, 122, 255, 0.08);
}

.contact-box p {
    margin-bottom: 0.75rem;
}

.contact-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* ============================================
   Support Page
   ============================================ */
.support-contact-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.support-card {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.02));
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 122, 255, 0.08);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-icon i {
    color: var(--primary);
    font-size: 3rem;
}

.support-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.support-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
}

/* FAQ Items */
.faq-item {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 122, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-item ul,
.faq-item ol {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.faq-item li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.faq-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #2D3748;
    padding: 3rem 5%;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    text-align: center;
}

/* ============================================
   Responsive - Legal & Support Pages
   ============================================ */
@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .faq-item {
        padding: 1.25rem 1.5rem;
        border-radius: 15px;
    }

    .support-card {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }
}
