@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #3b82f6;
    --dark-bg: #222B38;
    --light-bg: #2A3547;
    --card-bg: #334155;
    --text-color: #FFFFFF;
    --text-muted: #94A3B8;
    --border-color: #475569;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    background-color: rgba(34, 43, 56, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo h1 { font-size: 1.8rem; font-weight: 900; }
.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
    font-weight: 500;
}
.main-nav a:hover { color: var(--text-color); }
.main-nav a.contact-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.hero-section {
    padding: 6rem 0;
    text-align: center;
}
.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.hero-content p {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hero-carousel-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.hero-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.hero-carousel-track {
    display: flex;
    animation: scroll 40s linear infinite;
}
.hero-carousel-track img {
    height: 120px;
    margin: 0 1rem;
    border-radius: 0.5rem;
    width: auto;
}

.process-section {
    padding: 6rem 0;
}
.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.process-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    max-width: 600px;
}
.process-section .subtitle {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 4rem;
}
.carousel {
    position: relative;
}
.carousel-track-container { overflow: hidden; }
.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}
.carousel-card {
    min-width: calc(50% - 1rem);
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}
.carousel-card span {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}
.carousel-card h4 { font-size: 1.8rem; margin-bottom: 0.5rem; word-break: break-word; } /* Evita desbordamiento */
.carousel-button {
    position: absolute;
    bottom: -20px;
    transform: translateY(100%);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}
.carousel-button:hover { background-color: var(--primary-color); }
.carousel-button.prev { right: 60px; }
.carousel-button.next { right: 0px; }


.contact-section, .projects-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}
.contact-section h3, .projects-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.contact-section p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
}
.contact-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); }
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content { padding: 1.5rem; }
.project-link { text-decoration: none; color: inherit; }
.hidden-gallery-item { display: none; }

.footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-logo {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
}
.footer-info { color: var(--text-muted); }
.footer-info a { color: var(--text-color); text-decoration: none; }

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .header .container { height: 70px; }
    .hero-content p { font-size: 2.5rem; }
    .process-section h2 { font-size: 2rem; }
    .carousel-card { min-width: 100%; } 
    .carousel-track { gap: 1rem; }
    .projects-grid { grid-template-columns: 1fr; }
}