/* =============================================
   SERVICE DETAIL PAGES
   ============================================= */

/* --- Hero Section --- */
.service-detail-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.service-detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

.service-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,208,132,0.25) 100%);
}

.service-detail-hero .container {
    position: relative;
    z-index: 2;
}

.service-detail-hero-content {
    max-width: 700px;
    padding: 80px 0 60px;
}

.service-detail-hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.service-detail-hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Hero badge */
.service-detail-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,208,132,0.2);
    border: 1px solid rgba(0,208,132,0.5);
    color: #00d084;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

/* Hero actions */
.service-detail-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--border-radius-lg, 0.75rem);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-gradient-green {
    background: linear-gradient(135deg, #00d084 0%, #00b876 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius-lg, 0.75rem);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,208,132,0.3);
}

.btn-gradient-green:hover {
    background: linear-gradient(135deg, #00b876 0%, #009a63 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,208,132,0.4);
    color: #fff;
}

/* Breadcrumb light */
.breadcrumb-light {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.88rem;
}

.breadcrumb-light a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-light a:hover {
    color: #00d084;
}

.breadcrumb-light span {
    color: rgba(255,255,255,0.5);
}

.breadcrumb-light span:last-child {
    color: rgba(255,255,255,0.9);
}

/* --- Stats Bar --- */
.service-detail-stats {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 3;
    margin-top: -30px;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--border-radius-xl, 1rem);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.stat-item-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 24px;
    border-right: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.stat-item-bar:last-child {
    border-right: none;
}

.stat-item-bar:hover {
    background: #f0fdf4;
}

.stat-item-bar > i {
    font-size: 1.6rem;
    color: #00d084;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,208,132,0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-item-bar div {
    display: flex;
    flex-direction: column;
}

.stat-item-bar strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
}

.stat-item-bar span {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 2px;
}

/* --- Service Detail Section --- */
.service-detail-section {
    padding: 60px 0;
}

.service-detail-section .section-description {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.bg-light {
    background: #f9fafb;
}

/* --- Service Detail Cards --- */
.service-detail-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sd-card {
    background: #fff;
    border-radius: var(--border-radius-xl, 1rem);
    padding: 32px 28px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d084, #00b876);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sd-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border-color: transparent;
}

.sd-card:hover::before {
    opacity: 1;
}

.sd-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0,208,132,0.12) 0%, rgba(0,184,118,0.08) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #00d084;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.sd-card:hover .sd-card-icon {
    background: linear-gradient(135deg, #00d084, #00b876);
    color: #fff;
    transform: scale(1.08);
}

.sd-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.sd-card p {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.65;
}

/* --- Process Steps --- */
.service-process {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    max-width: 220px;
    flex: 1;
    padding: 0 12px;
}

.process-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #00d084, #00b876);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(0,208,132,0.3);
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
}

.process-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    color: #d1d5db;
    font-size: 1rem;
}

/* --- Brands Section --- */
.service-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.service-brands img {
    height: 40px;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.service-brands img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.service-brands span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #9ca3af;
    font-weight: 600;
    transition: color 0.3s;
}

.service-brands span i {
    font-size: 2rem;
    color: #9ca3af;
    transition: color 0.3s;
}

.service-brands span:hover {
    color: #111;
}

.service-brands span:hover i {
    color: #00d084;
}

/* --- CTA Section --- */
.service-detail-cta {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.service-detail-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,208,132,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.sd-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.sd-cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.sd-cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.sd-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Pricing Grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border-radius: var(--border-radius-xl, 1rem);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.pricing-featured {
    border-color: #00d084;
    box-shadow: 0 8px 30px rgba(0,208,132,0.15);
    transform: scale(1.04);
}

.pricing-featured:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,208,132,0.2);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: linear-gradient(135deg, #00d084, #00b876);
    color: #fff;
    padding: 6px 16px;
    border-radius: 0 0 10px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    padding: 32px 28px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 0.95rem;
    color: #6b7280;
}

.pricing-price strong {
    font-size: 2rem;
    font-weight: 800;
    color: #00d084;
    display: block;
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    padding: 24px 28px 32px;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.92rem;
    color: #374151;
}

.pricing-features li i {
    color: #00d084;
    font-size: 0.85rem;
    width: 20px;
    flex-shrink: 0;
}

/* --- Technology Grid (Desarrollo Web) --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--border-radius-xl, 1rem);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #00d084;
}

.tech-item i {
    font-size: 2.2rem;
    color: #6b7280;
    transition: color 0.3s;
}

.tech-item:hover i {
    color: #00d084;
}

.tech-item span {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

/* --- Responsive: Service Detail Pages --- */
@media (max-width: 1024px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-featured {
        transform: scale(1);
    }

    .pricing-featured:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    .service-detail-hero-content {
        padding: 60px 0 40px;
    }

    .service-detail-hero-content h1 {
        font-size: 2rem;
    }

    .service-detail-hero-actions {
        flex-direction: column;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item-bar {
        padding: 18px 16px;
    }

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

    .service-process {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .process-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .process-step {
        max-width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

    .service-brands {
        gap: 24px;
    }

    .sd-cta-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item-bar {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .stat-item-bar:last-child {
        border-bottom: none;
    }

    .service-detail-hero-content h1 {
        font-size: 1.7rem;
    }

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