@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* Institutional & Professional White Palette */
    --primary: #111827;       /* Dark Grey/Blue for text */
    --primary-light: #1f2937;
    --accent: #9c895c;        /* Refined Gold/Amber */
    --accent-soft: rgba(156, 137, 92, 0.1);
    --bg-body: #ffffff;       /* Pure White Background */
    --bg-white: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --border-soft: #e5e7eb;   /* Light Border */
    --glow-gold: 0 0 20px rgba(156, 137, 92, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s ease-out;
}

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

h1, h2, h3, .logo-text {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Slightly more side padding for balance */
}

/* NAVBAR - PREMIUM GLASSMORPHISM */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 14px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 8px 0; /* Reduced from 12px */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

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

/* METHODOLOGY STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.step-card {
    position: relative;
    padding-top: 40px;
}

.step-number {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    color: var(--border-soft);
    position: absolute;
    top: 0; left: 0;
    line-height: 1;
    font-weight: 800;
    z-index: 1;
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Slightly smaller for density */
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ ACCORDION */
.faq-item {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    padding: 18px 24px; /* Reduced from 24px 32px for compactness */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question h3 {
    font-size: 0.9rem; /* Slightly smaller for density */
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.faq-question i {
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 24px;
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(156, 137, 92, 0.05);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in-out;
    padding-bottom: 24px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent);
}

/* FOOTER UPDATES */
.footer-logo {
    font-size: 1.8rem;
}
.footer-links h4 {
    letter-spacing: 1px;
}

/* SIMULATOR TOGGLE */
.btn-toggle {
    background: #f1f5f9;
    border: 1px solid var(--border-soft);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-toggle.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-toggle:hover {
    border-color: var(--accent);
}

/* HERO REFINEMENTS - CONSOLIDATED BELOW */

/* Estilos de Hero movidos a la sección correspondiente abajo */

/* STICKY CTA BAR */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    border-radius: 0px; /* Bloomberg Terminal Sharp Edges */
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--border-soft);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-gold {
    background-color: var(--accent);
    color: white;
}

.btn-gold:hover {
    background-color: #9c895c;
    box-shadow: 0 10px 25px rgba(180, 159, 112, 0.3);
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 160px 0 100px; /* Reduced from 220px 0 140px for compactness */
    background-color: #ffffff;
    color: var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(156, 137, 92, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(248, 250, 252, 1) 0%, #ffffff 80%);
    background-size: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 80px 80px;
    background-image: linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 900px;
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px; /* Condensed */
    color: var(--primary);
    letter-spacing: -0.04em;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
}

.hero-content h1 span {
    color: var(--accent);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* MINIMALIST HERO MOCKUP */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SPECTACULAR HERO COVER */
.hero-cover {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    /* Multilayer institutional shadow */
    box-shadow: 
        0 30px 60px -12px rgba(15, 23, 42, 0.12),
        0 18px 36px -18px rgba(15, 23, 42, 0.15),
        0 -2px 10px 0 rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-soft);
    position: relative;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 110%; /* Makes it 'pop' and bleed slightly */
    transform-origin: center right;
}

.hero-cover img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.02);
}

.hero-mockup:hover .hero-cover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 
        0 50px 100px -20px rgba(15, 23, 42, 0.15),
        0 30px 60px -30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .hero-cover {
        width: 100%;
        margin-top: 40px;
    }
}

.hero-mockup:hover .browser-frame {
    transform: translateY(-10px) scale(1.02);
}

/* SECTIONS */
.section {
    padding: 80px 0; /* Reduced from 100px 0 for compactness */
}

.section-alt {
    background-color: #f8fafc;
}

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

.section-header span {
    display: block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 24px;
}

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

/* FEATURES GRID 2x2 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.feature-card {
    background: #ffffff;
    padding: 50px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.08);
    border-color: var(--accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 32px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--accent);
    color: white;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; /* Even larger title */
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem; /* Slightly smaller for density */
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 12px;
}

.card-link i {
    width: 16px;
    height: 16px;
}

/* AI SECTION */
.ai-section {
    background-color: #f1f5f9;
    color: var(--primary);
    overflow: hidden;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

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

@media (min-width: 992px) {
    .ai-grid { grid-template-columns: 1fr 1fr; }
}

.ai-visual {
    position: relative;
}

.ai-node {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ai-node:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.ai-node i { color: var(--accent); }
.ai-node-text h4 { font-family: 'Inter', sans-serif; font-size: 0.9rem; margin-bottom: 4px; color: var(--primary); }
.ai-node-text p { font-size: 0.75rem; color: var(--text-muted); }

/* ANIMATIONS */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.footer {
    padding: 100px 0 40px;
    background-color: #f8fafc;
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.footer-logo i { color: var(--accent); }

.footer-links h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

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

/* REGULATORY TICKER */
.regulatory-ticker-container {
    background: #ffffff;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 1001;
}

.regulatory-ticker {
    display: flex;
    animation: ticker-scroll 80s linear infinite;
    width: max-content;
}

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

.ticker-item {
    padding: 0 40px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.ticker-item span { color: var(--accent); margin-right: 8px; }

/* DATA VIZ METER */
.data-meter {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}

.data-meter-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #activity-log { display: none !important; }
}

/* EXECUTIVE TERMINAL MODE */
body.terminal-mode {
    --primary: #000000;
    --section-bg: #000000;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-soft: #1e293b;
    --card-bg: #020617;
    background-color: #000000 !important;
    color: #ffffff !important;
}

.terminal-mode section, 
.terminal-mode footer,
.terminal-mode .section-alt {
    background-color: #000000 !important;
    border-color: #1e293b !important;
}

.terminal-mode .feature-card, 
.terminal-mode .step-card, 
.terminal-mode .faq-item,
.terminal-mode .mockup-card,
.terminal-mode .ai-grid,
.terminal-mode article {
    background-color: #020617 !important;
    border-color: #1e293b !important;
}

.terminal-mode h1, 
.terminal-mode h2, 
.terminal-mode h3, 
.terminal-mode h4,
.terminal-mode .logo-text {
    color: #ffffff !important;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-cover {
    animation: float 6s ease-in-out infinite;
}

#activity-log {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#activity-log:hover {
    transform: scale(1.05) translateX(10px) !important;
}

/* Scroll Revelations */
.section-header h2, .section-header p {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro-interactions for buttons */
.btn:active {
    transform: translateY(1px) scale(0.98);
}


/* DOCUMENT MANAGEMENT COMPONENT (HOLDED STYLE) */
.holded-file-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.holded-file-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(156, 137, 92, 0.08);
}

.holded-file-card i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* REFINEMENTS FOR "HACIENDOLO MEJOR" */
.section {
    padding: 120px 0; /* Slightly more breathing room */
}

.section-header h2 {
    font-size: 3rem; /* Slightly larger and more impactful */
    letter-spacing: -0.02em;
}

.hero-content h1 {
    font-size: 4.5rem; /* Larger hero for more impact */
    line-height: 1.05;
}

.nav-links a {
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Ensure icons have consistent sizing */
[data-lucide] {
    stroke-width: 1.5px;
}

/* PRICING SECTION */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 480px));
    gap: 32px;
    margin-top: 48px;
    justify-content: center;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    padding: 48px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(156, 137, 92, 0.08);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.pricing-price {
    margin: 32px 0;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.pricing-price .period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pricing-features li i {
    color: var(--accent);
    width: 18px;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular:hover {
    box-shadow: 0 40px 80px rgba(156, 137, 92, 0.12);
}


