/* ===== PAGE-SPECIFIC SECTIONS ===== */

/* ===== PROBLEM SECTION ===== */
.problem-section {
    padding: 6rem 0;
    background: var(--surface);
}

/* ===== HOW IT WORKS SECTION ===== */
.workflow-section {
    padding: 6rem 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.step-card {
    position: relative;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--page-accent);
    transform: translateY(-3px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.workflow-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.step-card:hover .step-number {
    color: var(--page-link-accent);
}

/* ===== PRORET FLOWS ===== */
.proret-section {
    padding: 6rem 0;
    background: var(--surface);
}

.proret-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.proret-card {
    background: var(--page-accent-soft);
    border: 1px solid var(--page-accent-border);
    border-radius: 12px;
    padding: 2rem;
}

.proret-card h3 {
    color: var(--brand-navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-rta {
    color: var(--tarifas-blue-dark);
}

.text-rtp {
    color: var(--tarifas-blue);
}

.proret-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.proret-disclaimer {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding: 1rem;
    background: var(--bg-soft);
    border-radius: 8px;
}

/* ===== MOCKUP VISUAL FLOW ===== */
.visual-flow-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
    color: white;
}

body.theme-tarifas .visual-flow-section .section-header h2 { color: #fff; }
body.theme-tarifas .visual-flow-section .section-header p { color: rgba(255,255,255,0.82); }

.flow-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.flow-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    align-items: stretch;
    gap: 1rem;
}

.flow-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.flow-step::after {
    content: "->";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--page-accent);
    font-size: 1.5rem;
    z-index: 10;
}

.flow-step:last-child::after {
    display: none;
}

.flow-step-header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-height: 4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-step-number {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--page-accent), var(--tarifas-blue-dark));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(112, 163, 204, 0.2);
}

.flow-step-heading {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.flow-step-badge {
    width: fit-content;
    background: color-mix(in srgb, var(--page-accent) 24%, transparent);
    color: color-mix(in srgb, var(--page-accent) 72%, #ffffff);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.flow-step-badge.is-calculation {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.flow-step-badge.is-review {
    background: rgba(34, 211, 238, 0.2);
    color: var(--energy-cyan);
}

.flow-step h4 {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.2;
}

.flow-items {
    list-style: none;
    flex-grow: 1;
    display: grid;
    gap: 0.45rem;
}

.flow-items li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    padding-left: 1rem;
    position: relative;
    line-height: 1.45;
}

.flow-items li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--page-accent);
}

.flow-traceability {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flow-traceability-title {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-traceability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-trace-tag {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.mockup-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2rem;
}

.mockup-card-value.is-tariff {
    color: var(--tarifas-blue-dark);
}

@media (max-width: 992px) {
    .flow-timeline { grid-template-columns: 1fr; }
    .flow-step::after {
        content: "v";
        right: auto;
        left: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(-50%);
    }
    .flow-traceability { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 380px) {
    .flow-step {
        padding: 1.2rem;
    }

    .flow-traceability {
        padding: 1.2rem;
    }

    .flow-traceability-tags {
        width: 100%;
        gap: 0.5rem;
    }

    .flow-trace-tag {
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 6rem 0;
    background: var(--surface);
}

.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tag-mvp { background: rgba(16, 185, 129, 0.10); color: #047857; }
.tag-evolution { background: var(--tarifas-blue-soft); color: var(--tarifas-blue-dark); }
.tag-roadmap { background: rgba(45, 74, 115, 0.10); color: var(--brand-blue); }

/* ===== FOR WHOM ===== */
.target-section {
    padding: 6rem 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
