:root {
    --primary: #F37021;
    /* Logo Orange */
    --primary-dark: #d55910;
    --primary-light: #f69154;

    --bg-light: #FFFFFF;
    /* Pure White */
    --bg-gray: #F5F7FA;
    /* Light Gray for alternating sections */
    --bg-dark: #2B2D42;
    /* Dark Slate for footers/contrast */

    --text-main: #333333;
    /* Dark Charcoal for readability */
    --text-muted: #666666;
    --text-light: #FFFFFF;

    --border-color: #E2E8F0;

    --container-width: 1200px;
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--bg-dark);
    font-weight: 800;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

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

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background-color: var(--bg-gray);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--bg-dark);
    border-radius: 1px;
    transition: var(--transition);
}

header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links .nav-cta {
    color: var(--text-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    color: var(--bg-dark);
    letter-spacing: 1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero {
    margin-top: 90px;
    /* Offset for fixed header */
    height: calc(100vh - 90px);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('assets/hero_bg.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 45, 66, 0.7);
    /* Slate overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 700px;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* --- About / Compromiso --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.features-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--bg-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-info p:not(.project-category) {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Stats --- */
.stats {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- FAQ (SEO) --- */
.faq-section {
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--bg-dark);
    line-height: 1.35;
}

.faq-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.98rem;
}


/* --- Contact Form Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form-container {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.1);
}

.btn-block {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

.contact-info-container {
    height: 100%;
}

.info-card {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 8px;
    padding: 3rem 2rem;
    height: 100%;
}

.info-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.info-card>p {
    color: #A0AEC0;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    background-color: rgba(243, 112, 33, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.info-item strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.info-item p {
    color: #A0AEC0;
    margin: 0;
    font-size: 0.95rem;
}

.info-role {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-light);
    margin: 0.85rem 0 0.25rem 0;
}

.info-item div > .info-role:first-of-type {
    margin-top: 0.5rem;
}

.info-phones {
    margin-bottom: 0.35rem !important;
}

.info-phones:last-of-type {
    margin-bottom: 0 !important;
}

.info-item .info-phones a {
    color: #E2E8F0;
    text-decoration: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.35);
    transition: var(--transition);
}

.info-item .info-phones a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.info-phone-sep {
    margin: 0 0.35rem;
    color: #64748B;
    user-select: none;
}

/* --- Footer --- */
footer {
    background-color: #1A1C29;
    /* Darker slate */
    color: var(--text-light);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--text-light);
}

.footer-brand p {
    color: #A0AEC0;
    max-width: 350px;
}

.footer-heading {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.contact-info p {
    color: #A0AEC0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #A0AEC0;
    font-size: 0.9rem;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        flex-basis: 100%;
        gap: 0;
        padding: 0.5rem 0 1rem;
        margin: 0;
        border-top: 1px solid var(--border-color);
    }

    header.nav-open .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
    }

    .nav-links .nav-cta {
        margin-top: 0.5rem;
        text-align: center;
        border-radius: 4px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}