/* ============================================================
   LANDING.CSS — Diatomea 2026
   Dark-first, glassmorphism, scroll-reveal, gradient mesh
   ============================================================ */

/* ────────────────────────────────────────────
   1. RESET & BASE
──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ────────────────────────────────────────────
   2. GRADIENT MESH HERO BACKGROUND
──────────────────────────────────────────── */
.hero-mesh {
    position: relative;
    background: #09090b;
    overflow: hidden;
}

.hero-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(109, 40, 217, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 10%, rgba(167, 139, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

/* Orb animado */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
    animation: orbFloat2 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(60px, -40px) scale(1.05); }
    66%       { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-50px, -30px) scale(1.08); }
}

/* ────────────────────────────────────────────
   3. GLASSMORPHISM CARDS
──────────────────────────────────────────── */
.glass-card {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.1),
        0 20px 60px rgba(109, 40, 217, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Light mode glass */
html:not(.dark) .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html:not(.dark) .glass-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.08),
        0 20px 60px rgba(109, 40, 217, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

/* ────────────────────────────────────────────
   4. PRODUCT CARDS
──────────────────────────────────────────── */
.product-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before { opacity: 1; }

.product-card.seguimiento::before {
    background: linear-gradient(90deg, #7c3aed, #6366f1);
}

.product-card.diario::before {
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.product-card.coming-soon::before {
    background: linear-gradient(90deg, #374151, #52525b);
}

/* Badge de estado */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

.badge-dev {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-dev::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* Feature list dentro de cards */
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #a1a1aa;
    padding: 4px 0;
}

.feature-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
    flex-shrink: 0;
}

html:not(.dark) .feature-item { color: #52525b; }

/* CTA buttons de productos */
.btn-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    width: 100%;
    margin-top: auto;
}

.btn-seguimiento {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-seguimiento:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
    transform: translateY(-2px);
}

.btn-diario {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-diario:hover {
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.btn-soon {
    background: rgba(63, 63, 70, 0.5);
    color: #71717a;
    cursor: not-allowed;
    border: 1px dashed rgba(113, 113, 122, 0.3);
}

/* Product icon wrapper */
.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.icon-seguimiento { background: rgba(124, 58, 237, 0.15); }
.icon-diario      { background: rgba(14, 165, 233, 0.12); }
.icon-soon        { background: rgba(63, 63, 70, 0.3); }

/* ────────────────────────────────────────────
   5. TECH STACK BADGES
──────────────────────────────────────────── */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4d4d8;
    transition: all 0.25s ease;
    cursor: default;
}

.tech-badge:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.2);
}

html:not(.dark) .tech-badge {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.8);
    color: #374151;
}

html:not(.dark) .tech-badge:hover {
    border-color: rgba(124, 58, 237, 0.3);
    color: #1f2937;
}

/* ────────────────────────────────────────────
   6. SCROLL REVEAL ANIMATIONS
──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delays en cascada */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ────────────────────────────────────────────
   7. HERO BADGE
──────────────────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ────────────────────────────────────────────
   8. SECTION DIVIDERS & TYPOGRAPHY
──────────────────────────────────────────── */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c3aed;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before, .section-label::after {
    content: '';
    display: inline-block;
    height: 1px;
    width: 32px;
    background: linear-gradient(90deg, transparent, #7c3aed);
}

.section-label::after {
    background: linear-gradient(90deg, #7c3aed, transparent);
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html:not(.dark) .gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ────────────────────────────────────────────
   9. PHILOSOPHY SECTION
──────────────────────────────────────────── */
.philosophy-section {
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '"';
    position: absolute;
    top: -60px;
    left: 5%;
    font-size: 20rem;
    font-weight: 900;
    color: rgba(124, 58, 237, 0.05);
    line-height: 1;
    pointer-events: none;
    font-family: Georgia, serif;
}

/* ────────────────────────────────────────────
   10. PROFILE CARD (Sobre mí)
──────────────────────────────────────────── */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.08);
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
    flex-shrink: 0;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.2s;
}

.skill-chip:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

html:not(.dark) .skill-chip {
    background: rgba(139, 92, 246, 0.07);
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.15);
}

/* ────────────────────────────────────────────
   11. SCROLL INDICATOR
──────────────────────────────────────────── */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounceDown 2s ease-in-out infinite;
    color: #52525b;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%       { transform: translateY(6px); opacity: 1; }
}

/* ────────────────────────────────────────────
   12. NAV
──────────────────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
}

.landing-nav.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

html:not(.dark) .landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ────────────────────────────────────────────
   13. FOOTER
──────────────────────────────────────────── */
.footer-border {
    border-top: 1px solid rgba(63, 63, 70, 0.4);
}

html:not(.dark) .footer-border {
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.footer-link {
    color: #71717a;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover { color: #a78bfa; }

/* ────────────────────────────────────────────
   14. SECTION BG VARIANTS
──────────────────────────────────────────── */
.section-dark { background: #09090b; }
.section-dark-alt { background: #0d0d10; }

html:not(.dark) .section-dark     { background: #f5f3ff !important; }
html:not(.dark) .section-dark-alt { background: #ede9fe !important; }

/* Textos en light mode — garantizar legibilidad */
html:not(.dark) .hero-mesh        { background: #f5f3ff !important; }

html:not(.dark) h1,
html:not(.dark) h2,
html:not(.dark) h3,
html:not(.dark) .text-white       { color: #1e1b4b !important; }

html:not(.dark) p.text-zinc-400,
html:not(.dark) .text-zinc-400    { color: #4c1d95 !important; }

html:not(.dark) .text-zinc-500    { color: #6d28d9 !important; }
html:not(.dark) .text-zinc-600    { color: #7c3aed !important; }
html:not(.dark) .text-zinc-300    { color: #312e81 !important; }
html:not(.dark) .text-zinc-200    { color: #1e1b4b !important; }

/* Hero orbs más suaves en light */
html:not(.dark) .hero-orb-1 { opacity: 0.2; }
html:not(.dark) .hero-orb-2 { opacity: 0.15; }

/* Nav logo icon: fondo blanco con ícono violeta en light */
html:not(.dark) .nav-logo-icon {
    background: #ffffff !important;
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}
html:not(.dark) .nav-logo-icon svg { color: #7c3aed !important; }

/* Footer nav-logo-icon también */
html:not(.dark) footer .nav-logo-icon { background: #ffffff !important; }

/* Botón "Acceder" nav: texto siempre blanco, fondo morado oscuro en light */
html:not(.dark) nav [data-open-login] {
    background-color: #4c1d95 !important;
    color: #ffffff !important;
}

/* ────────────────────────────────────────────
   15. MISC UTILITIES
──────────────────────────────────────────── */
.text-muted { color: #71717a; }
html:not(.dark) .text-muted { color: #6b7280; }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    border: none;
    margin: 0;
}

/* Número decorativo grande */
.deco-number {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(139, 92, 246, 0.05);
    pointer-events: none;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-orb-1 { width: 300px; height: 300px; }
    .hero-orb-2 { width: 200px; height: 200px; }
    .philosophy-section::before { font-size: 10rem; }
    .deco-number { font-size: 5rem; }
}
