* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0b0b0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* HEADER */
header {
    width: 100%;
    padding: 22px 8%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo::first-letter {
    color: #00d4ff;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #d8d8e8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

nav a:hover {
    color: #00d4ff;
}

/* HERO */
.hero {
    min-height: 100vh;
    padding: 150px 8% 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.22), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(123, 97, 255, 0.25), transparent 30%),
        linear-gradient(135deg, #0b0b0f, #11111a);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.05;
    font-weight: 800;
    z-index: 1;
}

.hero p {
    margin-top: 24px;
    max-width: 560px;
    color: #c7c7d8;
    font-size: 1.1rem;
    z-index: 1;
}

.btn {
    display: inline-block;
    width: fit-content;
    margin-top: 34px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #00d4ff, #7b61ff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: 0.4s;
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

/* SECCIONES */
section {
    padding: 90px 8%;
}

section h2 {
    font-size: 2.4rem;
    margin-bottom: 36px;
}

/* PORTAFOLIO */
.portafolio {
    background: #0f0f16;
}

.videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.video-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(0, 212, 255, 0.14);
    border-radius: 22px;
    padding: 16px;
    transition: 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.12);
}

.video-card video {
    width: 100%;
    border-radius: 16px;
    background: #000;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.video-card p {
    margin-top: 14px;
    color: #e9e9f5;
    font-weight: 600;
}

/* SERVICIOS */
.servicios {
    background:
        radial-gradient(circle at 90% 10%, rgba(123, 97, 255, 0.16), transparent 30%),
        #0b0b0f;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    min-height: 170px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 97, 255, 0.42);
}

.card h3 {
    color: #00d4ff;
    margin-bottom: 12px;
}

.card p {
    color: #c7c7d8;
    font-size: 0.95rem;
}

/* CONTACTO */
.contacto {
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.18), transparent 35%),
        #101018;
}

.contacto h2 {
    margin-bottom: 16px;
}

.contacto p {
    color: #c7c7d8;
    font-size: 1.1rem;
}

/* FOOTER */
footer {
    padding: 28px 8%;
    text-align: center;
    color: #8f8fa3;
    background: #08080c;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header {
        padding: 18px 6%;
    }

    nav {
        gap: 16px;
    }

    .videos {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 14px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 190px;
    }

    section {
        padding: 70px 6%;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* === ANIMACIONES TIPO APPLE === */

.hidden {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    filter: blur(8px);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s ease;
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.video-card video {
    transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-card:hover video {
    transform: scale(1.04);
}

.card,
.video-card {
    will-change: transform, opacity;
}

video {
    max-width: 100%;
    height: auto;
}