/* ==========================================================================
   YMANA UI - ESTILOS PRINCIPALES
   ========================================================================== */

   :root {
    /* Color Palette */
    --bg-dark: #07090f;
    --bg-panel: rgba(15, 23, 42, 0.4);
    --bg-card: rgba(30, 41, 59, 0.4);
    
    --primary: #8b5cf6; /* Violeta */
    --primary-hover: #7c3aed;
    --secondary: #3b82f6; /* Azul */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(139, 92, 246, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.5);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   BACKGROUND BLOBS (Efecto Tech)
   ========================================================================== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(139,92,246,0) 70%);
}
.blob-2 {
    top: 40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(59,130,246,0) 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* ==========================================================================
   TYPOGRAPHY & GLOBALS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-sm {
    max-width: 900px;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Utils Glassmorphism */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
}
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-glow);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
}
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}
.logo i {
    color: var(--primary);
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-item:hover {
    color: var(--text-main);
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 16px;
}

/* Mockup de Chat */
.mockup-chat {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
}
.mockup-chat:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.mockup-header {
    background: rgba(255,255,255,0.05);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.msg {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
}
.msg.client {
    align-self: flex-end;
    background: rgba(255,255,255,0.1);
    border-bottom-right-radius: 4px;
}
.msg.ai {
    align-self: flex-start;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-bottom-left-radius: 4px;
}
.msg.ai.success {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title { font-size: 3.5rem; }
    .hero-description { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .mockup-chat { transform: none; margin-top: 40px; }
}

/* ==========================================================================
   SECCIONES GENERALES Y ANIMACIONES
   ========================================================================== */
section {
    padding: 100px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}
.section-header h2 span {
    color: var(--primary);
}
.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Fade Up Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ==========================================================================
   AUDIENCE SECTION
   ========================================================================== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.audience .card {
    padding: 30px 20px;
    text-align: center;
}
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(59,130,246,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 0 auto 20px;
    border: 1px solid rgba(139,92,246,0.3);
}
.audience .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}
@media (max-width: 992px) {
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .audience-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.feature-row.reverse {
    direction: rtl;
}
.feature-row.reverse > * {
    direction: ltr; /* resets content direction */
}
.feature-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: -1;
}
.feature-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

/* Tabs en Mockup Chat */
.mockup-tabs {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
}
.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}
.tab-btn.active {
    color: var(--text-main);
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.chat-tab {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Divisor de mensajes */
.msg-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 10px 0;
    position: relative;
}
.msg-divider::before, .msg-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-glass);
}
.msg-divider::before { left: 0; }
.msg-divider::after { right: 0; }
.msg-divider span {
    background: var(--bg-panel);
    padding: 0 8px;
    border-radius: 10px;
}

/* Mockup de Calendario Filament */
.mockup-calendar {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
}
.mockup-calendar:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.calendar-header {
    background: rgba(255,255,255,0.05);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.calendar-layout {
    display: flex;
    padding: 20px;
    height: 350px;
}
.cal-time-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 15px;
    border-right: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.cal-time-col span {
    transform: translateY(-50%);
}
.cal-grid {
    display: flex;
    flex: 1;
    gap: 10px;
    padding-left: 10px;
}
.cal-day-col {
    flex: 1;
    position: relative;
    border-right: 1px dashed rgba(255,255,255,0.05);
}
.cal-day-col:last-child {
    border-right: none;
}
.cal-day-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}
.cal-event {
    position: absolute;
    width: calc(100% - 4px);
    left: 2px;
    border-radius: 6px;
    padding: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    color: white;
    box-sizing: border-box;
}
.cal-event.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); border-left: 3px solid #60a5fa; }
.cal-event.green { background: linear-gradient(135deg, #10b981, #059669); border-left: 3px solid #34d399; }
.cal-event.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); border-left: 3px solid #a78bfa; }
.cal-event.red { background: linear-gradient(135deg, #ef4444, #dc2626); border-left: 3px solid #f87171; }

@media (max-width: 768px) {
    .feature-row { grid-template-columns: 1fr; gap: 40px; }
    .feature-row.reverse { direction: ltr; }
    .feature-text h3 { font-size: 1.8rem; }
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px;
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 250px;
}
.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 24px;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(139,92,246,0.3);
}
.step h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin-top: 30px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .steps-wrapper { flex-direction: column; align-items: center; gap: 40px; }
    .step-connector { display: none; }
}

/* ==========================================================================
   CTA BOTTOM & FOOTER
   ========================================================================== */
.cta-container {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8));
    border-color: rgba(139, 92, 246, 0.3); /* Subtle primary tint */
}
.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

footer {
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 24px;
    background: #040509;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}
.footer-links h4, .footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 24px;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.footer-links a:hover {
    color: var(--primary);
}
.social-icons {
    display: flex;
    gap: 16px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
    font-size: 1.2rem;
}
.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 16px auto 0; }
    .social-icons { justify-content: center; }
}
