/* Modern Light Theme */
:root {
    --primary-color: #0066cc;
    /* Professional Blue */
    --secondary-color: #00b8d4;
    /* Cyan/Teal */
    --accent-color: #ff4081;
    --bg-body: #ffffff;
    /* Pure white background */
    --bg-light: #f8f9fa;
    /* Light grey for sections */
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    /* Very dark blue/black */
    --text-secondary: #535362;
    /* Dark grey */
    --text-light: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    /* More modern slightly rounded squares */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid #e8e8e8;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px;
}

.logo img {
    height: 95px;
    width: auto;
    max-width: 450px;
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-list a {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    color: #1a1a2e !important;
    transition: all 0.3s ease;
}

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

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay for text readability on images */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
    /* Darker overlay for extreme clarity */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.carousel-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.carousel-content p {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls - Darker for visibility on light bg */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    border-radius: 50%;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* About Section (Nosotros) */
.about {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
    /* Light grey background */
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.8rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-speed);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition-speed);
}

.service-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-keywords {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    font-size: 0.75rem;
    background: #f0f4f8;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.service-card p {
    flex-grow: 1;
    /* Pushes content down */
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Tech Stack */
.tech-stack {
    padding: 80px 0;
    background: var(--bg-body);
    text-align: center;
}

.tech-logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    font-size: 3rem;
    margin-top: 50px;
    color: #cbd5e1;
    /* Lighter grey for inactive logos */
    flex-wrap: wrap;
}

.tech-logos i {
    transition: var(--transition-speed);
}

.tech-logos i:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* CTA & Form */
.cta {
    padding: 100px 0;
    background: #f8f9fa;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full-width {
    grid-column: span 2;
}

.form-field label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full-width {
        grid-column: span 1;
    }
}



/* Footer */
.footer {
    background: #f8f9fa;
    /* Light footer as requested implicitly by light theme */
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-speed);
    color: var(--text-primary);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 30px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .carousel-content h1 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}