:root {
    --primary-color: #007bff; /* Futuristic Blue */
    --secondary-color: #00bfff; /* Deep Sky Blue / Teal */
    --accent-color: #00d1b2; /* Teal for highlights */
    --light-bg: #f8f9fa;
    --dark-bg: #eef2f7; /* Slightly darker light bg for alternation */
    --text-color: #333;
    --heading-color: #1a237e; /* Darker, techy blue */
    --light-text: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --futuristic-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background-color: var(--light-text);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: rotate(15deg);
}

.logo-text {
    font-family: var(--futuristic-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    background-image: url('fondo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding-top: 80px; /* Account for fixed header */
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.7), rgba(0, 191, 255, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn HeroAnimation 1s ease-out;
}

@keyframes HeroAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.hero-content h1 {
    font-family: var(--futuristic-font);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-family: var(--futuristic-font);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-weight: 400;
}

.hero-content .tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button, .cta-button-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.cta-button {
    background-color: var(--light-text);
    color: var(--primary-color);
    border: 2px solid var(--light-text);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255,255,255,0.3);
}

.cta-button-outline {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.cta-button-outline:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background-color: var(--dark-bg);
}

.content-section h2 {
    font-family: var(--futuristic-font);
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-content p, .section-content ul {
    flex: 1;
    font-size: 1.1rem;
}

.content-image {
    flex: 0 0 40%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    object-fit: cover;
}
.content-image.right {
    order: 1; /* Puts image to the right on larger screens if flex parent is row */
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.service-card h3 {
    font-family: var(--futuristic-font);
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-family: var(--futuristic-font);
    color: var(--heading-color);
    margin: 15px 20px 10px;
    font-size: 1.3rem;
}

.product-card p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Courses Section - Form */
.curso-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 30px auto 0;
}

.curso-form h3 {
    font-family: var(--futuristic-font);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--heading-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    cursor: pointer;
    width: 100%;
}
.form-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-text); /* ensure text color remains light */
    transform: translateY(0); /* override other button hover */
    box-shadow: none; /* override other button hover */
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}
.form-message.success {
    color: green;
}
.form-message.error {
    color: red;
}


/* Target Audience */
.target-audience-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.target-audience-list li {
    background-color: var(--card-bg);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--primary-color);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.target-audience-list li:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    color: var(--light-text);
}

.target-audience-list i {
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--futuristic-font);
    font-size: 2.2rem;
    color: var(--light-text);
    margin-bottom: 15px;
}
.cta-section h2::after {
    background-color: var(--light-text);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Contact Section Enhancements */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start; /* Align items at the start of the cross axis */
}

.contact-details, .contact-form-container {
    flex: 1;
    min-width: 300px; /* Ensure they don't get too squished */
}

.contact-details h3, .contact-form-container h3 {
    font-family: var(--futuristic-font);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info { /* This class was used before, adjusting if needed */
    margin-bottom: 30px; /* Add some space if it's above the form on small screens */
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.3rem;
    width: 25px; /* Align icons */
    text-align: center;
}
.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-socials {
    text-align: left; /* Align to left for details block */
    margin-top: 20px;
}
.contact-socials a {
    color: var(--primary-color);
    font-size: 1.5rem; /* Slightly smaller for inline display */
    margin-right: 15px;
    margin-left: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}
.contact-socials a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* Styling for the new contact form, similar to .curso-form */
.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--body-font); /* Ensure textarea inherits body font */
    transition: border-color 0.3s ease;
    resize: vertical; /* Allow vertical resizing */
}

.contact-form .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Footer */
footer {
    background-color: var(--heading-color);
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}
footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .subtitle {
        font-size: 1.5rem;
    }
    .hero-content .tagline {
        font-size: 1.1rem;
    }
    .section-content {
        flex-direction: column;
    }
    .content-image {
        max-width: 80%;
        margin-bottom: 20px;
    }
    .content-image.right {
        order: 0; /* Reset order for stacked layout */
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--light-text);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%); /* Start off-screen */
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth animation */
        z-index: -1; /* Ensure it's behind content initially for fixed header */
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active .hamburger {
        background-color: transparent; /* Hide middle line */
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 120px 0 60px; /* More padding for smaller hero */
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content .subtitle {
        font-size: 1.3rem;
    }
    .hero-content .tagline {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Stack service cards */
    }
    .products-grid {
        grid-template-columns: 1fr; /* Stack product cards */
    }
    .target-audience-list {
        flex-direction: column;
        align-items: center;
    }
     .target-audience-list li {
        width: fit-content;
    }
}

/* Accessibility: Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}
.nav-links a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px; /* Ensure it doesn't clash with ::after */
}

/* Scrollbar Styling (Optional - for a more futuristic feel) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
   
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}