/* ==========================================================================
   1. VARIABLES Y RESET GENERAL
   ========================================================================== */
:root {
    --color-light: #fbaeff;
    --color-mid: #5c2ab0;
    --color-dark: #2c0b4f;
    --color-dark-trans: rgba(18, 3, 36, 0.85);
    --color-mid-trans: rgba(92, 42, 176, 0.85);
    --text-color: #ffffff;
    --text-dark: #120324;

    --sidebar-width: 260px;
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--color-dark);
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. COMPONENTES GLOBALES (BASE / MOBILE FIRST)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    color: var(--color-light);
}

.btn {
    display: inline-block;
    background-color: var(--color-mid);
    color: var(--text-color);
    border: none;
    padding: 0.85rem 1.8rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
    background-color: var(--color-light);
    color: var(--text-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(243, 27, 255, 0.4);
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. ESTRUCTURA Y NAVEGACIÓN MOBILE
   ========================================================================== */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-content {
    width: 100%;
    min-width: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #0d021b;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sidebar.open {
    left: 0;
}

.sidebar-logo {
    display: none;
}

.nav-links {
    list-style: none;
    width: 100%;
    max-width: 320px;
    padding: 0 1rem;
}

.nav-links li {
    margin: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.7rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 174, 255, 0.1);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: var(--color-light);
    flex-shrink: 0;
    transition: fill 0.3s;
}

.nav-item:hover {
    background: rgba(251, 174, 255, 0.15);
    border-color: var(--color-light);
}

.nav-item:hover svg {
    fill: var(--text-color);
}


.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   4. HERO (BASE MOBILE)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14rem 1.25rem 2rem;
    overflow: hidden;
    /* Quitamos cualquier background-image fijo para usar picture */
}

/* Capa de imagen de fondo */
.hero-bg-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Asegura que el contenido quede por encima de la imagen */
.hero-container,
.hero-socials {
    position: relative;
    z-index: 2;
}

.hero-socials {
    display: none;
}

.hero-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    color: #e9e9e9;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.hero-title .gradient-text {
    background: linear-gradient(90deg, var(--color-light) 0%, #b85dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.hero-slogan {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.5;
    word;
}

.hero-slogan span {
    color: var(--color-light);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.btn-cta.primary {
    background: linear-gradient(135deg, #7b38d8, var(--color-mid));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(123, 56, 216, 0.4);
    border: 1px solid rgba(251, 174, 255, 0.3);
}

.btn-cta.primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #8f46f3, #6d33cf);
}

.btn-cta.secondary {
    background: rgba(18, 3, 36, 0.4);
    color: #ffffff;
    border: 1px solid rgba(251, 174, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-cta.secondary:hover {
    background: rgba(251, 174, 255, 0.15);
    border-color: var(--color-light);
    transform: translateY(-2px);
}

.logo-slider-card {
    width: 100%;
    background: rgba(18, 3, 36, 0.25);
    border: 1px solid rgba(251, 174, 255, 0.15);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
}

.logo-set {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
}

.logo-slide-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.logo-slide-img:hover {
    opacity: 1;
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

/* ==========================================================================
   5. SERVICIOS (BASE MOBILE)
   ========================================================================== */
.services {
    background: linear-gradient(to bottom, var(--color-mid-trans), var(--color-dark));
}

.services-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.service-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: rgba(14, 3, 27, 0.85); /* Fondo más dark */
    border: 1px solid rgba(251, 174, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

.service-media-container {
    width: 100%;
}

.service-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-mid);
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-block:hover .service-img {
    transform: scale(1.05);
}

.service-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    text-align: left;
}

.service-title {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 0.75rem;
    text-align: left;
    width: 100%;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.service-list li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.4;
}

.service-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-light);
}

.text-highlight {
    color: #ffaa00;
    font-weight: 700;
}

/* ==========================================================================
   6. PLANES & TARIFAS
   ========================================================================== */
.pricing-section {
    background: linear-gradient(to bottom, var(--color-dark), var(--color-mid-trans));
    padding: 1rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.pricing-card {
    background: rgba(18, 3, 36, 0.6);
    border: 1px solid rgba(251, 174, 255, 0.15);
    border-radius: 20px;
    padding: 2.2rem 1.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-light);
    box-shadow: 0 12px 30px rgba(251, 174, 255, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--color-light);
    background: linear-gradient(180deg, rgba(92, 42, 176, 0.4), rgba(18, 3, 36, 0.8));
    box-shadow: 0 8px 30px rgba(123, 56, 216, 0.35);
}

.pricing-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--color-light);
    background: rgba(251, 174, 255, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.pricing-badge.featured-badge {
    background: #ffaa00;
    color: var(--text-dark);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-desc {
    font-size: 0.9rem;
    color:#ffc042;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    min-height: 40px;
}

.pricing-features {
    list-style: none;
    width: 100%;
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pricing-features li {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 1.4rem;
}

.pricing-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--color-light);
    font-size: 0.85rem;
}

.pricing-btn {
    width: 100%;
    margin-top: auto;
}

/* ==========================================================================
   7. FLYERS (MASONRY GRID)
   ========================================================================= */
.proyectos {
    background: linear-gradient(to bottom, var(--color-mid-trans), var(--color-dark));
}

.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
    width: 100%;
}

