/* ============================================
   APLICACIONES.CSS — Llaqta Ingenieros SAC
   ============================================ */

/* ─── 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/aplicaciones.jpg') center / cover no-repeat;
    background-color: var(--negro);
    display: flex;
    align-items: flex-end;
    padding: 0 5% 3rem;
    overflow: hidden;
}

.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%);
}

.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); }

/* ─── SECCIÓN PRINCIPAL ─── */
.apl-seccion {
    padding: 90px 0 100px;
}

/* ─── INTRO ─── */
.apl-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.apl-intro h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 2px;
    color: var(--negro);
    margin: 12px 0 16px;
    line-height: 1.1;
}

.apl-intro p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    font-weight: 400;
}

/* ─── GRID DE CARDS ─── */
.apl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ─── CARD ─── */
.apl-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.apl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Contenedor imagen */
.apl-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a17 0%, #2d5a27 100%);
}

.apl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.88) saturate(0.9);
}

.apl-card:hover .apl-card-img img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1);
}

/* Overlay con tag */
.apl-card-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.apl-card-tag {
    display: inline-block;
    background: var(--amarillo, #f2b705);
    color: var(--negro, #111);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

/* Cuerpo card */
.apl-card-body {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.apl-card-body::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--verde, #2d5a27), transparent);
    border-radius: 2px;
}

.apl-card-body h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.05rem;
    letter-spacing: 1px;
    color: var(--negro, #111);
    margin: 0;
    line-height: 1.2;
}

.apl-card-body p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .apl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .hero-banner { height: 240px; padding-bottom: 2rem; }
    .apl-seccion { padding: 60px 0 70px; }

    .apl-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .apl-intro {
        margin-bottom: 40px;
    }
}