/* ============================================
   SERVICIOS.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/servicios.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 SERVICIOS ─── */
.srv-seccion {
    padding: 90px 0 100px;
}

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

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

.srv-intro p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.85;
    font-weight: 400;
}

/* ─── GRID SERVICIOS ─── */
/* 3 cards fila 1, 2 cards centradas en fila 2 */
.srv-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* ─── CARD SERVICIO ─── */
.srv-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.srv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--verde, #2d5a27);
    border-radius: 16px 16px 0 0;
}

.srv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

/* Ícono superior */
.srv-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(45,90,39,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 24px 0;
    color: var(--amarillo, #f2b705);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.srv-card:hover .srv-card-icon {
    background: rgba(242,183,5,0.12);
}

/* Imagen dentro del card */
.srv-card-img-wrap {
    width: calc(100% - 48px);
    margin: 16px 24px 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a3a17 0%, #2d5a27 100%);
    flex-shrink: 0;
}

.srv-card-img-wrap 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);
}

.srv-card:hover .srv-card-img-wrap img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}

/* Cuerpo del card */
.srv-card-body {
    padding: 20px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.srv-card-body p {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ─── SECCIÓN TAMBIÉN TE OFRECEMOS ─── */
.srv-tambien {
    padding: 60px 0 100px;
    position: relative;
}

.srv-tambien-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Imagen */
.srv-tambien-img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
    background: linear-gradient(135deg, #1a3a17 0%, #2d5a27 100%);
}

.srv-tambien-img::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: -14px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--verde, #2d5a27);
    border-radius: 18px;
    pointer-events: none;
    z-index: 0;
}

.srv-tambien-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    filter: brightness(0.92) saturate(0.88);
    transition: transform 0.6s ease, filter 0.5s ease;
    position: relative;
    z-index: 1;
}

.srv-tambien-img:hover img {
    transform: scale(1.03);
    filter: brightness(1) saturate(1);
}

/* Texto derecho */
.srv-tambien-texto h2 {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: 2px;
    color: var(--negro, #111);
    margin: 12px 0 28px;
    line-height: 1.1;
}

/* Lista */
.srv-tambien-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.srv-tambien-lista li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #3a3a3a;
    line-height: 1.6;
    font-weight: 400;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    border: 2.5px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.srv-tambien-lista li:hover {
    border-color: rgba(45,90,39,0.2);
    box-shadow: 0 4px 16px rgba(45,90,39,0.08);
}

.srv-tambien-lista li svg {
    color: var(--verde, #2d5a27);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .srv-card {
        flex: 0 0 calc(50% - 12px);
    }
    .srv-tambien-grid {
        gap: 48px;
    }
}

@media (max-width: 860px) {
    .srv-tambien-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .srv-tambien-img::after { display: none; }
    .srv-card-body p{
        text-align: justify;
    }
}

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

    .srv-card {
        flex: 0 0 100%;
    }

    .srv-intro { margin-bottom: 36px; }
}