/* ============================================
   OIKOMUS — Landing Page Styles
   Primary: #5c4282
   ============================================ */

:root {
    --primary: #5c4282;
    --primary-light: #7b5fa6;
    --primary-dark: #432f63;
    --primary-glow: rgba(92, 66, 130, 0.4);
    --accent: #9b7fd4;
    --accent-light: #c4b1e8;
    --surface: #ffffff;
    --surface-2: #f8f6fb;
    --surface-3: #f0ecf5;
    --text: #1a1025;
    --text-secondary: #6b5f7a;
    --text-muted: #9e95a9;
    --gradient-1: linear-gradient(135deg, #5c4282 0%, #9b7fd4 50%, #c4b1e8 100%);
    --gradient-2: linear-gradient(135deg, #432f63 0%, #5c4282 100%);
    --gradient-3: linear-gradient(180deg, rgba(92,66,130,0.08) 0%, transparent 100%);
    --shadow-sm: 0 2px 8px rgba(92, 66, 130, 0.08);
    --shadow-md: 0 8px 32px rgba(92, 66, 130, 0.12);
    --shadow-lg: 0 16px 64px rgba(92, 66, 130, 0.16);
    --shadow-xl: 0 32px 96px rgba(92, 66, 130, 0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* ---- Custom Cursor ---- */

.custom-cursor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s, border-color 0.4s;
    opacity: 0.5;
}

body:hover .custom-cursor,
body:hover .cursor-follower {
    opacity: 1;
}

a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .custom-cursor, .cursor-follower { display: none; }
}

/* ---- Container ---- */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navbar ---- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(92, 66, 130, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo img {
    height: 80px;
    width: auto;
    max-width: min(320px, 42vw);
    object-fit: contain;
    object-position: left center;
    transition: var(--transition);
}

.navbar:not(.scrolled) .nav-logo img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar:not(.scrolled) .nav-links a:not(.nav-cta)::after {
    background: white;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar:not(.scrolled) .nav-toggle span {
    background: white;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 40px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-xl);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        color: var(--text) !important;
        font-size: 1.1rem;
    }
    .nav-toggle {
        display: flex;
    }
}

/* ---- Hero ---- */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1025 0%, #2d1f42 25%, #5c4282 50%, #432f63 75%, #1a1025 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(60px);
}

.shape-1 { width: 600px; height: 600px; background: #9b7fd4; top: -200px; right: -200px; }
.shape-2 { width: 400px; height: 400px; background: #c4b1e8; bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: #5c4282; top: 50%; left: 30%; }
.shape-4 { width: 200px; height: 200px; background: white; top: 20%; right: 20%; opacity: 0.04; }
.shape-5 { width: 150px; height: 150px; background: #9b7fd4; bottom: 30%; right: 10%; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #c4b1e8 0%, #e8dff5 50%, #9b7fd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ---- Hero Phone ---- */

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

.phone-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(155, 127, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 580px;
    border-radius: 44px;
    overflow: hidden;
    background: #000;
    box-shadow: 
        0 0 0 3px #333,
        0 0 0 6px #1a1025,
        var(--shadow-xl);
    position: relative;
}

.phone-mockup.small .phone-frame {
    width: 260px;
    height: 540px;
    border-radius: 40px;
}

.phone-notch {
    position: absolute;
    /* Centro de la pastilla sobre la línea media hora / señal / batería (escala con el alto del mockup) */
    top: 3.55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 22px;
    background: #000;
    border-radius: 999px;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Float Cards */

.phone-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 5;
    animation: cardFloat 6s ease-in-out infinite;
}

.card-1 {
    top: 15%;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 3s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(92, 66, 130, 0.10) 0%, rgba(155, 127, 212, 0.18) 55%, rgba(196, 177, 232, 0.22) 100%);
    border: 1px solid rgba(92, 66, 130, 0.12);
    box-shadow: 0 14px 40px rgba(92, 66, 130, 0.10);
    color: var(--primary);
    flex-shrink: 0;
}

.float-icon svg {
    width: 32px;
    height: 32px;
}

.float-title {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}

.float-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Scroll Indicator */

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll-indicator span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ---- Sections Common ---- */

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface-3);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 16px;
}

.section-header .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Features ---- */

.features {
    padding: 140px 0 120px;
    background: var(--surface);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-3);
    pointer-events: none;
}

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

