/* ============================================================
   que-hacer-pecho-duele · dolor durante la lactancia
   comparte lenguaje con razones-lactancia-materna pero con
   acento propio: del dolor → al alivio
   ============================================================ */

/* ---------- figura base (mismo lenguaje que razones) ---------- */
.fig {
    margin: 38px 0 34px;
    padding: 28px 26px 20px;
    background: var(--white);
    border: 1px solid rgba(33, 48, 42, .08);
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(42, 56, 48, .04);
    max-width: 760px;
    box-sizing: border-box
}
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig figcaption {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(33,48,42,.07);
    font-size: 12px; line-height: 1.6; color: var(--muted);
}

/* ---------- latch comparison figure ---------- */
.latch-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.latch-card {
    padding: 18px 14px 16px; border-radius: 20px;
    background: var(--paper-2);
    border: 1px solid rgba(33,48,42,.07);
    text-align: center;
}
.latch-card--ok { background: rgba(111,139,121,.10); border-color: rgba(111,139,121,.18); }
.latch-card--bad { background: rgba(207,141,144,.10); border-color: rgba(207,141,144,.18); }
.latch-card svg { width: 100%; max-width: 180px; margin: 0 auto 10px; display: block; height: auto; }
.latch-card strong {
    display: block; font: 700 10px var(--manrope);
    text-transform: uppercase; letter-spacing: .11em; margin-bottom: 6px;
}
.latch-card--ok strong { color: var(--sage-deep); }
.latch-card--bad strong { color: var(--terra); }
.latch-card span { font-size: 12.5px; line-height: 1.5; color: #4a5a51; }

/* latch draw-on */
.latch-path {
    fill: none; stroke-width: 1.6; stroke-linecap: round;
    stroke-dasharray: 420; stroke-dashoffset: 420;
    transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1);
}
.latch-card--bad .latch-path { stroke: var(--terra); }
.latch-card--ok .latch-path { stroke: var(--sage-deep); transition-delay: .25s; }
.is-visible .latch-path { stroke-dashoffset: 0; }

.latch-areola {
    opacity: 0; transform: scale(.92);
    transition: opacity .6s ease .7s, transform .7s cubic-bezier(.2,.8,.2,1) .7s;
}
.is-visible .latch-areola { opacity: 1; transform: scale(1); }

/* ---------- línea de pasos: reutiliza .razones / .razon ---------- */
.razones { margin: 6px 0 4px; max-width: 760px; box-sizing: border-box; }
.razon {
    position: relative; padding: 0 0 30px 62px;
}
.razon:last-child { padding-bottom: 8px; }
.razon:after {
    content: ""; position: absolute;
    left: 19px; top: 46px; bottom: 4px; width: 1px;
    background: rgba(33,48,42,.14);
}
.razon:last-child:after { display: none; }
.razon-num {
    position: absolute; left: 0; top: 2px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(207,141,144,.13); color: var(--terra);
    display: flex; align-items: center; justify-content: center;
    font: 400 20px var(--serif);
}
.razon--sage .razon-num { background: rgba(111,139,121,.13); color: var(--sage-deep); }
.razon-body h3 {
    font: 400 24px/1.15 var(--serif); letter-spacing: -.02em;
    color: var(--ink); margin: 4px 0 10px;
}
.razon-body p { margin: 0; }
/* ensure answer-box + callout inside razon still breathes */
.razon-body .answer-box { margin: 14px 0 14px; }
.razon-body .callout { margin: 14px 0 6px; }

/* ---------- Q&A con identidad: significa vs hacer ---------- */
.qa-label {
    display: flex; align-items: center; gap: 8px;
    font: 700 12.5px var(--manrope);
    letter-spacing: .01em;
    margin-bottom: 10px;
    line-height: 1.3;
}
.qa-label:before {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 11px/22px var(--manrope); text-align: center;
}
.qa-significa {
    background: var(--white);
    border-color: rgba(111,139,121,.22);
    border-left-color: var(--sage);
    box-shadow: 0 8px 30px rgba(42,56,48,.05);
}
.qa-significa .qa-label { color: var(--sage-deep); }
.qa-significa .qa-label:before {
    content: "◯";
    background: rgba(111,139,121,.14);
    color: var(--sage-deep);
    font-size: 10px;
}
.qa-significa p strong { color: var(--sage-deep); }

