/* =========================================================
   home-secciones.css
   Estilos de: promo "Sistema Multisucursal", Portfolio,
   Webs para Público General y bloque "¿No encontraste...?"
   Paleta Hibridapp: negro + amarillo (#f1c50e)
   ========================================================= */

:root {
    --hb-amarillo: #f1c50e;
    --hb-amarillo-2: #ffd84a;
    --hb-negro: #0b0b0c;
    --hb-negro-2: #161618;
    --hb-negro-3: #222226;
    --hb-gris: #f3f3f1;
    --hb-texto: #1d1d1f;
    --hb-texto-suave: #5f6066;
    --hb-radio: 18px;
}

.hb-section {
    position: relative;
    padding: 90px 20px;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    overflow: hidden;
}
.hb-wrap {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---------- Encabezados de sección ---------- */
.hb-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}
.hb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--hb-amarillo);
    margin-bottom: 14px;
}
.hb-eyebrow::before,
.hb-eyebrow::after {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
}
.hb-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: var(--hb-texto);
}
.hb-title span { color: var(--hb-amarillo); }
.hb-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hb-texto-suave);
    margin: 0;
}
.hb-dark .hb-title { color: #fff; }
.hb-dark .hb-lead { color: #b9b9bf; }

/* ---------- Botones ---------- */
.hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    text-decoration: none !important;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    line-height: 1.2;
}
.hb-btn:hover { transform: translateY(-3px); }
.hb-btn-primary {
    background: var(--hb-amarillo);
    color: var(--hb-negro) !important;
    box-shadow: 0 10px 25px rgba(241, 197, 14, .35);
}
.hb-btn-primary:hover { background: var(--hb-amarillo-2); box-shadow: 0 14px 30px rgba(241, 197, 14, .5); }
.hb-btn-ghost {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .35);
}
.hb-btn-ghost:hover { border-color: var(--hb-amarillo); color: var(--hb-amarillo) !important; }
.hb-btn-dark {
    background: var(--hb-negro);
    color: #fff !important;
}
.hb-btn-dark:hover { background: var(--hb-negro-3); box-shadow: 0 12px 25px rgba(0, 0, 0, .25); }
.hb-btn-outline {
    background: transparent;
    color: var(--hb-texto) !important;
    border-color: var(--hb-texto);
}
.hb-btn-outline:hover { background: var(--hb-texto); color: #fff !important; }
.hb-btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* =========================================================
   PROMO SISTEMA MULTISUCURSAL
   ========================================================= */
.hb-sistema {
    background:
        radial-gradient(circle at 85% 15%, rgba(241, 197, 14, .18), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(241, 197, 14, .10), transparent 40%),
        var(--hb-negro);
    color: #fff;
}
.hb-sistema::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hb-sistema-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}
.hb-sistema .hb-eyebrow::after { display: none; }
.hb-sistema .hb-title { text-align: left; color: #fff; }
.hb-sistema .hb-lead { color: #c4c4ca; margin-bottom: 28px; }
.hb-badge-nuevo {
    display: inline-block;
    background: var(--hb-amarillo);
    color: var(--hb-negro);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 6px;
}
.hb-feat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
}
.hb-feat-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .93rem;
    line-height: 1.45;
    color: #e6e6ea;
}
.hb-feat-list i {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(241, 197, 14, .12);
    color: var(--hb-amarillo);
    font-size: 1.05rem;
}
.hb-feat-list strong { display: block; color: #fff; font-weight: 700; }
.hb-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Mockup de pantalla */
.hb-mock {
    background: var(--hb-negro-2);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(241, 197, 14, .08);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
    transition: transform .6s ease;
}
.hb-mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hb-mock-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #1e1e21;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hb-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3f; }
.hb-mock-bar span:nth-child(1) { background: #ff5f57; }
.hb-mock-bar span:nth-child(2) { background: #febc2e; }
.hb-mock-bar span:nth-child(3) { background: #28c840; }
.hb-mock-bar em {
    margin-left: 12px;
    font-style: normal;
    font-size: .72rem;
    color: #8b8b92;
    background: #2a2a2e;
    padding: 4px 12px;
    border-radius: 6px;
    flex: 1;
}
.hb-mock-body { padding: 18px; display: grid; gap: 14px; }
.hb-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hb-kpi {
    background: #1f1f23;
    border-radius: 10px;
    padding: 12px;
}
.hb-kpi small { display: block; font-size: .65rem; color: #8b8b92; text-transform: uppercase; letter-spacing: .08em; }
.hb-kpi b { font-family: 'Oswald', sans-serif; font-size: 1.35rem; color: #fff; font-weight: 500; }
.hb-kpi b.y { color: var(--hb-amarillo); }
.hb-chart {
    background: #1f1f23;
    border-radius: 10px;
    padding: 14px 14px 10px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.hb-chart i {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--hb-amarillo), rgba(241, 197, 14, .25));
    animation: hbGrow 1.4s ease both;
    transform-origin: bottom;
}
@keyframes hbGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hb-rows { display: grid; gap: 6px; }
.hb-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr .8fr;
    gap: 10px;
    align-items: center;
    background: #1f1f23;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: .72rem;
    color: #c4c4ca;
}
.hb-row b { color: #fff; font-weight: 600; }
.hb-row .ok { color: #3ddc84; text-align: right; font-weight: 700; }

/* =========================================================
   PORTFOLIO (fondo oscuro)
   ========================================================= */
.hb-portfolio {
    background: linear-gradient(180deg, var(--hb-negro) 0%, #141416 100%);
}
.hb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}
.hb-pcard {
    position: relative;
    background: var(--hb-negro-2);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--hb-radio);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.hb-pcard:hover {
    transform: translateY(-8px);
    border-color: rgba(241, 197, 14, .55);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .5);
}
.hb-pcard-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #222;
}
.hb-pcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .7s ease, filter .4s ease;
}
.hb-pcard:hover .hb-pcard-media img { transform: scale(1.08); filter: brightness(.45); }
.hb-pcard-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: #444;
}
.hb-pcard-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .35s ease;
}
.hb-pcard:hover .hb-pcard-overlay { opacity: 1; }
.hb-pcard-overlay .hb-btn { padding: 11px 22px; font-size: .85rem; transform: translateY(10px); }
.hb-pcard:hover .hb-pcard-overlay .hb-btn { transform: translateY(0); }
.hb-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--hb-amarillo);
    color: var(--hb-negro);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 30px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}
