/* Variables y Estilos Base */
:root {
    --primary-color: #0d47a1; /* Azul oscuro */
    --secondary-color: #42a5f5; /* Azul más claro */
    --accent-color: #ffab40; /* Naranja/Ámbar para acentos */
    --text-color: #333;
    --light-text-color: #fff;
    --bg-color: #fff;
    --bg-light-gray: #f4f7f9;
    --border-color: #ddd;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --container-width: 1140px;
    --spacing-unit: 1rem; /* 16px */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajustar según altura del header fijo */
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5); /* 24px */
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; margin-bottom: calc(var(--spacing-unit) * 1.5); }
h2 { font-size: 2.2rem; margin-bottom: calc(var(--spacing-unit) * 2); text-align: center;}
h3 { font-size: 1.5rem; font-weight: 600; color: var(--primary-color);}
p { margin-bottom: var(--spacing-unit); }
a { color: var(--secondary-color); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-color); }
ul { list-style: none; }

.section {
    padding: calc(var(--spacing-unit) * 4) 0; /* 64px */
}

.bg-light {
    background-color: var(--bg-light-gray);
}

.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit)*0.75) calc(var(--spacing-unit)*1.5); /* 12px 24px */
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    margin: calc(var(--spacing-unit) * 0.5);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #0b3a80; /* Darker primary */
    border-color: #0b3a80;
    color: var(--light-text-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-decoration: none;
     transform: translateY(-2px);
}

.cta-buttons {
    margin-top: calc(var(--spacing-unit) * 2);
}
.cta-buttons.center {
    text-align: center;
}

/* Header */
.header {
    background-color: var(--bg-color);
    padding: var(--spacing-unit) 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo svg { display: block; }

.nav ul {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5); /* 24px */
}

.nav a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom-color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    background-color: var(--bg-light-gray);
    padding: calc(var(--spacing-unit) * 6) 0; /* 96px */
    text-align: center;
}

.hero h1 {
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 2) auto;
}

/* Services Section */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 2.5) auto;
    font-size: 1.1rem;
    color: #555;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2); /* 32px */
}

.service-item {
    background-color: var(--bg-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-icon svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.service-item h3 {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.service-item p {
    font-size: 0.95rem;
    color: #555;
}
.service-item strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Case Studies Section */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.case-study {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.case-study-content {
    padding: calc(var(--spacing-unit) * 1.5);
}

.case-study h3 {
    margin-bottom: var(--spacing-unit);
}
.case-study p strong {
    color: var(--primary-color);
}

.testimonial {
    margin-top: calc(var(--spacing-unit) * 1.5);
    padding-top: calc(var(--spacing-unit) * 1);
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: #555;
}
.testimonial p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.testimonial footer {
    font-style: normal;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* About Us Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 3);
    align-items: start;
}

.about-team ul {
    list-style: disc;
    margin-left: calc(var(--spacing-unit) * 1.5);
}
.about-team li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.contact-section h2, .contact-section h3 {
    color: var(--light-text-color);
}
.contact-section p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}
.contact-section a {
     color: var(--accent-color);
}
.contact-section a:hover {
     color: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 3);
    background-color: var(--bg-color);
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 8px;
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}
.contact-info p {
    text-align: left;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--text-color);
}
.contact-info a {
    color: var(--primary-color);
}
.contact-info a:hover {
    color: var(--secondary-color);
}


.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1);
}
.form-group label {
    display: block;
    margin-bottom: calc(var(--spacing-unit) * 0.25);
    font-weight: bold;
    color: #555;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 0.75);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(66, 165, 245, 0.3); /* secondary-color con opacidad */
}

#contactForm button {
    width: 100%;
    padding: calc(var(--spacing-unit)*0.85);
}

.form-status {
    margin-top: var(--spacing-unit);
    font-weight: bold;
    text-align: center;
}
.form-status.success { color: green; }
.form-status.error { color: red; }

.social-links {
    margin-top: var(--spacing-unit);
}
.social-links a {
    display: inline-block;
    margin-right: calc(var(--spacing-unit) * 0.75);
    color: var(--primary-color);
}
.social-links svg {
    width: 28px;
    height: 28px;
    transition: color 0.3s ease;
}
.social-links a:hover svg {
    color: var(--secondary-color);
}


/* Footer */
.footer {
    background-color: #263238; /* Gris oscuro azulado */
    color: rgba(255, 255, 255, 0.7);
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}
.footer a:hover {
    color: var(--

