/* =========================================
   1. LAYOUT & TYPOGRAPHY
   ========================================= */

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-section-desktop) var(--spacing-gutter);
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 7rem);
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-text-main);
    mix-blend-mode: overlay;
    white-space: normal;
    text-align: center;
    max-width: 100%;
    margin: 0 auto 40px;
    will-change: transform;
    overflow: visible;
    padding: 0 var(--spacing-gutter);
}

/* Hero Line Text (for masked reveal animation) */
.hero-line-text {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    will-change: transform, opacity;
    white-space: nowrap;
    /* Force single line per span */
}

/* Hero Subtitle Reveal (Blur Effect) */
.hero-subtitle {
    filter: blur(20px);
    opacity: 0;
    transition: filter 1s ease, opacity 1s ease;
}

.hero-subtitle.revealed {
    filter: blur(0);
    opacity: 1;
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: var(--color-brand-red);
    opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    left: 2px;
}

.glitch:hover::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: var(--color-brand-blue);
    opacity: 0.8;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    left: -2px;
}

@keyframes glitch-1 {
    0% {
        left: 2px;
        top: 0;
    }

    25% {
        left: -2px;
        top: 1px;
    }

    50% {
        left: 0;
        top: -1px;
    }

    75% {
        left: 1px;
        top: 2px;
    }

    100% {
        left: -1px;
        top: 0;
    }
}

@keyframes glitch-2 {
    0% {
        left: -2px;
        top: 0;
    }

    25% {
        left: 2px;
        top: -1px;
    }

    50% {
        left: 0;
        top: 1px;
    }

    75% {
        left: -1px;
        top: -2px;
    }

    100% {
        left: 1px;
        top: 0;
    }
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.7);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2vh;
        z-index: 1000;

        /* Initial State for GSAP */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links .nav-link,
    .nav-links .nav-cta {
        font-size: clamp(3rem, 6vw, 5rem);
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: -1px;
        color: white;
        text-decoration: none;
        transition: color 0.3s;
        line-height: 1.1;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-cta:hover {
        color: var(--color-brand-red);
        -webkit-text-stroke: 0px;
    }

    .nav-links .nav-cta {
        margin-top: 20px;
        font-size: 2rem;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 15px 40px;
        border-radius: 50px;
    }
}

.section-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 80px;
    text-align: center;
    word-wrap: break-word;
}

/* =========================================
   1.5 PORTFOLIO HEADER (trabajos.html)
   ========================================= */
.portfolio-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding-left: var(--spacing-gutter);
    padding-right: var(--spacing-gutter);
}

.portfolio-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
}

/* =========================================
   1.6 PAGE HEADER (servicios, precios, contacto)
   ========================================= */
.page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding-left: var(--spacing-gutter);
    padding-right: var(--spacing-gutter);
}

.page-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
}

/* =========================================
   2. WORK GRID
   ========================================= */
.work-section {
    padding: var(--spacing-section-desktop) var(--spacing-gutter);
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.work-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

@media (max-width: 768px) {
    .work-section {
        padding: var(--spacing-section-mobile) var(--spacing-gutter);
    }

    .work-grid {
        grid-template-columns: 100%;
        width: 100%;
        margin: 0;
        gap: 30px;
    }

    .work-item:first-child {
        aspect-ratio: 16/9;
    }

    /* Fix Work Item Overlap on Mobile */
    .work-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .work-title {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .work-category {
        font-size: 0.9rem;
        align-self: flex-start;
        margin-top: 5px;
        color: var(--color-brand-red);
    }
}

/* GLOBAL OVERFLOW PROTECTION */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.work-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(80%) brightness(0.9);
    transition: filter 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Work Item - Cinema Container */
.work-item {
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* NO overflow:hidden here - it hides the work-info */
}

/* Media container gets the overflow hidden */
.work-item>div:first-child,
.work-media-container {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.work-item:hover {
    z-index: 10;
}

.work-item:hover .work-media {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.08);
}

.work-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 20;
    padding: 0 5px;
}

.work-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.work-item:hover .work-title {
    color: var(--color-brand-blue);
}

.work-category {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: white;
    background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-red));
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover .work-category {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(198, 10, 64, 0.4);
}

/* =========================================
   3. SERVICES & PRICING
   ========================================= */
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 0;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

.service-title {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s, transform 0.3s;
}

.service-item:hover .service-title {
    color: var(--color-text-main);
    transform: translateX(20px);
}

.service-arrow {
    font-size: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: 0.3s var(--ease-smooth);
    color: var(--color-brand-red);
}

.service-item:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-smooth);
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin-left: 20px;
}

