/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-dark: #0A2540;
    --primary-accent: #1F6AE1;
    --primary-accent-hover: #164ba3;
    --bg-light: #F2F4F7;
    --text-dark: #2E2E2E;
    --text-light: #667085;
    /* Soft grey for secondary text */
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -1px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(16, 24, 40, 0.1), 0 4px 6px -2px rgba(16, 24, 40, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-accent);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
}

.btn-outline:hover {
    background-color: var(--primary-accent);
    color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: center;
    /* Centered */
    align-items: center;
    gap: 40px;
    /* Add spacing between logo and links */
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 90px;
    /* Reduced from 120px for better integration */
    width: auto;
    mix-blend-mode: multiply;
    /* Blends white background into the header */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-accent);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #E0E7FF 100%);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero h1 span {
    color: var(--primary-accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Services */
.services {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #EAECF0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "Ver detalles →";
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--primary-accent);
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.service-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-accent);
    transform: translateY(-5px);
}

.icon {
    width: 50px;
    height: 50px;
    background-color: rgba(31, 106, 225, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-accent);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: "•";
    color: var(--primary-accent);
    font-size: 1.5rem;
    line-height: 0.5;
}

/* Clients */
.clients {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
}

.clients h2 {
    color: var(--white);
    margin-bottom: 40px;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.8;
}

.client-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #98A2B3;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Hide for now, can implement mobile menu later if robust nav needed */
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .client-logos {
        gap: 50px;
    }
}

.client-logos img {
    max-height: 80px;
    max-width: 200px;
    /* Removed filter to show original colors */
    opacity: 0.9;
    transition: all 0.3s;
    background: white;
    /* Add white background for better visibility if logos are dark */
    padding: 10px;
    border-radius: 8px;
}

.client-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.8);
    /* Primary dark with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--primary-accent);
}

.modal-content h3 {
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #EAECF0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-actions {
    margin-top: 30px;
}

.modal-actions .btn {
    width: 100%;
}