/* ============================================
   LLAQTA INGENIEROS — tecnologia.css
   Estilos específicos para tecnologia.html
   Hereda variables y base de inicio.css
   ============================================ */

/* ============================================
   1. HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    height: 350px;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.72) 100%),
        url('../img/nosotros.jpg') center / cover no-repeat;
    background-color: var(--negro);
    display: flex;
    align-items: flex-end;
    padding: 0 5% 3rem;
    overflow: hidden;
}

/* Línea decorativa inferior */
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--amarillo) 40%,
            var(--amarillo-hover) 60%,
            transparent 100%);
}

/* Fondo específico para la página de Tecnología */
.tec-hero-banner {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.72) 100%),
        url('../img/tecnologia.jpg') center / cover no-repeat;
    background-color: var(--verde-oscuro);
}

.hero-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.hero-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amarillo);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--fuente-titulo);
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--blanco);
    margin: 0;
}

.hero-title span {
    color: var(--amarillo);
}

/* ============================================
   2. INTRO — ¿CÓMO FUNCIONA?
   ============================================ */
.tec-intro {
    padding: 100px 0;
    background: var(--blanco);
}

.tec-intro-solo {
    max-width: 820px;
    margin: 0 auto;
}

.tec-intro-solo h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--negro);
    line-height: 1.1;
    margin: 12px 0 20px;
}

.tec-intro-solo p {
    font-size: 0.97rem;
    text-align: justify;
    color: var(--plomo);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* Chips de características */
.tec-intro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tec-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--fuente-cuerpo);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--verde);
    background: rgba(45, 90, 39, 0.07);
    border: 1px solid rgba(45, 90, 39, 0.18);
    padding: 6px 14px;
    border-radius: 20px;
}

.tec-chip svg {
    color: var(--verde);
    flex-shrink: 0;
}

/* ============================================
   3. PASOS DE USO
   ============================================ */
.tec-pasos {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--verde-oscuro) 0%, var(--verde) 100%);
    position: relative;
    overflow: hidden;
}

/* Patrón de puntos decorativo */
.tec-pasos::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.tec-pasos-header {
    text-align: center;
    margin-bottom: 64px;
}

.tec-pasos-header h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--blanco);
    margin-top: 12px;
    line-height: 1.1;
}

.tec-pasos-header .highlight {
    color: var(--amarillo);
}

/* Grid de pasos */
.tec-pasos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.tec-paso-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 280px;
    text-align: center;
    position: relative;
    transition: background var(--transicion), transform var(--transicion);
    backdrop-filter: blur(8px);
}

.tec-paso-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.tec-paso-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--fuente-titulo);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--negro);
    background: var(--amarillo);
    padding: 4px 16px;
    border-radius: 20px;
}

.tec-paso-icono {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(242, 183, 5, 0.12);
    border: 2px solid rgba(242, 183, 5, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 20px;
    color: var(--amarillo);
}

.tec-paso-card h3 {
    font-family: var(--fuente-cuerpo);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 12px;
}

.tec-paso-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.tec-paso-conector {
    color: var(--amarillo);
    opacity: 0.5;
    padding: 0 16px;
    flex-shrink: 0;
}

/* ============================================
   4. SECCIÓN VIDEO + ABOUT BOLTSAFE
   ============================================ */
.tec-video-section {
    padding: 100px 0;
    background: var(--gris-claro);
}

/* --- Video preview (heredado de nosotros.css, se asegura aquí) --- */
.nosotros-video-wrap {
    position: relative;
}

.nosotros-video-marco {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16/9;
    background: var(--negro);
}

.nosotros-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nosotros-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: background var(--transicion);
}

.nosotros-video-marco:hover .nosotros-video-overlay {
    background: rgba(0, 0, 0, 0.18);
}

/* Botón de play con animación */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 72px;
    height: 72px;
    background: rgba(242, 183, 5, 0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--negro);
    cursor: pointer;
    transition: background var(--transicion), transform var(--transicion), box-shadow var(--transicion);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(242, 183, 5, 0);
    animation: pulse-ring 2.5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(242, 183, 5, 0.4);
    }
    70% {
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), 0 0 0 18px rgba(242, 183, 5, 0);
    }
    100% {
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(242, 183, 5, 0);
    }
}

.video-play-btn:hover {
    background: var(--amarillo-hover);
    transform: translate(-50%, -50%) scale(1.08);
}