.service-item:hover .service-desc {
    max-height: 150px;
    margin-top: 20px;
}

/* Pricing Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-brand-blue);
}

.service-card button {
    width: 100%;
    border-radius: 4px;
    padding: 15px;
    margin-top: auto;
    cursor: pointer;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card button:hover {
    background: var(--color-brand-red);
    transform: scale(1.02);
}

/* =========================================
   4. MARQUEE & LOGOS - PREMIUM
   ========================================= */

/* Services Marquee - Gradient Strip */
.marquee-wrapper {
    position: relative;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-red));
    padding: 20px 0;
    overflow: hidden;
}

/* Fade edges effect */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(37, 68, 185, 1) 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(198, 10, 64, 1) 100%);
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
    align-items: center;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track span {
    white-space: nowrap;
    padding: 0 20px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* LOGOS SECTION - PREMIUM DESIGN */
.logos-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 1) 15%, rgba(17, 17, 17, 1) 85%, transparent 100%);
    position: relative;
    /* Allow logos to overflow when scaled */
    overflow: visible;
}

.logos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-brand-blue), var(--color-brand-red), transparent);
}

.logos-title {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 50px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
}

.logos-track-wrapper {
    position: relative;
    overflow-x: hidden;
    /* Only clip horizontal for marquee */
    overflow-y: visible;
    /* Allow logos to grow vertically */
    padding: 25px 0;
    /* Space for logos to scale up */
}

/* Fade edges for logos */
.logos-track-wrapper::before,
.logos-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-track-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, 1) 0%, transparent 100%);
}

.logos-track-wrapper::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(17, 17, 17, 1) 100%);
}

.logos-track {
    display: flex;
    align-items: center;
    animation: logosScroll 40s linear infinite;
    width: max-content;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes logosScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.4;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 50px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1) drop-shadow(0 0 25px rgba(37, 68, 185, 0.6));
    transform: scale(1.2) translateY(-8px);
    z-index: 10;
}

/* =========================================
   5. CONTACT & FORM DESIGN
   ========================================= */
.contact-section {
    padding: var(--spacing-section-desktop) var(--spacing-gutter);
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Form Styles - CSS Grid Redesign */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Form Header - Full width with gradient */
.contact-form .form-header {
    background: linear-gradient(90deg, rgba(37, 68, 185, 0.15), rgba(198, 10, 64, 0.15));
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.contact-form .form-header h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
}

.contact-form .form-header h2 span {
    color: var(--color-brand-blue);
}

.contact-form .form-header p {
    color: #888;
    font-size: 1.1rem;
    margin: 0;
}

/* Form Fields Container - Grid inside with padding matching header */
.form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 30px 40px;
}

/* Input and Textarea Styles - Thinner/Refined */
.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 18px;
    border-radius: 6px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 15px rgba(37, 68, 185, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
    grid-column: 1 / -1;
    padding: 16px 18px;
}

/* Grid positioning for inputs */
#input-nombre {
    grid-column: 1;
}

#input-rubro {
    grid-column: 2;
}

#input-email {
    grid-column: 1 / -1;
}

#mensaje-input {
    grid-column: 1 / -1;
}

/* Button inside form-fields grid */
.form-fields .btn {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    font-size: 0.95rem;
}

/* Mobile responsive form */
@media (max-width: 768px) {
    .form-fields {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    #input-nombre,
    #input-rubro {
        grid-column: 1;
    }

    .contact-form .form-header {
        padding: 25px 20px;
    }
}


/* FAQ Styles */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    cursor: pointer;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    color: var(--color-text-main);
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 20px;
    padding-bottom: 10px;
}

.faq-question i {
    transition: 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--color-brand-red);
}

/* =========================================
   6. NAVIGATION & BUTTONS
   ========================================= */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 20px var(--spacing-gutter);
    box-sizing: border-box;
}

.main-nav.nav-scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav.nav-scrolled .nav-container {
    padding: 15px var(--spacing-gutter);
}

.nav-logo {
    height: 50px;
    transition: transform 0.4s var(--ease-smooth);
}

.nav-logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Navigation Links Container - Desktop Base Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-brand-red);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--color-brand-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: white;
    color: black;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    animation: glow 3s infinite;
}

.nav-cta:hover {
    transform: scale(1.05);
    background: var(--color-brand-red);
    color: white;
    animation: none;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 0 white;
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

/* BUTTONS REDESIGNED */
.btn {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--color-brand-red), #96002b);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(198, 10, 64, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 35px rgba(198, 10, 64, 0.5);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: black !important;
    border-color: white !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* =========================================
   7. LOADER
   ========================================= */
#loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s, visibility 0.8s;
    overflow: hidden;
}