.feature-card {
    padding: 48px 36px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card .feature-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover .feature-decoration {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Properties Showcase ---- */

.showcase {
    padding: 120px 0;
}

.properties-showcase {
    background: var(--surface-2);
}

/* Flow Steps */

.showcase-flow {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.flow-step {
    position: relative;
}

.flow-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
}

.flow-content.reverse {
    grid-template-columns: 1fr auto;
}

.flow-content.reverse .flow-phone {
    order: 2;
}

.flow-content.reverse .flow-text {
    order: 1;
    text-align: right;
}

.flow-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: var(--surface-3);
    line-height: 1;
    margin-bottom: 16px;
    transition: var(--transition);
}

.flow-step:hover .flow-number {
    color: var(--accent-light);
}

.flow-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.flow-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 450px;
}

.flow-content.reverse .flow-text p {
    margin-left: auto;
}

/* Properties Carousel */

.properties-carousel {
    margin-top: 100px;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 24px;
    animation: carouselScroll 40s linear infinite;
    width: max-content;
}

.carousel-item {
    flex: 0 0 auto;
    width: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.carousel-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.carousel-item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: top;
}

@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Services Showcase ---- */

.services-showcase {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.services-bg-shape {
    position: absolute;
    top: -300px;
    right: -300px;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 66, 130, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Phone Stack */

.phone-stack {
    position: relative;
    width: 340px;
    height: 600px;
    margin: 0 auto;
}

.phone-mockup.stacked {
    position: absolute;
    transition: var(--transition);
}

.phone-mockup.stacked.back {
    top: 40px;
    left: 60px;
    transform: rotate(6deg);
    opacity: 0.8;
    z-index: 1;
}

.phone-mockup.stacked.front {
    top: 0;
    left: 0;
    z-index: 2;
}

.phone-stack:hover .stacked.back {
    transform: rotate(12deg) translateX(20px);
}

.phone-stack:hover .stacked.front {
    transform: translateX(-10px) translateY(-5px);
}

/* Service Items */

.services-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.service-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--surface);
    border: 1px solid transparent;
}

.service-item:hover {
    background: var(--surface-2);
    border-color: var(--surface-3);
    transform: translateX(8px);
}

.service-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.service-item:hover .service-icon-wrap {
    background: var(--primary);
    color: white;
}

.service-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Chat Section ---- */

.chat-section {
    padding: 140px 0;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.chat-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.chat-content .section-tag {
    margin-bottom: 16px;
}

.chat-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.chat-content .section-desc {
    margin-bottom: 40px;
}

.chat-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-check {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(92, 66, 130, 0.1);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}

.benefit h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.benefit p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Chat Visual */

.chat-visual {
    position: relative;
}

.chat-mockup {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 440px;
    margin-left: auto;
    position: relative;
    overflow: hidden;
}

.chat-scenario-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.chat-scenario-tab {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--surface-3);
    border-radius: 100px;
    background: var(--surface-2);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.chat-scenario-tab:hover {
    border-color: rgba(92, 66, 130, 0.35);
    color: var(--primary);
}

.chat-scenario-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.chat-scenario-panels {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.chat-scenario-panel {
    flex-direction: column;
    gap: 20px;
}

.chat-scenario-panel:not([hidden]) {
    display: flex;
}

.chat-scenario-panel[hidden] {
    display: none !important;
}

.chat-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.chat-bubble {
    padding: 16px 20px;
    border-radius: 20px;
    max-width: 85%;
    position: relative;
    animation: bubbleIn 0.5s ease backwards;
}

.chat-scenario-panel:not([hidden]) .chat-bubble:nth-child(1) { animation-delay: 0.35s; }
.chat-scenario-panel:not([hidden]) .chat-bubble:nth-child(2) { animation-delay: 0.95s; }
.chat-scenario-panel:not([hidden]) .chat-bubble:nth-child(3) { animation-delay: 1.55s; }
.chat-scenario-panel:not([hidden]) .chat-typing { animation-delay: 2.15s; }

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.incoming {
    background: var(--surface-2);
    border-bottom-left-radius: 6px;
    align-self: flex-start;
}

.chat-bubble.outgoing {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 6px;
    align-self: flex-end;
    margin-left: auto;
}

.chat-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.chat-bubble p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.5;
    text-align: right;
    margin-top: 4px;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    animation: bubbleIn 0.5s ease backwards;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-typing span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Gallery ---- */

.gallery {
    padding: 120px 0;
    background: var(--surface);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 9/16;
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 16, 37, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---- Download CTA ---- */

.download {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1025 0%, #2d1f42 50%, #432f63 100%);
}

.download-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.download-shape-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 127, 212, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.download-shape-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 66, 130, 0.2) 0%, transparent 70%);
    bottom: -300px;
    right: -200px;
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: white;
}

