/* ==========================================================================
   CAROL-IA FACTURA - PREMIUM B2B STYLESHEET v2
   ========================================================================== */

:root {
    --clr-bg-page: #f9fafb;
    --clr-bg-card: #ffffff;
    --clr-bg-dark: #0a1120;
    
    --clr-primary: #0f172a;
    --clr-primary-hover: #1e293b;
    
    --clr-brand: #0284c7;
    --clr-brand-glow: rgba(2, 132, 199, 0.4);
    
    --clr-accent: #0f766e;
    --clr-accent-light: #ccfbf1;
    --clr-accent-glow: rgba(20, 184, 166, 0.3);
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-heading: #0f172a;
    --text-inverse: #f8fafc;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-float: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --border-subtle: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--clr-bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Typography */
h1, h2, h3, h4 { color: var(--text-heading); font-weight: 700; letter-spacing: -0.02em; }
.title-lg { font-size: 2.75rem; margin-bottom: 1rem; line-height: 1.1; }
.subtitle-lg { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.text-center { text-align: center; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.bg-light { background-color: #ffffff; }
.bg-dark { background-color: var(--clr-bg-dark); }
.dark-text h2, .dark-text p { color: var(--text-inverse); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer; border: none;
    transition: all 0.2s ease; gap: 0.5rem; font-family: inherit; font-size: 1rem;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

.btn-primary { 
    background-color: var(--clr-primary); color: white; 
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2); 
}
.btn-primary:hover { background-color: var(--clr-primary-hover); transform: translateY(-2px); box-shadow: 0 8px 12px rgba(15, 23, 42, 0.3); }

.btn-outline-white { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ============================
   TOP BANNER
   ============================ */
.top-banner {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: white; padding: 0.6rem 0; font-size: 0.9rem;
    position: relative; z-index: 101;
}
.top-banner-content {
    display: flex; justify-content: center; align-items: center;
    gap: 1.5rem; flex-wrap: wrap; text-align: center;
}
.top-banner p { margin: 0; opacity: 0.95; font-weight: 500; }
.btn-demo-real {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #0284c7; color: white; padding: 0.35rem 1rem;
    border-radius: var(--radius-pill); font-weight: 600; font-size: 0.85rem;
    text-decoration: none; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.1);
}
.btn-demo-real:hover { background: #0ea5e9; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.2); }

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: sticky; top: 0; width: 100%; z-index: 100;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle); transition: 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-soft); }
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; font-weight: 500; color: var(--text-heading); }
.brand i { color: var(--clr-brand); font-size: 1.8rem; }
.nav-links { display: flex; gap: 2rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--clr-primary); }

/* ============================
   HERO
   ============================ */
