/* Landing Page Styles */

/* Language Selector */
.language-selector {
    position: fixed;
    top: 10px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 2001;
    background: rgba(30, 30, 30, 0.9);
    padding: 8px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.lang-btn {
    padding: 8px 16px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: rgba(138, 43, 226, 0.6);
    border-color: rgba(138, 43, 226, 0.8);
}

/* Reset body margins and override styles.css */
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Reset html overflow */
html {
    overflow: auto !important;
    height: auto !important;
}

/* Top Navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.25);
}

.top-nav .nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.top-nav .nav-logo {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.top-nav .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
}

.top-nav .nav-links a:hover {
    color: #fff;
}

/* Unified Hero + Featured */
.hero-featured {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 40px 20px;
    /* reducir espacio superior */
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15) 0%, rgba(30, 30, 30, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.hero-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-featured-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.featured-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-featured-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    margin-top: 0;
    background: linear-gradient(135deg, #fff 0%, rgba(138, 43, 226, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(138, 43, 226, 0.6) 100%);
    color: white;
    border: 2px solid rgba(138, 43, 226, 0.8);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 1) 0%, rgba(138, 43, 226, 0.8) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Shader Section */

.featured-compact {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.featured-info {
    padding: 20px;
}

.featured-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    margin-top: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.featured-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.featured-details {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* texto a la izquierda, controles a la derecha */
    gap: 12px;
}

.featured-text {
    flex: 1;
}

.featured-details h3 {
    color: rgba(138, 43, 226, 0.9);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}

.featured-details p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1.1rem;
}

.featured-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Position controls below the featured canvas */
.hero-featured-container .featured-controls {
    grid-column: auto;
    justify-content: flex-end;
    margin-top: 0;
}

.featured-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    background: rgba(138, 43, 226, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.5);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.featured-btn-text {
    opacity: 0.9;
}

.featured-btn svg {
    transition: transform 0.3s ease;
}

.featured-btn:hover {
    background: rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.featured-btn:hover svg {
    transform: scale(1.2);
}

#prev-shader:hover svg {
    transform: translateX(-3px) scale(1.2);
}

#next-shader:hover svg {
    transform: translateX(3px) scale(1.2);
}

.featured-canvas-container {
    width: 100%;
    height: 460px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2);
}

#featured-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 1024px) {
    .hero-featured-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-canvas-container {
        height: 380px;
    }

    .featured-right .featured-controls {
        margin-top: 6px;
    }
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.7) 0%, rgba(15, 15, 15, 0.8) 100%);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    margin-top: 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 25px 20px;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(138, 43, 226, 0.3));
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    margin-top: 0;
    color: #fff;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
    padding: 120px 20px 100px 20px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.gallery .shader-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Pagination controls */
.pagination-controls {
    max-width: 1400px;
    margin: 24px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pagination-controls .page-btn {
    padding: 10px 16px;
    background: rgba(138, 43, 226, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.5);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.pagination-controls .page-btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.pagination-controls .page-info {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
    background: rgba(20, 20, 20, 0.8);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-featured {
        padding: 80px 20px 40px 20px;
        /* Increased top padding to avoid header overlap */
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }

    .features {
        padding: 80px 20px;
    }

    .gallery {
        padding: 80px 20px 60px 20px;
    }

    .language-selector {
        top: 10px;
        right: 10px;
        padding: 8px;
        z-index: 2001;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .featured-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .featured-controls {
        width: 100%;
        justify-content: space-between;
    }

    .featured-canvas-container {
        height: 280px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance Spotlight Section */
.performance-spotlight {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.performance-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.05) 0%, transparent 60%);
    animation: rotateBackground 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spotlight-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.spotlight-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spotlight-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 20px;
    color: #ff69b4;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: fit-content;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
}

.spotlight-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.spotlight-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.spotlight-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.spotlight-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.spotlight-feature-icon {
    font-size: 1.4rem;
    color: #ff69b4;
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.5));
}

.spotlight-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(138, 43, 226, 0.2);
    aspect-ratio: 16/9;
    background: #000;
}

.spotlight-visual img,
.spotlight-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.spotlight-visual:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.spotlight-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), transparent);
    pointer-events: none;
}

@media (max-width: 1024px) {
    .spotlight-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        text-align: center;
        gap: 40px;
    }

    .spotlight-badge {
        margin: 0 auto;
    }

    .spotlight-title {
        font-size: 3rem;
    }

    .spotlight-features {
        align-items: center;
    }

    .spotlight-visual {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}