.hb-pcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.hb-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: .72rem;
}
.hb-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(241, 197, 14, .12);
    color: var(--hb-amarillo);
    border: 1px solid rgba(241, 197, 14, .3);
}
.hb-date { color: #85858c; display: inline-flex; align-items: center; gap: 4px; }
.hb-pcard h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hb-pcard p {
    font-size: .86rem;
    line-height: 1.55;
    color: #a3a3aa;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hb-pcard-link {
    margin-top: auto;
    padding-top: 16px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--hb-amarillo) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hb-pcard-link i { transition: transform .25s ease; }
.hb-pcard-link:hover i { transform: translateX(4px); }
.hb-pcard-link.off { color: #6b6b72 !important; font-weight: 500; }

.hb-more {
    display: flex;
    justify-content: center;
    margin-top: 46px;
}
.hb-more .hb-count {
    background: rgba(0, 0, 0, .85);
    color: var(--hb-amarillo);
    font-size: .75rem;
    padding: 3px 9px;
    border-radius: 20px;
}
.hb-light .hb-more .hb-count { background: var(--hb-amarillo); color: var(--hb-negro); }

/* =========================================================
   WEBS PARA PÚBLICO GENERAL (fondo claro)
   ========================================================= */
.hb-webs { background: var(--hb-gris); }
.hb-webs .hb-eyebrow { color: #b08d00; }
.hb-wcard {
    background: #fff;
    border-radius: var(--hb-radio);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    border: 1px solid #e9e9e6;
    transition: transform .35s ease, box-shadow .35s ease;
}
.hb-wcard:hover { transform: translateY(-8px); box-shadow: 0 24px 45px rgba(0, 0, 0, .14); }
.hb-wcard-media {
    position: relative;
    margin: 12px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eee;
}
.hb-wcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .7s ease;
}
.hb-wcard:hover .hb-wcard-media img { transform: scale(1.06); }
.hb-wcard-media .hb-pcard-placeholder { color: #c9c9c9; }
.hb-tag-free {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #16a34a;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 30px;
    box-shadow: 0 6px 14px rgba(22, 163, 74, .35);
}
.hb-wcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.hb-wcard .hb-chip { background: #fff7d1; color: #7a6100; border-color: #f3df85; }
.hb-wcard h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hb-texto);
    margin: 10px 0 8px;
}
.hb-wcard p {
    font-size: .86rem;
    line-height: 1.55;
    color: var(--hb-texto-suave);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hb-wcard ul { list-style: none; padding: 0; margin: 0 0 14px; }
.hb-wcard li { font-size: .82rem; color: #3b3b40; padding: 3px 0; }
.hb-wcard li i { color: #16a34a; margin-right: 6px; }
.hb-wcard-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed #e3e3df;
}
.hb-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--hb-texto);
}
.hb-price.free { color: #16a34a; }
.hb-wcard-foot .hb-btn { padding: 10px 18px; font-size: .82rem; }

/* =========================================================
   CTA "¿No encontraste lo que buscabas?"
   ========================================================= */
.hb-explora { background: var(--hb-gris); padding-top: 0; }
.hb-explora-box {
    background: var(--hb-negro);
    border-radius: 26px;
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hb-explora-box::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241, 197, 14, .35), transparent 70%);
}
.hb-explora-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.1;
}
.hb-explora-box p { color: #b9b9bf; margin: 0; font-size: 1rem; }
.hb-explora-box .hb-cta-row { justify-content: flex-end; position: relative; z-index: 1; }

/* =========================================================
   Animación de entrada
   ========================================================= */
.hb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.hb-reveal.is-visible { opacity: 1; transform: none; }
.hb-new { animation: hbFadeUp .55s ease both; }
@keyframes hbFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .hb-reveal { opacity: 1; transform: none; transition: none; }
    .hb-mock, .hb-chart i, .hb-new { animation: none; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
    .hb-grid { gap: 18px; }
    .hb-pcard-body, .hb-wcard-body { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 991px) {
    .hb-section { padding: 70px 16px; }
    .hb-sistema-grid { grid-template-columns: 1fr; gap: 50px; }
    .hb-mock { transform: none; }
    .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .hb-explora-box { grid-template-columns: 1fr; text-align: center; }
    .hb-explora-box .hb-cta-row { justify-content: center; }
}
@media (max-width: 575px) {
    .hb-section { padding: 60px 16px; }
    .hb-grid { grid-template-columns: 1fr; }
    .hb-feat-list { grid-template-columns: 1fr; }
    .hb-kpis { grid-template-columns: repeat(3, 1fr); }
    .hb-kpi b { font-size: 1.05rem; }
    .hb-cta-row .hb-btn { width: 100%; }
    .hb-explora-box { padding: 36px 22px; }
}

/* Grilla centrada: si hay menos de 4 elementos quedan al medio */
.hb-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.hb-grid > * { width: calc((100% - 3 * 26px) / 4); }
.hb-btn { white-space: nowrap; }
@media (max-width: 1199px) { .hb-grid > * { width: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 991px)  { .hb-grid > * { width: calc((100% - 20px) / 2); } }
@media (max-width: 575px)  { .hb-grid > * { width: 100%; } }

/* Captura real del sistema (cargada desde el admin) en lugar del mockup */
.hb-mock-img img { display: block; width: 100%; height: auto; }

/* =========================================================
   CHATBOTS CON IA: conversación de ejemplo
   ========================================================= */
.hb-chatbots { background:
    radial-gradient(circle at 12% 20%, rgba(241, 197, 14, .16), transparent 42%),
    radial-gradient(circle at 90% 85%, rgba(241, 197, 14, .10), transparent 40%),
    #0b0b0c; }
.hb-chat-demo {
    max-width: 400px;
    margin-left: auto;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 6px rgba(241, 197, 14, .12);
    transform: perspective(1400px) rotateY(-6deg);
}
.hb-chat-demo-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #161618; border-bottom: 3px solid #f1c50e; color: #fff; }
.hb-chat-demo-top .av { width: 38px; height: 38px; border-radius: 50%; background: #f1c50e; color: #0b0b0c; display: grid; place-items: center; font-size: 1.15rem; }
.hb-chat-demo-top b { display: block; font-size: .9rem; }
.hb-chat-demo-top small { font-size: .72rem; color: #bdbdc4; display: inline-flex; align-items: center; gap: 5px; }
.hb-chat-demo-top small i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.hb-chat-demo-body { padding: 18px 16px; background: #f3f3f1; display: flex; flex-direction: column; gap: 10px; }
.hb-chat-demo-body p { margin: 0; max-width: 84%; padding: 10px 13px; border-radius: 15px; font-size: .86rem; line-height: 1.45; opacity: 0; animation: hbChatAparece .5s ease forwards; }
.hb-chat-demo-body .u { align-self: flex-end; background: #0b0b0c; color: #fff; border-bottom-right-radius: 4px; }
.hb-chat-demo-body .b { align-self: flex-start; background: #fff; color: #1d1d1f; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.hb-chat-demo-body p:nth-child(1) { animation-delay: .3s; }
.hb-chat-demo-body p:nth-child(2) { animation-delay: 1.1s; }
.hb-chat-demo-body p:nth-child(3) { animation-delay: 2s; }
.hb-chat-demo-body p:nth-child(4) { animation-delay: 2.8s; }
.hb-chat-demo-body p:nth-child(5) { animation-delay: 3.4s; }
.hb-chat-demo-body .escribe { display: inline-flex; gap: 4px; padding: 12px 14px; }
.hb-chat-demo-body .escribe span { width: 7px; height: 7px; border-radius: 50%; background: #9a9aa2; animation: hbChatPuntos 1.2s infinite ease-in-out; }
.hb-chat-demo-body .escribe span:nth-child(2) { animation-delay: .15s; }
.hb-chat-demo-body .escribe span:nth-child(3) { animation-delay: .3s; }
@keyframes hbChatAparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hbChatPuntos { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (max-width: 991px) { .hb-chat-demo { margin: 0 auto; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hb-chat-demo-body p { animation: none; opacity: 1; } }
