/* ── Hero Promocional con Countdown ── */

/* La imagen de fondo cubre TODO el bloque (hero + barra inferior) */
.wp-block-gasex-hero-promo.hp-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 660px;
    box-sizing: border-box;
    background-color: #e8ecf0;
    position: relative;
}

/* Capa de imagen con opacidad independiente */
.wp-block-gasex-hero-promo .hp-block__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Contenido siempre encima de la imagen */
.wp-block-gasex-hero-promo .hp-hero,
.wp-block-gasex-hero-promo .hp-bottom {
    position: relative;
    z-index: 1;
}

/* Hero llena el espacio disponible */
.wp-block-gasex-hero-promo .hp-hero { flex: 1; }

/* ── HERO ── */
.wp-block-gasex-hero-promo .hp-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wp-block-gasex-hero-promo .hp-hero__inner {
    display: grid;
    grid-template-columns: 250px 1fr 185px;
    gap: 28px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 52px 40px 40px;
    box-sizing: border-box;
    flex: 1;
}

/* ── Badge izquierdo ── */
.wp-block-gasex-hero-promo .hp-left-badge {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Forma escudo con punta en el centro inferior */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 50% 100%, 0 calc(100% - 28px));
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.45));
}

/* Box: border-radius en esquinas superiores + borde blanco interno */
.wp-block-gasex-hero-promo .hp-left-badge__box {
    background: #1e3a5f;
    border-radius: 10px 10px 0 0;
    padding: 10px 0 68px;
    text-align: center;
    width: 100%;
    position: relative;
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,0.65),
        inset 0 0 0 5px rgba(14,36,64,0.55);
}

/* Ícono limpio, centrado */
.wp-block-gasex-hero-promo .hp-left-badge__icon {
    display: flex;
    justify-content: center;
    padding: 10px 0 18px;
}

.wp-block-gasex-hero-promo .hp-left-badge__icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Título del badge — dos líneas */
.wp-block-gasex-hero-promo .hp-left-badge__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 16px 12px;
}

