﻿/* En tu CSS global (por ejemplo, en skytile.css o donde lo uses) */
@font-face {
    font-family: 'Ethnocentric';
    src: url('/fonts/Ethnocentric Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


/* ===== Sección oscura envolvente ===== */
.services-dark {
    background: #1a1a1a;
    padding-left: 15rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-right: 9rem;
}

@media (max-width: 1200px) {
    .services-dark {
        padding-left: 6rem;
    }
}

@media (max-width: 992px) {
    .services-dark {
        padding-left: 3rem;
    }
}

@media (max-width: 768px) {
    .services-dark {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* ===== Scope general ===== */
.svc-scope {
    position: relative;
    padding-top: var(--section-pt, 40px);
    background: var(--section-bg, transparent);
}

    /* espacio a la derecha para que el sidebar no choque */
    .svc-scope.with-sidepad {
        padding-left: 320px; /* ajusta según el ancho del sidebar */
    }

@media (max-width:768px) {
    .svc-scope.with-sidepad {
        padding-left: 0px;
    }
}

/* ===== Sidebar fijo ===== */
.svc-sidebar {
    position: absolute;
    left: -60px; /* pegado al borde izquierdo del scope */
    top: 100px; /* altura inicial (ajusta según diseño) */
    transform: none;
    width: 280px; /* ancho del bloque del sidebar */
    pointer-events: none;
    z-index: 1;
}

.svc-side-item {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    font-size: 14px;
    pointer-events: auto;
}

.svc-side-num {
    color: #8b8f94;
    font-size: 12px;
    margin-bottom: 8px;
    letter-spacing: .06em;
}

/* Sidebar: título grande, 2 líneas, con la barrita lima */
.svc-side-item.active {
    position: relative;
    padding-left: 0;
    border-left: none;
}

.svc-side-title {
    position: relative;
    display: inline-block;
    padding-left: 18px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    line-height: 1.08;
    max-width: 14ch; /* un poco más de ancho para 1–2 líneas */
    font-size: clamp(24px, 2.1vw, 55px);
    word-spacing: 1px;
}

    .svc-side-title::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0; /* iguala la altura del texto */
        width: 2px;
        background: var(--accent, #d1f053);
        border-radius: 2px;
    }

@media (max-width:768px) {
    .svc-sidebar {
        display: none;
    }
}

/* ===== Fila / Acordeón ===== */
.acc-line {
    color: #e5e7eb;
}

/* Cabecera: título + chevron fijo */
.acc-header {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 24px; /* título | chevron */
    align-items: center;
    gap: 8px;
    padding: 18px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background .2s ease, color .2s ease, padding .2s ease, margin .2s ease;
}

/* Título */
.acc-title {
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: #e9ecef;
}

/* Chevron: ↓ por defecto */
.acc-chevron {
    color: #9aa1a9;
    display: inline-flex;
    justify-self: end;
    transform-origin: 50% 50%;
    transform: rotate(180deg); /* ↓ cerrado */
    transition: transform .22s ease, color .2s ease;
}

/* ESTADO ABIERTO */
.acc-line.open .acc-header {
    background: transparent;
}

.acc-line.open .acc-title {
    color: var(--accent, #d1f053);
}

.acc-line.open .acc-chevron {
    transform: rotate(0deg); /* ↑ abierto */
    color: var(--accent, #d1f053);
}

/* Panel colapsable */
.acc-body {
    overflow: hidden;
    transition: max-height .28s ease;
    padding: 0 0 16px 0;
    color: #cbd5e1;
}

/* Lista interna */
.acc-items {
    margin-top: 10px;
    padding-left: 18px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

    .acc-items.with-dash > li {
        position: relative;
        padding-left: 1.25rem;
    }

        .acc-items.with-dash > li::before {
            content: "—";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--accent, #d1f053);
        }

/* Divisor */
.acc-divider {
    height: 1px;
    width: 100%;
    background: var(--line-color, #333);
    opacity: 1;
}

/* ===== Ajustes responsivos finos ===== */
@media (max-width: 992px) {
    .acc-title {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .acc-header {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .acc-title {
        font-size: 18px;
    }
}
