:root {
    --bg-color: #0f0f13;
    --text-color: #f0f0f0;
    --accent-color: #00d2ff;
    --accent-hover: #3a7bd5;
    --card-bg: #1a1a24;
    --nav-bg: rgba(15, 15, 19, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navegación */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 210, 255, 0.12);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
header {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: var(--bg-color);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-media picture,
.hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 19, 0.45), rgba(15, 15, 19, 0.85));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.responsive-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    header {
        min-height: 80vh;
        padding: 80px 20px 40px;
    }

    header h1 {
        font-size: 2.6rem;
    }

    header p {
        max-width: 100%;
        font-size: 1rem;
    }
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 28px rgba(0, 210, 255, 0.45);
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
}

header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #b3b3b3;
}

.btn {
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.btn-whatsapp {
    background: #25D366 !important;
}

.support-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366, #1eb246);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.45), 0 18px 45px rgba(37, 211, 102, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: breathing-glow 2.8s ease-in-out infinite;
    z-index: 1001;
}

.support-button:hover {
    transform: scale(1.08);
    box-shadow: 0 0 26px rgba(37, 211, 102, 0.65), 0 24px 58px rgba(37, 211, 102, 0.24);
}

.support-button i {
    font-size: 1.4rem;
}

@keyframes breathing-glow {
    0%, 100% {
        box-shadow: 0 0 14px rgba(37, 211, 102, 0.4), 0 18px 44px rgba(37, 211, 102, 0.16);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 28px rgba(37, 211, 102, 0.75), 0 22px 58px rgba(37, 211, 102, 0.30);
        transform: scale(1.02);
    }
}

/* Secciones Generales */
section {
    padding: 100px 5%;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 0.08em;
    color: #f5fbff;
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.22);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 26px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.16);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-12px) rotateX(1deg) rotateY(-0.5deg);
    border-color: rgba(0, 210, 255, 0.28);
    box-shadow: 0 30px 70px rgba(0, 210, 255, 0.12);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

.service-card p {
    color: #a0a0a0;
}

/* Trabajos */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
}

.work-column {
    background: var(--card-bg);
    border-radius: 26px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    transform-style: preserve-3d;
}

.work-column:hover {
    transform: translateY(-12px) rotateX(0.8deg) rotateY(0.6deg);
    border-color: rgba(0, 210, 255, 0.28);
    box-shadow: 0 32px 78px rgba(0, 210, 255, 0.14);
}

.work-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.work-heading i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.work-heading h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}

.carousel-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #101017;
    min-height: 280px;
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(15, 15, 19, 0.8);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.carousel-dots button.active {
    background: var(--accent-color);
}

/* Catálogos */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.catalog-card {
    background: var(--card-bg);
    border-radius: 26px;
    padding: 35px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
    transform-style: preserve-3d;
}

.catalog-card:hover {
    transform: translateY(-10px) rotateX(0.6deg) rotateY(-0.4deg);
    border-color: rgba(0, 210, 255, 0.22);
    box-shadow: 0 30px 65px rgba(0, 210, 255, 0.12);
}

.catalog-card .console-icon {
    font-size: 3rem;
}

.catalog-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

.catalog-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-action {
    flex: 1;
    padding: 12px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action.view {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(0, 210, 255, 0.22);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.08);
}

.btn-action.view:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-action.download {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-action.download:hover {
    background: var(--accent-color);
    color: #0f0f13;
}

.btn-disabled {
    background: #2a2a35 !important;
    color: #555 !important;
    border: 1px solid #3a3a45 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.switch-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: -10px;
}

/* Contacto y Footer */
.contact-section {
    background: var(--card-bg);
    text-align: center;
    padding: 80px 5%;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

footer {
    background: #0a0a0d;
    text-align: center;
    padding: 30px;
    color: #666;
    border-top: 1px solid #1f1f1f;
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: white;
    background: rgba(255,255,255,0.05);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 1.3rem 4%;
    }

    .logo {
        font-size: 1.6rem;
    }

    header {
        padding: 0 20px;
    }

    header h1 {
        font-size: clamp(3rem, 5vw, 3.6rem);
    }

    header p {
        max-width: 560px;
        font-size: 1.1rem;
    }

    section {
        padding: 80px 4%;
    }

    .services-grid,
    .works-grid,
    .catalog-grid {
        gap: 24px;
    }

    .works-grid,
    .services-grid,
    .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .carousel-container {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 26, 0.98);
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .catalog-actions {
        flex-direction: column;
    }

    .services-grid,
    .works-grid,
    .catalog-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .service-card,
    .work-column,
    .catalog-card,
    .info-item {
        padding: 28px 20px;
    }

    .carousel-container {
        min-height: 220px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1rem 3%;
    }

    .logo {
        font-size: 1.5rem;
    }

    header h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    header p {
        font-size: 1rem;
        max-width: 100%;
    }

    section {
        padding: 70px 3%;
    }

    .btn {
        padding: 12px 28px;
    }

    .btn-action {
        font-size: 0.88rem;
        padding: 12px 14px;
    }

    .contact-info {
        gap: 24px;
    }

    .support-button {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
}

/* Spinner de Carga - Diseño Gaming */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 19, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner.active {
    display: flex;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Spinner tipo Pac-Man estilo gaming */
.game-spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.spinner-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: orbit 2s linear infinite;
}

.spinner-dot:nth-child(1) {
    animation-delay: 0s;
    left: 40px;
    top: 0px;
}

.spinner-dot:nth-child(2) {
    animation-delay: 0.5s;
    left: 70px;
    top: 15px;
}

.spinner-dot:nth-child(3) {
    animation-delay: 1s;
    left: 80px;
    top: 40px;
}

.spinner-dot:nth-child(4) {
    animation-delay: 1.5s;
    left: 70px;
    top: 65px;
}

.spinner-dot:nth-child(5) {
    animation-delay: 2s;
    left: 40px;
    top: 80px;
}

.spinner-dot:nth-child(6) {
    animation-delay: 2.5s;
    left: 10px;
    top: 65px;
}

.spinner-dot:nth-child(7) {
    animation-delay: 3s;
    left: 0px;
    top: 40px;
}

.spinner-dot:nth-child(8) {
    animation-delay: 3.5s;
    left: 10px;
    top: 15px;
}

@keyframes orbit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Spinner alternativo - Cuadrado rotatorio estilo NES */
.spinner-box {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-color);
    border-top-color: #3a7bd5;
    border-right-color: #00d2ff;
    border-bottom-color: #3a7bd5;
    border-left-color: #00d2ff;
    animation: spinBox 1.5s linear infinite;
}

@keyframes spinBox {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-text {
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}
