/* ========================================
   SERVICE PAGES — Shared styles (Holo-inspired)
   ======================================== */

/* ---- Service Hero ---- */
.svc-hero {
    padding: 160px 0 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(154,76,255,0.06) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.svc-badge {
    display: inline-block;
    background: var(--purple-bg);
    color: var(--purple);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
    border: 1px solid rgba(154, 76, 255, 0.15);
}

.svc-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 24px;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.svc-hero-sub {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.svc-hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.svc-hero-showcase {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.svc-showcase-item {
    width: 180px;
}

.svc-showcase-item .video-placeholder {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--purple-bg) 0%, #e8deff 100%);
    border: 1px solid rgba(154, 76, 255, 0.1);
}

/* ---- Video grid inside hero ---- */
.svc-hero .video-grid {
    margin-bottom: 24px;
}

.video-grid-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 4px;
    color: var(--gray-700);
    font-weight: 700;
}

.svc-hero .showcase-tabs {
    margin-top: 4px;
    margin-bottom: 0;
    padding-bottom: 16px;
}

/* ---- How It Works (Steps) ---- */
.svc-how {
    padding: 48px 0 80px;
    background: var(--gray-light);
}

.svc-how h2 {
    margin-bottom: 60px;
}

.svc-steps {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.svc-step-line {
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--purple-lighter), var(--purple), var(--purple-lighter));
    border-radius: 2px;
}

.svc-step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    align-items: flex-start;
    position: relative;
}

.svc-step:last-child {
    margin-bottom: 0;
}

.svc-step-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
    min-width: 40px;
    height: 40px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(154, 76, 255, 0.3);
    position: relative;
    z-index: 1;
}

.svc-step-info h3 {
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 1.05rem;
}

.svc-step-info p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ---- Stats ---- */
.svc-stats {
    padding: 80px 0;
    background: var(--white);
}

.svc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.svc-stat-num {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 8px;
    line-height: 1.1;
}

.svc-stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ---- Why Choose ---- */
.svc-why {
    padding: 100px 0;
    background: var(--white);
}

.svc-why h2 {
    margin-bottom: 48px;
}

.svc-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.svc-why-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.svc-why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(154, 76, 255, 0.2);
    box-shadow: 0 12px 40px rgba(154, 76, 255, 0.12);
}

.svc-why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.svc-why-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1rem;
}

.svc-why-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ---- Features Grid ---- */
.svc-features {
    padding: 100px 0;
    background: var(--gray-light);
}

.svc-features h2 {
    margin-bottom: 48px;
}

.svc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.svc-feature {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.svc-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(154, 76, 255, 0.15);
}

.svc-feature-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 12px;
}

.svc-feature h4 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.95rem;
}

.svc-feature p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ---- Cross-Links ---- */
.svc-cross {
    padding: 100px 0;
    background: var(--white);
}

.svc-cross h2 {
    margin-bottom: 48px;
}

.svc-cross-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.svc-cross-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.svc-cross-card:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.svc-cross-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.svc-cross-card h4 {
    flex: 1;
    color: var(--dark);
    font-size: 0.95rem;
}

.svc-cross-arrow {
    font-size: 1.2rem;
    color: var(--purple);
    transition: var(--transition);
}

.svc-cross-card:hover .svc-cross-arrow {
    transform: translateX(4px);
}

/* ---- FAQ Accordion ---- */
.svc-faq {
    padding: 100px 0;
    background: var(--gray-light);
}

.svc-faq h2 {
    margin-bottom: 48px;
}

.svc-faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.svc-faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.svc-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: var(--transition);
}

.svc-faq-q:hover {
    color: var(--purple);
}

.svc-faq-q svg {
    flex-shrink: 0;
    transition: var(--transition);
}

.svc-faq-item.open .svc-faq-q svg {
    transform: rotate(180deg);
}

.svc-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-faq-item.open .svc-faq-a {
    max-height: 300px;
}

