/* style.css - Versión Completa */
:root {
    /* Paleta Opción C: Consultor Ejecutivo */
    --bg-color: #1C1C1C;        /* Fondo Principal */
    --bg-card: #252526;         /* Fondo de tarjetas (un poco más claro) */
    --primary-color: #002F63;   /* Azul Marino Yankee */
    --accent-color: #2B6ABC;    /* Azul SAP brillante */
    --text-color: #E0E0E0;      /* Texto principal */
    --text-muted: #A0A0A0;      /* Texto secundario */
    --white: #FFFFFF;
}

/* --- ESTILOS GENERALES --- */
html {
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en menú */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--white);
    font-weight: 600;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0; /* Espacio vertical entre secciones */
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    background-color: rgba(28, 28, 28, 0.95); /* Semitransparente */
    border-bottom: 1px solid #333;
    position: fixed; /* Se queda fija arriba */
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Esto centra verticalmente el logo con los enlaces */
    padding: 0.5rem 2rem; 
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 1px;
}

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

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

/* --- HERO SECTION (Portada) --- */
.hero-section {
    height: 100vh; /* Ocupa toda la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a3b55 0%, var(--bg-color) 70%);
    padding-top: 80px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--accent-color);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-full {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* --- PERFIL (Grid 2 columnas) --- */
.perfil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.perfil-imagen-placeholder {
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 10px;
    border: 1px dashed var(--accent-color);
}

/* --- SERVICIOS (Grid de Tarjetas) --- */
.bg-darker {
    background-color: #151515; /* Fondo un poco más oscuro para contraste */
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--accent-color); /* Detalle elegante arriba */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Efecto de levitación al pasar el mouse */
}

.card h3 {
    margin-top: 0;
    color: var(--accent-color);
}

/* --- FORMULARIO DE CONTACTO --- */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    background-color: var(--bg-card);
    border: 1px solid #333;
    padding: 1rem;
    color: var(--text-color);
    border-radius: 5px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.logo img {
    display: block; /* Elimina espacios extraños debajo de la imagen */
    max-width: 100%;
}

/* --- SECCIÓN TRAYECTORIA --- */

/* Estadísticas (Los números grandes) */
.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-bottom: 4rem;
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenido dividido en 2 columnas */
.trayectoria-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .trayectoria-content { grid-template-columns: 1fr; } /* En móvil se pone uno bajo otro */
    .stats-grid { flex-direction: column; gap: 2rem; }
}

/* Nube de Tags (Los clientes) */
.tags-container {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen a la siguiente línea si no caben */
    gap: 10px;
    margin-top: 1rem;
}

.tag {
    background-color: #2A2A2A;
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #444;
    transition: 0.3s;
}

.tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(43, 106, 188, 0.1);
    cursor: default;
}

/* Lista de detalles */
.lista-detalles {
    list-style: none;
    padding: 0;
}

.lista-detalles li {
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.lista-detalles strong {
    color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    background-color: #111; /* Casi negro, diferente al fondo principal */
    color: #bbb;
    padding: 3rem 0;
    border-top: 3px solid var(--primary-color);
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Iconos Sociales Grandes */
.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--white);
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px); /* Pequeño salto al pasar el mouse */
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000; /* Asegura que flote sobre todo lo demás */
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128C7E; /* Un verde más oscuro al pasar el mouse */
    transform: scale(1.1); /* Efecto de "latido" o crecimiento */
    color: #fff;
}

