@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@200;300;400;600;700&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #fce300;
    /* Vibrant yellow for hover/accents */
    --gray-dark: #1a1a1a;
    --gray-light: #333333;
    --font-main: 'Work Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px 0 25px;
    /* Added more space on top */
    /* Vertical padding only, horiz handled by wrapper */
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    /* Center the wrapper */
}

.logo img {
    height: 25px;
    /* Much smaller */
    width: auto;
}


/* ... nav styles remain ... */
nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.95rem;
    color: #fff;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 200;
    opacity: 0.9;
    transition: opacity 0.3s;
    position: relative;
    /* For absolute positioning of the dot */
    display: inline-block;
    /* Ensure dimensions for positioning */
}

nav a.active::before {
    content: '';
    position: absolute;
    top: -12px;
    /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: #fff;
}

/* Hamburger Menu Base */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #000;
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        border-left: 1px solid #222;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 40px;
    }

    nav a {
        font-size: 1.5rem;
    }

    nav a.active::before {
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    /* Reduced side padding */
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 300 !important;
    /* Force light weight */
    letter-spacing: 1px;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    /* Explicitly set font */
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero p {
    font-size: 1.2rem;
    color: #aeaeae;
    max-width: 600px;
    font-weight: 300;
    font-style: italic;
    margin: 0 auto;
    /* Center the block */
    text-align: center;
    /* Center the text */
}

/* Gallery Grid (3 Columns) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Side margins for black border effect */
    gap: 0;
    /* Seamless grid like the image reference */
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--gray-dark);
}

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

/* Marquee / Scrolling Text */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin: 20px 0 40px;
    /* Spacing around the marquee */
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
}

.marquee-track {
    display: inline-flex;
    animation: scroll 15s linear infinite;
    width: max-content;
    /* Ensure it fits all content */
    will-change: transform;
}

.marquee-track span {
    font-size: 1.5rem;
    font-weight: 300;
    /* Light weight */
    text-transform: uppercase;
    color: #fff;
    /* Solid white text */
    /* Removed text-stroke for solid fill */
    padding-right: 20px;
    /* Reduced spacing */
    letter-spacing: 2px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-16.66%);
        /* Move by 1/6th of width (since 6 repeated items) */
    }
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Services Page */
.services-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    /* Reduced side padding */
}

.service-block {
    margin-bottom: 80px;
    border-bottom: 1px solid var(--gray-dark);
    padding-bottom: 60px;
}

.service-block h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

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

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.service-item p {
    color: #999;
}

/* Contact Page (Minimalist) */
.contact-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 40px;
    text-align: center;
}

.team-photo {
    width: 100%;
    height: 400px;
    background-color: var(--gray-dark);
    margin-bottom: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #aeaeae;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--text-color);
    padding: 15px;
    font-size: 1rem;
    border-radius: 0;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

button.submit-btn {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

button.submit-btn:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 60px 20px;
    /* Reduced side padding */
    text-align: center;
    border-top: 1px solid var(--gray-dark);

    margin-top: 80px;
}

/* Project Detail */
/* Project Detail */
.project-detail-hero {
    padding: 100px 20px;
    /* Reduced side padding */
    text-align: left;
    /* Left align as requested */
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-hero h1 {
    font-weight: 300;
    /* Light weight for title */
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

/* New Hero Layout Elements */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.vertical-separator {
    width: 2px;
    height: 40px;
    background-color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #aeaeae;
    text-transform: none;
    /* Keep lowercase as typed in HTML */
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .project-detail-hero .hero-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .vertical-separator {
        /* Hide or rotate on mobile? Let's hide or make horizontal */
        width: 40px;
        height: 2px;
        /* Horizontal on mobile */
    }
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.project-image {
    width: 100%;
    height: auto;
}

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

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Visibility Control for Projects */
.project-hidden {
    display: none !important;
}

.show-projects-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.btn-show-more {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 15px 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-more:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* New Contact Section & Footer Styles */

/* Contact Section New 2-Col Layout (Reverted) */
.contact-section {
    padding: 100px 20px;
    background-color: var(--bg-color);
}

.contact-layout-2-cols {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 equal columns */
    gap: 80px;
    align-items: center;
    /* Center vertically */
}

/* Column 1: Visual */
.contact-col-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.contact-col-visual img {
    width: 100%;
    max-width: 220px;
    /* Reduced size */
    height: auto;
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 1.5s ease-out 0.5s forwards;
    /* Subtle appearance with delay */
}

/* Column 2: Form Content */
.contact-col-form h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.contact-col-form .subtitle {
    font-size: 1rem;
    color: #aeaeae;
    margin-bottom: 40px;
}

/* Form Fields Styling */
.form-group-line {
    margin-bottom: 30px;
    position: relative;
    text-align: left;
}

.form-group-line label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 0.9rem;
}

.form-group-line input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ffffff;
    color: #fff;
    padding: 8px 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group-line input:focus {
    border-bottom-color: #fff;
}

/* Input Grid (2 per row) */
.input-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Button */
.outline-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
}

.outline-btn:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

@media (max-width: 900px) {
    .contact-layout-2-cols {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 60px;
    }

    .input-grid-row {
        grid-template-columns: 1fr;
        /* Stack inputs on mobile */
        gap: 0;
    }
}

/* New Footer Layout */
.site-footer {
    border-top: 1px solid #222;
    padding: 20px 20px;
    font-size: 0.9rem;
    background-color: #000;
    color: #fff;
}

.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left img {
    height: 25px;
    /* Match header logo size explicitly */
    width: auto;
    display: block;
}

.site-footer .brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.site-footer .yellow-o {
    color: var(--accent-color);
}

.footer-center .whatsapp-btn-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #444;
    padding: 8px 20px;
    color: #aaa;
    transition: all 0.3s;
}

.footer-center .whatsapp-btn-footer:hover {
    border-color: #fff;
    color: #fff;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 24px;
    }

    .footer-content-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-left {
        order: 3;
        /* Logo at the bottom */
    }

    .footer-center {
        order: 1;
        /* WhatsApp at the top */
    }

    .footer-right {
        order: 2;
        /* Social and text in middle */
        flex-direction: column;
        gap: 15px;
    }
}

/* Nav specific */
.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    color: #fff !important;
}

