/* 
   Din Landing Page - CSS 10/10 
   Estética: Glassmorphism + Google I/O Drift 
*/

:root {
    --primary: #9C27B0;
    --secondary: #E91E63;
    --bg: #030303;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- FONDO ANIMADO (DRIFT EFFECT) --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.8;
}

.shape {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.shape-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -15%;
    left: -10%;
    animation: drift-alt 25s infinite ease-in-out;
}

.shape-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -10%;
    right: -5%;
    animation: drift 30s infinite ease-in-out reverse;
}

.shape-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #3F51B5, transparent);
    top: 25%;
    left: 35%;
    animation: drift 35s infinite ease-in-out;
}

.shape-4 {
    width: 25vw;
    height: 25vw;
    background: rgba(255, 255, 255, 0.1);
    bottom: 20%;
    left: 15%;
    border-radius: 40%;
    animation: drift-alt 20s infinite ease-in-out alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(5%, 7%) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-3%, 3%) rotate(-5deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes drift-alt {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-5%, 10%) scale(1.15) rotate(15deg);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* --- NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #ff80ab, #ce93d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.lang-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --- HERO --- */
.hero {
    padding: 120px 20px 60px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
}

h1 {
    font-size: clamp(45px, 9vw, 90px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -4px;
    margin-bottom: 30px;
}

.gradient-text {
    background: linear-gradient(90deg, #ff80ab, #ce93d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(18px, 4vw, 22px);
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- SECCIONES & GLASSMORPHISM --- */
.section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 80px 60px;
    /* Padding generoso para el cristal */
    border-radius: 48px;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: clamp(32px, 5vw, 42px);
    margin-bottom: 40px;
    letter-spacing: -2px;
    font-weight: 800;
}

.about-text p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    max-width: 800px;
}

/* --- FEATURES GRID & ICONOS --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 50px 40px;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-wrapper {
    margin-bottom: 25px;
    color: #ff80ab;
    display: inline-flex;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 16px;
}

/* --- PASOS (ROADMAP) - ALINEACIÓN CORREGIDA --- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 35px;
    /* Espacio entre los pasos */
}

.step {
    display: flex;
    align-items: center;
    /* ALINEACIÓN VERTICAL PERFECTA */
    gap: 28px;
    /* Espacio entre círculo y texto */
    text-align: left;
}

.step-num {
    flex-shrink: 0;
    /* Evita que el círculo se aplaste */
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.step span[data-i18n] {
    font-size: clamp(17px, 3vw, 20px);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.3;
}

/* --- ANIMACIÓN REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 100px 20px;
    opacity: 0.4;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar {
        padding: 30px 5%;
    }

    .section {
        margin: 20px;
        padding: 50px 30px;
    }

    h1 {
        letter-spacing: -2px;
    }

    .step {
        align-items: flex-start;
        /* En móvil, si el texto es muy largo, alinear arriba */
    }

    .step-num {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-top: 2px;
        /* Ajuste visual para alinear con la primera línea */
    }
}