/* ============================================
   Asesoría de tesis
   Complementa formacion.css: solo lo que esta página tiene de propio.
   ============================================ */

/* Hero en dos columnas: texto y ejemplo de SPSS */
.tesis-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}

.tesis-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* Ejemplo: salida estadística → párrafo de resultados */
.tesis-demo {
    margin: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
}

.tesis-demo .demo-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.tesis-demo .demo-raw {
    margin: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    font: 500 0.95rem/1.7 ui-monospace, Menlo, Consolas, monospace;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.tesis-demo .demo-arrow {
    text-align: center;
    color: var(--accent-primary);
    font: 700 1.6rem/1 'Outfit', sans-serif;
    margin: 14px 0;
}

.tesis-demo .demo-text {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    border-left: 3px solid var(--accent-primary);
    padding-left: 14px;
}

.tesis-demo figcaption {
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Las cuatro etapas del servicio */
.tesis-scope {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.tesis-scope .program-tag {
    margin-bottom: 14px;
}

/* Tabla de servicios */
.tesis-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.tesis-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
}

.tesis-table th,
.tesis-table td {
    text-align: left;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.6;
}

.tesis-table th {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.tesis-table td {
    color: var(--text-muted);
}

.tesis-table td strong {
    color: var(--text-primary);
}

.tesis-table tbody tr:last-child td {
    border-bottom: none;
}

.tesis-note {
    margin-top: 18px;
    color: var(--text-secondary);
}

.tesis-bridge {
    margin-top: 34px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 860px) {
    .tesis-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* En celular la tabla pasa a tarjetas para no obligar a desplazar de lado */
@media (max-width: 640px) {
    .tesis-table-wrap {
        border: none;
        overflow: visible;
    }

    .tesis-table thead {
        display: none;
    }

    .tesis-table,
    .tesis-table tbody,
    .tesis-table tr,
    .tesis-table td {
        display: block;
        width: 100%;
    }

    .tesis-table {
        background: none;
    }

    .tesis-table tr {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 6px 0;
        margin-bottom: 14px;
    }

    .tesis-table td {
        border-bottom: none;
        padding: 8px 18px;
    }

    .tesis-table td:last-child::before {
        content: "Ideal para: ";
        color: var(--text-secondary);
    }
}

/* Herramientas por categoría */
.tesis-tools {
    margin-top: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 30px;
}

.tesis-tools h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.18rem;
    margin-bottom: 22px;
}

.tesis-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px 30px;
}

.tool-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.tool-group .program-meta {
    margin: 0;
}
