/* PROCESO: cuatro etapas alrededor del robot de Tridente. */
#proceso { position: relative; isolation: isolate; }
#proceso .section-header { text-align: center; margin-bottom: 48px; }
#proceso .section-header .overline { justify-content: center; color: #a8b2c1; margin-bottom: 16px; font-size: 10px; letter-spacing: .2em; }
#proceso .section-header .overline .line { width: 28px; height: 1px; }
#proceso .section-header h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.035em; }
#proceso .section-header p { max-width: 580px; margin-inline: auto; color: #a9b3c1; font-size: 16px; line-height: 1.6; }
#proceso .process-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(180px, auto)); gap: 28px 40px; align-items: stretch;
}
#proceso .process-card {
    position: relative; min-width: 0; padding: 26px; border-radius: 18px;
    border: 1px solid #b5c8e021; background: linear-gradient(145deg, #111721f5, #0b1017ed);
    box-shadow: inset 0 1px 0 #ffffff05, 0 12px 30px #00000014;
}
#proceso .process-card:nth-of-type(1) { grid-column: 1; grid-row: 1; }
#proceso .process-card:nth-of-type(2) { grid-column: 3; grid-row: 1; }
#proceso .process-card:nth-of-type(3) { grid-column: 1; grid-row: 2; }
#proceso .process-card:nth-of-type(4) { grid-column: 3; grid-row: 2; }
#proceso .process-card::after {
    content: ''; position: absolute; top: 50%; right: -41px; width: 40px; height: 1px;
    background: linear-gradient(90deg, #ff4d6d66, #ff4d6d08); pointer-events: none;
}
#proceso .process-card:nth-of-type(even)::after { left: -41px; right: auto; transform: rotate(180deg); }
#proceso .process-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
#proceso .process-num {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border: 1px solid #ff4d6d38; border-radius: 9px; background: #ff4d6d09;
    color: #ff7894; font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .04em;
}
#proceso .process-icon { width: 22px; height: 22px; color: #8796ab; flex-shrink: 0; }
#proceso .process-card h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; letter-spacing: -.025em; }
#proceso .process-card p { color: #aeb8c6; font-size: 14px; line-height: 1.65; }
#proceso .process-robot {
    position: relative; isolation: isolate; grid-column: 2; grid-row: 1 / 3;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 0; margin: 0; padding-bottom: 14px;
}
#proceso .process-robot::before {
    content: ''; position: absolute; inset: 10% -12% 14%; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse, #fc30651a, #fc306508 48%, transparent 72%);
}
#proceso .process-orbit { position: absolute; left: -5%; top: 18%; width: 110%; height: 65%; border: 1px solid #ff4d6d14; border-radius: 50%; transform: rotate(-22deg); pointer-events: none; z-index: -1; }
#proceso .process-orbit::after { content: ''; position: absolute; inset: 24px -16px; border: 1px solid #ff4d6d0c; border-radius: inherit; transform: rotate(40deg); }
#proceso .process-robot-stage { position: relative; width: 100%; height: 360px; }
#proceso .process-robot-stage::after {
    content: ''; position: absolute; width: 60%; height: 20px; left: 20%; bottom: 2%; z-index: -1;
    background: radial-gradient(ellipse, #fc30652e, transparent 70%); pointer-events: none;
}
#proceso .process-robot-canvas {
    display: block; position: relative; width: 100%; height: 100%; padding: 0;
    border: 0; border-radius: 24px; background: transparent; color: inherit;
    touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#proceso .process-robot-canvas:focus-visible { outline: 2px solid #ff7894; outline-offset: 6px; }
#proceso .process-robot-canvas canvas { display: block; width: 100%; height: 100%; border-radius: inherit; }
#proceso .process-robot-fallback { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#proceso .process-robot-canvas[data-robot-ready="true"] .process-robot-fallback { display: none; }
#proceso .process-robot figcaption { color: #b3bdca; font-size: 12px; letter-spacing: .025em; text-align: center; padding-top: 16px; }
#proceso .process-robot figcaption::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; vertical-align: 2px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d60; }