.qa-hacer {
    background: var(--white);
    border-color: rgba(207,141,144,.22);
    border-left-color: var(--terra);
    box-shadow: 0 8px 30px rgba(42,56,48,.05);
}
.qa-hacer .qa-label { color: var(--terra); }
.qa-hacer .qa-label:before {
    content: "→";
    background: rgba(207,141,144,.14);
    color: var(--terra);
    font-size: 12px;
}
.qa-hacer p strong { color: var(--ink); }

/* sutil diferencia de ritmo al hacer reveal */
.qa-significa.reveal, .qa-hacer.reveal { transition-delay: 0s; }

/* ---------- figuras de postura (01 / 02 / 03) ---------- */
.postura-fig {
    margin: 20px auto 8px;
    padding: 14px 14px 12px;
    background: var(--white);
    border: 1px solid rgba(33,48,42,.08);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(42,56,48,.04);
    max-width: 380px;
    box-sizing: border-box;
    text-align: center;
}
.postura-fig--wide {
    max-width: 560px;
}
.postura-fig img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: none;
    margin: 0;
    max-width: 100%;
}
.postura-fig figcaption {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
    font: 400 12px/1.6 var(--manrope);
    color: var(--muted);
    text-align: center;
    text-wrap: balance;
    hyphens: none;
}

