/* ════════════════════════════════════════════════════════════
   Bloque · delivery-modes-home (¿prisa o tiempo? 2 cards home)
   ────────────────────────────────────────────────────────────
   MOBILE-FIRST. Breakpoints canónicos:
     520px → tablet pequeña: highlight horizontal (no stack)
     880px → desktop: grid 2 cols (urgente + standard)
   ════════════════════════════════════════════════════════════ */

.dtfm-dmh {
    position: relative;
    background: linear-gradient(180deg, #fdfafc 0%, #fbf3f7 100%);
    overflow: hidden;
    padding-block: clamp(48px, 8vw, 72px);
}

.dtfm-dmh::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink-500) 0%, var(--lime-500) 100%);
}

.dtfm-dmh::after {
    content: "";
    position: absolute;
    top: 60px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(153, 204, 0, 0.18), transparent);
    pointer-events: none;
}

/* ─── Intro ──────────────────────────────────────────────── */
.dtfm-dmh__intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto var(--sp-6, 40px);
    position: relative;
    z-index: 1;
}

.dtfm-dmh__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(153, 204, 0, 0.12);
    border: 1px solid rgba(153, 204, 0, 0.32);
    border-radius: 999px;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 12px;
    color: #7aa300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dtfm-dmh__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime-500);
    box-shadow: 0 0 0 4px rgba(153, 204, 0, 0.2);
}

.dtfm-block.dtfm-block .dtfm-dmh__title {
    font-family: var(--ff-display) !important;
    font-weight: 800 !important;
    font-size: clamp(28px, 5vw + 12px, 52px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
    color: #1a0a14 !important;
    margin: 18px 0 14px !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
}

.dtfm-dmh__title .script {
    font-size: 1.08em;
    display: inline-block;
    transform: rotate(-3deg);
    padding: 0 6px;
}

.dtfm-dmh__lede {
    font-size: 15px;
    color: #3b2f37;
    line-height: 1.55;
    max-width: 62ch;
    margin: 0 auto;
}

.dtfm-dmh__lede strong { color: #1a0a14; font-weight: 600; }

/* ─── Grid ──────────────────────────────────────────────── */
.dtfm-dmh__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ─── Card ──────────────────────────────────────────────── */
.dtfm-dmh__card {
    position: relative;
    background: #fff;
    border-radius: var(--r-xl, 28px);
    padding: 28px 22px 26px;
    box-shadow: 0 4px 14px rgba(26, 10, 20, 0.08), 0 24px 48px rgba(26, 10, 20, 0.10);
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    min-width: 0;
}

.dtfm-dmh__card:hover { transform: translateY(-2px); }

.dtfm-dmh__card--urgent { border-color: rgba(230, 13, 130, 0.18); }
.dtfm-dmh__card--urgent::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% -10%, rgba(230, 13, 130, 0.10), transparent 60%);
    pointer-events: none;
}

.dtfm-dmh__card--standard { border-color: rgba(153, 204, 0, 0.28); }
.dtfm-dmh__card--standard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% -10%, rgba(153, 204, 0, 0.16), transparent 60%);
    pointer-events: none;
}

.dtfm-dmh__card > * { position: relative; z-index: 1; }

/* Badge */
.dtfm-dmh__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--pink-500) 0%, var(--lime-500) 100%);
    box-shadow: 0 4px 12px rgba(230, 13, 130, 0.25);
}

.dtfm-dmh__badge--default {
    background: var(--pink-500);
    box-shadow: 0 4px 12px rgba(230, 13, 130, 0.20);
}

/* Head */
.dtfm-dmh__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    min-width: 0;
}

.dtfm-dmh__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.dtfm-dmh__icon--pink {
    background: var(--pink-500);
    color: #fff;
    box-shadow: 0 6px 18px rgba(230, 13, 130, 0.28);
}

