:root {
    --bg-color: #f7f7f9;
    --text-main: #000000;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    z-index: 100;
    background: rgba(247, 247, 249, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
}

.nav-left { gap: 32px; }
.nav-center { gap: 32px; margin-right: 48px;}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    color: #000;
}

.logo-bars {
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 4px;
}

.menu-btn, .sys-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 8px 24px 8px 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.sys-btn {
    padding: 8px 24px 8px 12px;
}

.plus {
    background: #ffffff;
    color: #000000;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
}

.nav-link {
    color: #999999;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #000;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* EL CÍRCULO CON GRADIENTE EXACTO A LA FOTO */
.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: transparent;
    border: 35px solid transparent;
    /* Crear el borde arcoiris difuminado */
    background: 
        linear-gradient(#f7f7f9, #f7f7f9) padding-box,
        linear-gradient(135deg, #fb923c 0%, #38bdf8 50%, #4ade80 100%) border-box;
    filter: blur(25px);
    opacity: 0.85;
    z-index: 1; /* Atrás de todo */
    animation: mysticRing 20s infinite linear;
}

@keyframes mysticRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        opacity: 0.7;
    }
}

/* TEXTO CENTRAL (NeuralKinetics) */
.hero-center-text {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2; /* Arriba del círculo, ABAJO de las manos */
    pointer-events: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Separación garantizada por flexbox */
}

.hero-center-text h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #000000;
    line-height: 1;
    margin-bottom: 0;
}

.hero-center-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke-width: 1.5px;
    -webkit-text-stroke-color: #000000;
    margin-top: 0;
}

/* IMAGEN DE LAS MANOS */
.hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10; /* ARRIBA DEL TEXTO */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-hands {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* Zoom forzado para ocultar bordes */
}

/* PARTE INFERIOR */
.hero-bottom {
    position: absolute;
    bottom: 48px;
    left: 48px;
    right: 48px;
    display: none; /* Oculto por ahora a petición del usuario */
    justify-content: space-between;
    align-items: flex-end;
    z-index: 20; /* Arriba de las manos */
}

.hero-bottom-left {
    max-width: 400px;
}

.hero-bottom-left .label {
    display: block;
    color: #999999;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-bottom-left p {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 500;
    color: #000000;
}

.hero-bottom-right {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.pill-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #000000;
    padding: 10px 24px;
    border-radius: 40px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-btn:hover {
    background: #000;
    color: #fff;
}

/* OPTIMIZACIÓN PARA MÓVILES */
@media (max-width: 768px) {
    body {
        /* overflow: hidden removed to allow scrolling */
    }

    /* Navbar */
    .navbar {
        padding: 24px 20px;
    }
    
    .nav-center, .nav-right {
        display: none; /* Ocultar para limpiar el header en móvil */
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .menu-btn {
        padding: 6px 16px 6px 8px;
        font-size: 0.85rem;
    }

    .plus {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
    }

    /* Anillo de fondo original */
    .hero-bg-glow {
        width: 300px;
        height: 300px;
        border-width: 15px;
        filter: blur(15px);
        opacity: 1;
    }

    /* Texto Central (Prevenir solapamiento enorme) */
    .hero-center-text {
        top: 49%; /* Centrado con los dedos de la imagen */
        padding: 0 10px;
        gap: 15px; /* Hueco pequeño para recrear el efecto 3D de sobreposición */
    }

    .hero-center-text h1 {
        font-size: 2.8rem;
        letter-spacing: -0.02em;
    }

    .hero-center-text h2 {
        font-size: 2.2rem;
        -webkit-text-stroke-width: 1px;
        margin-top: 0; 
    }

    /* Manos */
    .hero-hands {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover; 
        object-position: center center;
        transform: scale(1); /* Escala normal sin zoom masivo */
    }

    /* Parte Inferior - Apilar para evitar colisiones */
    .hero-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 6px;
    }

    /* Píldoras */
    .hero-bottom-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 0;
    }

    .pill-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}
/* NEW LANDING PAGE SECTIONS (APPLE STYLE) */
.section {
    padding: 140px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 24px;
    color: #000;
}
.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 80px auto;
    line-height: 1.6;
}

/* TECH GRID */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}
.tech-card {
    background: #fff;
    border-radius: 32px;
    padding: 60px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s ease;
}
.tech-card:hover {
    transform: translateY(-5px);
}
.tech-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}
.tech-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* PRICING GRID */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.pricing-card {
    background: #fff;
    border-radius: 36px;
    padding: 50px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}
