﻿/* =========================================
   SERVICIOS - ESTILO CORPORATIVO PREMIUM
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f7f9;
}

/* HERO */
.servicios-hero {
    position: relative;
    min-height: 380px;
    background: linear-gradient(rgba(6, 59, 70, 0.86), rgba(6, 59, 70, 0.86)), url('../img/imagen2.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    color: white;
    overflow: hidden;
    animation: heroFade 0.9s ease-out both;
}

/* animación limpia y profesional */
@keyframes heroFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* contenido con entrada escalonada suave */
.servicios-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

    .servicios-hero-content span {
        display: inline-block;
        background: rgba(255,255,255,0.13);
        color: white;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-size: 13px;
        padding: 10px 24px;
        border-radius: 40px;
        margin-bottom: 18px;
        backdrop-filter: blur(5px);
        animation: itemUp 0.6s ease-out 0.15s both;
    }

    .servicios-hero-content h1 {
        font-size: 52px;
        line-height: 1.1;
        margin-bottom: 18px;
        color: white;
        text-shadow: 0 6px 20px rgba(0,0,0,0.35);
        animation: itemUp 0.7s ease-out 0.25s both;
    }

    .servicios-hero-content p {
        font-size: 18px;
        line-height: 1.8;
        max-width: 780px;
        margin: auto;
        color: #ecf7fa;
        animation: itemUp 0.8s ease-out 0.35s both;
    }

/* animación principal de texto */
@keyframes itemUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MENÚ DE SERVICIOS */
.menu-servicios {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 80;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

    .menu-servicios a {
        text-decoration: none;
        color: #063b46;
        font-weight: bold;
        padding: 11px 17px;
        border-radius: 40px;
        transition: 0.3s ease;
        border: 1px solid rgba(6,59,70,0.14);
        background: #f8fafb;
        font-size: 14px;
    }

        .menu-servicios a i {
            color: #ff4c1e;
            margin-right: 6px;
        }

        .menu-servicios a:hover {
            background: #ff4c1e;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 10px 22px rgba(255,76,30,0.25);
        }

            .menu-servicios a:hover i {
                color: white;
            }

/* SECCIÓN GENERAL */
.section {
    padding: 65px 40px;
}

/* INTRO */
.intro-servicios {
    max-width: 1050px;
    margin: auto;
    text-align: center;
}

    .intro-servicios span,
    .servicio-info span {
        color: #ff4c1e;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 14px;
    }

    .intro-servicios h2 {
        color: #063b46;
        font-size: 40px;
        margin: 12px 0 28px;
        line-height: 1.25;
        position: relative;
    }

        .intro-servicios h2::after {
            content: "";
            width: 100px;
            height: 5px;
            background: #ff4c1e;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -16px;
            border-radius: 10px;
        }

    .intro-servicios p {
        font-size: 17px;
        line-height: 1.85;
        color: #444;
        text-align: justify;
        margin-bottom: 16px;
    }

/* DETALLE SERVICIOS */
.servicio-detalle {
    max-width: 1180px;
    margin: 34px auto;
    padding: 42px;
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 34px;
    align-items: flex-start;
    background: white;
    border-radius: 26px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
    border-left: 6px solid #ff4c1e;
    scroll-margin-top: 115px;
    transition: 0.35s ease;
    overflow: hidden;
    position: relative;
}

    .servicio-detalle::before {
        content: "";
        position: absolute;
        width: 230px;
        height: 230px;
        background: rgba(6,59,70,0.035);
        border-radius: 50%;
        top: -100px;
        right: -90px;
    }

    .servicio-detalle:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 44px rgba(0,0,0,0.12);
    }

.servicio-alterno {
    background: linear-gradient(135deg, #063b46, #0b5565);
    color: white;
    border-left: none;
    border-right: 6px solid #ff4c1e;
}

    .servicio-alterno::before {
        background: rgba(255,255,255,0.06);
    }

.servicio-icono {
    position: relative;
    z-index: 2;
    width: 118px;
    height: 118px;
    background: #f4f7f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .servicio-icono i {
        font-size: 48px;
        color: #ff4c1e;
    }

.servicio-alterno .servicio-icono {
    background: rgba(255,255,255,0.12);
}

.servicio-info {
    position: relative;
    z-index: 2;
}

    .servicio-info h2 {
        font-size: 34px;
        margin: 10px 0 16px;
        color: #063b46;
        line-height: 1.2;
    }

    .servicio-info h3 {
        color: #063b46;
        font-size: 22px;
        margin: 24px 0 14px;
    }

.servicio-alterno .servicio-info h2,
.servicio-alterno .servicio-info h3 {
    color: white;
}

.servicio-info p {
    color: #444;
    font-size: 16.5px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 18px;
}

.servicio-alterno .servicio-info p {
    color: #e8f4f6;
}

.servicio-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}

.servicio-info li {
    break-inside: avoid;
    margin-bottom: 11px;
    padding-left: 28px;
    position: relative;
    color: #444;
    line-height: 1.55;
    font-size: 15px;
}

.servicio-alterno .servicio-info li {
    color: #f2f2f2;
}

.servicio-info li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff4c1e;
    font-weight: bold;
}