.download-logo {
    height: 105px;
    width: auto;
    max-width: 240px;
    margin: 0 auto 2px;
    display: block;
    object-fit: contain;
    opacity: 0.92;
    filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.2));
}

.download h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
}

.download p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

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

.store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: white;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.store-btn--app-store,
.store-btn--google-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 14px;
    min-width: 220px;
    min-height: 56px;
    background: transparent;
    border: none;
}

.store-btn--app-store:hover,
.store-btn--google-play:hover {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Misma caja visual para ambos badges (alineados y mismo tamaño) */
.store-badge-app-store,
.store-badge-google-play {
    display: block;
    width: 200px;
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.store-small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
}

.store-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Modal QR App Store (escritorio) */

.store-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.store-qr-modal[hidden] {
    display: none !important;
}

.store-qr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 23, 0.72);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.store-qr-modal__panel {
    position: relative;
    z-index: 1;
    max-width: 380px;
    width: 100%;
    padding: 28px 28px 32px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.store-qr-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface-2);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.store-qr-modal__close:hover {
    background: var(--surface-3);
    color: var(--primary);
}

.store-qr-modal__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 12px;
    padding-right: 32px;
}

.store-qr-modal__hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.store-qr-modal__img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.store-qr-modal__qr {
    width: min(220px, 70vw);
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* ---- Footer ---- */

.footer {
    background: #0f0a17;
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 16px;
    display: block;
    opacity: 0.95;
    filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    text-align: center;
    font-size: 0.85rem;
}

/* ---- Animations ---- */

[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-left"] {
    transform: translateX(60px);
}

[data-animate="fade-right"] {
    transform: translateX(-60px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        margin: 0 auto 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .phone-float-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .flow-content,
    .flow-content.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .flow-content .flow-phone,
    .flow-content.reverse .flow-phone {
        order: 0;
    }

    .flow-content .flow-text,
    .flow-content.reverse .flow-text {
        order: 1;
        text-align: center;
    }

    .flow-text p {
        margin: 0 auto;
    }

    .flow-content.reverse .flow-text p {
        margin: 0 auto;
    }

    .services-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .chat-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .chat-mockup {
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
        border-radius: 36px;
    }

    .phone-mockup.small .phone-frame {
        width: 220px;
        height: 460px;
    }

    .flow-number {
        font-size: 3.5rem;
    }

    .flow-text h3 {
        font-size: 1.6rem;
    }

    .phone-stack {
        width: 280px;
        height: 520px;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .carousel-item {
        width: 200px;
    }

    .carousel-item img {
        height: 400px;
    }

    .showcase-flow {
        gap: 60px;
    }
}

/* ---- Smooth Scroll behavior for sections ---- */

section {
    scroll-margin-top: 80px;
}

/* ---- Selection ---- */

::selection {
    background: rgba(92, 66, 130, 0.2);
    color: var(--primary-dark);
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
