/* ===== variables que modern-v2.css usa pero nadie definia ===== */
/* modern-v2.css pide var(--border), var(--bg-alt), var(--text) y var(--font),
   pero esos nombres no existen: las variables reales se llaman --medium-gray,
   --light-gray, --text-color y --font-primary. Una variable inexistente sin
   valor de respaldo invalida la declaracion entera, y por eso los campos del
   formulario se quedaban sin borde (border-style vuelve a su inicial: none).
   Se definen aqui con los mismos valores de la paleta ya existente. */
:root {
    --border: #e2e8f0;
    --bg-alt: #f8fafc;
    --text: #1e293b;
    --font: 'Inter', 'Montserrat', system-ui, sans-serif;
}

/* =========================================================
   HENTECH 2026 — Menú móvil, secciones de industria y ajustes
   Se carga DESPUÉS de main.css y modern-v2.css
   ========================================================= */

:root {
    --hh-azul: #2563eb;
    --hh-morado: #7c3aed;
    --hh-tinta: #0f172a;
    --hh-gris: #64748b;
    --hh-borde: #e2e8f0;
    --hh-suave: #f8fafc;
    --hh-verde: #25d366;
}

/* ---------------------------------------------------------
   1. BASE / ANTI-DESBORDE HORIZONTAL
   --------------------------------------------------------- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
img, video, iframe, canvas, svg {
    max-width: 100%;
}
img { height: auto; }
pre, code { max-width: 100%; overflow-x: auto; }
table { max-width: 100%; }

/* ---------------------------------------------------------
   2. BOTONES QUE FALTABAN
   --------------------------------------------------------- */
.btn-success {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
}
.btn-success:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
}
.btn-ghost-light:hover {
    background: #fff;
    color: var(--hh-azul);
}

/* ---------------------------------------------------------
   3. MENÚ MÓVIL (drawer lateral)
   --------------------------------------------------------- */
.hh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 10000;
}
.hh-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.hh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 350px);
    background: #fff;
    z-index: 10001;
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -14px 0 40px rgba(15, 23, 42, .18);
    visibility: hidden;
}
.hh-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.hh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--hh-borde);
    flex-shrink: 0;
}
.hh-drawer-logo {
    font-weight: 900;
    font-size: 19px;
    color: var(--hh-tinta);
    letter-spacing: .5px;
}
.hh-drawer-logo span {
    font-size: 10px;
    font-weight: 700;
    background: var(--hh-azul);
    color: #fff;
    padding: 3px 7px;
    border-radius: 5px;
    margin-left: 6px;
    vertical-align: middle;
}
.hh-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--hh-borde);
    background: #fff;
    border-radius: 12px;
    color: var(--hh-tinta);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.hh-close:hover {
    background: var(--hh-suave);
    color: var(--hh-azul);
}

.hh-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 14px 20px;
}

.hh-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--hh-tinta);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.hh-link i {
    width: 22px;
    text-align: center;
    color: var(--hh-azul);
    font-size: 15px;
}
.hh-link:active,
.hh-link:hover {
    background: var(--hh-suave);
    color: var(--hh-azul);
}
.hh-link.is-featured {
    background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(124, 58, 237, .1));
    color: var(--hh-azul);
}

.hh-group { border-radius: 12px; }
.hh-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: none;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    color: var(--hh-tinta);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.hh-acc-btn > i:first-child {
    width: 22px;
    text-align: center;
    color: var(--hh-azul);
    font-size: 15px;
}
.hh-acc-btn .hh-chevron {
    margin-left: auto;
    font-size: 12px;
    color: var(--hh-gris);
    transition: transform .25s ease;
}
.hh-acc-btn[aria-expanded="true"] {
    background: var(--hh-suave);
    color: var(--hh-azul);
}
.hh-acc-btn[aria-expanded="true"] .hh-chevron {
    transform: rotate(180deg);
}

.hh-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.hh-acc-panel a {
    display: block;
    padding: 11px 14px 11px 48px;
    color: var(--hh-gris);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
}
.hh-acc-panel a:hover,
.hh-acc-panel a:active {
    color: var(--hh-azul);
    background: var(--hh-suave);
}

.hh-divider {
    height: 1px;
    background: var(--hh-borde);
    margin: 12px 8px;
}