.masonry-grid img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    break-inside: avoid;
    transition: transform 0.3s;
}

.masonry-grid img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   8. MOTION VIDEOS & TRAILERS
   ========================================================================== */
.motion-section {
    background: linear-gradient(to bottom, var(--color-dark), var(--color-mid-trans));
    padding: 1rem 0;
}

.motion-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background: rgba(18, 3, 36, 0.6);
    border: 1px solid rgba(251, 174, 255, 0.15);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.motion-media {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
}

.motion-img {
    width: 100%;
    height: auto;
    display: block;
}

.motion-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    width: 100%;
}

.motion-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: var(--color-light);
    font-weight: 900;
    line-height: 1.2;
}

.motion-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.motion-list {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.motion-list li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding-left: 1.5rem;
}

.motion-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--color-light);
}

/* ==========================================================================
   9. CTA SECTION
   ========================================================================== */
.cta-section {
    background: linear-gradient(to bottom, var(--color-mid-trans), var(--color-dark));
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background-image: url(/Archives/back.webp);
    background-size: cover;
    padding: 3rem 1.5rem 0rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(251, 174, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta-media {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.cta-img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.cta-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 900;
    color: var(--color-light);
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 480px;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
    background-color: rgba(18, 3, 36, 0.8);
    padding: 2.5rem 1rem;
    border-top: 2px solid var(--color-mid);
    backdrop-filter: blur(15px);
}

.footer .container {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-cta {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-light);
    letter-spacing: 0.5px;
}

.footer-contact a{
    color: #e9e9e9;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: var(--color-dark-trans);
    border-radius: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--text-color);
    background-color: var(--color-mid);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    background-color: var(--color-light);
    color: var(--text-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(251, 174, 255, 0.4);
}

/* ==========================================================================
   11. MEDIA QUERIES: TABLETS
   ========================================================================== */
@media (min-width: 600px) {
    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 4rem 2rem;
    }
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1rem;
    }
}

/* ==========================================================================
   12. MEDIA QUERIES: ESCRITORIO
   ========================================================================== */
@media (min-width: 1024px) {
    .layout-wrapper {
        display: flex;
        flex-direction: row;
        width: 100%;
        min-height: 100vh;
    }

    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        min-width: 0;
        overflow-x: hidden;
    }

    .header {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: var(--sidebar-width);
        height: 100vh;
        background: #01001c;
        justify-content: flex-start;
        padding-top: 3rem;
        border-right: 1px solid rgba(251, 174, 255, 0.1);
        z-index: 100;
    }

    .sidebar-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .sidebar-logo .logo-img {
        height: auto;
        max-height: 60px;
        max-width: 160px;
    }

    .nav-links {
        max-width: 100%;
        padding: 0 1.25rem;
    }

    .close-menu {
        display: none;
    }

    /* Hero Desktop */
    .hero {
        min-height: 100vh;
        padding: 5rem 4rem 3rem;
        align-items: center;
    }

    .hero-socials {
        display: flex;
        position: absolute;
        top: 2.5rem;
        right: 3rem;
        gap: 1rem;
        z-index: 20;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        height: 100%;
        max-height: 80vh;
        gap: 3rem;
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
        max-width: 700px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .logo-slider-card {
        padding: 1.5rem 2.5rem;
        border-radius: 24px;
    }

    .logo-slide-img {
        height: 30px;
    }

    .container {
        padding: 4.5rem 2rem;
        max-width: 1100px;
    }

    .services-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }

    .service-info {
        padding: 1.75rem 1.25rem;
    }

    .masonry-grid {
        column-count: 3;
    }
    
    /* Motion Section Desktop */
    .motion-wrapper {
        flex-direction: row;
        justify-content: space-between;
        padding: 3rem 4rem;
        gap: 3rem;
    }

    .motion-media {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .motion-content {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* CTA Desktop */
    .cta-wrapper {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 4rem 0rem 4rem;
        gap: 2rem;
    }

    .cta-media {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .cta-content {
        flex: 0 0 55%;
        max-width: 55%;
        align-items: flex-start;
        text-align: left;
    }
}