.hero.dark-hero {
    position: relative; padding: 6rem 0;
    background: var(--clr-bg-dark); overflow: hidden; color: white;
}
.hero-bg-glow {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(2,132,199,0.3) 0%, rgba(20,184,166,0) 70%);
    top: -200px; right: -200px; border-radius: 50%; filter: blur(60px); z-index: 0;
}
.hero-bg-grid {
    position: absolute; inset: 0; z-index: 0; opacity: 0.05;
    background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 10;
}
.hero-text h1 { color: white; font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: #94a3b8; font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 1rem; }

.hero-trust-marks {
    margin-top: 1.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.hero-trust-marks span {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.85rem; color: #64748b; font-weight: 500;
}
.hero-trust-marks i { color: #2dd4bf; }

.badge-premium {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 1rem; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass);
    font-size: 0.875rem; font-weight: 500; color: #cbd5e1; margin-bottom: 1.5rem;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf;
    box-shadow: 0 0 10px #2dd4bf; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(45,212,191,0); }
}

/* Mockup */
.glass-mockup {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass); position: relative; padding-bottom: 2rem;
}
.perspective-mockup {
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.perspective-mockup:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

.mockup-header-bar {
    padding: 1rem; border-bottom: 1px solid var(--border-glass);
    display: flex; align-items: center; gap: 1rem; background: rgba(0,0,0,0.2);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mockup-header-bar .dots { display: flex; gap: 6px; }
.mockup-header-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #475569; display: block; }
.mockup-header-bar .title { font-size: 0.75rem; color: #94a3b8; font-weight: 500; margin: 0 auto; padding-right: 36px; }

.mockup-split { display: flex; align-items: center; justify-content: space-between; padding: 2rem; gap: 1rem; }
.mockup-pdf { background: #ffffff; padding: 1.5rem; border-radius: var(--radius-md); text-align: center; width: 120px; box-shadow: var(--shadow-soft); }
.pdf-icon { font-size: 3rem; color: #ef4444; margin-bottom: 1rem; }
.skeleton-line { height: 6px; background: #e2e8f0; border-radius: 4px; margin-bottom: 0.5rem; }
.skeleton-line.title { height: 8px; background: #cbd5e1; margin-bottom: 1rem; }
.skeleton-line.short { width: 60%; }
.mockup-arrow { font-size: 1.5rem; color: #38bdf8; }
.mockup-json {
    background: #0f172a; padding: 1.5rem; border-radius: var(--radius-md);
    border: 1px solid #1e293b; color: #e2e8f0; flex: 1; font-family: monospace; font-size: 0.85rem; line-height: 1.8;
}
.key { color: #38bdf8; } .string { color: #a3e635; } .number { color: #f472b6; } .success { color: #10b981; }

/* ============================
   TRUST BANNER
   ============================ */
.trust-banner { padding: 3rem 0; background: white; border-bottom: 1px solid var(--border-subtle); text-align: center; }
.trust-text { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.trust-icons { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.trust-icons span { display: flex; align-items: center; gap: 0.5rem; color: #64748b; font-weight: 600; font-size: 1.1rem; }
.trust-icons i { font-size: 1.5rem; color: #cbd5e1; }

/* ============================
   BENTO GRID (Beneficios)
   ============================ */
.section-header { margin-bottom: 4rem; }
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.bento-card {
    background: white; border-radius: var(--radius-lg); padding: 3rem;
    box-shadow: var(--shadow-soft); border: 1px solid var(--border-subtle);
    transition: transform 0.3s, box-shadow 0.3s;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); }

.feature-highlight { border-color: var(--clr-accent); position: relative; overflow: hidden; }
.feature-highlight::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--clr-accent);
}

.bento-icon-wrapper {
    width: 64px; height: 64px; border-radius: 16px; background: rgba(2, 132, 199, 0.1);
    color: var(--clr-brand); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 2rem;
}
.bento-title { font-size: 1.5rem; margin-bottom: 1rem; }
.bento-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.bento-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-weight: 500; }

/* ============================
   STEPS GRID (4 pasos)
   ============================ */
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.step-card {
    background: white; padding: 2.25rem 1.75rem; border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle); text-align: center;
    transition: transform 0.2s, box-shadow 0.2s; position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); }

.step-number {
    font-size: 3.5rem; font-weight: 800; line-height: 1;
    color: #f1f5f9; margin-bottom: 1rem;
}
.step-card-icon { font-size: 2rem; color: var(--clr-primary); margin-bottom: 1rem; display: block; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

.step-card-active {
    border-color: var(--clr-brand);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.12);
}
.step-card-active .step-number { color: #e0f2fe; }
.step-card-active .step-card-icon { color: var(--clr-brand); }

.step-card-final { background: var(--clr-primary); color: white; }
.step-card-final .step-number { color: #1e293b; }
.step-card-final h3 { color: white; }
.step-card-final p { color: #94a3b8; }
.icon-success { color: #10b981 !important; }

.safe-note {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: 2.5rem; color: var(--text-muted); font-weight: 500;
}
.safe-note i { color: #10b981; font-size: 1.25rem; }

/* ============================
   CTA INTERMEDIO
   ============================ */
.section-cta-mid {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 0; color: white; text-align: center;
}
.section-cta-mid h2 { color: white; font-size: 2rem; margin-bottom: 1rem; }
.section-cta-mid p { color: #94a3b8; font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-cta-mid .btn-primary {
    background: #0284c7; box-shadow: 0 4px 15px rgba(2,132,199,0.3);
}
.section-cta-mid .btn-primary:hover { background: #0ea5e9; }

/* ============================
   COMPARISON TABLE
   ============================ */
.comparison-table-wrapper {
    overflow-x: auto; border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle); box-shadow: var(--shadow-soft);
}
.comparison-table {
    width: 100%; border-collapse: collapse; background: white;
    font-size: 1rem;
}
.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem; text-align: left; border-bottom: 1px solid #f1f5f9;
}
.comparison-table thead th {
    background: #f8fafc; font-weight: 700; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted);
}
.comparison-table thead th.col-carol { color: var(--clr-primary); }
.comparison-table thead th.col-cloud { color: var(--text-muted); }

.comparison-table td:first-child { font-weight: 600; color: var(--text-heading); }
.comparison-table td.col-carol { color: var(--text-main); }
.comparison-table td.col-cloud { color: var(--text-muted); }

.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: #f8fafc; }

.check-yes { color: #10b981; font-size: 1.1rem; margin-right: 0.5rem; vertical-align: middle; }
.check-no { color: #ef4444; font-size: 1.1rem; margin-right: 0.5rem; vertical-align: middle; }
.check-warn { color: #f59e0b; font-size: 1.1rem; margin-right: 0.5rem; vertical-align: middle; }

/* ============================
   OBJECIONES + FORMULARIO
   ============================ */
.grid-layout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.fact-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.fact-item .text-primary { font-size: 1.5rem; color: var(--clr-brand); margin-top: 5px; }
.fact-item strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }
.fact-item p { color: var(--text-muted); }

.contact-card-premium {
    background: white; border-radius: var(--radius-lg); padding: 3rem;
    box-shadow: var(--shadow-float); border: 1px solid var(--border-subtle);
}
.contact-card-premium .card-header { margin-bottom: 2rem; }
.contact-card-premium h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.contact-card-premium p { color: var(--text-muted); }

.clean-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.clean-form input {
    width: 100%; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);
    background: var(--clr-bg-page); font-family: inherit; font-size: 1rem; transition: border 0.2s;
}
.clean-form input:focus { outline: none; border-color: var(--clr-brand); background: white; }

/* ============================
   FOOTER PREMIUM
   ============================ */
.footer-premium {
    background: var(--clr-primary); color: #94a3b8; padding: 4rem 0 2rem;
}
.footer-main {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-col .brand { color: white; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.95rem; max-width: 280px; line-height: 1.6; }

.footer-nav-col h4 { color: white; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-nav-col ul li { margin-bottom: 0.5rem; }
.footer-nav-col a { color: #94a3b8; transition: color 0.2s; font-size: 0.9rem; }
.footer-nav-col a:hover { color: white; }

.footer-bottom-bar {
    padding-top: 2rem; text-align: center; font-size: 0.85rem; color: #64748b;
}

/* ============================
   ANIMATIONS
   ============================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 992px) {
    .hero-content, .bento-grid, .grid-layout-2 { grid-template-columns: 1fr; gap: 3rem; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .hero.dark-hero { padding: 4rem 0; text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero-trust-marks { justify-content: center; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .glass-mockup { margin-top: 2rem; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.5rem; }
    .clean-form .form-row { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-tagline { max-width: 100%; }
    .mockup-split { flex-direction: column; }
    .mockup-pdf { width: 100%; }
    .mockup-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
    .title-lg { font-size: 2rem; }
    .trust-icons { gap: 2rem; }
}