.hh-drawer-foot {
    flex-shrink: 0;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--hh-borde);
    background: var(--hh-suave);
    display: grid;
    gap: 10px;
}
.hh-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.hh-cta:active { transform: scale(.98); }
.hh-cta-wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}
.hh-cta-tel {
    background: var(--hh-tinta);
    color: #fff;
}
.hh-drawer-foot small {
    text-align: center;
    color: var(--hh-gris);
    font-size: 12px;
}

/* Botón hamburguesa: activo hasta 1024px */
@media (max-width: 1024px) {
    .nav { display: none !important; }
    .mobile-menu-btn {
        display: flex !important;
        width: 44px;
        height: 44px;
        padding: 11px 9px;
        border-radius: 12px;
        border: 1px solid var(--hh-borde);
        justify-content: space-between;
        align-items: stretch;
        flex-direction: column;
        margin-left: auto;
        background: #fff;
    }
    .mobile-menu-btn .menu-bar {
        width: 100%;
        height: 2px;
        background: var(--hh-tinta);
        border-radius: 2px;
    }
    .header .container {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .logo { margin-right: auto; }
    .header-cta {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 0 !important;
    }
}
@media (min-width: 1025px) {
    .hh-drawer, .hh-overlay { display: none !important; }
}

/* ---------------------------------------------------------
   4. CABECERA MÁS ORDENADA EN MÓVIL
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .header { padding: 10px 0 !important; }
    .header .container { padding: 0 14px; }
    .logo { font-size: 19px !important; gap: 6px !important; }
    .logo-badge { font-size: 10px !important; padding: 2px 6px !important; }
    .header-cta .phone-number { display: none !important; }
    .header-cta .btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }
}
@media (max-width: 380px) {
    .header-cta .btn span,
    .header-cta .btn { font-size: 12px !important; padding: 9px 11px !important; }
    .logo { font-size: 17px !important; }
}

/* ---------------------------------------------------------
   5. SECCIÓN CONSULTORÍA POR INDUSTRIA
   --------------------------------------------------------- */
.ind-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--hh-suave) 100%);
}
.ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 44px;
}
.ind-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 20px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ind-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--hh-azul), var(--hh-morado));
}
.ind-belleza::before  { background: linear-gradient(90deg, #ec4899, #a855f7); }
.ind-resto::before    { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.ind-sistemas::before { background: linear-gradient(90deg, #2563eb, #06b6d4); }
.ind-afiliados::before{ background: linear-gradient(90deg, #10b981, #2563eb); }
.ind-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .1);
    border-color: #bfdbfe;
}

.ind-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.ind-card-head { min-width: 0; }
.ind-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--hh-azul), var(--hh-morado));
}
.ind-belleza .ind-icon   { background: linear-gradient(135deg, #ec4899, #a855f7); }
.ind-resto .ind-icon     { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ind-sistemas .ind-icon  { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.ind-afiliados .ind-icon { background: linear-gradient(135deg, #10b981, #2563eb); }

.ind-card h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 2px 0 6px;
    color: var(--hh-tinta);
}
.ind-tag {
    display: block;
    font-size: 12px;
    color: var(--hh-gris);
    font-weight: 600;
    line-height: 1.45;
}
.ind-desc {
    color: var(--hh-gris);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 18px;
}
.ind-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 10px;
}
.ind-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}
.ind-list i {
    color: #10b981;
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}
.ind-result {
    background: var(--hh-suave);
    border: 1px dashed var(--hh-borde);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hh-tinta);
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.5;
    margin-bottom: 20px;
}
.ind-result i { color: var(--hh-azul); margin-top: 2px; }
.ind-actions {
    margin-top: auto;
    display: grid;
    gap: 12px;
    justify-items: center;
}
.ind-actions .btn-block {
    display: block;
    width: 100%;
    border-radius: 12px;
    padding: 14px 20px;
}
.ind-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--hh-azul);
    text-decoration: none;
    display: inline-flex;
    gap: 7px;
    align-items: center;
}
.ind-link:hover { gap: 11px; }

/* Otras industrias */
.ind-otros { margin-top: 56px; text-align: center; }
.ind-otros h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--hh-tinta); }
.ind-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.ind-chip {
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ind-chip i { color: var(--hh-azul); }

/* Qué incluye */
.ind-incluye { margin-top: 60px; text-align: center; }
.ind-incluye h3 { font-size: 1.5rem; margin-bottom: 28px; color: var(--hh-tinta); }
.ind-incluye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}
.ind-incluye-item {
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 16px;
    padding: 26px 18px;
    transition: transform .3s, box-shadow .3s;
}
.ind-incluye-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}
.ind-step-num {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hh-azul), var(--hh-morado));
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ind-incluye-item h4 { font-size: 15px; margin-bottom: 8px; color: var(--hh-tinta); }
.ind-incluye-item p { font-size: 13px; color: var(--hh-gris); line-height: 1.55; }

