/* RESET & BASE */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Ajustado al alto del header */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HEADER STICKY & RESPONSIVE */
.header-xorcom {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.logo img { 
    height: 45px; 
    width: auto;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #003B7F;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu { display: flex; gap: 20px; align-items: center; }
.menu a { text-decoration: none; color: #003B7F; font-weight: 600; transition: 0.3s; }
.menu a:hover { color: #ff7a00; }

.cta-menu {
    background: #ff7a00;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
}

/* GRIDS UNIVERSALES */
.hero-container, .soluciones-grid, .porque-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    gap: 40px;
    padding: 0 20px;
}

/* HERO OPTIMIZADO PARA LCP */
.hero { padding: 60px 0; }
.hero-container { grid-template-columns: 1fr 1fr; align-items: center; }
.hero-text h1 { font-size: 42px; color: #003B7F; line-height: 1.2; margin-bottom: 20px; }
.hero-image img { 
    width: 100%; 
    max-width: 550px; 
    border-radius: 10px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
}

.btn-primary { background: #ff7a00; color: white; border: 2px solid #ff7a00; }
.btn-secondary { border: 2px solid #003B7F; color: #003B7F; margin-left: 10px; }
.btn-primary:hover { background: #e66e00; }

/* SECCIONES NUEVAS */
.problema { border-left: 8px solid #ff7a00; background: #fff; margin: 40px 0; }
.container-small { max-width: 800px; margin: auto; text-align: center; padding: 60px 20px; }
.problema h2 { color: #d32f2f; font-size: 32px; }

.solucion-visual { background: #f4f6ff; padding: 80px 0; }

.soluciones { padding: 80px 0; text-align: center; }
.soluciones-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.solucion-card, .beneficio {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
.solucion-card:hover, .beneficio:hover { transform: translateY(-10px); }

.prueba-social { background: #f8f8f8; padding: 60px 0; text-align: center; }
.clientes-logos { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.clientes-logos img { height: 40px; filter: grayscale(100%); opacity: 0.6; }

.numeros { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.numero h3 { font-size: 40px; color: #ff7a00; margin: 0; }

.garantia { background: #003B7F; color: white; padding: 60px 0; text-align: center; }

.cta-final { background: #f4f6ff; padding: 80px 0; text-align: center; }

.cta-demo { background: #003B7F; color: white; padding: 80px 20px; text-align: center; }
.form-demo { display: flex; gap: 15px; justify-content: center; max-width: 800px; margin: 20px auto 0; }
.form-demo input { padding: 12px; border-radius: 5px; border: none; flex: 1; min-width: 200px; }
.form-demo button { background: #ff7a00; color: white; padding: 12px 25px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; z-index: 1000; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 60px; }

/* MOBILE OPTIMIZATION */
@media (max-width: 900px) {
    body { padding-top: 80px; }
    
    .menu-toggle { display: flex; }

    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        gap: 30px;
        z-index: 999;
    }

    .menu.active { left: 0; }

    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 30px; }
    .hero-image { order: -1; margin-bottom: 20px; }
    
    .form-demo { flex-direction: column; padding: 0 20px; }
    .btn-secondary { margin-left: 0; margin-top: 10px; width: 100%; }
    .btn-primary { width: 100%; }

    /* Animación Hamburguesa */
    .menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}