.active-link {
    color: var(--dorado) !important;
}

.active-link::after {
    width: 100% !important;
}

/* ===== HERO SERVICIOS / PROYECTOS ===== */

.services-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding-top: 88px;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.72)),
        url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(178, 148, 94, 0.09), transparent 60%);
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.services-hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.services-hero-content p:last-child {
    max-width: 760px;
    margin: 0 auto;
    color: var(--gris-texto);
    font-size: 1.05rem;
}

/* ===== PÁGINA DE SERVICIOS ===== */

.services-page {
    background: linear-gradient(180deg, transparent, rgba(29, 66, 51, 0.06));
}

.service-detail {
    display: grid;
    grid-template-columns: 90px 1.3fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(178, 148, 94, 0.12);
}

.service-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--dorado);
    opacity: 0.9;
    align-self: start;
    padding-top: 8px;
}

.service-content h2 {
    color: var(--dorado);
    margin-bottom: 14px;
    font-size: 2rem;
}

.service-content p {
    color: var(--gris-texto);
    margin-bottom: 18px;
    max-width: 900px;
    line-height: 1.7;
}

.service-content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px 24px;
    list-style: none;
    padding: 0;
}

.service-content li {
    position: relative;
    color: var(--blanco);
    padding-left: 18px;
}

.service-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dorado);
}

.service-image {
    width: 100%;
    max-width: 100%;
}

.service-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(178, 148, 94, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0.95;
}

.service-detail:hover .service-image img {
    transform: scale(1.02);
    opacity: 1;
}

/* ===== CTA ===== */

.services-cta-box {
    background: linear-gradient(180deg, rgba(0, 46, 28, 0.94), rgba(14, 22, 18, 0.96));
    border: 1px solid rgba(178, 148, 94, 0.18);
    border-top: 4px solid var(--dorado);
    border-radius: 22px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.services-cta-box h2 {
    margin-bottom: 16px;
    color: var(--dorado);
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.services-cta-box p {
    color: var(--gris-texto);
    max-width: 760px;
    margin: 0 auto 26px;
}

/* ===== PORTAFOLIO ===== */

.portfolio-page {
    background: linear-gradient(180deg, transparent, rgba(29, 66, 51, 0.04));
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--dorado);
    background: transparent;
    color: var(--dorado);
    cursor: pointer;
    border-radius: 30px;
    font-size: 0.8rem;
    transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--dorado);
    color: black;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 100%;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    border: 1px solid rgba(178, 148, 94, 0.12);
    max-width: 100%;
}

.portfolio-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.3s ease;
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: var(--dorado);
    font-size: 0.8rem;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* ===== TABLET ===== */

@media (max-width: 992px) {
    .service-detail {
        grid-template-columns: 70px 1fr;
        align-items: start;
    }

    .service-image {
        grid-column: 2 / 3;
    }

    .service-image img {
        height: 280px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .services-hero {
        min-height: 56vh;
        padding-top: 76px;
        background-position: center center;
        background-size: cover;
    }

    .services-hero-content {
        padding: 0 8px;
    }

    .services-hero-content h1 {
        font-size: 2rem;
        line-height: 1.08;
        word-break: break-word;
    }

    .services-hero-content p:last-child {
        max-width: 100%;
        padding: 0 4px;
        font-size: 1rem;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 30px 0;
    }

    .service-number {
        font-size: 1.5rem;
        padding-top: 0;
    }

    .service-content h2 {
        font-size: 1.6rem;
    }

    .service-content ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-image {
        order: 3;
    }

    .service-image img {
        height: 240px;
    }

    .portfolio-filters {
        padding: 0 4px;
        margin-bottom: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item img {
        height: 280px;
    }

    .services-cta-box {
        padding: 36px 20px;
    }
}

/* ===== SMALL MOBILE ===== */

@media (max-width: 480px) {
    .services-hero {
        min-height: 52vh;
    }

    .services-hero-content h1 {
        font-size: 1.8rem;
    }

    .service-content h2 {
        font-size: 1.45rem;
    }

    .service-image img,
    .portfolio-item img {
        height: 240px;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }
}