/* CTA final de la sección */
.ind-cta {
    margin-top: 60px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    border-radius: 22px;
    padding: 46px 30px;
    text-align: center;
    color: #fff;
}
.ind-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.ind-cta p {
    color: rgba(255, 255, 255, .8);
    max-width: 620px;
    margin: 0 auto 26px;
    line-height: 1.65;
}
.ind-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.ind-cta-btns .btn {
    border-radius: 12px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* ---------------------------------------------------------
   6. SECCIÓN SISTEMAS DE AFILIADOS
   --------------------------------------------------------- */
.afi-section { padding: 90px 0; background: #fff; }
.afi-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
    margin-top: 44px;
}
.afi-intro h3 { font-size: 1.7rem; margin-bottom: 16px; color: var(--hh-tinta); line-height: 1.3; }
.afi-intro p { color: var(--hh-gris); line-height: 1.75; margin-bottom: 14px; }
.afi-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.afi-badge {
    background: var(--hh-suave);
    border: 1px solid var(--hh-borde);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.afi-badge i { color: var(--hh-azul); }

/* Maqueta del panel */
.afi-panel {
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .1);
}
.afi-panel-bar {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}
.afi-panel-user {
    background: rgba(255, 255, 255, .15);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
}
.afi-panel-body { padding: 18px; }
.afi-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.afi-stat {
    background: var(--hh-suave);
    border: 1px solid var(--hh-borde);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.afi-stat-label { font-size: 11.5px; color: var(--hh-gris); font-weight: 600; }
.afi-stat-value { font-size: 20px; font-weight: 800; color: var(--hh-tinta); }
.afi-stat-pay { background: rgba(16, 185, 129, .08); border-color: rgba(16, 185, 129, .3); }
.afi-stat-pay .afi-stat-value { color: #059669; }

.afi-linkbox {
    margin-top: 14px;
    background: #0f172a;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.afi-linkbox-label { font-size: 11px; color: #94a3b8; font-weight: 600; }
.afi-linkbox code {
    color: #38bdf8;
    font-size: 13px;
    word-break: break-all;
    font-family: ui-monospace, "Courier New", monospace;
}

.afi-bars { margin-top: 16px; }
.afi-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 88px;
}
.afi-bar span {
    flex: 1;
    background: linear-gradient(180deg, var(--hh-azul), #60a5fa);
    border-radius: 6px 6px 0 0;
    min-height: 8px;
}
.afi-bars-label { font-size: 11.5px; color: var(--hh-gris); text-align: center; margin-top: 8px; }

/* Pasos */
.afi-pasos { margin-top: 64px; text-align: center; }
.afi-pasos h3 { font-size: 1.5rem; margin-bottom: 28px; color: var(--hh-tinta); }
.afi-pasos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}
.afi-paso {
    background: var(--hh-suave);
    border: 1px solid var(--hh-borde);
    border-radius: 16px;
    padding: 26px 20px;
    text-align: left;
}
.afi-paso-num {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--hh-azul), var(--hh-morado));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.afi-paso h4 { font-size: 15px; margin-bottom: 8px; color: var(--hh-tinta); }
.afi-paso p { font-size: 13.5px; color: var(--hh-gris); line-height: 1.6; }

/* Características */
.afi-features {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.afi-feature {
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 16px;
    padding: 26px 22px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.afi-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
    border-color: #bfdbfe;
}
.afi-feature i {
    font-size: 20px;
    color: var(--hh-azul);
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.afi-feature h4 { font-size: 15px; margin-bottom: 8px; color: var(--hh-tinta); }
.afi-feature p { font-size: 13.5px; color: var(--hh-gris); line-height: 1.6; }

/* CTA afiliados */
.afi-cta {
    margin-top: 56px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 22px;
    padding: 40px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    color: #fff;
}
.afi-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.afi-cta p { color: rgba(255, 255, 255, .85); line-height: 1.6; margin: 0; }
.afi-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.afi-cta-btns .btn {
    border-radius: 12px;
    padding: 14px 26px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.afi-cta-btns .btn-primary { background: #fff; color: var(--hh-azul); }
.afi-cta-btns .btn-primary:hover { background: #f1f5f9; color: var(--hh-azul); }

/* ---------------------------------------------------------
   7. RESPONSIVE DE LAS SECCIONES NUEVAS
   --------------------------------------------------------- */
@media (max-width: 992px) {
    .afi-top { grid-template-columns: 1fr; gap: 34px; }
    .afi-cta { flex-direction: column; text-align: center; }
    .afi-cta-btns { justify-content: center; width: 100%; }
}
@media (max-width: 768px) {
    .ind-section, .afi-section { padding: 60px 0; }
    .ind-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
    .ind-card { padding: 24px 20px 22px; border-radius: 18px; }
    .ind-cta { padding: 36px 22px; border-radius: 18px; }
    .ind-cta h3 { font-size: 1.35rem; }
    .ind-cta-btns { flex-direction: column; }
    .ind-cta-btns .btn { width: 100%; justify-content: center; }
    .ind-incluye-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
    .ind-incluye-item { padding: 20px 14px; }
    .afi-cta { padding: 32px 22px; border-radius: 18px; }
    .afi-cta-btns .btn { width: 100%; justify-content: center; }
    .afi-intro h3, .afi-pasos h3, .ind-incluye h3 { font-size: 1.3rem; }
    .afi-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .ind-card-top { gap: 12px; }
    .ind-icon { width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
    .ind-card h3 { font-size: 1.1rem; }
    .ind-chip { font-size: 12.5px; padding: 8px 14px; }
}

/* ---------------------------------------------------------
   8. AJUSTES GENERALES DE MAQUETACIÓN EN MÓVIL
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .container { padding-left: 16px !important; padding-right: 16px !important; }

    section, .cobertura-section, .ayuda-gratuita-banner,
    .emergency-banner, .contacto-inmediato, .terminal-container {
        padding-left: 0;
        padding-right: 0;
    }

    .hero { padding: 110px 0 60px !important; }
    .hero .container { flex-direction: column; gap: 30px; }
    .hero-title { font-size: clamp(1.75rem, 7vw, 2.2rem) !important; line-height: 1.25 !important; }
    .hero-subtitle { font-size: 15px !important; line-height: 1.65 !important; }
    .hero-buttons { flex-direction: column; gap: 12px; width: 100%; }
    .hero-buttons .btn { width: 100%; padding: 15px 20px; border-radius: 12px; }
    .hero-clients .client-logos { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .hero-clients img { max-height: 34px; width: auto; }

    .section-title { font-size: clamp(1.45rem, 5.5vw, 1.9rem) !important; line-height: 1.3 !important; }
    .section-subtitle { font-size: 14.5px !important; line-height: 1.6 !important; }

    /* Rejillas que deben apilarse */
    .services-grid,
    .footer-grid,
    .contact-container,
    .team-grid,
    .cloud-grid,
    .voip-content,
    .sistemas-grid,
    .process-steps,
    .benefits-grid,
    .steps-container,
    .asesorias-features,
    .testimonial-slider,
    .trust-bar-content {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
    .trust-bar-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 18px !important;
        text-align: center;
    }
    .trust-divider { display: none !important; }
    .trust-stat-number { font-size: 1.7rem !important; }
    .trust-stat-label { font-size: 12px !important; }

    /* Pestañas y barras que se desbordan */
    .showcase-nav,
    .herramientas-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        justify-content: flex-start !important;
    }
    .showcase-nav::-webkit-scrollbar,
    .herramientas-tabs::-webkit-scrollbar { display: none; }
    .showcase-btn, .herramienta-tab {
        flex: 0 0 auto !important;
        white-space: nowrap;
        font-size: 13px !important;
        padding: 10px 16px !important;
    }

    /* Formularios cómodos en el móvil */
    .form-group input,
    .form-group select,
    .form-group textarea,
    input[type="text"], input[type="email"],
    input[type="tel"], select, textarea {
        font-size: 16px !important; /* evita el zoom automático en iOS */
        width: 100%;
    }

    /* Botones flotantes sin tapar contenido */
    .floating-cta-container {
        bottom: 16px !important;
        right: 14px !important;
        gap: 10px !important;
    }
    .floating-cta-btn { width: 52px !important; height: 52px !important; }
    .floating-cta-btn .tooltip { display: none !important; }

    .footer-modern { padding: 50px 0 24px !important; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding-left: 14px !important; padding-right: 14px !important; }
    .btn { padding: 13px 20px; font-size: 14px; }
    .trust-bar-content { grid-template-columns: 1fr 1fr !important; }
}

/* El drawer nunca queda debajo de los botones flotantes */
.floating-cta-container { z-index: 9990; }
body.hh-open .floating-cta-container { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------
   9. SELECTOR DE RUBRO EN EL HERO
   --------------------------------------------------------- */
.hero-rubros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}
.hero-rubros-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--hh-gris);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-right: 4px;
}
.hero-rubro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 999px;
    padding: 9px 17px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hh-tinta);
    text-decoration: none;
    transition: all .25s ease;
}
.hero-rubro i { color: var(--hh-azul); font-size: 13px; }
.hero-rubro:hover {
    border-color: var(--hh-azul);
    color: var(--hh-azul);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .14);
}
@media (max-width: 768px) {
    .hero-rubros { gap: 8px; margin-top: 20px; justify-content: flex-start; }
    .hero-rubros-label { width: 100%; margin-bottom: 2px; font-size: 12px; }
    .hero-rubro { padding: 8px 14px; font-size: 12.5px; }
}

/* ---------------------------------------------------------
   10. BARRA SUPERIOR EN ESCRITORIO (cabe una opción más)
   --------------------------------------------------------- */
@media (min-width: 1025px) {
    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
        flex-wrap: nowrap;
    }
    .logo { flex-shrink: 0; white-space: nowrap; }
    .nav { flex: 1 1 auto; display: flex; justify-content: center; }
    .nav ul {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
    }
    .nav ul li { white-space: nowrap; }
    .nav-link, .dropdown-toggle {
        font-size: 13.5px !important;
        letter-spacing: .2px;
        white-space: nowrap;
    }
    .header-cta {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        white-space: nowrap;
    }
    .header-cta .btn {
        padding: 11px 18px;
        font-size: 13px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }
    .dropdown-menu { min-width: 230px; }
}
@media (min-width: 1025px) and (max-width: 1320px) {
    .nav ul { gap: 15px; }
    .nav-link, .dropdown-toggle { font-size: 12.5px !important; }
    .header-cta .phone-number { display: none; }
}

