/* 
 * LEGAL-IA - PREMIUM DESIGN SYSTEM (Parchment & Ink Light Mode)
 * Inspired by Harvey.ai branding and high-end legal stationery.
 * Crafted using pure Vanilla CSS for maximum efficiency and custom performance.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Design Tokens & CSS Custom Properties */
:root {
    /* Color Palette */
    --bg-primary: #FBFBFA;
    --bg-surface: #FFFFFF;
    --text-primary: #0C0C0B;
    --text-muted: #61605C;
    --accent: #115E59;
    /* Deep Teal / Emerald */
    --accent-glow: rgba(17, 94, 89, 0.15);
    --border-color: rgba(12, 12, 11, 0.08);
    --border-highlight: rgba(12, 12, 11, 0.15);
    --selection-bg: rgba(17, 94, 89, 0.08);

    /* Typography fallbacks */
    --font-serif: 'EB Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing & Sizing Scale */
    --unit: 8px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-xxl: 64px;
    --max-width: 1280px;

    /* Transition curves */
    --ease-out-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce-premium: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-sm: 150ms;
    --duration-md: 300ms;
    --duration-lg: 500ms;
}

/* Global Reset & Base Styling */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

::selection {
    background-color: var(--selection-bg);
    color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(12, 12, 11, 0.15);
    border-radius: 3px;
}

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

/* Base Typographic Hierarchies */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-sm) var(--ease-out-premium);
}

/* Marquee Promo Banner */
.top-marquee {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    z-index: 100;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    will-change: transform;
}

.marquee-content span {
    padding: 0 40px;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 36px;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: rgba(251, 251, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-xxl);
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--duration-md) var(--ease-out-premium), background-color var(--duration-md);
}

