/* =================================================
   PMO & SUPERVISIÓN TÉCNICA - ESTILO PREMIUM
================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================= HERO ================= */

.area-hero {
    height: 55vh;
    min-height: 380px;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../../images/servicios/ingenieria.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.area-hero-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.area-hero-content p {
    font-size: 1.2rem;
    color: #e6e6e6;
    max-width: 700px;
    margin: auto;
}

/* ================= DESCRIPCIÓN ================= */

.area-descripcion {
    position: relative;
    padding: 80px 20px 120px; /* espacio para la línea */
    background-image:
        linear-gradient(
            rgba(247, 247, 247, 0.74),
            rgba(255, 255, 255, 0.64)
        ),
        url("../../images/fondos/fondo-supervision.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.area-descripcion h2 {
    font-size: 2.3rem;
    color: #06110c;
    margin-bottom: 25px;
    text-align: center;
}

.area-descripcion p {
    max-width: 900px;
    margin: auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #051d0c;
    text-align: center;
}

/* Línea separadora */
.area-descripcion::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(114,112,112,0.15),
        rgba(68,66,66,0.7),
        rgba(114,112,112,0.15)
    );
    border-radius: 2px;
}

/* ================= SERVICIOS ================= */

.area-servicios {
    padding: 120px 20px 80px;
    background-image:
        linear-gradient(
            rgba(247, 247, 247, 0.50),
            rgba(255, 255, 255, 0.58)
        ),
        url("../../images/fondos/fondo-supervision.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.area-servicios h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 50px;
    color: #0f2e1f;
}

/* Lista de servicios */
.servicios-lista {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

.servicios-lista li {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-left: 6px solid #00A651;
    transition: transform .3s ease, box-shadow .3s ease;
}

.servicios-lista li:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* ================= CTA ================= */

.area-cta {
    padding: 128px 20px;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../../images/fondos/fondo-proyecto.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.area-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.area-cta p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.1rem;
    opacity: .95;
}

.btn-cta {
    display: inline-block;
    padding: 14px 38px;
    background: #fff;
    color: #00A651;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,.25);
}
.servicios-lista li {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Iconos técnicos */
.servicios-lista li i {
    font-size: 1.6rem;
    color: #00A651;
    min-width: 32px;
    text-align: center;
}

/* Texto del servicio */
.servicios-lista li span {
    font-size: 1.05rem;
    line-height: 1.4;
}
/* ================= TARJETAS FLIP SERVICIOS ================= */

.servicios-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    perspective: 1200px;
}

/* Contenedor de la tarjeta */
.servicio-card {
    height: 460px;
}

/* Elemento que gira */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

/* Giro al pasar el mouse */
.servicio-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Caras */
.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

/* Cara frontal */
/* Cara frontal */
.card-front {
    pointer-events: none;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;      
    align-items: flex-start;     
    justify-content: flex-end;   
    gap: 6px;                  
    padding: 25px;
    color: #fff;
}


.card-front::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.1)
    );
}

.card-front h3 {
    position: relative;
    z-index: 2;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
}
.card-subtitle {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    opacity: 0.9;
}


/* Cara trasera */
.card-back {
    pointer-events: auto;
    z-index: 5;
    background: #e2f3e8;
    transform: rotateY(180deg);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-back h3 {
    color: #0f2e1f;
    margin-bottom: 15px;
}

.card-back p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botón */
.btn-card {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: #00A651;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,.25);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .servicio-card {
        height: 390px;
    }
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .area-hero-content h1 {
        font-size: 2.5rem;
    }

    .servicios-lista {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .area-hero {
        height: auto;
        padding: 80px 20px;
    }

    .area-hero-content h1 {
        font-size: 2rem;
    }

    .area-descripcion h2,
    .area-servicios h2,
    .area-cta h2 {
        font-size: 1.8rem;
    }

    .area-cta p {
        font-size: 1rem;
    }
}
/* ================= WHATSAPP FLOTANTE PREMIUM ================= */

.whatsapp-float {
    position: fixed;
    width: 64px;
    height: 64px;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25D366, #1ebe5d);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    line-height: 64px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    transition: all 0.35s ease;
    animation: whatsapp-pulse 2.2s infinite;
}

.whatsapp-float i {
    position: relative;
    top: 1px;
}

/* Hover */
.whatsapp-float:hover {
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6);
}

/* Animación pulse */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .whatsapp-float {
        position: fixed !important;
        width: 58px;
        height: 58px;
        font-size: 28px;
        line-height: 58px;
        bottom: 20px;
        right: 20px;
    }
}
