/* ============================================================
   Servicios Page — Styles
   ============================================================ */

/* --- Page Hero --- */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.88) 60%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
}

.page-hero .hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.page-hero .hero-tag {
    margin-bottom: 20px;
}

/* --- Service Navigation --- */
.service-nav {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.service-nav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.service-nav-inner {
    display: flex;
    gap: 4px;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.service-nav-inner::-webkit-scrollbar {
    display: none;
}

.service-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.service-nav-item i {
    font-size: 0.75rem;
}

.service-nav-item:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.05);
}

.service-nav-item.active {
    color: var(--orange);
    background: var(--orange-glow);
}

/* --- Service Detail Sections --- */
.service-detail {
    padding: 100px 0;
    background: var(--bg);
}

.service-detail.alt {
    background: var(--bg-elevated);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.service-detail-grid.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.service-detail-grid.reverse .service-detail-content {
    order: 2;
}

.service-detail-grid.reverse .service-detail-visual {
    order: 1;
}

/* Number + Icon row */
.service-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.service-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--orange);
    opacity: 0.15;
    line-height: 1;
}

.service-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--orange-glow);
    color: var(--orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Content */
.service-header-row h2 {
    margin: 0;
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.service-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Features list */
.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--orange-border);
    background: rgba(255, 106, 0, 0.03);
}

.feature > i {
    color: var(--orange);
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tags */
.service-tags-lg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.service-tags-lg span {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--orange-glow);
    color: var(--orange);
    border: 1px solid var(--orange-border);
}

/* CTA button arrow */
.service-detail-content .btn i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.service-detail-content .btn:hover i {
    transform: translateX(4px);
}

/* Visual: image + highlight card */
.service-detail-visual {
    position: relative;
}

.service-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.5s ease;
}

.service-detail-image:hover img {
    transform: scale(1.03);
}

/* Highlight card floating over image */
.service-highlight-card {
    position: absolute;
    bottom: -20px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(22, 22, 22, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 10px;
    z-index: 2;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--orange-glow);
    color: var(--orange);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.service-highlight-card strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
}

.service-highlight-card span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Process Section --- */
.process-section {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 106, 0, 0.03) 0%, transparent 50%),
        var(--bg-light);
    border-top: 1px solid var(--border);
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-line {
    position: absolute;
    top: 16px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
}

.process-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.4;
    transition: var(--transition);
}

.process-step:hover .process-dot {
    border-color: var(--orange);
    box-shadow: 0 0 16px var(--orange-glow);
}

.process-step:hover .process-dot::after {
    opacity: 1;
}

.process-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    width: 100%;
}

.process-step:hover .process-card {
    border-color: var(--orange-border);
    box-shadow: 0 4px 24px var(--orange-glow);
    transform: translateY(-4px);
}

.process-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--orange);
    opacity: 0.25;
    margin-bottom: 12px;
    line-height: 1;
    transition: var(--transition);
}

.process-step:hover .process-number {
    opacity: 1;
}

.process-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Services CTA --- */
.services-cta {
    padding: 100px 0;
    background: var(--bg-elevated);
}

.cta-box-v2 {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
    padding: 56px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-box-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box-left {
    position: relative;
}

.cta-box-left h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.cta-box-left p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 460px;
}

/* Reuse CTA button styles from style.css */

.cta-box-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.cta-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cta-mini-card:hover {
    border-color: var(--orange-border);
    background: rgba(255, 106, 0, 0.04);
    transform: translateX(4px);
}

.cta-mini-card i {
    color: var(--orange);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.cta-mini-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* --- Nav active state --- */
.nav-menu a.active {
    color: var(--orange) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .service-detail-grid,
    .service-detail-grid.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-grid.reverse .service-detail-content,
    .service-detail-grid.reverse .service-detail-visual {
        order: unset;
    }

    .service-detail-image img {
        height: 320px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-line {
        display: none;
    }

    .process-step {
        margin-bottom: 8px;
    }

    .service-detail {
        padding: 72px 0;
    }

    .cta-box-v2 {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .service-detail-image img {
        height: 240px;
    }

    .cta-box-v2 {
        padding: 28px 24px;
    }

    .cta-box-left h2 {
        font-size: 1.4rem;
    }

    .service-detail {
        padding: 56px 0;
    }

    .service-highlight-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
    }

    .service-number {
        font-size: 2rem;
    }

    .service-detail-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .service-nav-item {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .service-nav-inner {
        padding: 8px 0;
    }

    .service-header-row {
        gap: 12px;
    }

    .cta-mini-card {
        gap: 10px;
        padding: 14px 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .service-detail-content .btn {
        text-align: center;
        width: 100%;
    }
}

/* Small mobile */
@media (max-width: 375px) {
    .page-hero {
        padding: 100px 0 50px;
    }

    .page-hero .hero-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .service-nav-item {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .service-detail {
        padding: 48px 0;
    }

    .service-detail-content h2 {
        font-size: 1.5rem;
    }

    .service-lead {
        font-size: 0.95rem;
    }

    .service-number {
        font-size: 1.6rem;
    }

    .service-detail-image img {
        height: 180px;
    }

    .feature {
        padding: 10px;
        gap: 8px;
    }

    .feature h4 {
        font-size: 0.8rem;
    }

    .feature p {
        font-size: 0.75rem;
    }

    .service-tags-lg span {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .process-section {
        padding: 48px 0;
    }

    .process-card {
        padding: 16px 12px;
    }

    .process-dot {
        width: 28px;
        height: 28px;
        margin-bottom: 16px;
    }

    .process-dot::after {
        width: 8px;
        height: 8px;
    }

    .process-number {
        font-size: 1.5rem;
    }

    .process-step h3 {
        font-size: 0.9rem;
    }

    .process-step p {
        font-size: 0.75rem;
    }

    .service-highlight-card {
        margin-top: 12px;
        padding: 14px 16px;
    }

    .service-tags-lg {
        gap: 6px;
    }

    .service-tags-lg span {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .cta-box-v2 {
        padding: 20px 16px;
    }

    .cta-box-left h2 {
        font-size: 1.1rem;
    }

    .cta-box-left p {
        font-size: 0.85rem;
    }

    .cta-buttons {
        gap: 10px;
    }

    .btn-cta-primary,
    .btn-cta-outline {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .cta-mini-card {
        padding: 10px 12px;
        gap: 6px;
    }

    .cta-mini-card span {
        font-size: 0.75rem;
    }
}