.nav-whatsapp:hover {
    color: var(--accent-color) !important;
}

/* Global Header Content Wrapper for Alignment */
/* Global Header Content Wrapper for Alignment */
.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    /* Reduced side padding */
}

/* Reset image logo size */
.logo img {
    height: 20px;
    /* Small and sleek as requested */
    width: auto;
}

/* Project Page Specifics */
.project-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-intro-text h3 {
    font-size: 1rem;
    /* Slightly larger heading */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: 300;
    /* Light weight */
}

.project-intro-text p {
    font-size: 1.35rem;
    /* Larger introductory text */
    color: #aeaeae;
    margin-bottom: 20px;
    font-weight: 300;
    /* Light weight */
    line-height: 1.4;
}

/* Invade-style Gallery */
.project-gallery-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-row-full img {
    width: 100%;
    height: auto;
}

.gallery-row-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gallery-row-2-col img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .project-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-row-2-col {
        grid-template-columns: 1fr;
    }
}

/* Services Page Specifics */

/* Section Header with Yellow Bar */
.section-header-bar {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.yellow-bar {
    width: 60px;
    height: 8px;
    background-color: var(--accent-color);
}

.section-header-bar h2 {
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    color: #aeaeae;
    text-transform: none;
    /* "Lo que hacemos por ti" is mixed case italic in image */
}

/* Service Row Layout (Image Left) */
.service-row {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Left col smaller, Right col wider */
    gap: 60px;
    /* No border bottom on row itself, using it on items maybe? Or just spacing */
    padding-bottom: 60px;
}

.service-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-title-large {
    font-size: 1.5rem;
    font-weight: 400;
    color: #aeaeae;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

@keyframes float-vertical {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-horizontal {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes float-diagonal {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -10px);
    }
}

.service-illustration {
    display: flex;
    justify-content: center;
    cursor: default;
    /* Remove pointer cursor as hover is gone */
}

/* Branding (1st) - Vertical */
.service-row:nth-of-type(3) .service-illustration {
    animation: float-vertical 6s ease-in-out infinite;
}

/* Publicidad (2nd) - Horizontal */
.service-row:nth-of-type(4) .service-illustration {
    animation: float-horizontal 7s ease-in-out infinite;
}

/* Web (3rd) - Diagonal */
.service-row:nth-of-type(5) .service-illustration {
    animation: float-diagonal 8s ease-in-out infinite;
}

.service-illustration img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    /* Removed hover transition */
}

.service-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-description-text {
    font-size: 1.1rem;
    color: #aeaeae;
    line-height: 1.6;
    max-width: 100%;
    font-weight: 300;
    text-align: left;
}

/* Service Items List with Dividers */
.service-items-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ffffff;
    /* White line dividers */
}

.service-list-item:first-child {
    border-top: 1px solid #ffffff;
}

.service-item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
}

.service-item-desc {
    font-size: 1rem;
    color: #888;
    text-align: right;
    font-weight: 300;
    flex: 1;
}

@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .service-left {
        align-items: center;
        text-align: center;
    }

    .service-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .service-item-desc {
        text-align: left;
    }
}

/* Square 2-Column Gallery */
.square-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.square-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .square-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}