:root {
    --brick-red: #C32F4B;
    --dark-blue: #101820;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: var(--dark-blue);
    line-height: 1.6;
}

/* Modal para demo videos */
.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 0; /* Eliminado el padding */
}

.demo-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    margin: 20px auto;
}

.demo-form img {
    width: 300px; /* Logo más grande */
    margin-bottom: 20px;
}

.demo-form h2 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.demo-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
}

.demo-form button {
    background-color: var(--brick-red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.demo-form button:hover {
    background-color: #a9263d;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px; /* Logo más grande */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brick-red);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.hero {
    background: linear-gradient(to right, var(--dark-blue), #1c2b3a);
    color: white;
    padding: 150px 5% 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://actosfallacervantes.es/flama/fondo2.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--brick-red);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #a9263d;
}

.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Sección de presentación visual */
.visual-intro {
    background-color: white;
    padding: 80px 5% 60px;
}

.intro-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    margin-top: 30px;
}

.intro-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.intro-image:hover img {
    transform: translateY(-5px);
}

.intro-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--brick-red);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.benefits {
    background-color: var(--dark-blue);
    color: white;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-text {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.benefits-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.benefits-list {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.benefit-icon {
    font-size: 1.5rem;
    color: var(--brick-red);
    margin-right: 15px;
    padding-top: 5px;
}

.benefit-text h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

/* Sección de demostración */
.demo-videos {
    text-align: center;
    background-color: white;
}

.demo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.demo-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.demo-card-content {
    padding: 25px;
}

.demo-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.demo-card p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}


/* Sección interactiva de características */
.interactive-features {
    background-color: var(--light-gray);
    padding: 80px 5%;
}

.features-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-slide {
    flex: 0 0 300px;
    height: 400px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    transition: all 0.3s;
    position: relative;
}

.feature-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.feature-slide-content {
    padding: 20px;
}

.feature-slide h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--dark-blue);
}

.feature-slide p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.feature-slide .btn-small {
    display: inline-block;
    background-color: var(--brick-red);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.feature-slide .btn-small:hover {
    background-color: #a9263d;
}

.arrows {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.arrow {
    background-color: var(--brick-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.arrow:hover {
    background-color: #a9263d;
}

.testimonials {
    text-align: center;
    padding: 80px 5%;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
}

.cta {
    background: linear-gradient(to right, var(--brick-red), #e74c3c);
    color: white;
    text-align: center;
    padding: 80px 5%;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    background-color: white;
    color: var(--brick-red);
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 150px; /* Logo más grande */
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: var(--brick-red);
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brick-red);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .intro-container, .benefits-container {
        flex-direction: column;
    }
    
    .intro-text, .benefits-text {
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
        align-items: center;
    }
    
    .feature-slide {
        flex: 0 0 85%;
    }
}

@media (max-width: 480px) {
    .intro-text h2, .section-title h2, .cta h2 {
        font-size: 1.8rem;
    }
    
    .feature-slide {
        flex: 0 0 100%;
    }
}