/* --- VARIABLES & RESET --- */
:root {
    /* Paleta Industrial Tech */
    --color-primary: #0F172A; /* Navy Blue Profundo */
    --color-secondary: #334155; /* Slate Grey */
    --color-accent: #F97316; /* Naranja Industrial (Seguridad/Acción) */
    --color-accent-hover: #EA580C;
    --color-bg-light: #F8FAFC;
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-white: #FFFFFF;
    --color-success: #22C55E;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

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

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

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

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* --- HEADER --- */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #E2E8F0;
}

.logo img {
    width: 50px;
    height: 50px;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-secondary);
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-visual {
    position: relative;
}

/* CSS-ONLY PRODUCT DEMO CARD */
.demo-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #E2E8F0;
    animation: float 6s ease-in-out infinite;
}

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

.demo-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.order-id { font-weight: 700; color: var(--color-primary); }
.status-badge { 
    background: #DCFCE7; 
    color: #166534; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

/* Line connecting steps */
.progress-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #E2E8F0;
    z-index: 0;
}

.process-step h3{
    color: var(--color-white);
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.step.completed .step-dot {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.step.active .step-dot {
    background: white;
    border-color: var(--color-accent);
    position: relative;
}

.step.active .step-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
}

.step-info h4 { font-size: 1rem; margin-bottom: 2px; }
.step-info p { font-size: 0.85rem; color: var(--color-text-muted); }

/* --- PAIN POINTS SECTION --- */
.pain-points {
    padding: 80px 0;
    background-color: var(--color-white);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pain-card {
    padding: 30px;
    border-radius: var(--border-radius);
    background: #F8FAFC;
    border-left: 4px solid var(--color-secondary);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* --- HOW IT WORKS --- */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    color: white;
}

.how-it-works h2 { color: var(--color-text-main); }
.how-it-works p { color: var(--color-text-muted); }

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

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

.step-content h3 { color: var(--color-secondary); }
.step-content p { color: var(--color-text-muted); }

.step-icon-box {
    background: var(--color-secondary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

/* --- FEATURES SECTION --- */
.features {
    padding: 100px 0;
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.check-icon {
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 4px;
}

.integration-box {
    background: #F1F5F9;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    text-align: center;
    color: white;
}

.cta-section h2 { color: white; margin-bottom: 20px; }

/* --- FOOTER --- */
footer {
    background-color: var(--color-primary);
    color: #94A3B8;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #334155;
    padding-bottom: 40px;
}

.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col img{
    width: 75px;
    height: 75px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { margin: 0 auto 2rem; }

    .nav-links {
        display: none; /* Hide for simple implementation */
    }
    
    .mobile-menu-btn { display: block; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .steps-container { flex-direction: column; }
}

/* Utility for Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--color-bg-light);
    color: var(--color-text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input::placeholder {
    color: #94A3B8;
}

