/* ════════════════════════════════════════════════════════
   MÉTODO — rejilla de 12 columnas con celdas variables
   ════════════════════════════════════════════════════════ */

.metodo {
    overflow-x: hidden; background: var(--bg-surface-soft);
}


/* ─── Cabecera ────────────────────────────────── */
.metodo__cabecera {
    padding-block: 0 3rem;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    text-align: left;
}


/* ─── Rejilla ─────────────────────────────────── */
.metodo__rejilla {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: row dense;
    align-content: start;
    gap: 5px;
    padding: 5px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-soft);
}

/* ─── Celda base ──────────────────────────────── */
.metodo__celda {
    background: var(--bg-surface-soft);
    padding: 5rem 3.5rem;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
    transition: background 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.metodo__celda:hover {
    background: rgb(var(--text-dark) / 0.06);
    z-index: 10;
}

/* ─── Tamaños ─────────────────────────────────── */
.metodo__celda--principal { grid-column: span 8; }
.metodo__celda--lateral   { grid-column: span 4; }
.metodo__celda--media     { grid-column: span 6; }

/* ─── Número desbordado ───────────────────────── */
.metodo__celda-num {
    position: absolute;
    top: -20px;
    right: -10px;
    font-family: var(--ff-base);
    font-size: var(--fs-display, 240px);
    font-weight: var(--fw-3);
    line-height: var(--lh-0);
    z-index: 1;
    color: var(--text-light); 
    -webkit-text-stroke: 0.5px var(--border-soft);
    paint-order: stroke fill;
    transition: all 0.8s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
    user-select: none;
}

.metodo__celda:hover .metodo__celda-num {
    transform: translateY(20px) translateX(-20px);
}

/* ─── Etiqueta vertical ───────────────────────── */
.metodo__celda-lateral {
    position: absolute;
    left: 25px;
    bottom: 5rem;
    writing-mode: vertical-rl;
    padding-bottom: 1rem;
    opacity: 0.19;
    transition: opacity 0.3s;
    pointer-events: none;
    transform: rotate(180deg);
    color:var(--text-accent);
}

.metodo__celda:hover .metodo__celda-lateral {
    opacity: 0.6;
}

/* ─── Contenido ───────────────────────────────── */
.metodo__celda-contenido {
    position: relative;
    z-index: 2;
}

.metodo__celda-titulo {
    font-family: var(--ff-base);
    font-size: var(--fs-4);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 2rem;
    color: var(--text-soft); text-transform: none;
}

.metodo__celda-texto {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 400px;
    padding-left: 60px;
    margin: 0;
}

/* ─── Efecto scan en hover ────────────────────── */
.metodo__celda::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        rgb(var(--palette-2) / 0.02),
        transparent
    );
    transform: translateY(-100%);
    pointer-events: none;
}

.metodo__celda:hover::after {
    animation: metodo-scan 1.5s infinite;
}

@keyframes metodo-scan {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}




/* ─── Reduce motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .metodo__celda,
    .metodo__celda-num {
        transition: none !important;
    }

    .metodo__celda:hover::after {
        animation: none !important;
    }
}

/* ─── Posiciones según boceto ─────────────────── */
/* 01: 40% ancho, fila 1                           */
/* 02: 60% ancho, fila 1                           */
/* 03: 60% ancho, fila 2                           */
/* 04: 60% ancho, fila 3                           */
/* 05: 40% ancho, filas 2+3 (doble alto)           */

.metodo__celda--01 { grid-column: 1 / 5;  grid-row: 1; }
.metodo__celda--02 { grid-column: 5 / 13; grid-row: 1; }
.metodo__celda--03 { grid-column: 1 / 8;  grid-row: 2; }
.metodo__celda--04 { grid-column: 1 / 8;  grid-row: 3; }
.metodo__celda--05 { grid-column: 8 / 13; grid-row: 2 / 4; }

/* ─── Mobile: todas las celdas apiladas ──────── */
@media (max-width: 1024px) {
    .metodo__celda--01,
    .metodo__celda--02,
    .metodo__celda--03,
    .metodo__celda--04,
    .metodo__celda--05 {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: auto;
    }

    .metodo__celda {
        padding: 4rem 2rem;
        min-height: auto;
    }

    .metodo__celda-num {
        font-size: 12rem;
        top: 10%;
        right: 0;
    }
}