/* Quita el texto duplicado que aparecía al pasar el mouse por el menú */
.nav-link:before { display: none !important; content: none !important; }
.nav-link:hover { color: var(--hh-azul); }

/* Tarjetas de industria en 2x2 en pantallas grandes */
@media (min-width: 992px) {
    .ind-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Pie de página con cinco columnas */
@media (min-width: 993px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 34px; }
}

/* ---------------------------------------------------------
   11. RETAIL PEQUEÑO Y SUS RECOMENDACIONES
   --------------------------------------------------------- */
.ind-retail::before  { background: linear-gradient(90deg, #0ea5e9, #6366f1); }
.ind-retail .ind-icon { background: linear-gradient(135deg, #0ea5e9, #6366f1); }

.ind-retail-tips {
    margin-top: 56px;
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 22px;
    padding: 44px 38px;
}
.ind-retail-tips-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.ind-retail-tips-head h3 { font-size: 1.55rem; margin-bottom: 12px; color: var(--hh-tinta); }
.ind-retail-tips-head p { color: var(--hh-gris); line-height: 1.7; }

.ind-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
}
.ind-tips-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--hh-suave);
    border: 1px solid var(--hh-borde);
    border-radius: 16px;
    padding: 22px 20px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ind-tips-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    border-color: #bfdbfe;
}
.ind-tip-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ind-tips-list h4 { font-size: 15px; margin-bottom: 7px; color: var(--hh-tinta); line-height: 1.35; }
.ind-tips-list p { font-size: 13.5px; color: var(--hh-gris); line-height: 1.6; margin: 0; }

.ind-tips-cta {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px dashed var(--hh-borde);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ind-tips-cta p { color: var(--hh-gris); margin: 0; line-height: 1.6; }
.ind-tips-cta strong { color: var(--hh-tinta); }
.ind-tips-cta .btn {
    border-radius: 12px;
    padding: 13px 26px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ind-retail-tips { padding: 30px 20px; border-radius: 18px; margin-top: 36px; }
    .ind-retail-tips-head h3 { font-size: 1.25rem; }
    .ind-tips-list { grid-template-columns: 1fr; gap: 14px; }
    .ind-tips-list li { padding: 18px 16px; gap: 13px; }
    .ind-tips-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .ind-tips-cta .btn { width: 100%; justify-content: center; }
}

/* El hero es oscuro: los accesos por rubro deben leerse sobre él */
.hero .hero-rubros { margin-top: 28px; margin-bottom: 30px; }
.hero .hero-rubros-label { color: rgba(255, 255, 255, .6); }
.hero .hero-rubro {
    background: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .25);
}
.hero .hero-rubro:hover { background: #fff; }
.hero-clients { margin-top: 10px; }

/* ---------------------------------------------------------
   12. LOGO PRINCIPAL IGUAL AL DEL MENÚ
   El del encabezado usaba texto con degradado y píldora morada.
   Ahora usa el mismo azul marino sólido y la misma píldora azul.
   --------------------------------------------------------- */
.logo {
    font-weight: 900;
    letter-spacing: .5px;
    gap: 0;
    align-items: center;
}
.logo span:first-child {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: var(--hh-tinta) !important;
    color: var(--hh-tinta) !important;
    font-weight: 900;
    letter-spacing: .5px;
}
.logo-badge {
    background: var(--hh-azul) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    letter-spacing: .5px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.3;
}

/* El del menú lateral crece un poco para que ambos se vean iguales */
.hh-drawer-logo { font-size: 20px; }
.hh-drawer-logo span { font-size: 11px; padding: 3px 8px; letter-spacing: .5px; }

/* ---------------------------------------------------------
   13. LOGO DEL PIE DE PÁGINA IGUAL A LOS OTROS DOS
   Sobre fondo oscuro el texto va en blanco, pero conserva
   el mismo peso, espaciado y píldora azul plana.
   --------------------------------------------------------- */
.footer-col h4.footer-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .5px;
    color: #fff;
    padding-bottom: 0;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}
.footer-col h4.footer-logo::after { display: none; }
.footer-col h4.footer-logo span {
    background: var(--hh-azul);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 5px;
    margin-left: 8px;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .footer-col h4.footer-logo { font-size: 20px; }
}

/* ---------------------------------------------------------
   14. AVATAR DE TESTIMONIO CON INICIALES
   Antes se usaba el logo de un proveedor como foto de la persona.
   --------------------------------------------------------- */
.testimonial-initial {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hh-azul), var(--hh-morado));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------
   15. FRANJA DE TECNOLOGÍAS (antes iba en el hero)
   --------------------------------------------------------- */