/* Barra de progreso del video preview */
.video-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 16px 10px;
    z-index: 4;
}

.video-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    overflow: hidden;
}

.video-progress-fill {
    height: 100%;
    background: var(--amarillo);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s linear;
}

/* --- Layout About (2 columnas) --- */
.tec-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Columna izquierda: video + pilares */
.tec-about-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Pilares numerados en fila horizontal */
.tec-pilares-fila {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.tec-pilar-num {
    background: var(--blanco);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tec-pilar-num:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.tec-pilar-numero {
    display: inline-block;
    font-family: var(--fuente-titulo);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--amarillo);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 2px;
    position: relative;
}

.tec-pilar-numero::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--verde);
    margin: 6px auto 0;
    border-radius: 1px;
}

.tec-pilar-num strong {
    display: block;
    font-family: var(--fuente-cuerpo);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--negro);
    margin: 8px 0 4px;
    letter-spacing: 0.5px;
}

.tec-pilar-sub {
    font-size: 0.78rem;
    color: var(--gris-medio);
    line-height: 1.5;
    display: block;
}

/* Columna derecha: texto + botón */
.tec-about-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tec-about-right h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--negro);
    line-height: 1.1;
    margin: 12px 0 22px;
}

.tec-about-right p {
    font-size: 0.97rem;
    color: var(--plomo);
    line-height: 1.75;
    margin-bottom: 16px;
}

.tec-about-btn-wrap {
    margin-top: 28px;
}

/* ============================================
   5. BENEFICIOS
   ============================================ */
.tec-beneficios {
    padding: 100px 0;
    background: var(--blanco);
}

.tec-benef-header {
    text-align: center;
    margin-bottom: 64px;
}

.tec-benef-header h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--negro);
    margin-top: 12px;
}

.tec-benef-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tec-benef-card {
    background: var(--gris-claro);
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
    position: relative;
    overflow: hidden;
}

/* Línea superior de color al hover */
.tec-benef-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--verde), var(--amarillo));
    opacity: 0;
    transition: opacity var(--transicion);
}

.tec-benef-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
    border-color: rgba(45, 90, 39, 0.15);
}

.tec-benef-card:hover::before {
    opacity: 1;
}

.tec-benef-icono {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(45, 90, 39, 0.1);
    border: 1px solid rgba(45, 90, 39, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde);
    margin-bottom: 20px;
    transition: background var(--transicion), color var(--transicion);
}

.tec-benef-card:hover .tec-benef-icono {
    background: var(--verde);
    color: var(--blanco);
}

.tec-benef-card h4 {
    font-family: var(--fuente-cuerpo);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 12px;
}

.tec-benef-card p {
    font-size: 0.88rem;
    color: var(--plomo);
    line-height: 1.65;
}

/* ============================================
   6. PRODUCTOS — BOLTSENSE
   (Los estilos .bs-step, .boltsense-header, etc.
   se heredan de inicio.css)
   ============================================ */
.tec-productos {
    padding: 100px 0;
}

/* ============================================
   7. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .tec-about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tec-about-left {
        order: 1;
    }

    .tec-about-right {
        order: 2;
    }

    .tec-benef-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tec-pasos-grid {
        flex-direction: column;
        gap: 32px;
    }

    .tec-paso-conector {
        transform: rotate(90deg);
    }

    .tec-paso-card {
        max-width: 360px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tec-intro,
    .tec-pasos,
    .tec-video-section,
    .tec-beneficios,
    .tec-productos {
        padding: 72px 0;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }

    .tec-benef-grid {
        grid-template-columns: 1fr;
    }

    .tec-intro-chips {
        gap: 8px;
    }

    .tec-chip {
        font-size: 0.75rem;
        padding: 5px 11px;
    }

    .tec-about-grid {
        gap: 36px;
    }
    .tec-intro-solo p{
        text-align: justify;
    }
    .tec-about-right {
        order: inherit;
    }
    .tec-about-right p{
        text-align: justify;
    }
}

@media (max-width: 700px) {
    .tec-pilares-fila {
        grid-template-columns: 1fr;
    }
    .tec-benef-card p {
        text-align: justify;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 300px;
        padding-bottom: 2rem;
    }

    .tec-benef-card {
        padding: 28px 20px;
    }
}