:root {
    --primary: #6D28D9;
    /* moradoPrincipal */
    --primary-light: #8B5CF6;
    /* moradoMedio */
    --secondary: #06B6D4;
    /* acento */
    --accent: #FBBF24;
    /* amarillo */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #6D28D9 0%, #06B6D4 100%);
    --shadow-premium: 0 20px 40px rgba(109, 40, 217, 0.2);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

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

.logo-icon-large {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--text-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.btn-header-download {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5)), url('assets/landingP.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 0;
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1.2;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mockup-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(109, 40, 217, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

.btn-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.btn-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    padding-left: 1rem;
}

/* Features */
.features {
    padding: 8rem 0;
}

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

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

.feature-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(109, 40, 217, 0.1), transparent);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
}

/* Demo Section */
.demo-section-container {
    padding: 8rem 0;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.demo-text {
    flex: 1;
}

.demo-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Mobile Frame Mockup */
.mobile-frame {
    width: 100%;
    max-width: 320px;
    height: 640px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    border: 8px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.mobile-content {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-header {
    padding: 2rem 1.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.demo-screen {
    flex: 1;
    padding: 0 1rem 1rem;
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.demo-section-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 1rem 0 0.5rem;
}

.demo-card {
    background: #1e293b;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-card-primary {
    background: var(--gradient-primary);
    color: white;
}

.demo-nav {
    display: flex;
    background: #1e293b;
    padding: 0.75rem;
    justify-content: space-around;
}

.demo-tab {
    font-size: 1.2rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.demo-tab:hover {
    transform: scale(1.2);
}

.demo-tab.active {
    opacity: 1;
    color: var(--secondary);
}

/* Expanded Demo UI Elements */
.demo-input-group {
    margin-bottom: 1rem;
}

.demo-input {
    width: 100%;
    padding: 0.6rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    outline: none;
}

.demo-grade-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.grade-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.grade-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.grade-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.demo-note-item {
    background: #334155;
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--primary);
}

.demo-fab {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
}

#demo-fab-container {
    position: absolute;
    bottom: 80px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
}

.demo-mini-fab {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.demo-mini-fab:hover {
    transform: scale(1.1);
}

.fab-assistant {
    background: #4f46e5;
}

.fab-qr {
    background: #6D28D9;
}

.demo-profile-icon {
    width: 32px;
    height: 32px;
    background: rgba(109, 40, 217, 0.2);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    cursor: pointer;
}

/* Dashboard specific demo cards */
.demo-card-average {
    background: linear-gradient(135deg, #6D28D9, #4c1d95);
    padding: 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 16px rgba(109, 40, 217, 0.3);
}

.demo-status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-live {
    background: #ef4444;
    color: white;
    animation: pulse-live 2s infinite;
}

.status-next {
    background: var(--secondary);
    color: white;
}

@keyframes pulse-live {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.materia-line {
    width: 4px;
    height: 100%;
    border-radius: 2px;
    margin-right: 12px;
}

/* Specific inner demo styles */
.demo-days {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
}

.demo-days span {
    font-size: 0.8rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.demo-days span.active {
    background: var(--primary);
    color: white;
}

.schedule-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.schedule-item .time {
    font-size: 0.7rem;
    color: var(--text-gray);
    width: 40px;
}

.schedule-item .item-content {
    background: #1e293b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    flex: 1;
    font-size: 0.8rem;
}

.demo-user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.demo-user-item .avatar {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-gray);
    max-width: 250px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-split {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .btn-header-download {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .mobile-menu-btn {
        display: flex;
        padding: 10px;
        margin-right: -10px;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 100%;
        height: 100vh;
        background: #0f172a;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.4s ease, visibility 0.4s ease;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    nav.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    nav a {
        font-size: 1.5rem;
        color: var(--text-white);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        background-position: 85% center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-group {
        align-items: center;
    }

    .btn-meta {
        padding-left: 0;
    }

    .hero-image {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 4rem 0;
        min-height: auto;
    }

    .demo-section-container {
        padding: 4rem 0;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .cta-group {
        width: 100%;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .demo-section-container {
        flex-direction: column;
        text-align: center;
    }

    .demo-text {
        order: 1;
    }

    .demo-visual {
        order: 2;
    }
}