/* CTA */
.cta-servicios {
    margin: 45px 40px 70px;
    background: linear-gradient(135deg, #063b46, #0b5565);
    color: white;
    padding: 42px 50px;
    border-radius: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    border-bottom: 6px solid #ff4c1e;
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

    .cta-servicios h2 {
        font-size: 34px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .cta-servicios p {
        color: #e8f4f6;
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
    }

    .cta-servicios a {
        background: #ff4c1e;
        color: white;
        text-decoration: none;
        padding: 15px 32px;
        border-radius: 40px;
        font-weight: bold;
        white-space: nowrap;
        transition: 0.3s ease;
    }

        .cta-servicios a:hover {
            background: white;
            color: #063b46;
            transform: scale(1.05);
        }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .servicio-detalle {
        margin: 30px 28px;
        grid-template-columns: 120px 1fr;
        padding: 36px;
    }

    .servicio-info ul {
        columns: 2;
    }
}

@media (max-width: 900px) {
    .servicios-hero {
        min-height: 310px;
    }

    .servicios-hero-content h1 {
        font-size: 36px;
    }

    .servicios-hero-content p {
        font-size: 16px;
    }

    .menu-servicios {
        position: static;
        justify-content: center;
        padding: 14px 16px;
    }

        .menu-servicios a {
            font-size: 13px;
            padding: 9px 14px;
        }

    .section {
        padding: 55px 28px;
    }

    .intro-servicios h2 {
        font-size: 30px;
    }

    .servicio-detalle {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 32px 26px;
        text-align: left;
    }

    .servicio-icono {
        margin: auto;
        width: 100px;
        height: 100px;
    }

        .servicio-icono i {
            font-size: 42px;
        }

    .servicio-info span,
    .servicio-info h2 {
        text-align: center;
        display: block;
    }

    .servicio-info h2 {
        font-size: 28px;
    }

    .servicio-info ul {
        columns: 2;
    }

    .cta-servicios {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 35px 24px 60px;
        padding: 34px 28px;
    }

        .cta-servicios p {
            text-align: center;
        }
}

@media (max-width: 600px) {
    .servicios-hero {
        min-height: 260px;
        padding: 38px 18px;
    }

    .servicios-hero-content span {
        font-size: 11px;
        padding: 8px 16px;
    }

    .servicios-hero-content h1 {
        font-size: 27px;
    }

    .servicios-hero-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .menu-servicios {
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 10px;
    }

        .menu-servicios a {
            font-size: 12px;
            padding: 8px 11px;
        }

    .section {
        padding: 42px 18px;
    }

    .intro-servicios h2 {
        font-size: 24px;
    }

    .intro-servicios p,
    .servicio-info p,
    .servicio-info li,
    .cta-servicios p {
        font-size: 14px;
    }

    .servicio-detalle {
        margin: 22px 14px;
        padding: 26px 18px;
        border-left: 4px solid #ff4c1e;
        border-right: none;
        border-radius: 20px;
    }

    .servicio-alterno {
        border-left: 4px solid #ff4c1e;
        border-right: none;
    }

    .servicio-icono {
        width: 86px;
        height: 86px;
    }

        .servicio-icono i {
            font-size: 35px;
        }

    .servicio-info h2 {
        font-size: 23px;
    }

    .servicio-info h3 {
        font-size: 18px;
    }

    .servicio-info ul {
        columns: 1;
    }

    .cta-servicios {
        margin: 30px 16px 50px;
        padding: 28px 20px;
        border-radius: 20px;
    }

        .cta-servicios h2 {
            font-size: 23px;
        }

        .cta-servicios a {
            padding: 12px 22px;
            font-size: 13px;
        }
}
