/* ==========================================================
   IRCPode — Ajustes de calidad visual y capturas reales
   ========================================================== */

body.page-ircpode .irc-ref-mini-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

body.page-ircpode .irc-ref-mini-benefits article {
    min-width: 0;
    min-height: 78px;
    padding: 14px 16px;
}

body.page-ircpode .irc-ref-mini-benefits article > div {
    min-width: 0;
    flex: 1;
}

body.page-ircpode .irc-ref-mini-benefits strong {
    display: block;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

body.page-ircpode .irc-ref-mini-benefits small {
    display: block;
    margin-top: 4px;
    overflow: visible;
    color: #9cb0c6;
    font-size: .74rem;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

body.page-ircpode .irc-ref-mini-icon {
    width: 39px;
    height: 39px;
}

/* Evitar que cualquier texto se salga de tarjetas. */
body.page-ircpode .irc-ref-feature-strip article > div,
body.page-ircpode .irc-ref-edition,
body.page-ircpode .irc-ref-plus-list > *,
body.page-ircpode .irc-ref-info-card {
    min-width: 0;
}

body.page-ircpode .irc-ref-feature-strip strong,
body.page-ircpode .irc-ref-feature-strip p,
body.page-ircpode .irc-ref-edition h3,
body.page-ircpode .irc-ref-edition p,
body.page-ircpode .irc-ref-plus-list strong,
body.page-ircpode .irc-ref-plus-list p,
body.page-ircpode .irc-ref-info-card h2,
body.page-ircpode .irc-ref-info-card h3,
body.page-ircpode .irc-ref-info-card p,
body.page-ircpode .irc-ref-info-card li {
    overflow-wrap: break-word;
    word-break: normal;
}

/* Tres teléfonos construidos con capturas reales. */
body.page-ircpode .irc-real-hero {
    position: relative;
    display: block;
    min-height: 590px;
    isolation: isolate;
}

body.page-ircpode .irc-real-phone {
    position: absolute;
    top: 22px;
    width: 258px;
    height: 574px;
    margin: 0;
    overflow: hidden;
    border: 7px solid #07101b;
    border-radius: 39px;
    background: #06111d;
    box-shadow:
        0 32px 65px rgba(0, 0, 0, .62),
        0 0 0 1px rgba(195, 220, 241, .34),
        inset 0 0 0 1px rgba(255,255,255,.08);
    transform-origin: center bottom;
}

body.page-ircpode .irc-real-phone::before {
    position: absolute;
    top: 11px;
    left: 50%;
    z-index: 5;
    width: 67px;
    height: 21px;
    border-radius: 999px;
    background: #02060b;
    content: "";
    transform: translateX(-50%);
}

body.page-ircpode .irc-real-phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

body.page-ircpode .irc-real-phone-left {
    left: 4%;
    top: 59px;
    z-index: 1;
    width: 232px;
    height: 517px;
    transform: rotate(-8deg);
    opacity: .94;
}

body.page-ircpode .irc-real-phone-center {
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
}

body.page-ircpode .irc-real-phone-right {
    right: 3%;
    top: 59px;
    z-index: 2;
    width: 232px;
    height: 517px;
    transform: rotate(8deg);
    opacity: .94;
}

/* Galería real de alta resolución. */
body.page-ircpode .irc-ref-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 188px;
    grid-template-columns: none;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 5px 16px;
    scroll-padding-inline: 5px;
    scroll-snap-type: x mandatory;
}

body.page-ircpode .irc-ref-gallery figure {
    width: 188px;
    min-width: 188px;
    scroll-snap-align: start;
}

body.page-ircpode .irc-ref-gallery figure > button {
    width: 188px;
    height: 418px;
    border-radius: 20px;
    background: #eaf1fa;
}

body.page-ircpode .irc-ref-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    image-rendering: auto;
}

body.page-ircpode .irc-ref-gallery figcaption {
    min-height: 42px;
    padding: 11px 3px 0;
    color: #e5edf7;
    font-size: .82rem;
    line-height: 1.25;
    white-space: normal;
}

/* La imagen ampliada mantiene la resolución real. */
body.page-ircpode .irc-ref-modal img {
    width: auto;
    max-width: min(94vw, 720px);
    max-height: 91vh;
    object-fit: contain;
    image-rendering: auto;
}

/* Monitores amplios. */
@media (min-width: 1450px) {
    body.page-ircpode .irc-ref-hero-grid {
        grid-template-columns:
            minmax(530px, .88fr)
            minmax(680px, 1.12fr);
    }

    body.page-ircpode .irc-real-hero {
        min-height: 620px;
    }

    body.page-ircpode .irc-real-phone {
        width: 274px;
        height: 610px;
    }

    body.page-ircpode .irc-real-phone-left,
    body.page-ircpode .irc-real-phone-right {
        width: 246px;
        height: 548px;
    }
}

/* Portátiles. */
@media (max-width: 1180px) {
    body.page-ircpode .irc-real-hero {
        min-height: 520px;
    }

    body.page-ircpode .irc-real-phone {
        width: 220px;
        height: 490px;
    }

    body.page-ircpode .irc-real-phone-left,
    body.page-ircpode .irc-real-phone-right {
        width: 186px;
        height: 414px;
        top: 65px;
    }

    body.page-ircpode .irc-ref-gallery {
        grid-auto-columns: 170px;
    }

    body.page-ircpode .irc-ref-gallery figure,
    body.page-ircpode .irc-ref-gallery figure > button {
        width: 170px;
    }

    body.page-ircpode .irc-ref-gallery figure > button {
        height: 379px;
    }
}

/* Móvil y tablet pequeña. */
@media (max-width: 760px) {
    body.page-ircpode .irc-ref-mini-benefits {
        grid-template-columns: 1fr 1fr;
    }

    body.page-ircpode .irc-ref-mini-benefits article {
        min-height: 88px;
        align-items: flex-start;
    }

    body.page-ircpode .irc-ref-mini-benefits strong {
        font-size: .78rem;
    }

    body.page-ircpode .irc-ref-mini-benefits small {
        font-size: .67rem;
    }

    body.page-ircpode .irc-real-hero {
        min-height: 430px;
        margin-top: 10px;
    }

    body.page-ircpode .irc-real-phone {
        width: 174px;
        height: 388px;
        border-width: 5px;
        border-radius: 29px;
    }

    body.page-ircpode .irc-real-phone::before {
        width: 48px;
        height: 16px;
        top: 8px;
    }

    body.page-ircpode .irc-real-phone-center {
        top: 5px;
    }

    body.page-ircpode .irc-real-phone-left {
        left: 0;
        top: 50px;
        width: 138px;
        height: 307px;
    }

    body.page-ircpode .irc-real-phone-right {
        right: 0;
        top: 50px;
        width: 138px;
        height: 307px;
    }

    body.page-ircpode .irc-ref-gallery {
        grid-auto-columns: 148px;
    }

    body.page-ircpode .irc-ref-gallery figure,
    body.page-ircpode .irc-ref-gallery figure > button {
        width: 148px;
    }

    body.page-ircpode .irc-ref-gallery figure > button {
        height: 330px;
    }
}

@media (max-width: 430px) {
    body.page-ircpode .irc-ref-mini-benefits {
        grid-template-columns: 1fr;
    }

    body.page-ircpode .irc-ref-mini-benefits article {
        min-height: 68px;
    }
}
