/* Reset & Variables */
:root {
    --bg-light: #fafafa; /* Very light gray/off-white */
    --surface: #ffffff; /* White */
    --surface-light: #f1f5f9; /* Slate 100 */
    --surface-border: #e2e8f0; /* Slate 200 */
    
    --primary: #0a1c40; /* Dark Navy Blue */
    --primary-light: #163261; /* Lighter navy */
    --secondary: #009688; /* Teal/Cyan */
    --accent: #6b7280; /* Gray */
    
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(var(--surface-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--surface-border) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e293b;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Effects */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, rgba(255,255,255,0) 70%);
}

.blob-2 {
    top: 40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14,165,233,0.3) 0%, rgba(255,255,255,0) 70%);
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 900px) {
    .flex-row {
        flex-direction: column;
    }
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

@media (max-width: 900px) {
    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--surface-border);
        text-align: center;
    }
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 1rem;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    .nav-actions {
        display: flex;
        align-items: center;
    }
    .nav-actions .btn {
        display: none !important;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.nav-tagline {
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-tagline strong {
    color: var(--primary);
    font-style: normal;
}

/* Intent Section */
.intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.intent-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.intent-item i {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.intent-item p {
    font-size: 1rem;
    line-height: 1.5;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 130px; /* Tamaño máximo para máxima visibilidad */
    width: auto;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--surface-light);
    border-color: var(--primary-light);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.125rem;
    width: 100%;
}

/* Glassmorphism / Light Cards */
.glass-panel, .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.glass-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 0.8rem;
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.micro-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
}

.main-image-wrapper {
    position: relative;
    padding: 1rem;
    background: white;
}

.hero-image {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: var(--shadow-md);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: float-card 6s ease-in-out infinite alternate;
}

.card-1 {
    top: 10%;
    left: -10%;
}

.card-2 {
    bottom: 10%;
    right: -10%;
    animation-delay: 2s;
}

.card-icon {
    font-size: 1.5rem;
    background: var(--surface-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.card-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
}

.card-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.icon-wrapper {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background: var(--surface-light);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 233, 0.05));
    border-color: rgba(37, 99, 235, 0.2);
}

/* Solution Section */
.solution-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    background: white;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-main);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.solution-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    background: var(--surface-light);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.use-case {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
    color: var(--text-main);
}

/* Agency Ops */
.banner-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(37, 99, 235, 0.05));
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
}

.dashboard-mock {
    width: 100%;
    height: 250px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.mock-header {
    height: 20px;
    background: var(--surface-light);
    border-radius: 4px;
    width: 40%;
}

.mock-body {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.mock-chart {
    flex: 2;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mock-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(14, 165, 233, 0.1), transparent);
}

.mock-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.mock-bars span {
    flex: 1;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
}

.mock-bars span:nth-child(1) { height: 40%; }
.mock-bars span:nth-child(2) { height: 70%; }
.mock-bars span:nth-child(3) { height: 50%; }
.mock-bars span:nth-child(4) { height: 90%; }

/* Steps Model */
.model-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.model-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--surface-border), transparent);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.step h3 {
    color: var(--text-main);
}

/* CTA */
.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: white;
}

.cta-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

input {
    flex: 1;
    padding: 1.2rem;
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-sans);
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.02);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder {
    color: #94a3b8;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--surface-border);
    text-align: center;
    background: white;
}

.footer .logo {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-grid, .solution-wrapper, .model-steps {
        grid-template-columns: 1fr;
    }
    
    .model-steps::before {
        display: none;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .floating-card {
        display: none;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}
