/* ==========================================================
   ALEJANDRO TORRES
   Digital Product Builder
   v1.0
==========================================================*/

/*========================
RESET
========================*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top right,
            rgba(0, 175, 239, .03),
            transparent 30%),
        radial-gradient(circle at bottom left,
            rgba(79, 70, 229, .03),
            transparent 30%),
        #fafafa;
    color: #111827;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/*========================
VARIABLES
========================*/

:root {
    --primary: #00afef;
    --primary-dark: #0088bd;
    --dark: #08111f;
    --gray: #64748b;
    --light: #ffffff;
    --border: #e5e7eb;
    --background: #f7f9fc;
    --container: 1280px;
    --radius: 24px;
    --shadow: 0 30px 80px rgba(0, 0, 0, .08);
    --transition: .35s ease;
}

/*========================
UTILIDADES
========================*/

.container {
    width: min(94%, var(--container));
    margin: auto;
}

section {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ecfeff;
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    border: 1px solid rgba(0, 175, 239, .15);
}

.badge::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        transform: scale(.9);
        opacity: 1;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/*========================
TIPOGRAFÍA
========================*/

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -3px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.1;
    font-weight: 800;
}

h3 {
    font-size: 1.35rem;
}

p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.9;
}

/*========================
BOTONES
========================*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 34px;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    transition: .35s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 175, 239, .25);
}

.btn-outline {
    background: #fff;
    color: #111;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #111827;
    color: #fff;
}

/*========================
GRID
========================*/

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/*========================
CARDS
========================*/

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.ecosystem-card,
.blog-card,
.client-card,
.tech-card,
.metric {
    position: relative;
    overflow: hidden;
}

.ecosystem-card::before,
.blog-card::before,
.client-card::before,
.tech-card::before,
.metric::before {
    content: "";
    position: absolute;
    left: -120%;
    top: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .45),
            transparent);
    transform: skewX(-25deg);
    transition: 1s;
}

.ecosystem-card:hover::before,
.blog-card:hover::before,
.client-card:hover::before,
.tech-card:hover::before,
.metric:hover::before {
    left: 150%;
}

/*========================
RESPONSIVE
========================*/

@media(max-width:1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    section {
        padding: 90px 0;
    }
}

@media(max-width:768px) {
    body {
        font-size: 15px;
    }

    .btn {
        width: 100%;
    }
}

/*==================================================
HEADER
==================================================*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: .35s;
}

.header.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.navbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: .35s;
}

.logo:hover {
    transform: rotate(-3deg) scale(1.05);
}

.logo-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            #00afef,
            #0078ff);
    position: relative;
}

.logo-circle::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid white;
}

.logo strong {
    display: block;
    font-size: 18px;
}

.logo small {
    color: var(--gray);
}

.menu {
    display: flex;
    gap: 42px;
}

.menu a {
    font-weight: 600;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: .3s;
}

.menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.mobile-toggle span {
    height: 2px;
    background: #111;
    border-radius: 20px;
    transition: .3s;
}

.mobile-toggle span:nth-child(1) {
    width: 24px;
}

.mobile-toggle span:nth-child(2) {
    width: 18px;
}

.mobile-toggle span:nth-child(3) {
    width: 26px;
}

@media(max-width:1024px) {

    .menu {
        display: none;
    }

    .desktop-button {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/*==================================================
HERO
==================================================*/

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: .45;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .5;
}

.gradient-1 {
    width: 550px;
    height: 550px;
    background: #00afef;
    top: -180px;
    right: -150px;
}

.gradient-2 {
    width: 420px;
    height: 420px;
    background: #4f46e5;
    bottom: -150px;
    left: -120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 500px;
    gap: 120px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3.4rem, 6vw, 5.8rem);
    line-height: 1.05;
    letter-spacing: -2px;
    max-width: 720px;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.85;
    color: #556070;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 40px;
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stack span {
    padding: 12px 18px;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    transition: .35s;
    font-size: .92rem;
    font-weight: 600;
}

.hero-stack span:hover {
    transform: translateY(-4px);
    color: var(--primary);
}

.hero-photo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-card {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .15);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform .6s ease;
}

.photo-card:hover img {
    transform: scale(1.04);
}

.floating-stat {
    position: absolute;
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
    min-width: 170px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .5);
}


.floating-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
}

.floating-stat span {
    color: var(--gray);
    font-size: .9rem;
}

.stat-1 {
    top: 40px;
    left: -50px;
}

.stat-2 {
    bottom: 60px;
    right: -35px;
}

.stat-3 {
    bottom: -25px;
    left: 40px;
}

