/* =========================================
   VARIABLES & BRANDING (PALETA NUEVA)
   ========================================= */
:root {
    /* COLORES DE MARCA (Extraídos de tu imagen) */
    --brand-dark: #0d1b2a;       /* Fondo Principal (Black Pearl) */
    --brand-blue: #244b63;       /* Fondo Secundario / Paneles */
    --brand-orange: #f4a43b;     /* ACCIÓN PRINCIPAL (Botones/Highlights) */
    --brand-orange-dark: #d9822b;/* Hover de botones */
    --brand-yellow: #ffd37a;     /* Detalles / Acentos sutiles */
    
    /* COLORES FUNCIONALES */
    --text-main: #ffffff;
    --text-muted: #b0c4de;       /* Gris azulado para leer mejor sobre oscuro */
    --tech-cyan: #4cc9f0;        /* Mantenemos un toque cyan SOLO para el HUD (camara) */
}

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

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

/* =========================================
   UTILIDADES & BOTONES
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-block;
    padding: 14px 32px; /* Botones un poco más grandes */
    border-radius: 6px; /* Bordes menos redondos = más seriedad */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* BOTÓN PRIMARIO: Naranja sobre Azul (Alto Contraste) */
.btn-primary {
    background-color: var(--brand-orange);
    color: var(--brand-dark); /* Texto oscuro sobre naranja para legibilidad */
    border: none;
    box-shadow: 0 4px 15px rgba(244, 164, 59, 0.3); /* Sombra naranja */
}
.btn-primary:hover { 
    background-color: var(--brand-orange-dark); 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 164, 59, 0.5);
}

/* BOTÓN SECUNDARIO: Borde sutil */
.btn-outline {
    border: 2px solid var(--brand-blue);
    color: #fff;
    background: transparent;
}
.btn-outline:hover { 
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: rgba(244, 164, 59, 0.05); 
}

.highlight { color: var(--brand-orange); }
.left-align { text-align: left !important; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.badge {
    background: rgba(36, 75, 99, 0.5); /* Azul marca transparente */
    color: var(--brand-yellow);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    border: 1px solid var(--brand-blue);
}
.badge.accent { 
    background: rgba(244, 164, 59, 0.1); 
    color: var(--brand-orange); 
    border-color: var(--brand-orange);
}

/* HEADER */
header {
    height: 80px;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95); /* Fondo oscuro casi sólido */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Sombra para despegarlo del fondo */
}

/* Centrado perfecto de elementos */
header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

/* Ajuste de tamaño del Logo Imagen */
.logo img {
    height: 38px; /* Un poco más pequeño para elegancia */
    width: auto;
}

/* Ajuste del botón del header para que no sea gigante */
header .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente sutil usando el azul de la marca */
    background: radial-gradient(circle at 70% 30%, rgba(36, 75, 99, 0.4) 0%, var(--brand-dark) 70%);
    z-index: -1;
}

.hero-grid {
    position: absolute;
    width: 100%; height: 100%;
    /* Grilla más sutil y elegante */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    opacity: 0.3;
}

.hero-content { flex: 1; max-width: 600px; }

h1 { 
    font-size: 3.8rem; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    font-weight: 800; 
    letter-spacing: -1.5px;
}

.hero-text { 
    font-size: 1.2rem; 
    color: var(--text-muted); 
    margin-bottom: 2.5rem; 
    max-width: 90%;
}

.cta-group { display: flex; gap: 15px; flex-wrap: wrap; }

/* VISUAL HUD (La caja de la derecha) */
.hero-visual {
    flex: 1;
    position: relative;
    height: 380px;
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid var(--brand-blue); /* Borde azul marca */
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Esquinas Tecnológicas (Color Cyan/Azul para diferenciar de la marca naranja) */
.tech-corner {
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--tech-cyan);
    box-shadow: 0 0 8px var(--tech-cyan);
}
.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.rec-badge {
    position: absolute; top: 20px; right: 20px;
    color: #ff4444; font-weight: bold; font-family: monospace;
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem; z-index: 10;
}
.rec-dot { width: 10px; height: 10px; background-color: #ff4444; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-visual-content { 
    color: #fff; text-align: center; z-index: 5;
    background: rgba(13, 27, 42, 0.7);
    padding: 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05);
}
.hero-visual-content h3 { margin-bottom: 5px; letter-spacing: 2px; color: var(--tech-cyan); }
.code-text { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-muted); }

