:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f7f9; /* Soft light gray for contrast */
    --bg-card: #ffffff;
    --text-primary: #0B162C; /* Dark Navy from logo 'CONTROL ALT' */
    --text-secondary: #4B5563; /* Medium gray from 'INTELIGENCIA TECNOLÓGICA' */
    --accent-cyan: #00E5FF; /* Logo Cyan */
    --accent-cyan-hover: #00b4d8;
    --accent-dark: #0B162C;
    --shadow-soft: 0 4px 20px rgba(11, 22, 44, 0.05);
    --shadow-hover: 0 10px 30px rgba(11, 22, 44, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

span {
    color: #00a8cc; /* A slightly darker cyan for text readability on white */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-dark);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(11, 22, 44, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-cyan);
    color: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-secondary:hover {
    background-color: var(--accent-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 55px;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    position: relative;
}

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

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

.nav-links a:hover, .nav-links a.active {
    color: #00a8cc;
}

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

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to ensure text is readable over the light image */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.1) 100%), url('../assets/hero_bg_light.jpg') no-repeat center center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-content h1 span {
    color: #00a8cc;
}

.hero-content h2 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--accent-dark);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-features i {
    color: #00a8cc;
    margin-right: 15px;
    font-size: 1.3rem;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), #f8fafc);
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.about-image i {
    font-size: 6rem;
    color: var(--accent-dark);
    z-index: 1;
}

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

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(11, 22, 44, 0.05);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-hover);
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    color: var(--accent-dark);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: var(--accent-cyan);
    color: var(--accent-dark);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent-dark);
}

.service-card p {
    color: var(--text-secondary);
}

/* Methodology Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(11, 22, 44, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--accent-dark);
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(11, 22, 44, 0.05);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(0, 229, 255, 0.3);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--accent-dark);
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Technologies Section */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 600;
}

.tech-item i {
    font-size: 3.5rem;
    color: var(--accent-dark);
    transition: color 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item:hover i {
    color: #00a8cc;
}

.clients-banner {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), #ffffff);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.clients-banner h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent-dark);
}

.clients-banner p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

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

.product-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(11, 22, 44, 0.05);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-hover);
}

.product-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.product-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-icon {
    height: 70px;
    width: 70px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--accent-dark);
    font-size: 2.2rem;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent-dark);
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.contact-info {
    padding: 60px;
    background: var(--accent-dark);
    color: #ffffff;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-details i {
    width: 45px;
    height: 45px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form-container {
    padding: 60px;
    background: #ffffff;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00a8cc;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid #e2e8f0;
}

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

.footer-logo img {
    height: 110px; /* Aumentado para mejor visualización */
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h3, .footer-social h3 {
    color: var(--accent-dark);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links a:hover {
    color: #00a8cc;
}

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

.social-icons a {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--accent-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-icons a:hover {
    background: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    transform: translateY(-3px);
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .contact-wrapper {
        border: 1px solid #e2e8f0;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-cta {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-info, .contact-form-container {
        padding: 40px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
