.page-services {
    background: var(--gfc-bg);
    min-height: 100vh;
    padding-top: var(--gfc-space-5);
    padding-bottom: var(--gfc-space-8);
}

/* ---------- Header ---------- */
.page-services-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.98));
    border: 1px solid var(--gfc-border);
    border-radius: var(--gfc-radius-2xl);
    padding: clamp(34px, 4.5vw, 56px) clamp(26px, 3.5vw, 46px);
    box-shadow: var(--gfc-shadow-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--gfc-space-8);
    background-image:
        radial-gradient(circle at 90% 20%, rgba(244, 195, 77, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 10% 80%, rgba(209, 156, 42, 0.06) 0%, transparent 55%);
}

.page-services-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gfc-gold-300), transparent);
}

.page-services-title {
    margin: 0 0 var(--gfc-space-3) 0;
    font-size: clamp(2.3rem, 4.5vw, 3.3rem);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gfc-gold-600), var(--gfc-gold-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-services-lead {
    color: var(--gfc-gray-700);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    max-width: 52rem;
}

/* Header clickable image */
.services-header-media {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: var(--gfc-radius-xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--gfc-transition);
}

.services-header-media:focus-visible {
    outline: 3px solid rgba(209, 156, 42, 0.35);
    outline-offset: 4px;
}

.services-header-image {
    width: clamp(86px, 10vw, 140px);
    height: clamp(86px, 10vw, 140px);
    object-fit: contain;
    border-radius: var(--gfc-radius-xl);
    filter: drop-shadow(0 12px 32px rgba(209, 156, 42, 0.18));
    transition: transform var(--gfc-transition), filter var(--gfc-transition);
}

.services-header-media:hover .services-header-image {
    transform: scale(1.05) rotate(4deg);
    filter: drop-shadow(0 18px 44px rgba(209, 156, 42, 0.26));
}

/* ---------- Lightbox ---------- */
body.no-scroll {
    overflow: hidden;
}

.services-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
}

.services-lightbox.is-open {
    display: block;
}

.services-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.60);
    backdrop-filter: blur(6px);
}

.services-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(920px, 92vw);
    max-height: 84vh;
    margin: 6vh auto 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(232, 181, 50, 0.18);
    border-radius: var(--gfc-radius-2xl);
    box-shadow: var(--gfc-shadow-xl), var(--gfc-shadow-gold);
    padding: clamp(14px, 2vw, 22px);
}

.services-lightbox__img {
    width: 100%;
    height: auto;
    max-height: calc(84vh - 64px);
    object-fit: contain;
    display: block;
    border-radius: var(--gfc-radius-xl);
}

.services-lightbox__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: var(--gfc-shadow-sm);
    cursor: pointer;
    transition: transform var(--gfc-transition);
}

.services-lightbox__close:hover {
    transform: scale(1.05);
}

/* ---------- Service Cards ---------- */
.service-card {
    border: 1px solid var(--gfc-border);
    border-radius: var(--gfc-radius-xl);
    box-shadow: var(--gfc-shadow-sm);
    padding: clamp(22px, 3vw, 32px);
    background: var(--gfc-white);
    transition: transform var(--gfc-transition), box-shadow var(--gfc-transition), border-color var(--gfc-transition);
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gfc-shadow-xl), var(--gfc-shadow-gold);
    border-color: var(--gfc-border-gold);
}

/* Service image */
.service-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--gfc-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(232, 181, 50, 0.16);
    background: linear-gradient(135deg, var(--gfc-gold-50), rgba(255, 255, 255, 0.9));
    margin-bottom: var(--gfc-space-4);
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-title {
    margin: 0 0 var(--gfc-space-3) 0;
    color: var(--gfc-gray-900);
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    line-height: 1.25;
    text-transform: uppercase !important;
}

.service-text {
    color: var(--gfc-gray-700);
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.75;
}

/* ---------- Bottom contact block ---------- */
.services-contact {
    background: var(--gfc-white);
    border: 1px solid var(--gfc-border);
    border-radius: var(--gfc-radius-2xl);
    box-shadow: var(--gfc-shadow-md);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
}

.services-contact__logo {
    width: min(260px, 72vw);
    height: auto;
    margin: 0 auto var(--gfc-space-3) auto;
    display: block;
}

.services-contact__slogan {
    color: var(--gfc-gray-700);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin: 0 auto;
}

.services-contact__meta {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: var(--gfc-gray-700);
}

.services-contact__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.services-contact__sep {
    opacity: 0.55;
}

/* Buttons keep site style */
.page-services .btn-primary {
    background: linear-gradient(135deg, var(--gfc-gold-500), var(--gfc-gold-600));
    border-color: var(--gfc-gold-600);
    color: var(--gfc-gray-900);
    font-weight: 700;
    border-radius: var(--gfc-radius);
    transition: transform var(--gfc-transition), box-shadow var(--gfc-transition), background var(--gfc-transition);
    box-shadow: var(--gfc-shadow-sm);
}

.page-services .btn-primary:hover {
    background: linear-gradient(135deg, var(--gfc-gold-600), var(--gfc-gold-700));
    border-color: var(--gfc-gold-700);
    transform: translateY(-2px);
    box-shadow: var(--gfc-shadow-lg), var(--gfc-shadow-gold);
    color: var(--gfc-black-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-services-header {
        text-align: center;
        padding: 32px 26px;
        margin-bottom: var(--gfc-space-6);
    }

    .page-services-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .services-header-media {
        margin-top: var(--gfc-space-4);
    }

    .services-lightbox__dialog {
        margin-top: 10vh;
    }
}

@media (max-width: 576px) {
    .page-services {
        padding-top: var(--gfc-space-4);
        padding-bottom: var(--gfc-space-6);
    }

    .service-card {
        padding: 22px;
        border-radius: var(--gfc-radius-lg);
    }
}

.services-contact__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.services-contact__link:hover {
    text-decoration: underline;
}

.services-contact__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}


.services-contact__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.services-contact__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.services-contact__link:hover {
    text-decoration: underline;
}

.services-contact__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.services-contact__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.services-contact__link:hover {
    text-decoration: underline;
}


/* =========================================
   FIX: Meta line (Company • Name • Phone • Email)
   Evita saltos feos y bullets colgando
   ========================================= */

.services-contact__meta {
    display: flex;
    flex-wrap: wrap;
    /* permite bajar a otra línea si no cabe */
    justify-content: center;
    /* centrado como el PDF */
    align-items: center;
    gap: 10px 14px;
    /* espacio entre items */
    line-height: 1.4;
    text-align: center;
}

/* Cada item no debe romper palabras raro */
.services-contact__item {
    white-space: nowrap;
    /* mantiene "info@..." junto */
}

/* Bullets como separadores, no se quedan solos */
.services-contact__sep {
    opacity: .45;
    margin: 0 2px;
    white-space: nowrap;
}

/* Si la pantalla es chica, permitimos que SOLO el email baje bien */
@media (max-width: 520px) {
    .services-contact__meta {
        gap: 8px 10px;
    }

    /* Email puede bajar, pero completo */
    .services-contact__item:last-child {
        white-space: normal;
        word-break: break-word;
    }
}

/* Links igual de sobrios */
.services-contact__link {
    color: inherit;
    text-decoration: none;
}

.services-contact__link:hover {
    text-decoration: underline;
}