/* Guía ilustrada de los tutoriales (/tutoriales/{slug}).
   Pasos numerados con captura de la pantalla real. Canto recto en todo. */

.tut-g {
    max-width: 760px;
    margin-bottom: 40px;
    color: var(--cg-navy, #0c1222);
    /* Una URL o un correo sin espacios no debe ensanchar la columna en móvil. */
    overflow-wrap: anywhere;
}

.tut-g-intro {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cg-border, #e2e8f0);
}

.tut-g-paso {
    margin-bottom: 40px;
    /* La cabecera fija del sitio tapaba el título al saltar desde el índice. */
    scroll-margin-top: 100px;
}

.tut-g-figura a {
    display: block;
    cursor: zoom-in;
}

.tut-g-titulo {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.tut-g-num {
    color: var(--cg-amber-hover, #c98a1c);
}

.tut-g-texto {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 12px;
}

.tut-g-lista {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px;
    padding-left: 22px;
}

.tut-g-lista li {
    margin-bottom: 6px;
}

.tut-g-figura {
    margin: 16px 0 0;
    border: 1px solid var(--cg-border, #e2e8f0);
    background: #fff;
}

.tut-g-figura img {
    display: block;
    width: 100%;
    height: auto;
}

.tut-g-aviso {
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    border-left: 3px solid #2563eb;
    background: #eff4ff;
}

.tut-g-aviso--nota {
    border-left-color: #2563eb;
    background: #eff4ff;
}

.tut-g-aviso--importante {
    border-left-color: #c98a1c;
    background: #fdf6e7;
}

.tut-g-aviso--atencion {
    border-left-color: #c0262d;
    background: #fdeeee;
}

.tut-g-aviso + .tut-g-aviso {
    margin-top: 8px;
}

.tut-g-h2 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.tut-g-antes,
.tut-g-resultado,
.tut-g-campos,
.tut-g-problemas,
.tut-g-relacionados {
    margin-bottom: 40px;
    font-size: 0.95rem;
    line-height: 1.7;
    scroll-margin-top: 100px;
}

.tut-g-antes ul,
.tut-g-relacionados ul {
    margin: 0;
    padding-left: 20px;
    /* La hoja global del sitio quita las viñetas a todas las listas. */
    list-style: disc;
}

.tut-g-antes li,
.tut-g-relacionados li {
    margin-bottom: 4px;
}

.tut-g-indice {
    margin: 0 0 40px;
    padding: 16px 20px;
    border: 1px solid var(--cg-border, #e2e8f0);
    font-size: 0.9rem;
}

.tut-g-indice-titulo {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.tut-g-indice ol {
    margin: 0;
    padding-left: 20px;
}

.tut-g-indice a,
.tut-g-relacionados a {
    color: var(--cg-navy, #0c1222);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tut-g-resultado p {
    margin: 0;
    padding: 14px 18px;
    border-left: 3px solid #1f8a4c;
    background: #edf7f1;
}

.tut-g-tabla-wrap {
    overflow-x: auto;
}

.tut-g-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    line-height: 1.5;
}

.tut-g-tabla th,
.tut-g-tabla td {
    padding: 8px 10px;
    border: 1px solid var(--cg-border, #e2e8f0);
    text-align: left;
    vertical-align: top;
}

.tut-g-tabla th {
    background: #f4f6f9;
    font-weight: 700;
}

.tut-g-problemas dl {
    margin: 0;
}

.tut-g-problemas dt {
    font-weight: 700;
    margin-top: 12px;
}

.tut-g-problemas dd {
    margin: 2px 0 0;
}

@media (max-width: 768px) {
    .tut-g-intro {
        margin-bottom: 24px;
    }

    .tut-g-paso {
        margin-bottom: 32px;
    }
}