@media(max-width:1024px) {
    .hero {
        padding-top: 130px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-photo {
        margin-top: 40px;
    }

    .stat-1,
    .stat-2,
    .stat-3 {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        margin-top: 20px;
    }
}

/*==================================================
ANIMACIONES HERO
==================================================*/

.hero-content>* {
    opacity: 0;
    transform: translateY(35px);
    animation: heroFade .9s forwards;
}

.hero-content .badge {
    animation-delay: .15s;
}

.hero-content h1 {
    animation-delay: .30s;
}

.hero-content p {
    animation-delay: .45s;
}

.hero-buttons {
    animation-delay: .60s;
    animation-fill-mode: forwards;
    opacity: 0;
    transform: translateY(35px);
    animation-name: heroFade;
    animation-duration: .9s;
}

.hero-stack {
    animation-delay: .75s;
    animation-fill-mode: forwards;
    opacity: 0;
    transform: translateY(35px);
    animation-name: heroFade;
    animation-duration: .9s;
}

.photo-card {
    opacity: 0;
    transform: translateX(50px);
    animation: photoFade 1.1s .55s forwards;
}

.floating-stat {
    opacity: 0;
    animation: statFade .7s forwards;
}

.stat-1 {
    animation-delay: 1.1s;
}

.stat-2 {
    animation-delay: 1.3s;
}

.stat-3 {
    animation-delay: 1.5s;
}

@keyframes heroFade {

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes photoFade {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes statFade {

    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*==================================================
MANIFIESTO
==================================================*/

.hero-manifest {
    padding: 120px 0 70px;
    text-align: center;
}

.hero-manifest blockquote {
    max-width: 950px;
    margin: auto;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111827;
}

.hero-manifest blockquote span {
    color: var(--primary);
}

.hero-manifest p {
    max-width: 760px;
    margin: 45px auto 0;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #64748b;
}

/*==================================================
HERO METRICS
==================================================*/

.hero-metrics {
    position: relative;
    margin-top: -70px;
    z-index: 20;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.metric {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
    transition: .35s;
}

.metric:hover {
    transform: translateY(-10px);
}

.metric h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.metric span {
    display: block;
    color: var(--gray);
    line-height: 1.6;
}

@media(max-width:1100px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:700px) {
    .hero-metrics {
        margin-top: 40px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric {
        padding: 30px;
    }

    .metric h3 {
        font-size: 2.4rem;
    }
}

/*==================================================
ECOSYSTEM
==================================================*/

.ecosystem {
    background: #fff;
}

.section-header {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 25px;
}

.section-header p {
    font-size: 1.15rem;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 220px 1fr;
    gap: 40px;
    align-items: center;
}

.ecosystem-card {
    background: #fff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    transition: .45s;
    border: 1px solid rgba(0, 0, 0, .05);
}

.ecosystem-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .08);
}

.card-logo {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00afef, #006eff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
}

.ecosystem-card h3 {
    margin-bottom: 15px;
}

.ecosystem-card p {
    margin-bottom: 25px;
}

.ecosystem-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.ecosystem-card li {
    padding: 8px 14px;
    background: #f4f8fb;
    border-radius: 999px;
    font-size: .9rem;
}

.project-link {
    color: var(--primary);
    font-weight: 700;
}

.ecosystem-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #08111f, #1f2937);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}

.connector {
    position: absolute;
    height: 2px;
    background: #dbeafe;
    width: 120px;
}

.connector-left {
    right: 100%;
}

.connector-right {
    left: 100%;
}

.ecosystem-bottom {
    max-width: 760px;
    margin: 60px auto 0;
}

.large {
    text-align: center;
}

.large ul {
    justify-content: center;
}

@media(max-width:1100px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .connector {
        display: none;
    }

    .ecosystem-center {
        margin: 10px 0;
    }
}

/*==================================================
EXPERIENCE
==================================================*/

.experience {
    background: #f8fafc;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.experience-grid h2 {
    margin: 25px 0;
}

.experience-grid p {
    margin-bottom: 25px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.experience-item {
    display: flex;
    gap: 25px;
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
    transition: .35s;
}

.experience-item:hover {
    transform: translateX(12px);
}

.experience-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00afef, #0088bd);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.experience-item h3 {
    margin-bottom: 10px;
}

@media(max-width:1000px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

/*==================================================
TECH
==================================================*/

.tech {
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px;
    margin-top: 70px;
}

.tech-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    transition: .35s;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .04);
}

.tech-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-8px);
    border-color: var(--primary);
}

/*==================================================
BLOG
==================================================*/

.blog-section {
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 60px;
}

.blog-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .07);
    transition: .35s;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.blog-content {
    padding: 28px;
}

.blog-content small {
    color: var(--gray);
}

.blog-content h3 {
    margin: 15px 0;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content a {
    color: var(--primary);
    font-weight: 700;
}

@media(max-width:1000px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/*==================================================
CLIENTS
==================================================*/

.clients {
    background: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 70px;
}

.client-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .05);
    transition: .35s;
}

.client-card:hover {
    transform: translateY(-10px);
}

.client-card strong {
    display: block;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.client-card span {
    color: var(--gray);
}

@media(max-width:900px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/*==================================================
CONTACT
==================================================*/

.contact {
    background: #08111f;
    color: white;
}

.contact-box {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.contact .section-kicker {
    color: #6dd5ff;
}

.contact h2 {
    margin: 30px 0;
    color: white;
}

.contact p {
    color: #cbd5e1;
    max-width: 700px;
    margin: auto auto 40px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact .btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, .2);
}

.contact .btn-outline:hover {
    background: white;
    color: #08111f;
}

@media(max-width:768px) {
    .contact-buttons {
        flex-direction: column;
    }
}

/*==================================================
FOOTER
==================================================*/

.footer {
    background: #050b15;
    color: #94a3b8;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    transition: .3s;
}

.footer-links a:hover {
    color: white;
}

@media(max-width:768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/*==================================================
SCROLL ANIMATION
==================================================*/

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity .8s ease,
        transform .8s ease;
    will-change: transform, opacity;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

#toTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 999;
    box-shadow: 0 15px 35px rgba(0, 175, 239, .35);
}

#toTop.show {
    opacity: 1;
    visibility: visible;
}

#toTop:hover {
    transform: translateY(-5px);
}