.tecnologias{
    background: #fff;
    border-bottom: 1px solid var(--hh-borde);
    padding: 26px 0 30px;
}
.tecnologias-titulo{
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hh-gris);
    margin: 0 0 18px;
}
.tecnologias-logos{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 46px;
    flex-wrap: wrap;
}
.tecnologias-logos img{
    height: 30px;
    width: auto;
    opacity: .45;
    filter: grayscale(100%);
    transition: opacity .3s, filter .3s;
}
.tecnologias-logos img:hover{ opacity: .9; filter: grayscale(0); }
@media (max-width: 768px){
    .tecnologias{ padding: 20px 0 22px; }
    .tecnologias-logos{ gap: 28px; }
    .tecnologias-logos img{ height: 22px; }
}

/* ---------------------------------------------------------
   16. SERVICIOS AGRUPADOS EN 4 BLOQUES (modelo MSP)
   --------------------------------------------------------- */
.pilares{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 36px 0 60px;
}
.pilar{
    display: block;
    background: #fff;
    border: 1px solid var(--hh-borde);
    border-radius: 16px;
    padding: 26px 22px 24px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pilar::before{
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hh-azul), var(--hh-morado));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.pilar:hover{
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .09);
    border-color: #bfdbfe;
}
.pilar:hover::before{ transform: scaleX(1); }
.pilar-num{
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--hh-azul);
    margin-bottom: 10px;
}
.pilar h3{
    font-size: 1.05rem;
    color: var(--hh-tinta);
    margin: 0 0 8px;
    line-height: 1.3;
}
.pilar p{
    font-size: 13.5px;
    color: var(--hh-gris);
    line-height: 1.55;
    margin: 0;
}