header.header-scrolled {
    background-color: rgba(251, 251, 250, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.logo-area {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-area span {
    font-style: italic;
    color: var(--accent);
    margin-right: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width var(--duration-sm) var(--ease-out-premium);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.action-area {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Premium Buttons */
.btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 12px 24px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-sm) var(--ease-bounce-premium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: #212120;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-text {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border: none;
    background: none;
    padding: 0;
}

.btn-text:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    padding: calc(72px + 64px) var(--space-xxl) var(--space-xxl) var(--space-xxl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    overflow: hidden;
}

/* Hero Background Video Panel */
.hero-bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    /* Aumentado a 0.70 para máxima nitidez */
    filter: grayscale(100%) contrast(100%);
    /* Monocromático elegante estilo Harvey */
    will-change: opacity;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(251, 251, 250, 0.1) 0%, var(--bg-primary) 100%);
    z-index: 2;
}

.fine-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(12, 12, 11, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(12, 12, 11, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 95%);
    z-index: 3;
}

.hero-content {
    max-width: 900px;
    margin-bottom: var(--space-xxl);
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up var(--duration-lg) var(--ease-out-premium) forwards;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.hero h1 span {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto var(--space-xl) auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* Mockup Interface (Legal-IA Assistant) */
.hero-mockup {
    width: 100%;
    max-width: 960px;
    height: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: fade-up var(--duration-lg) var(--ease-out-premium) 200ms forwards;
    position: relative;
    z-index: 2;
}

.mockup-header {
    height: 48px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
}

.mockup-controls {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.mockup-dot.red {
    background-color: #E2E8F0;
}

.mockup-dot.yellow {
    background-color: #E2E8F0;
}

.mockup-dot.green {
    background-color: #E2E8F0;
}

.mockup-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mockup-badge {
    background-color: rgba(17, 94, 89, 0.08);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 10px;
}

.mockup-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar Mockup */
.mockup-sidebar {
    width: 200px;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.sidebar-item {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-item.active {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Chat Canvas Mockup */
.mockup-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-surface);
}

.chat-history {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    overflow-y: auto;
    text-align: left;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
    align-items: flex-start;
}

.message-sender {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.user .message-bubble {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.assistant .message-bubble {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
}

.analysis-citation {
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.citation-header {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 500;
}

.citation-content {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* Chat Input Mockup */
.chat-input-area {
    height: 60px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    background-color: var(--bg-primary);
}

.chat-input-placeholder {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
}

.chat-send-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

/* General Animations */
@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout Grids */
.section {
    padding: var(--space-xxl) var(--space-xxl);
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-header h2 span {
    font-style: italic;
    color: var(--accent);
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
}

.bento-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: var(--space-xl);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--duration-md) var(--ease-out-premium);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.bento-card .icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: var(--space-xl);
}

.bento-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.bento-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Bento Specific Columns */
.col-8 {
    grid-column: span 8;
}

.col-4 {
    grid-column: span 4;
}

.col-12 {
    grid-column: span 12;
}

/* Bento Interactive Document Card */
.document-processor {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    border-radius: 6px;
    margin-top: var(--space-xl);
}

.processor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.processor-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.processor-percentage {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
}

.processor-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(12, 12, 11, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.processor-progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    transition: width var(--duration-lg) ease;
}

/* Bento Security checklist */
.security-list {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.security-item .check {
    color: var(--accent);
    font-size: 14px;
}

/* Showcase Grid Cards */
.metric-box {
    text-align: center;
    padding: var(--space-md) 0;
}

.metric-number {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Before vs After Section */
.comparison-section {
    background-color: var(--bg-surface);
}

.comparison-toggle {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.toggle-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    border-radius: 99px;
    transition: all var(--duration-sm);
}

.toggle-btn.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
}

.comparison-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.comparison-pane {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 380px;
}

.pane-column {
    padding: var(--space-xxl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pane-column.left {
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-surface);
}

.pane-column.right {
    background-color: var(--bg-primary);
}

.pane-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.pane-badge.traditional {
    background-color: #FEF2F2;
    color: #EF4444;
}

.pane-badge.legalia {
    background-color: rgba(17, 94, 89, 0.08);
    color: var(--accent);
}

.pane-column h4 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.pane-column p {
    font-size: 15px;
    margin-bottom: var(--space-xl);
}

.flow-step-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.flow-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
}

.flow-step-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Statistics Section */
.statistics {
    background-image: radial-gradient(rgba(12, 12, 11, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* Footer styling */
footer {
    padding: var(--space-xxl) var(--space-xxl);
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-xl);
}

.footer-brand {
    grid-column: span 4;
}

.footer-brand .logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-links {
    grid-column: span 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.links-group h5 {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.links-group a {
    font-size: 13px;
    color: var(--text-muted);
}

.links-group a:hover {
    color: var(--text-primary);
}

.footer-info {
    grid-column: span 3;
    border-left: 1px solid var(--border-color);
    padding-left: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.compliance-badges {
    display: flex;
    gap: 8px;
    margin-top: var(--space-md);
}

.badge-item {
    font-family: var(--font-mono);
    font-size: 9px;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Scroll Triggered Transition Effects (60fps GPU Acelerado) */
.reveal {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity var(--duration-lg) var(--ease-out-premium), transform var(--duration-lg) var(--ease-out-premium);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* --- Planes Section --- */
.plans-section {
    background-color: var(--bg-primary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--duration-md) var(--ease-out-premium);
    position: relative;
}

.plan-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
    transform: translateY(-4px);
}

.plan-card.featured {
    border: 1px solid var(--text-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.plan-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: fit-content;
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.plan-badge.enterprise {
    background-color: rgba(17, 94, 89, 0.08);
    color: var(--accent);
    border-color: rgba(17, 94, 89, 0.15);
}

.plan-title {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-xl);
    min-height: 42px;
}

.plan-price {
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.1;
}

.price-period {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xxl);
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-xl);
}

.plan-features li {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.plan-features .check {
    color: var(--accent);
    font-size: 16px;
}

.plan-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 11px;
}

/* --- Novedades Section --- */
.news-section {
    background-color: var(--bg-surface);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.news-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--duration-md) var(--ease-out-premium);
}

.news-card:hover {
    border-color: var(--border-highlight);
    background-color: var(--bg-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.news-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background-color: rgba(17, 94, 89, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}

.news-title {
    font-size: 24px;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: var(--space-md);
    min-height: 60px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-xl);
    flex-grow: 1;
}

.news-link {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.news-link span {
    transition: transform var(--duration-sm);
}

.news-link:hover span {
    transform: translateX(4px);
}

/* --- Contacto Section --- */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-xxl);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.02);
}

.contact-form-container {
    position: relative;
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.col-full {
    grid-column: span 2;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    outline: none;
    transition: all var(--duration-sm);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A3A39F;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text-primary);
    background-color: var(--bg-surface);
}

.form-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 14px 28px;
}

.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) 0;
    animation: fade-up var(--duration-md) var(--ease-out-premium) forwards;
}

.form-success-message .success-icon {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.form-success-message h4 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-success-message p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
}

/* --- Editorial Specs Drawer --- */
.editorial-expand-container {
    max-width: 1000px;
    margin: 50px auto 0 auto;
}

.editorial-toggle-btn {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px 24px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--duration-sm) var(--ease-out-premium);
}

.editorial-toggle-btn:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
}

.editorial-toggle-btn .toggle-icon {
    font-size: 18px;
    color: var(--accent);
}

.editorial-inner-rich-text h4 {
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 12px;
}

.editorial-inner-rich-text h5 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    color: var(--accent);
}

.editorial-inner-rich-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.editorial-inner-rich-text ul {
    list-style: square;
    padding-left: 20px;
    margin-bottom: 30px;
}

.editorial-inner-rich-text li {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.editorial-inner-rich-text li strong {
    color: var(--text-primary);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    header {
        padding: 0 var(--space-xl);
    }

    .hero h1 {
        font-size: 42px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 var(--space-md);
    }

    nav,
    .action-area {
        display: none;
        /* Mobile menu needed */
    }

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

    .col-8,
    .col-4 {
        grid-column: span 12;
    }

    .comparison-pane {
        grid-template-columns: 1fr;
    }

    .pane-column.left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

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

    .footer-brand,
    .footer-links,
    .footer-info {
        grid-column: span 12;
    }

    .footer-info {
        border-left: none;
        padding-left: 0;
        padding-top: var(--space-xl);
        border-top: 1px solid var(--border-color);
    }

    .plans-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .form-group.col-full {
        grid-column: span 1;
    }

    .contact-wrapper {
        padding: var(--space-xl);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Premium Floating Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: var(--font-sans);
}

.chatbot-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--border-highlight);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-md) var(--ease-bounce-premium);
    position: relative;
    animation: fab-float 3s ease-in-out infinite; /* Animación de flotado en reposo */
}

/* Animación de flotado en reposo (float effect) */
@keyframes fab-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Ondas concéntricas de radar (pulsing radar effect) */
.chatbot-fab::before,
.chatbot-fab::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.6;
    animation: fab-pulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
    z-index: -1;
}

.chatbot-fab::after {
    animation-delay: 0.8s;
}

@keyframes fab-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.chatbot-fab:hover {
    transform: scale(1.1) translateY(-4px); /* Aumento y subida en hover */
    box-shadow: 0 16px 40px rgba(17, 94, 89, 0.3);
    background-color: var(--accent);
    color: var(--bg-primary);
    animation-play-state: paused; /* Pausa el flotado para priorizar la interacción física */
}

.chatbot-fab span {
    font-size: 24px;
    transition: transform var(--duration-md) var(--ease-bounce-premium);
}

.chatbot-fab:hover span {
    transform: scale(1.15) rotate(15deg); /* Rotación y escalado sutil del icono al pasar el cursor */
}

.chatbot-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    height: 520px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all var(--duration-md) var(--ease-out-premium);
    z-index: 1001;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(17, 94, 89, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar span {
    font-size: 18px;
}

.chatbot-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.chatbot-status {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10B981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chatbot-close-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background-color var(--duration-sm);
}

.chatbot-close-btn:hover {
    background-color: rgba(12, 12, 11, 0.05);
    color: var(--text-primary);
}

.chatbot-messages {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: var(--bg-surface);
}

.chatbot-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.chatbot-msg.bot {
    align-self: flex-start;
}

.chatbot-msg.user {
    align-self: flex-end;
}

.chatbot-msg-bubble {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.chatbot-msg.bot .chatbot-msg-bubble {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
}

.chatbot-msg.user .chatbot-msg-bubble {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 8px 8px 0 8px;
}

.chatbot-msg-time {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
    align-self: flex-start;
    padding: 0 4px;
    font-family: var(--font-mono);
}

.chatbot-msg.user .chatbot-msg-time {
    align-self: flex-end;
}

.chatbot-input-form {
    height: 60px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.chatbot-input-form input {
    flex: 1;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 16px;
    font-size: 13px;
    font-family: var(--font-sans);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transition: all var(--duration-sm);
}

.chatbot-input-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.chatbot-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-sm);
}

.chatbot-send-btn:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.chatbot-send-btn span {
    font-size: 16px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 16px;
        right: 16px;
    }
    .chatbot-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 110px);
        bottom: 70px;
    }
}