:root {
    --blue: #008000;
    --dark: #08111f;
    --muted: #64748b;
    --radius: 22px;
    --site-max-width: 1200px;
}

/* ==========================================================================
   MEDIDAS BASE DEL CONTENEDOR (CORREGIDO: CENTRADO AUTOMÁTICO EN CUALQUIER PC)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--site-max-width);
    margin-right: auto;
    margin-left: auto; /* <--- CORREGIDO: Centra el contenido en cualquier pantalla */
    padding-right: 20px;
    padding-left: 20px; /* <--- CORREGIDO: Margen de seguridad para que no toque los bordes */
    box-sizing: border-box;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 88vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.4s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider .overlay {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    /* CORREGIDO: Sintaxis limpia del degradado para evitar textos ilegibles */
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.60) 50%,
        rgba(0,0,0,0.20) 100%
    );
    box-sizing: border-box;
}

.hero-container {
    padding-top: 60px;
}

.hero-content {
    max-width: 700px;
    color: #fff;
    text-align: left;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 25px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-top: 0;
    margin-bottom: 22px;
}

.hero-content h1 span {
    display: block;
    color: #00b300; 
    font-weight: 600;
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* COMPORTAMIENTO DE BOTONES */
.btn-vicon,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.btn-vicon {
    background: var(--blue);
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 128, 0, 0.3);
}

.btn-vicon:hover {
    background: #006600;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 128, 0, 0.45);
}

.btn-secondary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* ==========================================================================
   SECCIÓN SELLO KIT DIGITAL
   ========================================================================== */
.full-width-image {
    margin-top: 60px;
    width: 100%; 
}

.image-container {
    overflow: hidden;
    width: 100%;
}

.image-container img {
    width: 100%;
    max-width: 800px; /* Evita que en monitores gigantes se pixele y rompa */
    height: auto;
    display: block;
    margin: 0 auto; 
}

/* ==========================================================================
   ÁREAS DE ACTUACIÓN (GRID)
   ========================================================================== */
.areas-actuacion {
    padding: 90px 0;
    background: #fff;
    text-align: center;
}

.header-areas h2 {
    color: var(--dark);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.header-areas p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.grid-areas {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas perfectas en PC */
    gap: 24px;
}

.area-item {
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 35px rgba(15,23,42,0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.area-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(15,23,42,0.18);
}

.area-overlay {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 35px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    box-sizing: border-box;
}

.area-mini-icon {
    width: 48px;
    height: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.area-content h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
}

/* ==========================================================================
   SECCIÓN BLOQUE HIOPOS CLOUD
   ========================================================================== */
.hiopos-confianza {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 60px 0;
}

.flex-hiopos {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 70px;
}

.hiopos-text,
.hiopos-gallery {
    flex: 1;
}

.hiopos-text h2 {
    color: var(--dark);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hiopos-text p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 190px);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(15,23,42,0.08);
}

.img-main {
    grid-row: span 2;
}

/* ==========================================================================
   SECCIÓN CONTACTO / SHOWROOM (SOPORTE)
   ========================================================================== */
.soporte-ayuda {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

.soporte-overlay {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.soporte-header {
    max-width: 750px;
    margin: 0 auto 60px;
    text-align: center;
}

.soporte-header h2 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.soporte-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    line-height: 1.6;
}

.soporte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.soporte-item {
    padding: 45px 30px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.soporte-item:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
    background: rgba(255,255,255,0.1);
}

.soporte-item h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
}

.soporte-item p {
    color: rgba(255,255,255,0.78);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE EN PORTÁTILES Y TABLETS (PANTALLAS MEDIANAS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-slider {
        height: 75vh;
        min-height: 550px;
    }

    .grid-areas {
        grid-template-columns: repeat(2, 1fr); /* Cuadrícula limpia de 2 en 2 en tablet */
        gap: 20px;
    }

    .flex-hiopos {
        flex-direction: column;
        text-align: center;
        gap: 45px;
    }

    .hiopos-text {
        max-width: 800px;
    }

    .hiopos-gallery {
        width: 100%;
    }

    .soporte-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas superiores y la restante se reajusta abajo */
    }
    
    .soporte-ayuda {
        background-attachment: scroll !important; /* Desactiva parallax en tablet para ahorrar batería */
    }
}

/* ==========================================================================
   RESPONSIVE STRICT EN SMARTPHONES (TELÉFONOS MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
        min-height: 480px;
    }

    /* Slider adaptado para lectura táctil vertical */
    .hero-slider .overlay {
        background: rgba(0, 0, 0, 0.7); /* Mayor contraste en móviles */
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        padding: 0 10px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column; /* Botones uno encima de otro */
        gap: 12px;
        width: 100%;
    }

    .btn-vicon,
    .btn-secondary {
        width: 100%; 
        padding: 15px;
    }

    .image-container img {
        width: 85%; /* Sello del kit digital más visible en pantallas pequeñas */
    }

    .areas-actuacion {
        padding: 60px 0;
    }

    .grid-areas {
        gap: 16px;
    }

    .area-item {
        height: 200px; /* Reducción de altura proporcional */
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Galería Hiopos en vertical */
        grid-template-rows: auto;
        gap: 15px;
    }

    .img-main {
        grid-row: span 1;
    }

    .gallery-grid img {
        height: 220px;
    }

    .soporte-grid {
        grid-template-columns: 1fr; /* Soporte en una sola columna limpia */
        gap: 16px;
    }

    .soporte-overlay {
        padding: 60px 0;
    }

    .soporte-item {
        padding: 35px 20px;
    }
}