/* ===== SECCIÓN 2: SERVICIOS ===== */
.services {
    padding: 120px 20px;
    background: var(--bg-dark);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: var(--border-radius-card);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient) border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px var(--shadow-primary);
}

.service-card:hover {
    box-shadow: 0 25px 45px var(--shadow-hover);
}

.service-number {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    margin-bottom: 20px;
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}


.service-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

/* ===== SISTEMA EDITORIAL HOME ===== */
.flow-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    margin-top: 46px;
}

.flow-section--reverse {
    direction: rtl;
}

.flow-section--reverse > * {
    direction: ltr;
}

.flow-main {
    max-width: 680px;
    position: relative;
    padding-left: 26px;
}

.flow-main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 3px;
    height: 92px;
    border-radius: 999px;
    background: var(--gradient);
    box-shadow: 0 0 24px rgba(79, 124, 255, 0.26);
}

.flow-lead {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.48;
    color: #eef4ff;
    margin: 0 0 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.flow-main p,
.flow-list li,
.flow-row p,
.diagnostic-item p,
.offer-row p,
.process-step p,
.faq-item p {
    color: #c8d7ee;
    font-size: clamp(1.08rem, 1.45vw, 1.18rem);
    line-height: 1.82;
    margin-bottom: 16px;
}

.flow-main > p:not(.flow-lead) {
    color: #d3e0f5;
}

.flow-side {
    position: relative;
    padding: 6px 0 6px 30px;
    border-left: 1px solid rgba(97, 130, 189, 0.22);
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    backdrop-filter: none;
}

.flow-side::before {
    display: none;
}

.flow-side::after {
    display: none;
}

.flow-side > * {
    position: relative;
    z-index: 1;
}

.flow-side-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    color: #aac2ec;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.flow-stack {
    display: grid;
    gap: 14px;
}

.flow-row,
.service-lane,
.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.flow-row {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(97, 130, 189, 0.16);
}

.flow-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.flow-row-number,
.service-lane-number,
.process-step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f8fbff;
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.96), rgba(168, 85, 247, 0.92));
    box-shadow: 0 10px 18px rgba(65, 98, 178, 0.28);
    flex-shrink: 0;
}

.flow-row h3,
.service-lane h3,
.diagnostic-item h3,
.offer-row h3,
.process-step h3 {
    margin: 2px 0 6px;
    font-size: 1.24rem;
    color: #f1f6ff;
}

.flow-list,
.split-checklist,
.split-issues,
.split-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-list li,
.split-checklist li,
.split-issues li,
.split-steps li {
    color: #d0def4;
    line-height: 1.76;
    padding: 12px 0 12px 18px;
    border-bottom: 1px solid rgba(97, 130, 189, 0.2);
    position: relative;
}

.flow-list li::before,
.split-checklist li::before,
.split-issues li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 21px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(79, 124, 255, 0.1);
}

.flow-list li strong,
.split-checklist li strong,
.split-issues li strong,
.split-steps li strong {
    color: var(--text-primary);
}

.diagnostic-list,
.service-lanes,
.metric-board,
.offer-board,
.faq-list {
    display: grid;
    gap: 16px;
}

.diagnostic-item,
.offer-row,
.faq-item {
    position: relative;
    padding: 18px 0;
    border-bottom: 1px solid rgba(97, 130, 189, 0.16);
}

.diagnostic-item:first-child,
.offer-row:first-child,
.faq-item:first-child {
    padding-top: 0;
}

.diagnostic-item:last-child,
.offer-row:last-child,
.faq-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.service-lane {
    padding: 18px 0;
    border-top: 1px solid rgba(97, 130, 189, 0.12);
}

.service-lane:first-child {
    padding-top: 0;
    border-top: 0;
}

.offer-row-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #a9c2ff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-board {
    padding: 8px 0;
    justify-self: end;
    width: min(100%, 680px);
}

.metric-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(97, 130, 189, 0.16);
}

.metric-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.metric-row strong {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: right;
    justify-self: end;
}

.metric-row span {
    color: #e0eaf9;
    line-height: 1.6;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.process-step {
    padding-top: 22px;
    border-top: 1px solid rgba(97, 130, 189, 0.22);
}

.process-step p {
    margin-bottom: 0;
}

.faq-list {
    margin-top: 42px;
}

.faq-item {
    background: rgba(14, 21, 38, 0.55);
    border: 1px solid rgba(97, 130, 189, 0.2);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 600;
    position: relative;
}

.faq-item:hover,
.faq-item[open] {
    border-color: rgba(131, 171, 244, 0.28);
    background: rgba(16, 24, 42, 0.72);
    box-shadow: 0 16px 30px rgba(3, 12, 28, 0.24);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #b7caf0;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}

.faq-item[open] .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
}

.services .flow-main p:last-child,
.about .flow-main p:last-child,
.projects .flow-main p:last-child {
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .flow-section,
    .process-track {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .flow-section--reverse {
        direction: ltr;
    }

    .flow-side {
        padding: 0;
        border-left: 0;
    }

    .flow-main {
        padding-left: 20px;
    }

    .flow-main::before {
        height: 72px;
    }

    .metric-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .metric-board {
        justify-self: stretch;
        width: 100%;
    }

    .metric-row strong {
        text-align: left;
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .flow-lead {
        font-size: 1.28rem;
        line-height: 1.52;
    }

    .flow-main p,
    .flow-list li,
    .flow-row p,
    .diagnostic-item p,
    .offer-row p,
    .process-step p,
    .faq-item p {
        font-size: 1.02rem;
        line-height: 1.74;
    }

    .flow-row,
    .service-lane,
    .process-step {
        gap: 14px;
    }

    .flow-row-number,
    .service-lane-number,
    .process-step-number {
        width: 38px;
        height: 38px;
        font-size: 0.92rem;
    }

    .faq-item summary {
        padding-right: 52px;
    }
}