#loader::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(198, 10, 64, 0.15) 0%, transparent 70%);
    animation: loaderGlow 3s ease-in-out infinite;
}

@keyframes loaderGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: 1;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-curtain-left {
    left: 0;
    transform-origin: left;
}

.loader-curtain-right {
    right: 0;
    transform-origin: right;
}

#loader.loaded .loader-curtain-left {
    transform: scaleX(0);
}

#loader.loaded .loader-curtain-right {
    transform: scaleX(0);
}

#loader.loaded .loader-content {
    animation: loaderFadeOut 0.4s ease forwards;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(198, 10, 64, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 50px rgba(198, 10, 64, 0.5));
    }
}

@keyframes loaderFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* GLOBAL PADDING UTILITY */
.section-padding {
    padding: var(--spacing-section-desktop) var(--spacing-gutter);
    width: 100%;
    max-width: var(--spacing-container);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--spacing-section-mobile) var(--spacing-gutter);
    }

    #servicios {
        margin-top: 0;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        gap: 20px;
    }
}

/* =========================================
   8. FOOTER
   ========================================= */
.main-footer {
    padding: 80px var(--spacing-gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.social-links a i {
    font-size: 1.5rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: white;
}

/* Brand Specific Hovers */
.social-links a[href*="instagram"]:hover {
    color: #E1306C;
    text-shadow: 0 0 20px rgba(225, 48, 108, 0.6);
}

.social-links a[href*="facebook"]:hover {
    color: #1877F2;
    text-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
}

.social-links a[href*="tiktok"]:hover {
    color: #FE2C55;
    text-shadow: 2px 0 #25F4EE, -2px 0 #FE2C55;
}

.main-footer a[href^="mailto"]:hover {
    color: #EA4335 !important;
    text-shadow: 0 0 20px rgba(234, 67, 53, 0.6);
}

.footer-logo {
    height: 80px;
    opacity: 0.7;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: footerLogoBreathing 3s ease-in-out infinite;
}

@keyframes footerLogoBreathing {

    0%,
    100% {
        filter: brightness(0.8) drop-shadow(0 0 5px rgba(198, 10, 64, 0.2));
        transform: scale(1);
    }

    50% {
        filter: brightness(1) drop-shadow(0 0 25px rgba(198, 10, 64, 0.5)) drop-shadow(0 0 50px rgba(37, 68, 185, 0.3));
        transform: scale(1.02);
    }
}

.footer-logo:hover {
    opacity: 1;
    animation: none;
    filter: brightness(1.1) drop-shadow(0 0 40px rgba(198, 10, 64, 0.8)) drop-shadow(0 0 80px rgba(37, 68, 185, 0.6));
    transform: scale(1.15) rotate(-5deg);
}

.footer-logo:active {
    transform: scale(0.9) rotate(0deg);
    filter: brightness(1.5) drop-shadow(0 0 60px rgba(255, 255, 255, 1));
    transition: all 0.1s;
}

@media (max-width: 768px) {
    .main-footer {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================
   9. MODAL UI
   ========================================= */
#project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--color-bg-dark);
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    height: 80vh;
}

.modal-content.modal-vertical {
    max-width: 500px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: 90vh;
}

#modal-media-container {
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modal-media-container img,
#modal-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-vertical .modal-info {
    padding: 25px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.9);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    color: white;
    transition: 0.3s;
}

.modal-close-btn:hover {
    background: var(--color-brand-red);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: auto;
        max-height: 90vh;
    }

    #modal-media-container {
        height: 300px;
    }

    .modal-vertical {
        height: 90vh;
    }

    .modal-vertical #modal-media-container {
        height: 100%;
        flex: 1;
    }
}

/* =========================================
   10. LOADER ELEMENTS
   ========================================= */
.loader-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 350px !important;
    animation: loaderPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 60px rgba(198, 10, 64, 0.5));
}

.loader-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.loader-info {
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 5px;
    position: relative;
}

.loader-counter {
    font-size: 8rem !important;
    font-weight: 900;
    line-height: 0.8;
    color: white;
    font-variant-numeric: tabular-nums;
    letter-spacing: -5px;
    background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: auto !important;
    text-align: right;
}

.loader-percent {
    display: none !important;
}

