/* ==========================================================================
   STARSOFT — Página Servicios
   ========================================================================== */

/* ---- Hero ---- */
.servicios-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--starsoft-white);
}
.servicios-hero__media {
    position: relative;
    width: 100%;
    line-height: 0;
    border-bottom: 3px solid transparent;
    border-image: var(--starsoft-gold-gradient) 1;
}
.servicios-hero__media > picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* Recuadro del video, alineado sobre el espacio en blanco de la imagen de fondo */
.servicios-hero__video {
    position: absolute;
    left: 52.96%;
    top: 14.07%;
    width: 43.32%;
    height: 69.26%;
    border-radius: clamp(6px, 1.4vw, 18px);
    overflow: hidden;
    background: #000;
}
.servicios-hero__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tarjeta de video para la portada mobile: se ubica sobre el espacio en
   blanco de la propia imagen mobile (abajo a la derecha, donde están las
   líneas doradas), con su propia portada (miniatura de YouTube) y un botón
   de play que carga el iframe recién al hacer clic. */
.servicios-hero__video-mobile {
    display: none;
}

.video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    cursor: pointer;
}
.video-facade__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-facade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--starsoft-gold-gradient);
    box-shadow: var(--shadow-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}
.video-facade__play svg {
    transform: translateX(2px);
}
.video-facade:hover .video-facade__play {
    transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 767px) {
    .servicios-hero__video {
        display: none;
    }
    .servicios-hero__video-mobile {
        display: block;
        position: absolute;
        left: 43.67%;
        top: 44.79%;
        width: 52.67%;
        height: 24.54%;
    }
    .servicios-hero__video-mobile .video-facade {
        aspect-ratio: auto;
        height: 100%;
        border-radius: clamp(6px, 2vw, 12px);
    }
}

/* El borde dorado va solo debajo de la portada, no antes del CTA */
.page-servicios .cta-cotizacion {
    border-top: none;
}

/* ---- Nuestros servicios ---- */
.servicios-lista {
    padding: var(--section-padding-y) 0;
}
/* Kicker con líneas: ver estilo estándar en global.css (.kicker--divided) */

.servicios-card {
    height: 100%;
    padding: 2.2rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
}

#soporte,
#actualizaciones {
    scroll-margin-top: 100px;
}

/* Aparición en cascada: cada tarjeta se retrasa un poco más que la anterior */
.servicios-lista .row > div:nth-child(1) .reveal { transition-delay: 0s; }
.servicios-lista .row > div:nth-child(2) .reveal { transition-delay: 0.12s; }
.servicios-lista .row > div:nth-child(3) .reveal { transition-delay: 0.24s; }
.servicios-lista .row > div:nth-child(4) .reveal { transition-delay: 0.36s; }

.servicios-card__icon {
    width: 6.4rem;
    height: 6.4rem;
    border-radius: 50%;
    border: 1.5px solid rgba(217, 149, 40, 0.2);
    background: rgba(217, 149, 40, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: var(--starsoft-gold-dark);
    margin-bottom: 1.4rem;
    transition: transform var(--transition-medium), background var(--transition-medium);
}
.servicios-card__icon img {
    width: 92%;
    height: 92%;
    object-fit: contain;
}
.servicios-card:hover .servicios-card__icon {
    transform: scale(1.08) rotate(-6deg);
    background: rgba(217, 149, 40, 0.18);
}
.servicios-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--starsoft-dark-blue);
}
.servicios-card p {
    font-size: 0.92rem;
    color: var(--starsoft-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.servicios-card .btn-gold {
    width: 100%;
    margin-top: auto;
}

/* Botón sólido dorado (mismo patrón reutilizable de contactenos.css) */
.btn-gold {
    background: var(--starsoft-gold-gradient);
    color: var(--starsoft-white);
    box-shadow: 0 8px 18px rgba(217, 149, 40, 0.28);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(217, 149, 40, 0.36);
}