.svc-faq-a p {
    padding: 0 0 20px;
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ---- Final CTA ---- */
.svc-cta-final {
    padding: 120px 0;
    background: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.svc-cta-final h2 {
    margin-bottom: 20px;
}

.svc-cta-final p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Responsive ---- */
@media (max-width: 968px) {
    .svc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-why-grid,
    .svc-features-grid,
    .svc-cross-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .svc-hero {
        padding: 130px 0 60px;
    }

    .svc-why-grid,
    .svc-features-grid,
    .svc-cross-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .svc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .svc-showcase-item {
        width: 140px;
    }

    .svc-hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ---- Quality Guarantee Banner ---- */
.svc-guarantee {
    padding: 80px 0;
    background: var(--white);
}

.guarantee-banner {
    position: relative;
    background: linear-gradient(135deg, #f8f4ff 0%, #efe5ff 50%, #f8f4ff 100%);
    border: 1.5px solid rgba(154, 76, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    overflow: hidden;
}

.guarantee-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at 50% 30%, rgba(154, 76, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.guarantee-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--gradient-btn);
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(154, 76, 255, 0.3);
    position: relative;
}

.guarantee-shield svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.guarantee-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
    position: relative;
}

.guarantee-banner > p {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    position: relative;
}

.guarantee-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.guarantee-point {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(154, 76, 255, 0.1);
    border-radius: var(--radius);
    padding: 28px 20px;
    transition: var(--transition);
}

.guarantee-point:hover {
    transform: translateY(-4px);
    border-color: rgba(154, 76, 255, 0.25);
    box-shadow: 0 8px 24px rgba(154, 76, 255, 0.1);
}

.guarantee-point-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: block;
}

.guarantee-point h4 {
    color: var(--dark);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.guarantee-point p {
    color: var(--gray);
    font-size: 0.82rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .guarantee-banner {
        padding: 40px 24px;
    }

    .guarantee-points {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .guarantee-shield {
        width: 60px;
        height: 60px;
    }

    .guarantee-shield svg {
        width: 26px;
        height: 26px;
    }
}

/* ---- Video Showcase (Holo-inspired fan spread) ---- */
.svc-video-showcase {
    padding: 80px 0 60px;
    background: #fbfbfb;
    overflow: hidden;
}

.svc-video-showcase h2 {
    margin-bottom: 48px;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.svc-video-showcase-sub {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.7;
    text-align: center;
}

/* Showcase Tabs (Holo-style) */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-tab {
    width: auto;
    padding: 4px 24px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    text-align: center;
}

.showcase-tab::after {
    content: '';
    display: block;
    margin-top: 6px;
    height: 2px;
    background: rgb(219, 219, 219);
    border-radius: 96px;
    transition: background 0.3s ease;
}

.showcase-tab:hover {
    color: var(--dark);
}

.showcase-tab.active {
    color: var(--dark);
}

.showcase-tab.active::after {
    background: var(--gradient-btn);
}

/* Video Grid — flat horizontal row */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 0 auto;
    max-width: 1200px;
}

.video-grid-card {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, var(--purple-bg) 0%, #e8deff 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.video-grid-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(154, 76, 255, 0.18);
}

.video-grid-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Video Gallery (Holo-inspired grid) ---- */
.svc-video-gallery {
    padding: 100px 0;
    background: var(--gray-light);
}

.svc-video-gallery h2 {
    margin-bottom: 16px;
}

.svc-video-gallery-sub {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
    text-align: center;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.video-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(154, 76, 255, 0.15);
}

.video-gallery-media {
    position: relative;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, var(--purple-bg) 0%, #e8deff 100%);
    overflow: hidden;
}

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

.video-gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    opacity: 0;
    transition: var(--transition);
}

.video-gallery-play svg {
    width: 16px;
    height: 16px;
    fill: var(--purple);
    margin-left: 2px;
}

.video-gallery-card:hover .video-gallery-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.video-gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    z-index: 1;
}

.video-gallery-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.video-gallery-title {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---- Brand Showcase ("Ya has visto nuestro trabajo") ---- */
.svc-brand-showcase {
    padding: 120px 0 80px;
    background: var(--white);
    overflow: hidden;
}

.brand-showcase-heading {
    text-align: left;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    max-width: 700px;
}

.brand-showcase-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 max(20px, calc((100vw - 1200px) / 2));
}

.brand-showcase-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.brand-showcase-slide {
    min-width: 280px;
    width: 280px;
    height: 410px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--gradient-subtle);
    position: relative;
    flex-shrink: 0;
}

.brand-showcase-slide img,
.brand-showcase-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

.brand-showcase-slide .brand-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--purple-bg) 0%, #e8deff 50%, #f0e6ff 100%);
}

.brand-showcase-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 32px;
}

.brand-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 40px;
    border: none;
    background: rgb(230, 230, 231);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    font-size: 1.1rem;
    color: var(--dark);
}

.brand-nav-btn:hover {
    background: var(--purple);
    color: var(--white);
}

.brand-nav-btn:hover svg {
    stroke: var(--white);
}

/* ---- Responsive for video sections ---- */
@media (max-width: 968px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 16px;
    }

    .video-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 12px;
    }

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

    .svc-video-showcase {
        padding: 60px 0 60px;
    }

    .svc-video-gallery {
        padding: 60px 0 80px;
    }

    .brand-showcase-heading {
        text-align: center;
        font-size: 1.5rem;
    }

    .brand-showcase-nav {
        justify-content: center;
    }

    .svc-brand-showcase {
        padding: 60px 0 80px;
    }

    .brand-showcase-slide {
        min-width: 220px;
        width: 220px;
        height: 320px;
    }

    .showcase-tabs {
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .svc-hero h1 {
        font-size: 1.6rem;
    }

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

    .svc-showcase-item {
        width: 120px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ---- Strategy / Consulting page ---- */
.strat-intro {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.strat-intro p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.strat-intro p:last-child {
    margin-bottom: 0;
}

.strat-intro strong {
    color: var(--dark);
}
