﻿/* EGIDRA - Estilos Página Servicios */

/* Page Header */
.page-header {
    position: relative;
    min-height: 50vh;
    background:
        linear-gradient(to right, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.7) 50%, rgba(13, 13, 13, 0.5) 100%),
        url('../../../img/template/bg-industrial.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 193, 7, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.page-header .badge {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.page-header .lead {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.header-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.header-scroll-indicator a {
    text-decoration: none;
}

/* ── Navegación rápida de servicios ──────────────────────────── */
.services-nav {
    background: #fff;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 70px;
    z-index: 100;
    padding: 0;
}

.services-nav .nav-link {
    color: #333;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: var(--transition);
    white-space: nowrap;
}

.services-nav .nav-link:hover,
.services-nav .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.services-nav .nav-link i {
    margin-right: 0.4rem;
}

/* ── Sección individual de servicio ─────────────────────────── */
.service-section {
    padding: 5rem 0;
}

.service-section.bg-alt {
    background: var(--light-bg);
}

.service-section img {
    transition: var(--transition);
}

.service-section img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Tarjeta de sub-servicio */
.sub-service-card {
    border: none;
    border-radius: 0.75rem;
    transition: var(--transition);
    overflow: hidden;
}

.sub-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.sub-service-card:hover {
    transform: translateY(-8px);
}

.sub-service-card:hover::before {
    height: 100%;
}

.sub-service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.sub-service-card:hover .sub-service-icon {
    background: rgba(255, 193, 7, 0.25);
    transform: scale(1.1);
}

/* Badge de categoría */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.12);
    color: #8a6000;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* ── Proceso de trabajo ──────────────────────────────────────── */
.process-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
}

.process-step {
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
}

.process-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition);
}

.process-step:hover .process-number {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.25);
}

.process-connector {
    display: none;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
    background: #fff;
    padding: 5rem 0;
}

.cta-section .card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Animaciones ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .page-header {
        min-height: 40vh;
        background:
            linear-gradient(to right, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.85) 100%),
            url('../../../img/template/bg-industrial.jpg');
        background-size: cover;
        background-position: center;
    }

    .page-header h1 {
        font-size: 2.5rem !important;
    }

    .services-nav {
        overflow-x: auto;
    }

    .services-nav .nav {
        flex-wrap: nowrap;
    }

    .services-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .process-connector {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .page-header {
        min-height: 35vh;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    .page-header .display-3 {
        font-size: 2rem !important;
    }

    .service-section,
    .process-section,
    .cta-section {
        padding: 3rem 0;
    }
}