.dtfm-dmh__icon--lime {
    background: var(--lime-500);
    color: var(--dark, #1a0a14);
    box-shadow: 0 6px 18px rgba(153, 204, 0, 0.32);
}

.dtfm-block.dtfm-block .dtfm-dmh__name {
    font-family: var(--ff-display) !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    color: #1a0a14 !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
}

.dtfm-dmh__sub {
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: 14px;
    color: #7a6e76;
    margin-top: 4px;
}

/* Big number */
.dtfm-dmh__big {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 8px 0 18px;
    color: #1a0a14;
}

.dtfm-dmh__big--urgent { color: var(--pink-500); }
.dtfm-dmh__big--standard { color: #7aa300; }

.dtfm-dmh__big small {
    display: block;
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: 14px;
    color: #7a6e76;
    margin-top: 8px;
    letter-spacing: 0;
    text-transform: none;
}

/* List */
.dtfm-dmh__list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dtfm-dmh__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15.5px;
    color: #3b2f37;
    line-height: 1.45;
}

.dtfm-dmh__list li svg { flex-shrink: 0; margin-top: 3px; }
.dtfm-dmh__list li span { display: block; flex: 1; min-width: 0; }
.dtfm-dmh__list li strong { font-weight: 600; color: #1a0a14; }
.dtfm-dmh__card--urgent .dtfm-dmh__list li svg { color: var(--pink-500); }
.dtfm-dmh__card--standard .dtfm-dmh__list li svg { color: #7aa300; }

/* Highlight */
.dtfm-dmh__hl {
    background: #1a0a14;
    color: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--ff-body);
}

.dtfm-dmh__hl--standard {
    background: linear-gradient(135deg, #1a0a14 0%, #2a1320 100%);
    border: 1px solid rgba(153, 204, 0, 0.35);
}

.dtfm-dmh__hl strong {
    display: block;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--lime-500);
    letter-spacing: 0;
}

.dtfm-dmh__hl--urgent strong { color: var(--pink-500); }

.dtfm-dmh__hl span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

.dtfm-dmh__num {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 34px;
    color: var(--lime-500);
    line-height: 1;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    min-width: 0;
    text-align: left;
}

/* Foot */
.dtfm-dmh__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 1080px;
    margin: 32px auto 0;
    background: #fff;
    border: 1px solid rgba(26, 10, 20, 0.08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(26, 10, 20, 0.04), 0 8px 24px rgba(26, 10, 20, 0.06);
    position: relative;
    z-index: 1;
}

.dtfm-dmh__foot p {
    margin: 0;
    font-size: 15px;
    color: #3b2f37;
    max-width: 62ch;
    line-height: 1.55;
}

.dtfm-dmh__foot p strong { color: #1a0a14; font-weight: 600; }

.dtfm-dmh__link {
    color: var(--pink-500);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(230, 13, 130, 0.3);
    text-underline-offset: 3px;
    margin-left: 6px;
    white-space: nowrap;
}

.dtfm-dmh__link:hover { text-decoration-color: var(--pink-500); }
.dtfm-dmh__cta { flex-shrink: 0; }
.dtfm-dmh__cta .dtfm-btn__arrow { color: var(--lime-500); margin-left: 6px; }

/* Pro micro-row */
.dtfm-dmh__pro-wrap {
    text-align: center;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.dtfm-dmh__pro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(26, 10, 20, 0.18);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    color: #3b2f37;
}

.dtfm-dmh__pro strong { color: var(--pink-500); font-weight: 700; }

.dtfm-dmh__pro a {
    color: #1a0a14;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(26, 10, 20, 0.25);
    text-underline-offset: 3px;
}

.dtfm-dmh__pro a:hover { color: var(--pink-500); text-decoration-color: var(--pink-500); }

/* ─── 520px+ tablet pequeña ─── */
@media (min-width: 520px) {
    .dtfm-dmh__hl {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    .dtfm-dmh__num {
        min-width: 60px;
        text-align: right;
    }
}

/* ─── 880px+ desktop ─── */
@media (min-width: 880px) {
    .dtfm-dmh {
        padding-block: clamp(56px, 7vw, 96px);
    }
    .dtfm-dmh__intro {
        margin-bottom: var(--sp-7, 56px);
    }
    .dtfm-block.dtfm-block .dtfm-dmh__name {
        font-size: 26px !important;
    }
    .dtfm-dmh__lede {
        font-size: clamp(16px, 1.5vw, 18px);
    }
    .dtfm-dmh__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-4, 24px);
    }
    .dtfm-dmh__card {
        padding: 36px 32px 32px;
    }
    .dtfm-dmh__big {
        font-size: clamp(38px, 4.5vw, 52px);
    }
    .dtfm-dmh__foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 24px;
        margin-top: 40px;
        padding: 22px 28px;
    }
}
