:root {
    --bg-dark: #ffffff;
    --bg-card: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-blue: #2563eb;
    /* Slightly darker blue for contrast */
    --accent-cyan: #0891b2;
    /* Darker cyan for contrast on white */
    --accent-glow: rgba(8, 145, 178, 0.5);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo {
    height: 80px;
    /* Increased from 50px */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo {
    height: 60px;
    /* Slightly smaller on scroll but still clearly visible */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.nav-links a:hover {
    color: var(--accent-blue);
    background: rgba(241, 245, 249, 0.5);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('../assets/img/office_meeting_latinos.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -1px;
    text-shadow: none;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    /* Para móviles */
}

.hero-logo-img {
    height: 120px;
    /* Large prominent logo in Hero */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-content h1 {
    font-size: 5rem;
    /* Larger title */
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 auto 3.5rem;
    max-width: 800px;
    font-weight: 500;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

/* Services */
.servicios {
    padding: 8rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Services Catalog */
.servicios {
    padding: 6rem 5%;
    background: url('../assets/hero-bg.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.servicios>* {
    position: relative;
    z-index: 1;
}

.service-catalog {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.service-category {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    border: var(--glass-border);
}

.service-category:nth-child(even) {
    grid-template-columns: 1.5fr 1fr;
}

.service-category:nth-child(even) .service-image-container {
    order: 2;
}

.service-image-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-category:hover .service-image-container img {
    transform: scale(1.05);
}

.service-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--accent-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background: white;
}

.service-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 968px) {
    .service-category {
        grid-template-columns: 1fr;
    }

    .service-category:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-category:nth-child(even) .service-image-container {
        order: 0;
    }

    .service-image-container {
        min-height: 250px;
    }
}

/* Values Section */
.valores {
    padding: 8rem 5%;
    background: #f8fafc;
}

.grid-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.valor-item {
    padding: 2rem;
}

.valor-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    color: var(--accent-cyan);
}

.valor-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.valor-item p {
    color: var(--text-secondary);
}

/* Contact */
.contacto {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    border: var(--glass-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.confidentiality-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
    opacity: 0.7;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    min-height: 1.5rem;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: var(--glass-border);
    background: #f1f5f9;
}

.logo-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 2rem;
    background: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.footer-pillars {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-pilar {
    color: var(--accent-cyan);
    font-weight: 600;
    margin: 0 0.5rem;
}

.footer-contact {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-cyan);
}

.copyright {
    color: rgba(148, 163, 184, 0.4);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-logo {
        height: 60px;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        /* Keep accessible side by side if possible or wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links a {
        margin: 0;
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-logo-img {
        height: 80px;
    }
}