/* ==========================================================================
   ESTILOS HIOPOS - VICON SISTEMAS (RESPONSIVO COMPACTO)
   ========================================================================== */

:root {
    --hio-blue: #008006;
    --hio-green: #008006;
    --hio-dark: #2d3436;
    --hio-light: #f4f7f6;
    --hio-gradient: linear-gradient(135deg, #02a80a 0%, #036624 100%);
    --hio-transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET Y BASE --- */
.hio-page {
    font-family: 'Plus Jakarta Sans', sans-serif; /* Corrige error tipográfico original */
    color: var(--hio-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.hio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- ANIMACIÓN SUAVIZADA --- */
.hio-floating {
    animation: hioFloat 4s ease-in-out infinite;
}

@keyframes hioFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); } /* Suavizado para que no salte en pantallas móviles */
}

/* ==========================================================================
   HERO SECTION (ALTURAS Y BOTONES CONTROLADOS)
   ========================================================================== */
.hio-hero {
    padding: 40px 0; /* Compactado para evitar vacíos en smartphone */
    background: #fff;
    overflow: hidden;
}

.hio-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Una sola columna por defecto (Mobile-First) */
    gap: 30px;
    align-items: center;
}

.hio-badge {
    background: rgba(0, 128, 6, 0.1); /* Sincronizado con tu tono verde/azul corporativo */
    color: var(--hio-blue);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
}

.hio-hero h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 16px;
}

.hio-hero h1 span { 
    color: var(--hio-blue); 
}

.hio-hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #636e72;
    margin-top: 0;
    margin-bottom: 24px;
}

.hio-hero-btns {
    display: flex;
    flex-direction: column; /* Apilados verticalmente en móviles */
    gap: 12px;
}

.hio-btn-primary,
.hio-btn-secondary {
    padding: 16px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s var(--hio-transition);
    box-sizing: border-box;
    width: 100%; /* Ocupan todo el ancho de pantalla táctil */
}

.hio-btn-primary {
    background: var(--hio-blue);
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 128, 6, 0.15);
}

.hio-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 128, 6, 0.25);
}

.hio-btn-secondary {
    border: 2px solid #dfe6e9;
    color: var(--hio-dark);
    background: transparent;
}

.hio-btn-secondary:hover {
    background: #f8fafc;
    border-color: #b2bec3;
    transform: translateY(-2px);
}

.hio-hero-visual {
    width: 100%;
    max-width: 450px;
    margin: 10px auto 0;
}

.hio-hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   INFO GRID (BLOQUES INTERMEDIOS COHESIONADOS)
   ========================================================================== */
.hio-info { 
    padding: 50px 0; /* Eliminado el exceso de espacio */
}

.hio-info-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 35px; 
    align-items: center; 
}

.hio-info-content {
    text-align: center;
}

.hio-info-content h2 { 
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
    margin-top: 0;
    margin-bottom: 16px; 
    font-weight: 800; 
    line-height: 1.2;
}

.hio-info-content h2 span { 
    color: var(--hio-green); 
}

.hio-features-list { 
    margin-top: 20px; 
    display: inline-block;
    text-align: left;
}

.hio-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 14px; 
    font-weight: 600; 
    font-size: 0.95rem;
}

.hio-item i { 
    color: var(--hio-blue); 
    font-size: 1.2rem; 
}

.hio-info-img {
    width: 100%;
}

.hio-info-img img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ==========================================================================
   ECOSYSTEM CARDS (REJILLA AUTOMÁTICA ADAPTATIVA)
   ========================================================================== */
.hio-ecosystem { 
    padding: 50px 0; 
}

.hio-section-title { 
    text-align: center; 
    margin-bottom: 35px; 
}

.hio-section-title h2 { 
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
    font-weight: 800; 
    margin: 0;
}

.hio-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Evita deformaciones axiales */
    gap: 20px;
}

.hio-card {
    padding: 35px 24px; /* Relleno interior ajustado y cómodo */
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eaeaea;
    text-align: center;
    transition: all 0.3s var(--hio-transition);
    box-sizing: border-box;
}

.hio-card:hover {
    border-color: var(--hio-blue);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}

.hio-card-icon {
    width: 60px;
    height: 60px;
    background: var(--hio-light);
    color: var(--hio-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.hio-card h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.hio-card p {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CALL TO ACTION (CAJA GLOBAL REDUCIDA EN MÓVILES)
   ========================================================================== */
.hio-cta { 
    padding: 30px 0; 
}

.hio-cta-wrapper {
    background: var(--hio-gradient);
    padding: 45px 20px; /* Reducción drástica para evitar scrolling artificial */
    border-radius: 24px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.hio-cta-wrapper h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 800;
}

.hio-cta-wrapper p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 auto;
    max-width: 550px;
    line-height: 1.5;
}

.hio-btn-white {
    background: #fff;
    color: var(--hio-blue);
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    margin-top: 24px;
    transition: all 0.3s ease;
    width: 100%; /* Botón completo para pulgares en smartphone */
    max-width: 280px;
    box-sizing: border-box;
}

.hio-btn-white:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ==========================================================================
   MEDIA QUERIES: OPTIMIZACIÓN PANTALLAS MEDIANAS (TABLETS DESDE 600px)
   ========================================================================== */
@media (min-width: 600px) {
    .hio-hero-btns {
        flex-direction: row; /* Botones paralelos */
        justify-content: center;
    }

    .hio-btn-primary, 
    .hio-btn-secondary,
    .hio-btn-white {
        width: auto; /* Desactiva el ancho completo táctil */
    }

    .hio-cta-wrapper {
        padding: 60px 40px;
    }
}

/* ==========================================================================
   MEDIA QUERIES: OPTIMIZACIÓN ESCRITORIO (ORDENADORES DESDE 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .hio-hero {
        padding: 90px 0;
    }

    .hio-hero-wrapper {
        grid-template-columns: 1.1fr 0.9fr; /* Diseño equilibrado de dos columnas */
        gap: 50px;
        text-align: left;
    }

    .hio-hero-btns {
        justify-content: flex-start;
    }

    .hio-hero-visual {
        max-width: 100%;
        margin: 0;
    }

    .hio-hero-visual img {
        width: 120%; /* Mantiene el efecto original de desborde premium lateral */
    }

    .hio-info { 
        padding: 100px 0; 
    }

    .hio-info-grid { 
        grid-template-columns: 1fr 1.2fr; 
        gap: 80px; 
    }

    .hio-info-content {
        text-align: left;
    }

    .hio-ecosystem { 
        padding: 100px 0; 
    }

    .hio-section-title { 
        margin-bottom: 60px; 
    }

    .hio-grid-cards {
        gap: 30px;
    }

    .hio-card {
        padding: 50px 30px;
    }

    .hio-cta-wrapper {
        padding: 80px;
        border-radius: 40px;
    }
}