.scan-line {
    position: absolute; width: 100%; height: 2px;
    background: rgba(76, 201, 240, 0.5); /* Cyan */
    box-shadow: 0 0 15px var(--tech-cyan);
    animation: scan 4s infinite linear; z-index: 2;
}
@keyframes scan { 0% {top: 0;} 100% {top: 100%;} }

/* =========================================
   HARDWARE SECTION
   ========================================= */
#hardware { padding: 100px 0; background: #0b1622; /* Un tono un poco más claro que el body */ }

.box-container {
    display: flex; align-items: center; gap: 50px;
    background: linear-gradient(135deg, rgba(36, 75, 99, 0.2), transparent);
    border: 1px solid var(--brand-blue);
    padding: 50px; border-radius: 20px;
}
.box-image { flex: 1; text-align: center; }
.box-info { flex: 1; }
.feature-list { list-style: none; margin-bottom: 30px; }
.feature-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

/* Placeholder */
.placeholder-box {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #1a3a4f, #0d1b2a);
    border-radius: 30px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--brand-blue);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}
.placeholder-box span { color: var(--text-muted); font-size: 0.8rem; }

/* =========================================
   FEATURES SECTION
   ========================================= */
#features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.feature-card {
    background: rgba(36, 75, 99, 0.15); /* Azul marca muy transparente */
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(36, 75, 99, 0.3);
    transition: all 0.3s ease;
}
.feature-card:hover { 
    border-color: var(--brand-orange); /* Naranja al hover */
    background: rgba(36, 75, 99, 0.25);
    transform: translateY(-5px); 
}
.feature-card h3 { margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); }

.demo-video-container {
    width: 100%; height: 180px; background: #000;
    border-radius: 8px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--brand-blue); overflow: hidden;
}
.demo-video-container video { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   ROI SECTION
   ========================================= */
#roi { padding: 100px 0; background: linear-gradient(to bottom, var(--brand-dark), #0b1622); }
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.roi-chart {
    background: rgba(36, 75, 99, 0.1);
    padding: 40px; border-radius: 20px;
    border: 1px solid var(--brand-blue);
    position: relative;
}
.bar-group { margin-bottom: 30px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; color: #fff; }
.bar-bg { width: 100%; height: 30px; background: rgba(0,0,0,0.3); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 15px; font-size: 0.8rem; font-weight: bold; width: 0; transition: width 1.5s ease-out; }

/* Barra Humana: Usamos el azul oscuro/rojo para denotar "Costo/Pesadez" */
.bar-human { background: #ef4444; width: 100%; animation: fillHuman 2s forwards; color: #fff; }
/* Barra Shepherd: Naranja de la marca para denotar "Eficiencia" */
.bar-shepherd { background: var(--brand-orange); width: 15%; animation: fillShepherd 2s forwards; color: var(--brand-dark); }

@keyframes fillHuman { from { width: 0; } to { width: 100%; } }
@keyframes fillShepherd { from { width: 0; } to { width: 15%; } }

.roi-footnote { font-size: 0.8rem; text-align: center; margin-top: 20px; color: var(--text-muted); }

/* =========================================
   CONTACT SECTION
   ========================================= */
#contact { padding: 100px 0; text-align: center; }
.contact-box {
    background: linear-gradient(135deg, rgba(36, 75, 99, 0.3), rgba(13, 27, 42, 0.8));
    padding: 60px; border-radius: 20px;
    border: 1px solid var(--brand-blue);
}
.contact-form { max-width: 500px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 15px; }
.form-group input {
    width: 100%; padding: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--brand-blue);
    color: white; border-radius: 6px;
    font-family: inherit;
    transition: border 0.3s;
}
.form-group input:focus { border-color: var(--brand-orange); outline: none; }
.full-width { width: 100%; }

.contact-footer { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.copyright { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-visual { width: 100%; height: 300px; }
    .hero-content { margin-bottom: 30px; }
    .cta-group { justify-content: center; }
    .box-container { flex-direction: column; text-align: center; }
    .roi-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.8rem; }
}