.bloque{ margin-bottom: 56px; }
.bloque:last-of-type{ margin-bottom: 0; }
.bloque-cabeza{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--hh-borde);
}
.bloque-num{
    flex-shrink: 0;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--hh-azul), var(--hh-morado));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bloque-cabeza h3{
    font-size: 1.4rem;
    margin: 0 0 5px;
    color: var(--hh-tinta);
    line-height: 1.25;
}
.bloque-cabeza p{
    margin: 0;
    color: var(--hh-gris);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 680px;
}

/* Tarjetas que solo enlazan a otra sección */
.enlace-card{
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.enlace-card h3{ color: var(--hh-tinta); }
.enlace-card p{ color: var(--hh-gris); }
.enlace-card-mas{
    margin-top: auto;
    padding-top: 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hh-azul);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap .25s;
}
.enlace-card:hover .enlace-card-mas{ gap: 12px; }

@media (max-width: 768px){
    .pilares{ grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 44px; }
    .pilar{ padding: 18px 15px; }
    .pilar h3{ font-size: .95rem; }
    .pilar p{ font-size: 12.5px; }
    .bloque{ margin-bottom: 40px; }
    .bloque-cabeza{ gap: 13px; margin-bottom: 22px; }
    .bloque-num{ font-size: 1.7rem; }
    .bloque-cabeza h3{ font-size: 1.15rem; }
    .bloque-cabeza p{ font-size: 13.5px; }
}
@media (max-width: 420px){
    .pilares{ grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   17. BANDA DE TRABAJO EN TERRENO
   --------------------------------------------------------- */
.terreno-banda{
    margin-top: 28px;
    background: linear-gradient(135deg, var(--hh-tinta), #1e3a8a);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    color: #fff;
}
.terreno-texto{ flex: 1 1 360px; }
.terreno-texto h4{
    color: #fff;
    font-size: 1.12rem;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    line-height: 1.3;
}
.terreno-texto h4 i{ color: #60a5fa; }
.terreno-texto p{
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    line-height: 1.6;
}
.terreno-datos{
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.terreno-datos > div{
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 13px;
    padding: 13px 20px;
    text-align: center;
    min-width: 108px;
}
.terreno-datos b{
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #93c5fd;
    line-height: 1.2;
}
.terreno-datos span{
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    font-weight: 600;
}
@media (max-width: 768px){
    .terreno-banda{ padding: 22px 18px; border-radius: 15px; }
    .terreno-texto h4{ font-size: 1rem; }
    .terreno-datos{ width: 100%; }
    .terreno-datos > div{ flex: 1 1 calc(33% - 10px); min-width: 0; padding: 11px 8px; }
    .terreno-datos b{ font-size: 1rem; }
    .terreno-datos span{ font-size: 9.5px; }
}


/* logo enlazado */
.header .logo{text-decoration:none;color:inherit;cursor:pointer}
.header .logo:hover{opacity:.85}

/* ===== equipo centrado y formulario en movil ===== */
/* main.css centra el equipo con flex, pero modern-v2.css lo pisa con
   grid auto-fit. Como las tarjetas tienen ancho fijo quedan pegadas al inicio
   de su columna. En vez de pelear con el tipo de display, se centra cada
   tarjeta dentro de su columna, que funciona con flex y con grid. */
.team-grid {
    justify-items: center;
    justify-content: center;
}
.team-card {
    width: 100%;
    max-width: 280px;
}

@media (max-width: 768px) {
    /* 36px de relleno se comen el ancho util de un telefono */
    .contact-form {
        padding: 20px;
    }
    .contact .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-content,
    .contact-form {
        width: 100%;
        min-width: 0;
    }
    .form-group {
        margin-bottom: 14px;
    }
    /* boton de ancho completo y alto suficiente para el dedo */
    .contact-form .btn,
    .contact-form button[type="submit"],
    .contact-form input[type="submit"] {
        width: 100%;
        min-height: 48px;
    }
    /* que nada del formulario desborde a lo ancho */
    .contact-form textarea {
        max-width: 100%;
        resize: vertical;
    }
}

@media (max-width: 420px) {
    .contact-form {
        padding: 16px;
    }
    .team-card {
        max-width: 100%;
    }
}
