:root {
    /* Premium Corporate Palette */
    --primary-color: #0A192F; /* Deep Navy/Slate for headers, footers, text */
    --secondary-color: #112240; /* Slightly lighter navy for cards or sections */
    --accent-color: #F29400; /* Signature Orange */
    --accent-hover: #F4A42C; /* Lighter Orange for hover states */
    
    /* Light Theme Backgrounds */
    --bg-light: #F8F9FA; /* Ultra light gray for main background */
    --bg-white: #FFFFFF; /* Pure white for cards */
    --bg-gray-soft: #F1F3F5; /* Soft gray for alternating sections */
    
    /* Typography */
    --text-main: #2D3748; /* Dark slate text for high readability */
    --text-muted: #718096; /* Gray text for secondary info */
    --text-light: #FFFFFF; /* White text for dark backgrounds */
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(10, 25, 47, 0.05); /* Very subtle premium shadow */
    --shadow-hover: 0 10px 30px rgba(10, 25, 47, 0.1); /* Hover state */
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2); /* For hero or dark sections */
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Glassmorphism Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.header-logo {
    height: 55px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo:hover {
    transform: scale(1.03);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.3px;
}

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

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

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

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

/* Hero Section */
.hero {
    /* To be dynamically overridden via HTML style if needed */
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop') no-repeat center center/cover;
    text-align: left; /* Shift to left for a more corporate analytical feel */
    padding: 160px 0;
    display: flex;
    align-items: center;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--bg-white);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.hero ul {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    padding-left: 1.2rem;
    list-style-type: none; /* Modern custom bullets */
}

.hero ul li {
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    padding-left: 1.5rem;
}

.hero ul li::before {
    content: "■"; /* Orange square bullet */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 16px 35px;
    border-radius: 4px; /* Sharper corners for corporate feel */
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(242, 148, 0, 0.3);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(242, 148, 0, 0.4);
    text-decoration: none;
    color: var(--bg-white);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

/* Section Common */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-title.left-align {
    text-align: left;
}
.section-title.left-align::after {
    left: 0;
    transform: none;
}

/* Content Blocks (for general text areas) */
.content-block {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 50px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    transition: box-shadow 0.3s ease;
}

.content-block:hover {
    box-shadow: var(--shadow-hover);
}

.content-block p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.content-block h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Home Summaries */
.home-summary {
    padding: 100px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.home-summary p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.home-summary ul {
    list-style: none; /* remove default */
    margin: 2rem auto;
    max-width: 800px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.home-summary ul li {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-summary ul li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
}

/* CTA Section */
.home-call-to-action {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0;
    text-align: center;
    color: var(--bg-white);
    position: relative;
}

.home-call-to-action .section-title {
    color: var(--bg-white);
}

.home-call-to-action .section-title::after {
    background-color: var(--accent-color);
}

.home-call-to-action p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* Services Grid */
.our-services {
    background-color: var(--bg-gray-soft);
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent-color);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    background: rgba(242, 148, 0, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes list to bottom */
}

.service-card ul {
    list-style: none; /* custom bullets */
}
.service-card ul li {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-weight: 500;
}
.service-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.team-member-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(242, 148, 0, 0.2);
}

.team-member-image-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid var(--accent-color);
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member-card:hover .team-member-image {
    transform: scale(1.08);
}

.team-content {
    padding: 30px;
    flex-grow: 1;
}

.team-member-card h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.team-member-card .position {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}
.team-member-card ul {
    list-style: none;
}
.team-member-card ul li {
    color: var(--text-muted);
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}
.team-member-card ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Split layout for Nosotros */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.split-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.split-text h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.split-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.split-image img {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
}

/* Featured Experience (Clientes) */
.featured-experience {
    background-color: var(--bg-white);
    padding: 100px 0;
}

/* Contact forms */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.contact-detail-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.contact-detail-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-detail-card p, .contact-detail-card a {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-detail-card a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-main);
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(242, 148, 0, 0.1);
    background-color: var(--bg-white);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
}
.footer-logo .accent-text {
    color: var(--accent-color);
}

footer p {
    font-size: 0.95rem;
}

/* --- ANIMATION CLASSES (Scroll Reveal) --- */
.reveal {
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Hide animated elements only when JS is available. */
.js .reveal {
    opacity: 0;
    visibility: hidden;
}

.js .reveal.active {
    opacity: 1;
    visibility: visible;
}

.slide-up {
    transform: translateY(50px);
}
.slide-up.active {
    transform: translateY(0);
}

.slide-right {
    transform: translateX(-50px);
}
.slide-right.active {
    transform: translateX(0);
}

.slide-left {
    transform: translateX(50px);
}
.slide-left.active {
    transform: translateX(0);
}

.fade-in {
    transform: scale(0.95);
}
.fade-in.active {
    transform: scale(1);
}


/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* flush below header */
        left: 0;
        background: rgba(255,255,255,0.98);
        padding: 20px 0;
        box-shadow: var(--shadow-heavy);
        border-top: 1px solid #eee;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        padding: 100px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .content-block, .contact-form {
        padding: 30px;
    }
}
