@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #0d0d0f;
    --text-color: #f5f5f7;
    --text-muted: #86868b;
    --text-muted2: #f5f5f7;
    --accent: #ffffff;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: url('images/backo.jpg');
    background-repeat: repeat;
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 100px;
    overflow-x: hidden;
    position: relative;
}

.no-scroll {
    overflow: hidden;
}

#ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.035), transparent 80%);
    transition: opacity 0.5s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    opacity: 0.7;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(13, 13, 15, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    align-items: center;
}

nav ul li a {
    position: relative;
    opacity: 0.5;
}

nav ul li a:hover, nav ul li a.active {
    opacity: 1;
}

.nav-cta-btn {
    background: var(--accent);
    color: #000000;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.nav-cta-btn:hover {
    transform: scale(1.05);
    background-color: #e5e5ea;
    opacity: 1;
}

/* Layout Framework */
section {
    padding: 100px 8%;
    max-width: 1500px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Títulos responsivos con clamp() */
.section-title {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 30px;
    line-height: 1.05;
    text-transform: uppercase;
    word-wrap: break-word;
    hyphens: auto;
}

.title-secondary {
    color: var(--text-muted2);
}

.section-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 50px auto;
    font-weight: 300;
}

.marquee-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    padding: 25px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 0 40px 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.15);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.video-showcase-box {
    position: relative;
    width: 98%;
    height: 60vh;
    background: #151518;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 16px;
}

.video-showcase-box video {
    width: 100%;
    height: 100%;
    opacity: 0.5;
    object-fit: cover;
    border-radius: 16px;
}

.video-label-tag {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.hero-video-container {
    position: relative;
    width: 98%;
    height: calc(100vh - 100px);
    background: #000;
    overflow: hidden;
    margin: 0 auto;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    margin: 0 auto;
    border-radius: 16px;
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 1100px;
    z-index: 5;
}

.hero-overlay-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5.2rem); 
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.0;
    margin-bottom: 30px;
    text-transform: uppercase;
    word-wrap: break-word;
}

/* Grid for Subscription Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px;
}

.plan-card {
    background: #131316;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.plan-card.featured {
    background: #ffffff;
    color: #000000;
    border-color: transparent;
}

.plan-card.featured .plan-price span, .plan-card.featured .plan-features li::before {
    color: #555558;
}

.plan-card.featured .btn {
    background: #000000;
    color: #ffffff;
}

.plan-card.featured .btn:hover {
    background: #2c2c2e;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.plan-price {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 35px;
    letter-spacing: -2px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0;
}

.plan-features {
    list-style: none;
    margin-bottom: 45px;
    font-size: 1.2rem;
}

.plan-features li {
    margin-bottom: 16px;
    padding-left: 22px;
    position: relative;
    font-weight: 300;
}

.plan-features li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    top: 6px;
}

.feature-highlight {
    font-weight: 700;
    color: var(--accent);
}

.plan-card.featured .feature-highlight {
    color: #000;
}

.btn {
    display: block;
    background: #ffffff;
    color: #000000;
    padding: 16px 30px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;

    border: none;
}

.btn:hover {
    background: #e5e5ea;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

/* Portfolio Mosaic Grid */
.portfolio-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    gap: 20px;
    padding: 30px 4% 120px 4%;
}

.mosaic-item {
    background: #151518;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(85%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.mosaic-item:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(100%);
}

.mosaic-item.wide {
    grid-column: span 2;
}

.mosaic-item.tall {
    grid-row: span 2;
}

/* Form Styles */
.contact-wrapper {
    max-width: 700px;
    margin: 50px auto 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    background: #131316;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 180px;
}

/* Disruptive Badge */
.disruptive-badge {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 110px;
    height: 110px;
    z-index: 999;
    pointer-events: none;
    animation: spinCircle 15s linear infinite;
}

@keyframes spinCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.typewriter-cursor {
    border-right: none;
    animation: none;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

/* Footer */
footer {
    background: #070708;
    color: var(--text-muted);
    padding: 100px 8% 50px 8%;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-links h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.lang-switcher-box {
    margin-top: 10px;
}

.lang-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    color: #000;
    background: #fff;

    border-color: #fff;
}

.footer-bottom {
    max-width: 1500px;
    margin: 80px auto 0 auto;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555558;
}

/* ==========================================================================
   Estructuras Nuevas (Contenedor Premium y Slideshow 4x)
   ========================================================================== */
.premium-list-container {
    background: #131316;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 50px 40px;
    border-radius: 20px;
    display: inline-block;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.slideshow-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

.slideshow-box {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #151518;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.slideshow-box .slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-box .slide-img.active {
    opacity: 0.75; 
    transform: scale(1);
}

/* ==========================================================================
   MOBILE FIRST UX - SOLUCIONES RESPONSIVE
   ========================================================================== */
@media(max-width: 1024px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    section {
        padding: 60px 5%; /* Menos padding en mobile */
    }

    /* Solución menú solapado: Hamburger Mobile Menu */
    .mobile-menu-toggle {
        display: block;
		margin-left: auto;
    }
    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: 1001;
    }
    nav ul.mobile-active {
        opacity: 1;
        pointer-events: auto;
    }
    nav ul li {
        margin: 15px 0;
    }
    nav ul li a {
        font-size: 1.5rem;
    }
    /* Animación del botón hamburguesa */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Solución Galería Mobile (No colapsa la RAM y carga orgánicamente) */
    .portfolio-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px; /* Tamaño apto para móviles */
        gap: 8px;
        padding: 10px 4% 80px 4%;
    }
    .mosaic-item.wide, .mosaic-item.tall {
        grid-column: span 1; /* Previene huecos raros en mobile */
        grid-row: span 1;
    }

    /* Slideshow Mobile */
    .slideshow-wrapper {
        gap: 12px;
    }
    .slideshow-box {
        border-radius: 12px;
    }
    
    .premium-list-container {
        padding: 35px 20px;
    }

    .disruptive-badge {
        bottom: 20px;
        right: 20px;
        width: 70px;
        height: 70px;
    }

    /* Footer más compacto */
    footer {
        padding: 50px 5% 30px 5%;
        text-align: center;
    }
    .footer-grid {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    .footer-brand p {
        margin: 0 auto;
    }
    .footer-links h4 {
        margin-bottom: 15px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        padding-top: 25px;
    }
}