/* Ocultar el Honeypot visualmente pero mantenerlo en el código */
.input-trampa {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* DISEÑO TIPO FEED (Sin imágenes) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.news-card {
    background: #1e1e1e; /* Un poco más oscuro para contraste */
    border: 1px solid #333;
    border-left: 5px solid #2B6ABC; /* EL TOQUE DE COLOR */
    border-radius: 4px; /* Bordes menos redondos, más técnicos */
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card:hover {
    transform: translateY(-5px);
    background: #252526;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.news-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Enlace de "Leer más" si viene de externo */
.news-link {
    color: #2B6ABC;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}

.news-link:hover {
    text-decoration: underline;
}

/* --- ESTILOS DE LA GALERÍA DE VIDEOS --- */

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

.video-card {
    background: #252526;
    border-radius: 8px;
    overflow: hidden; /* Para que el video no se salga de las esquinas */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

/* Truco para videos responsivos (Ratio 16:9 perfecto) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 3px solid #2B6ABC; /* Línea corporativa */
}

.video-card h3 {
    padding: 15px 15px 5px 15px;
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.video-card p {
    padding: 0 15px 15px 15px;
    color: #aaa;
    font-size: 0.9rem;
}

/* =========================================
   SECCIÓN PRODUCTOS / TELEMETRYHUB
   ========================================= */
.producto-card {
    position: relative;
    background: linear-gradient(135deg, #1a2540 0%, #252526 100%);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 8px 32px rgba(43, 106, 188, 0.15);
}

.producto-badge {
    position: absolute;
    top: -14px;
    left: 40px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
}

.producto-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.producto-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.producto-nombre {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 0 4px 0;
}

.producto-tagline {
    color: var(--accent-color);
    font-size: 1rem;
    margin: 0;
}

.producto-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

/* Compatibilidad middleware */
.prod-compat {
    margin: 16px 0 20px;
}

.prod-compat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.prod-compat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.prod-tag {
    background: rgba(43, 106, 188, 0.15);
    border: 1px solid rgba(43, 106, 188, 0.4);
    color: var(--text-color);
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.prod-tag-more {
    background: rgba(43, 106, 188, 0.25);
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

.producto-features {
    list-style: none;
    padding: 0;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.producto-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.producto-features li i {
    color: var(--accent-color);
    flex-shrink: 0;
}

.producto-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 210px;
}

.producto-estado {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4CAF50;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.estado-dot {
    width: 9px;
    height: 9px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 6px #4CAF50;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 6px #4CAF50; }
    50%       { box-shadow: 0 0 14px #4CAF50; }
}

.producto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
}

/* Botón outline SIN conflicto con .btn */
.producto-btn-outline {
    display: block;
    text-align: center;
    padding: 11px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

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

/* Botón ghost (link secundario) */
.producto-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    padding: 9px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border: 1px solid #444;
    background: transparent;
    border-radius: 5px;
    transition: color 0.3s, border-color 0.3s;
}

.producto-btn-ghost:hover {
    color: var(--text-color);
    border-color: #666;
}

/* =========================================
   PRICING TABLE
   ========================================= */
.pricing-header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 10px;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.pricing-card--featured {
    border-color: var(--accent-color);
    background: linear-gradient(160deg, #1a2540 0%, #1e1e1e 100%);
    box-shadow: 0 8px 32px rgba(43, 106, 188, 0.2);
}

.pricing-recomendado {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.pricing-price {
    margin-bottom: 24px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.precio-valor {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.precio-custom {
    font-size: 2rem;
}

.precio-periodo {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.pricing-features li i {
    color: #2ecc71;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-onboarding {
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid #333;
    padding-top: 12px;
    margin-bottom: 16px;
    font-style: italic;
}

.pricing-btn-primary {
    display: block;
    text-align: center;
    padding: 13px 20px;
    background: #2ecc71;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background 0.3s;
    margin-top: auto;
}

.pricing-btn-primary:hover { background: #27ae60; color: white; }

.pricing-btn-outline {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #444;
    border-radius: 6px;
    transition: border-color 0.3s, color 0.3s;
    margin-top: auto;
}

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

@media (max-width: 768px) {
    .producto-grid {
        grid-template-columns: 1fr;
    }
    .producto-cta {
        min-width: auto;
    }
    .producto-card {
        padding: 30px 20px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card--featured {
        order: -1;
    }
}

/* =========================================
   MENÚ HAMBURGUESA (Mobile)
   ========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animación: X al abrir */
.hamburger.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.abierto span:nth-child(2) { opacity: 0; }
.hamburger.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(28, 28, 28, 0.98);
        border-top: 1px solid #333;
        padding: 10px 0 20px;
    }

    .nav-links.abierto {
        display: flex;
    }

    .nav-links li {
        padding: 12px 2rem;
        border-bottom: 1px solid #2a2a2a;
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-left: 0 !important;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    /* Hero responsive */
    .hero-section h1 {
        font-size: 2rem;
    }

    .perfil-grid {
        flex-direction: column;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }

    .trayectoria-content {
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}