.pricing-card.popular {
    background: #000;
    color: #fff;
}
.pricing-tier {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.popular .pricing-tier { color: #aaa; }
.pricing-price {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.price-currency { font-size: 1.6rem; font-weight: 500;}
.pricing-desc {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}
.popular .pricing-desc { color: #999; }
.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    padding: 0;
}
.pricing-features li {
    margin-bottom: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 14px;
}
.pricing-features li::before {
    content: "\2713";
    font-weight: 700;
    color: #000;
    background: #f0f0f0;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.popular .pricing-features li::before {
    color: #fff;
    background: #333;
}
.btn-pricing {
    width: 100%;
    padding: 18px;
    border-radius: 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-light {
    background: #f7f7f9;
    color: #000;
}
.btn-light:hover { background: #e5e5ea; transform: scale(1.02); }
.btn-dark {
    background: #fff;
    color: #000;
}
.btn-dark:hover { background: #f0f0f0; transform: scale(1.02); }

/* MOBILE AJUSTES EXTRA */
@media (max-width: 768px) {
    .section { padding: 80px 20px; }
    .section-title { font-size: 2.5rem; }
    .section-subtitle { font-size: 1.1rem; margin-bottom: 50px; }
    .tech-grid { grid-template-columns: 1fr; }
    .tech-card { padding: 40px 30px; }
    .pricing-card { padding: 40px 30px; }
    .pricing-price { font-size: 3rem; }
}

/* SCROLL ANIMATIONS & ELEGANCE */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, #4b5563 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Elegance Tweaks */
.tech-card {
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 30px 60px rgba(0,0,0,0.02);
}
.pricing-card {
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 30px 60px rgba(0,0,0,0.02);
}
/* PORTFOLIO SECTION (APPLE STYLE) */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}
.portfolio-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #000;
}
.portfolio-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 350px;
    line-height: 1.5;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}
@media (min-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}

.portfolio-card {
    position: relative;
    border-radius: 32px;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.portfolio-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}
.portfolio-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.portfolio-btn {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.portfolio-card:hover .portfolio-btn {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.portfolio-img-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 65%;
    height: 65%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1;
}

.portfolio-bottom {
    z-index: 2;
}
.portfolio-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.portfolio-desc {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Specific Card Themes */
.card-dark { background: #151517; color: #fff; }
.card-dark .portfolio-btn { border-color: rgba(255,255,255,0.2); color: #fff; }

.card-light { background: #f2f2f7; color: #000; }
.card-light .portfolio-btn { border-color: rgba(0,0,0,0.15); color: #000; }
.card-light .portfolio-img-wrapper { box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.05); }
.card-light:hover .portfolio-btn { background: rgba(0,0,0,0.05); }

.card-accent { background: #20202a; color: #fff; }
.card-accent .portfolio-btn { border-color: rgba(255,255,255,0.2); color: #fff; }

@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }
    .portfolio-title { font-size: 3rem; }
    .portfolio-card { aspect-ratio: 1 / 1; }
}

/* --- INNOVATIVE PORTFOLIO REDESIGN --- */
.portfolio-grid-innovative {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .portfolio-grid-innovative {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-innovative {
    position: relative;
    border-radius: 40px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
@media (min-width: 768px) {
    .card-innovative { padding: 40px; aspect-ratio: 3 / 4; }
}

.card-innovative:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

.bg-flo {
    background: radial-gradient(circle at top right, #fdf2f8 0%, #f3e8ff 50%, #e0e7ff 100%);
}
.bg-pablo {
    background: radial-gradient(circle at bottom left, #1e293b 0%, #0f172a 50%, #020617 100%);
}

.logo-floating {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 40%;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}
.card-innovative:hover .logo-floating {
    transform: translate(-50%, -55%) scale(1.1);
}

.innovative-bottom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s ease;
}
.bg-flo .innovative-bottom {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #000;
}
.card-innovative:hover .innovative-bottom {
    transform: translateY(0);
    opacity: 1;
}

.inno-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}
@media (min-width: 768px) {
    .inno-name { font-size: 2.2rem; }
}

.inno-tag {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
}

.inno-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}
.bg-flo .inno-btn { background: #000; color: #fff; }
.bg-pablo .inno-btn { background: #fff; color: #000; }

.card-innovative:hover .inno-btn {
    transform: rotate(45deg) scale(1.1);
}

/* FLOATING WHATSAPP BUTTON (APPLE STYLE) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 54px;
        height: 54px;
    }
}

/* FULLSCREEN OVERLAY MENU */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(247, 247, 249, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 90; /* Right below the fixed navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.overlay-menu.active {
    opacity: 1;
    pointer-events: auto;
}
.overlay-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}
.overlay-link {
    font-size: 2.2rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.02em;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, color 0.3s ease;
}
@media (min-width: 768px) {
    .overlay-link { font-size: 3.5rem; gap: 30px; }
}

.overlay-menu.active .overlay-link {
    transform: translateY(0);
    opacity: 1;
}
/* Staggered animation delays */
.overlay-menu.active .overlay-link:nth-child(1) { transition-delay: 0.1s; }
.overlay-menu.active .overlay-link:nth-child(2) { transition-delay: 0.15s; }
.overlay-menu.active .overlay-link:nth-child(3) { transition-delay: 0.2s; }
.overlay-menu.active .overlay-link:nth-child(4) { transition-delay: 0.25s; }

.overlay-link:hover {
    color: #888;
}