/* Form Header Styles */
.form-header {
    background: linear-gradient(90deg, rgba(37, 68, 185, 0.1), rgba(198, 10, 64, 0.1));
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.form-header h2 {
    color: white;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
}

.form-header h2 span {
    color: var(--color-brand-blue);
}

.form-header p {
    color: #888;
    font-size: 1.1rem;
    margin: 0;
}

.contact-form>*:not(.form-header) {
    margin-left: 40px;
    margin-right: 40px;
}

.contact-form>button {
    width: calc(100% - 80px) !important;
}

.loader-bar-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-red));
    box-shadow: 0 -5px 20px rgba(198, 10, 64, 0.6);
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .loader-logo {
        width: 220px !important;
    }

    .loader-counter {
        font-size: 5rem !important;
    }

    .loader-bar-track {
        height: 8px;
    }

    .loader-info {
        padding: 0 20px;
    }
}

/* =========================================
   11. FRAME LOADER BORDERS
   ========================================= */
.loader-border {
    position: fixed;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-red));
    z-index: 100000;
    transition: width 0.05s linear, height 0.05s linear;
}

.loader-border-top {
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    box-shadow: 0 0 15px rgba(198, 10, 64, 0.8);
}

.loader-border-right {
    top: 0;
    right: 0;
    width: 5px;
    height: 0%;
    box-shadow: 0 0 15px rgba(198, 10, 64, 0.8);
    background: linear-gradient(180deg, var(--color-brand-red), var(--color-brand-blue));
}

.loader-border-bottom {
    bottom: 0;
    right: 0;
    width: 0%;
    height: 5px;
    box-shadow: 0 0 15px rgba(37, 68, 185, 0.8);
    background: linear-gradient(270deg, var(--color-brand-blue), var(--color-brand-red));
}

.loader-border-left {
    bottom: 0;
    left: 0;
    width: 5px;
    height: 0%;
    box-shadow: 0 0 15px rgba(37, 68, 185, 0.8);
    background: linear-gradient(0deg, var(--color-brand-red), var(--color-brand-blue));
}

/* =========================================
   12. SCROLL INDICATOR
   ========================================= */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

/* =========================================
   13. SOUND TOGGLE
   ========================================= */
.sound-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sound-toggle .bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
}

.sound-toggle .bar {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: soundBar 0.5s ease infinite alternate;
}

.sound-toggle .bar:nth-child(1) {
    height: 60%;
    animation-delay: 0s;
}

.sound-toggle .bar:nth-child(2) {
    height: 100%;
    animation-delay: 0.1s;
}

.sound-toggle .bar:nth-child(3) {
    height: 40%;
    animation-delay: 0.2s;
}

.sound-toggle .bar:nth-child(4) {
    height: 80%;
    animation-delay: 0.3s;
}

.sound-toggle.muted .bar {
    animation: none;
    height: 20% !important;
}

@keyframes soundBar {
    0% {
        height: 20%;
    }

    100% {
        height: 100%;
    }
}

/* =========================================
   PREMIUM MICRO-INTERACTIONS
   Awwwards-Level Polish
   ========================================= */

/* Button Liquid Effect */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
    border-radius: 50%;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 68, 185, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* Work Item Enhanced Hover - Only shadows, base styles defined earlier */
.work-item:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(198, 10, 64, 0.15),
        0 0 100px rgba(37, 68, 185, 0.1);
}

/* Service Card Glow */
.service-card {
    position: relative;
    overflow: visible;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(37, 68, 185, 0.2);
}

/* Link Underline Wave */
.nav-link,
footer a {
    position: relative;
    display: inline-block;
}

.nav-link::after,
footer a:not(.social-link)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-red));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
footer a:not(.social-link):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* FAQ Item Hover */
.faq-item {
    position: relative;
    transition: padding-left 0.4s ease, background 0.3s ease;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--color-brand-blue), var(--color-brand-red));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item:hover::before {
    transform: scaleY(1);
}

/* Form Input Glow Focus */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-brand-blue);
    box-shadow:
        0 0 20px rgba(37, 68, 185, 0.3),
        0 0 40px rgba(37, 68, 185, 0.1),
        inset 0 0 10px rgba(37, 68, 185, 0.1);
    transform: scale(1.01);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-red));
    z-index: 10000;
    box-shadow: 0 0 10px var(--color-brand-blue);
}

/* Section Title Chars Animation */
.section-title .char {
    display: inline-block;
    will-change: transform, opacity;
}

/* Service Item Hover Line */
.service-item {
    position: relative;
    transition: padding-left 0.4s ease, color 0.3s ease;
}

.service-item::before {
    content: '→';
    position: absolute;
    left: -30px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-brand-red);
}

.service-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.service-item:hover {
    color: var(--color-brand-blue);
}

/* Marquee Speed Variation */
.marquee-track {
    will-change: animation-duration;
}

/* Smooth Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-brand-blue), var(--color-brand-red));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-red);
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}