@media (max-width: 1100px) and (min-width: 901px) {
    #proceso .process-grid { grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr); gap: 24px; }
    #proceso .process-card { padding: 22px; }
    #proceso .process-card::after { right: -25px; width: 24px; }
    #proceso .process-card:nth-of-type(even)::after { left: -25px; }
}
@media (max-width: 900px) {
    #proceso .section-header { margin-bottom: 24px; }
    #proceso .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 20px; }
    #proceso .process-robot { grid-column: 1 / -1; grid-row: 1; width: min(100%, 340px); justify-self: center; padding-bottom: 24px; }
    #proceso .process-robot::before { inset: 10% 0 14%; }
    #proceso .process-orbit { left: 12%; top: 22%; width: 76%; height: 52%; transform: rotate(-12deg); }
    #proceso .process-orbit::after { inset: 18px 0; transform: rotate(24deg); }
    #proceso .process-robot-stage { height: 320px; }
    #proceso .process-card:nth-of-type(1) { grid-column: 1; grid-row: 2; }
    #proceso .process-card:nth-of-type(2) { grid-column: 2; grid-row: 2; }
    #proceso .process-card:nth-of-type(3) { grid-column: 1; grid-row: 3; }
    #proceso .process-card:nth-of-type(4) { grid-column: 2; grid-row: 3; }
    #proceso .process-card::after { display: none; }
}
@media (max-width: 600px) {
    #proceso .section-header .overline { font-size: 9px; }
    #proceso .section-header p { font-size: 14px; }
    #proceso .process-grid { grid-template-columns: 1fr; gap: 16px; }
    #proceso .process-robot { width: min(100%, 250px); padding-bottom: 12px; }
    #proceso .process-robot-stage { height: clamp(220px, 62vw, 260px); }
    #proceso .process-card { padding: 20px; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; border-radius: 16px; }
    #proceso .process-card-top { display: contents; }
    #proceso .process-num { grid-column: 1; grid-row: 1 / 3; align-self: start; }
    #proceso .process-icon { display: none; }
    #proceso .process-card h3 { grid-column: 2; grid-row: 1; margin-bottom: 6px; font-size: 18px; }
    #proceso .process-card p { grid-column: 2; grid-row: 2; font-size: 14px; line-height: 1.6; }
    #proceso .process-robot figcaption { padding-top: 8px; }
    #proceso .process-card:nth-of-type(1) { grid-column: 1; grid-row: 2; }
    #proceso .process-card:nth-of-type(2) { grid-column: 1; grid-row: 3; }
    #proceso .process-card:nth-of-type(3) { grid-column: 1; grid-row: 4; }
    #proceso .process-card:nth-of-type(4) { grid-column: 1; grid-row: 5; }
}

/* Linterna de los ojos: haces suaves y brillo localizado sin tapar el texto. */
#proceso .process-flashlight { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
#proceso .process-flashlight.is-on { opacity: 1; }
#proceso .process-grid { position: relative; }
#proceso .section-header { position: relative; z-index: 3; }
#proceso .process-robot { z-index: 1; }
#proceso .process-card { z-index: 3; }
#proceso .process-card:not(.mantequita-reveal) { transition: border-color .08s ease, box-shadow .08s ease; }
#proceso .process-card::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at var(--flash-x, 50%) var(--flash-y, 50%), #fff1e95c, #ffd3df30 48%, #ffbbcc0c 78%, transparent 100%); transition: opacity .08s ease; }
#proceso .process-card > * { position: relative; z-index: 1; }
#proceso .process-card.process-light-hit { border-color: #ffe4edb3; box-shadow: inset 0 0 30px #fff4e826, inset 0 1px 0 #fff4e866, 0 0 28px #ffbccd30; }
#proceso .process-card.process-light-hit::before { opacity: 1; }
#proceso .section-header h2 { transition: text-shadow .08s ease; }
#proceso[data-flash-target="title"] .section-header h2 { text-shadow: 0 0 14px #fff0e94d, 0 0 34px #ffadc32e; }