/* ---------- causas clínicas: grid de tarjetas ---------- */
.cause-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin: 22px 0 8px;
    max-width: 760px; box-sizing: border-box;
}
.cause-card {
    padding: 20px 18px 18px; background: var(--white);
    border: 1px solid rgba(33,48,42,.08); border-radius: 22px;
    box-shadow: 0 8px 30px rgba(42,56,48,.04);
    border-left: 3px solid var(--sage);
    position: relative; overflow: hidden;
}
.cause-card:nth-child(2) { border-left-color: #dcae87; }
.cause-card:nth-child(3) { border-left-color: var(--terra); }
.cause-card:nth-child(4) { border-left-color: var(--sage-deep); }
.cause-card__icon {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; margin-bottom: 10px;
    background: rgba(111,139,121,.11); color: var(--sage-deep);
}
.cause-card:nth-child(2) .cause-card__icon { background: rgba(220,174,135,.18); color: #8a6d3f; }
.cause-card:nth-child(3) .cause-card__icon { background: rgba(207,141,144,.16); color: var(--terra); }
.cause-card:nth-child(4) .cause-card__icon { background: rgba(33,48,42,.07); color: var(--ink); }
.cause-card h3 {
    font: 700 12px var(--manrope); letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink); margin: 0 0 8px;
}
.cause-card p { font-size: 13px; line-height: 1.65; color: #4a5a51; margin: 0; }

/* vasoespasmo: ciclo de color del pezón */
.cause-card__nipple {
    display: flex; gap: 6px; align-items: center; margin-top: 10px;
}
.cause-card__nipple i {
    width: 10px; height: 10px; border-radius: 50%; flex: none;
    border: 1px solid rgba(33,48,42,.1);
}
.cause-card__nipple i:nth-child(1) { background: #f6f2eb; }
.cause-card__nipple i:nth-child(2) { background: #d9a9b0; }
.cause-card__nipple i:nth-child(3) { background: #a8bfb8; opacity: 0; transform: scale(.7);
    transition: opacity .7s ease 1s, transform .7s cubic-bezier(.2,.8,.2,1) 1s; }
.is-visible .cause-card__nipple i:nth-child(3) { opacity: 1; transform: scale(1); }

/* ---------- tratamiento: fila de cuidados ---------- */
.care-row {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
    margin: 26px 0 8px;
    max-width: 760px; box-sizing: border-box;
}
.care-card {
    padding: 22px 18px 18px; background: var(--white);
    border: 1px solid rgba(33,48,42,.08); border-radius: 22px;
    box-shadow: 0 8px 30px rgba(42,56,48,.04); text-align: center;
}
.care-card__icon {
    width: 38px; height: 38px; margin: 0 auto 12px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(111,139,121,.11); color: var(--sage-deep);
    font-size: 16px;
}
.care-card:nth-child(2) .care-card__icon { background: rgba(207,141,144,.13); color: var(--terra); }
.care-card:nth-child(3) .care-card__icon { background: rgba(220,174,135,.16); color: #8a6d3f; }
.care-card h3 {
    font: 400 17px/1.25 var(--serif); color: var(--ink); margin: 0 0 8px;
}
.care-card p { font-size: 13px; line-height: 1.6; color: #4a5a51; margin: 0; }

/* ---------- alerta suave (fiebre) ---------- */
.alarm-box {
    margin: 28px 0; padding: 18px 20px; border-radius: 20px;
    background: rgba(207,141,144,.08); border: 1px solid rgba(207,141,144,.22);
    display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
    max-width: 760px; box-sizing: border-box;
}
.alarm-box__icon {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    background: var(--terra); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.alarm-box strong { color: var(--ink); font-size: 14px; }
.alarm-box p { font-size: 13.5px; line-height: 1.6; color: #4a5a51; margin: 4px 0 0; }

/* ---------- referencias plegables (mismo que razones) ---------- */
.refs {
    border: 1px solid rgba(33,48,42,.09); border-radius: 20px;
    background: var(--white); padding: 2px 20px; margin: 18px 0 10px;
    box-shadow: 0 8px 30px rgba(42,56,48,.04);
    max-width: 760px; box-sizing: border-box;
}
.refs summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
    padding: 16px 0; font: 700 10px var(--manrope); text-transform: uppercase;
    letter-spacing: .12em; color: var(--sage-deep);
}
.refs summary::-webkit-details-marker { display: none; }
.refs summary:before { content: "✦"; font-size: 13px; color: var(--terra); }
.refs summary:after { content: "+"; margin-left: auto; font: 400 18px var(--serif); color: var(--muted); }
.refs[open] summary:after { content: "–"; }
.refs ol { list-style: decimal; margin: 0 0 16px; padding: 0 4px 0 22px; }
.refs ol li { padding: 0; border: 0; font-size: 12px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.refs ol li:before { content: none; }
.refs ol li:last-child { margin-bottom: 0; }
.refs ol li strong { color: #4a5a51; font-weight: 600; }

/* ---------- aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(22px);
        transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
    .reveal.is-visible { opacity: 1; transform: none; }
    .razones .reveal:nth-child(2) { transition-delay: .08s; }
    .razones .reveal:nth-child(3) { transition-delay: .16s; }
    .razones .reveal:nth-child(4) { transition-delay: .24s; }
    .cause-grid .reveal:nth-child(2) { transition-delay: .1s; }
    .cause-grid .reveal:nth-child(3) { transition-delay: .2s; }
    .cause-grid .reveal:nth-child(4) { transition-delay: .3s; }
    .care-row .reveal:nth-child(2) { transition-delay: .1s; }
    .care-row .reveal:nth-child(3) { transition-delay: .2s; }
}

/* ---------- responsive ---------- */
@media(max-width:620px) {
    .fig { padding: 18px 14px 14px; border-radius: 22px; }
    .latch-grid { gap: 8px; }
    .latch-card { padding: 14px 10px 12px; border-radius: 18px; }
    .latch-card span { font-size: 11.5px; }
    .razon { padding-left: 52px; }
    .razon:after { left: 15px; }
    .razon-body h3 { font-size: 21px; }
    .cause-grid { grid-template-columns: 1fr; gap: 10px; }
    .care-row { grid-template-columns: 1fr; gap: 10px; }
}
