/* ====== VARIABLES Y FUENTES ====== */
:root {
    --primary: #6c63ff;
    --primary-dark: #4a42d4;
    --bg-light: #f5f7fa;
    --text-dark: #333333;
    --bg-dark: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ====== NAVBAR ====== */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand {
    color: white !important;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

 
  /* ====== HERO SECTION - CORREGIDO ====== */
.hero-section {
    /* Eliminamos la imagen de fondo problemática */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                     url('https://images.unsplash.com/photo-1586984385127-43694c810354?w=1920&q=80');
}



/* Fallback si la imagen no carga */
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a237e;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.6);
    background: linear-gradient(135deg, var(--primary-dark), #3a32b4);
}

.terminal-image img {
    border: 8px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.terminal-image:hover img {
    transform: scale(1.03);
}

/* ====== FEATURES SECTION ====== */
.features-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(74, 66, 212, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

/* ====== VIDEO DEMO SECTION - NUEVA ====== */
.video-section {
    padding: 100px 0;
    background-color: white;
}

.video-section .section-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.video-section .section-subtitle {
    color: #666;
    margin-bottom: 3rem;
}

.video-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    text-align: center;
    padding: 20px 0;
}

.video-description h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.video-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ====== CONTACT SECTION ====== */
.contact-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: white;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 12px 15px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25);
    color: white;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Success Message */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* ====== FOOTER ====== */
.footer-section {
    background: linear-gradient(135deg, var(--primary-dark), #2d25a0);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 25px;
    }

    .video-section {
        padding: 60px 0;
    }

    .video-container {
        padding: 20px;
    }

    .video-description h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-section {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 50px;
    }

    .features-section,
    .contact-section,
    .video-section {
        padding: 60px 0;
    }
}