/* ==========================================================================
   VilaTec 2.0 — CSS de la Página Hub de Sistemas y Soporte IT
   Showroom interactivo con rejilla asimétrica 3+2 y estética glassmorphic premium
   ========================================================================== */

#sistemas-main-page {
    background-color: #0b1120; /* Slate 900 */
    color: #f3f4f6;
    overflow-x: hidden;
    position: relative;
}

/* ─── Hero Hub Section ────────────────────────────────────── */
.sys-hero {
    position: relative;
    padding: 8rem 0 3rem;
    min-height: auto;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    overflow: hidden; /* Evita que los globos de luz (glow-blobs) causen scroll extra o doble scrollbar */
}

.sys-hero__header {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto 2.5rem;
}

.sys-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #60a5fa;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.sys-hero__title {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.sys-hero__highlight-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sys-hero__highlight-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sys-hero__desc {
    color: #9ca3af;
    line-height: 1.65;
    max-width: 44rem;
    margin: 0 auto;
}

/* ─── Showroom Grid (Asimétrica 3+2) ───────────────────────── */
.sys-showroom-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.25rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

/* Card base */
.sys-show-card {
    position: relative;
    height: 380px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(14, 22, 41, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    text-decoration: none;
}

/* Row 1: 3 cards (span 2 each) */
.sys-show-card--row1 {
    grid-column: span 2;
}

/* Row 2: 2 cards (span 3 each) */
.sys-show-card--row2 {
    grid-column: span 3;
}

.sys-show-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease, filter 0.5s ease;
    opacity: 0.72; /* Opacidad base incrementada para dar mucha más luz y visibilidad a la foto */
    filter: saturate(0.85) contrast(1.05);
}

.sys-show-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 15%, rgba(11, 17, 32, 0.45) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.sys-show-card__content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
}

.sys-show-card__icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(8, 14, 28, 0.88); /* Fondo ultra-oscuro para contraste impecable */
    border: 1.5px solid rgba(59, 130, 246, 0.45); /* Borde azul un poco más opaco */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.sys-show-card__icon-wrapper span {
    font-size: 1.5rem;
}

.sys-show-card__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.sys-show-card__desc {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.4s ease;
}

/* Hover effects */
.sys-show-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(59, 130, 246, 0.1), inset 0 0 20px rgba(59, 130, 246, 0.03);
}

.sys-show-card:hover .sys-show-card__bg {
    transform: scale(1.04);
    opacity: 0.9; /* Imagen prácticamente nítida y brillante */
}

.sys-show-card:hover .sys-show-card__overlay {
    opacity: 0.68; /* Atenúa suavemente la sombra para mostrar la foto con total nitidez */
}

.sys-show-card:hover .sys-show-card__icon-wrapper {
    background: rgba(59, 130, 246, 0.95); /* Color de marca súper opaco */
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transform: rotate(-8deg) scale(1.05);
}

.sys-show-card:hover .sys-show-card__icon-wrapper span.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.sys-show-card:hover .sys-show-card__desc {
    color: #e5e7eb;
}

/* --- Variante Naranja (Soluciones Cloud y MS365) --- */
.sys-show-card--secondary {
    border-color: rgba(245, 158, 11, 0.15); /* Borde naranja/ámbar de base */
}

.sys-show-card--secondary .sys-show-card__icon-wrapper {
    background: rgba(8, 14, 28, 0.88); /* Fondo ultra-oscuro para contraste */
    border-color: rgba(245, 158, 11, 0.45);
    color: #f59e0b; /* Color naranja/ámbar corporativo */
}

/* Hover de la Variante Naranja */
.sys-show-card--secondary:hover {
    border-color: rgba(245, 158, 11, 0.55); /* Borde naranja brillante */
    box-shadow: 0 25px 55px rgba(245, 158, 11, 0.1), inset 0 0 20px rgba(245, 158, 11, 0.03);
}

.sys-show-card--secondary:hover .sys-show-card__icon-wrapper {
    background: rgba(245, 158, 11, 0.95); /* Color de marca súper opaco */
    border-color: #fbbf24;
    color: #ffffff; /* Icono en blanco/brillante para visibilidad absoluta */
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.sys-show-card--secondary:hover .sys-show-card__icon-wrapper span.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.sys-show-card--secondary:hover .sys-show-card__title {
    color: #f59e0b; /* El título cambia a naranja corporativo en hover */
}

/* ─── Responsive Layout ───────────────────────────────────── */

/* Tabletas / Portátiles */
@media (max-width: 1024px) {
    .sys-hero {
        padding: 10rem 0 6rem;
    }

    .sys-showroom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .sys-show-card--row1,
    .sys-show-card--row2 {
        grid-column: span 1;
    }

    /* La última tarjeta de 5 ocupa todo el ancho inferior en tabletas para diseño simétrico */
    .sys-showroom-grid .sys-show-card:last-child {
        grid-column: span 2;
    }

    .sys-show-card {
        height: 330px;
    }
}

/* Móviles en vertical */
@media (max-width: 768px) {
    .sys-showroom-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sys-showroom-grid .sys-show-card:last-child {
        grid-column: span 1;
    }

    .sys-show-card {
        height: 300px;
        border-radius: 20px;
    }

    .sys-show-card__content {
        padding: 2.25rem 1.75rem;
    }
}

/* Blobs decorativos de fondo */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-blob--primary {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.glow-blob--secondary {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}