.wp-block-gasex-hero-promo .hp-left-badge__title {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.wp-block-gasex-hero-promo .hp-left-badge__title-accent {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

/* ── Countdown banda — borde a borde ── */
.wp-block-gasex-hero-promo .hp-countdown-band {
    background: #152c49;
    padding: 18px 10px 16px;
    width: 100%;
    margin-bottom: 40px;
}

/* ── Countdown ── */
.wp-block-gasex-hero-promo .hp-countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.wp-block-gasex-hero-promo .hp-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.wp-block-gasex-hero-promo .hp-countdown__num {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    border-radius: 6px;
    padding: 8px 2px 6px;
    width: 100%;
    text-align: center;
    display: block;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}

.wp-block-gasex-hero-promo .hp-countdown__label {
    font-size: 0.44rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.wp-block-gasex-hero-promo .hp-countdown__sep {
    font-size: 1.7rem;
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    line-height: 1;
    padding-top: 7px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

/* Ribbon tipo banner/cinta — mismo patrón que blog-carousel tagline-style-ribbon */
.wp-block-gasex-hero-promo .hp-left-badge__ribbon {
    position: absolute;
    bottom: 45px;
    left: 10px; right: 10px;
    background: #dc2626;
    padding: 10px 28px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%);
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.wp-block-gasex-hero-promo .hp-left-badge__ribbon span {
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Ícono/texto en la punta del escudo */
.wp-block-gasex-hero-promo .hp-left-badge__footer {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

/* ── Centro ── */
.wp-block-gasex-hero-promo .hp-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.wp-block-gasex-hero-promo .hp-eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #1e3a5f;
}

.wp-block-gasex-hero-promo .hp-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wp-block-gasex-hero-promo .hp-line {
    margin: 0;
    font-weight: 900;
    text-align: center;
    line-height: 1.05;
}

.wp-block-gasex-hero-promo .hp-line--sm  { font-size: 1rem;   font-weight: 600; }
.wp-block-gasex-hero-promo .hp-line--md  { font-size: 1.5rem; font-weight: 700; }
.wp-block-gasex-hero-promo .hp-line--lg  { font-size: 2rem;   font-weight: 800; }
.wp-block-gasex-hero-promo .hp-line--xl  { font-size: 2.7rem; font-weight: 900; }
.wp-block-gasex-hero-promo .hp-line--xl2 { font-size: 3.2rem; font-weight: 900; }
.wp-block-gasex-hero-promo .hp-line--xxl { font-size: 3.8rem; font-weight: 900; }

.wp-block-gasex-hero-promo .hp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
}

.wp-block-gasex-hero-promo .hp-divider__line {
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.35;
}

.wp-block-gasex-hero-promo .hp-divider__text {
    font-size: 1rem;
    letter-spacing: 0.15em;
}

.wp-block-gasex-hero-promo .hp-desc {
    max-width: 500px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #374151;
    text-align: center;
}

.wp-block-gasex-hero-promo .hp-desc p { margin: 0 0 0.4em; }
.wp-block-gasex-hero-promo .hp-desc p:last-child { margin: 0; }

/* ── Badge circular derecho ── */
.wp-block-gasex-hero-promo .hp-right-badge {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    box-sizing: border-box;
    margin: 0 auto;
    border: 5px solid rgba(255,255,255,0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.wp-block-gasex-hero-promo .hp-right-badge__img {
    width: 99%;
    height: 99%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.wp-block-gasex-hero-promo .hp-right-badge__placeholder {
    display: block;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

/* ── BARRA INFERIOR — sobre la imagen ── */
.wp-block-gasex-hero-promo .hp-bottom {
    width: 100%;
    background: transparent;
    padding: 0 40px 24px;
    box-sizing: border-box;
}

.wp-block-gasex-hero-promo .hp-bottom__inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    overflow: hidden;
}

/* CTA list — cada ítem es una mini-card centrada */
.wp-block-gasex-hero-promo .hp-cta-list {
    display: flex;
    align-items: stretch;
    flex: 1;
}

.wp-block-gasex-hero-promo .hp-cta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    border-right: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
}

.wp-block-gasex-hero-promo .hp-cta-item:last-child { border-right: none; }

/* Hover: línea de color arriba + fondo muy sutil */
.wp-block-gasex-hero-promo a.hp-cta-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #1e3a5f;
    transform: scaleX(0);
    transition: transform 0.22s ease;
    border-radius: 0 0 2px 2px;
}

.wp-block-gasex-hero-promo a.hp-cta-item:hover::before { transform: scaleX(1); }

.wp-block-gasex-hero-promo a.hp-cta-item:hover {
    background: rgba(255,255,255,0.35);
    text-decoration: none;
    color: inherit;
}

.wp-block-gasex-hero-promo .hp-cta-item__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-gasex-hero-promo .hp-cta-item__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.wp-block-gasex-hero-promo .hp-cta-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: none;
}

.wp-block-gasex-hero-promo .hp-cta-item__text strong {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e3a5f;
    line-height: 1.2;
}

.wp-block-gasex-hero-promo .hp-cta-item__text span {
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.3;
}

.wp-block-gasex-hero-promo .hp-cta-item__arrow {
    font-size: 1.2rem;
    color: #9ca3af;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 6px;
}

/* Ideales — más espacio y sin recorte */
.wp-block-gasex-hero-promo .hp-ideales {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    border-left: 1px solid rgba(0,0,0,0.08);
    padding: 10px 20px 10px 20px;
}

.wp-block-gasex-hero-promo .hp-ideales__label {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #374151;
}

.wp-block-gasex-hero-promo .hp-ideales__grid {
    display: flex;
    gap: 18px;
}

.wp-block-gasex-hero-promo .hp-ideal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
    text-align: center;
    flex-shrink: 0;
}

.wp-block-gasex-hero-promo .hp-ideal-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.wp-block-gasex-hero-promo .hp-ideal-item span {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #374151;
    line-height: 1.3;
}

.wp-block-gasex-hero-promo .hp-ideal-item .hp-ideal-item__text2 {
    font-weight: 600;
    opacity: 0.8;
    margin-top: -2px;
}

/* ── Imagen de fondo mobile — oculta en desktop ── */
.wp-block-gasex-hero-promo .hp-block__bg--mobile {
    display: none;
}

/* ── Responsive ── */

/* ── Tablet ancho ≤1100px ── */
@media (max-width: 1100px) {
    .wp-block-gasex-hero-promo .hp-hero__inner {
        grid-template-columns: 210px 1fr 145px;
        gap: 20px;
        padding: 44px 24px 36px;
    }
    .wp-block-gasex-hero-promo .hp-bottom { padding: 0 24px 20px; }
    .wp-block-gasex-hero-promo .hp-right-badge { width: 145px; height: 145px; }
    .wp-block-gasex-hero-promo .hp-ideales { padding-left: 14px; }
    .wp-block-gasex-hero-promo .hp-ideales__grid { gap: 10px; }
    .wp-block-gasex-hero-promo .hp-line--1,
    .wp-block-gasex-hero-promo .hp-line--2 { font-size: clamp(1.4rem, 3.2vw, 2.8rem) !important; }
    /* Countdown: badge baja a 210px — reducir números y dar aire */
    .wp-block-gasex-hero-promo .hp-countdown         { gap: 2px; }
    .wp-block-gasex-hero-promo .hp-countdown__num    { font-size: 1.55rem; padding: 7px 3px 5px; }
    .wp-block-gasex-hero-promo .hp-countdown__sep    { font-size: 1.35rem; width: 10px; }
    .wp-block-gasex-hero-promo .hp-countdown__label  { font-size: 0.4rem; }
}

/* ── Tablet medio ≤880px — 2 columnas: badge + centro ── */
@media (max-width: 880px) {
    .wp-block-gasex-hero-promo .hp-hero__inner {
        grid-template-columns: 200px 1fr;
        gap: 16px;
        padding: 36px 20px 28px;
    }
    .wp-block-gasex-hero-promo .hp-right-badge { display: none; }
    .wp-block-gasex-hero-promo .hp-ideales__grid { gap: 8px; flex-wrap: wrap; }
    .wp-block-gasex-hero-promo .hp-ideal-item { width: 64px; }
    .wp-block-gasex-hero-promo .hp-line--1,
    .wp-block-gasex-hero-promo .hp-line--2 { font-size: clamp(1.3rem, 3.5vw, 2.4rem) !important; }
    /* Countdown: badge baja a 200px — reducir más */
    .wp-block-gasex-hero-promo .hp-countdown         { gap: 1px; }
    .wp-block-gasex-hero-promo .hp-countdown__num    { font-size: 1.4rem; padding: 6px 2px 5px; }
    .wp-block-gasex-hero-promo .hp-countdown__sep    { font-size: 1.2rem; width: 9px; }
}

/* ── Mobile ≤768px — layout apilado, imagen de fondo sigue siendo fondo ── */
@media (max-width: 768px) {
    .wp-block-gasex-hero-promo.hp-block { min-height: unset; }

    /* Imagen mobile visible, imagen desktop oculta (si hay mobile bg) */
    .wp-block-gasex-hero-promo .hp-block__bg--mobile {
        display: block;
        z-index: 1;
    }
    .wp-block-gasex-hero-promo .hp-block__bg:not(.hp-block__bg--mobile) {
        z-index: 0;
    }

    /* Grid → columna única */
    .wp-block-gasex-hero-promo .hp-hero__inner {
        grid-template-columns: 1fr;
        padding: 28px 20px 24px;
        gap: 20px;
    }

    /* Badge centrado */
    .wp-block-gasex-hero-promo .hp-left-badge {
        max-width: 280px;
        margin: 0 auto;
        align-self: center;
    }

    /* Badge derecho oculto en mobile */
    .wp-block-gasex-hero-promo .hp-right-badge { display: none; }

    /* Ribbon en una sola línea */
    .wp-block-gasex-hero-promo .hp-left-badge__ribbon span { font-size: 0.56rem; letter-spacing: 0.04em; }

    /* Títulos */
    .wp-block-gasex-hero-promo .hp-line--1,
    .wp-block-gasex-hero-promo .hp-line--2 { font-size: clamp(1.6rem, 8vw, 2.6rem) !important; }

    /* Barra inferior — stack vertical, centrado, ancho ajustado al contenido */
    .wp-block-gasex-hero-promo .hp-bottom { padding: 0 16px 20px; }
    .wp-block-gasex-hero-promo .hp-bottom__inner {
        flex-direction: column;
        align-items: stretch;
        border-radius: 10px;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .wp-block-gasex-hero-promo .hp-cta-list { flex-direction: column; }
    .wp-block-gasex-hero-promo .hp-cta-item {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.07);
        padding: 12px 20px;
        justify-content: center;
        gap: 14px;
    }
    .wp-block-gasex-hero-promo .hp-cta-item__arrow { margin-left: auto; }
    .wp-block-gasex-hero-promo .hp-cta-item:last-child { border-bottom: none; }
    .wp-block-gasex-hero-promo .hp-ideales {
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.07);
        padding: 12px 16px 14px;
        align-items: center;
    }
    .wp-block-gasex-hero-promo .hp-ideales__grid { justify-content: center; flex-wrap: wrap; gap: 14px; }
    .wp-block-gasex-hero-promo .hp-ideal-item { width: 68px; }
}

/* ── Mobile pequeño ≤480px ── */
@media (max-width: 480px) {
    .wp-block-gasex-hero-promo .hp-hero__inner { padding: 22px 14px 18px; gap: 18px; }
    .wp-block-gasex-hero-promo .hp-left-badge { max-width: 250px; min-width: 240px; }

    .wp-block-gasex-hero-promo .hp-countdown__num { font-size: 1.5rem !important; }
    .wp-block-gasex-hero-promo .hp-countdown__sep { font-size: 1.3rem; }
    .wp-block-gasex-hero-promo .hp-countdown__label { font-size: 0.4rem; }

    .wp-block-gasex-hero-promo .hp-line--1,
    .wp-block-gasex-hero-promo .hp-line--2 { font-size: clamp(1.3rem, 7vw, 2rem) !important; }

    .wp-block-gasex-hero-promo .hp-ideales__grid { gap: 12px; }
    .wp-block-gasex-hero-promo .hp-ideal-item { width: 60px; }
}
