/* =====================================================================
   CarmenApp · Inicio — rediseño mobile-first
   Prefijo .cah ("CarmenApp Home"): aislado del tema Towhub.
   ===================================================================== */

.cah {
    --cah-navy: #001c50;
    --cah-navy-2: #062a63;
    --cah-blue: #4db7fe;
    --cah-green: #5ecfb1;
    --cah-gold: #f8bd38;
    --cah-ink: #0b1b3a;
    --cah-text: #334155;
    --cah-muted: #7c8798;
    --cah-line: #e7ecf5;
    --cah-bg: #f5f7fb;
    --cah-radius: 16px;
    --cah-gutter: 16px;
    --cah-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    --cah-shadow-lg: 0 18px 38px rgba(15, 23, 42, .12);

    position: relative;
    z-index: 2;
    display: block;
    float: none;
    width: 100%;
    text-align: left;
    color: var(--cah-text);
    background: #fff;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.cah *,
.cah *::before,
.cah *::after { box-sizing: border-box; }

.cah h1,
.cah h2,
.cah h3,
.cah h4,
.cah h5 {
    float: none;
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: inherit;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-align: left;
}

.cah p,
.cah ul,
.cah ol,
.cah li { margin: 0; padding: 0; }

.cah ul,
.cah ol { list-style: none; }

.cah a { color: inherit; text-decoration: none; }
.cah img { display: block; max-width: 100%; }
.cah button { font-family: inherit; }
.cah select,
.cah input { font-family: inherit; }

.cah-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--cah-gutter);
}

/* ── Secciones ─────────────────────────────────────────────────────── */
/* El tema aplica float:left a <section>; aquí se anula para que las
   secciones se apilen correctamente (mobile-first). */
.cah > section {
    float: none;
    width: 100%;
}

.cah-section {
    position: relative;
    float: none;
    width: 100%;
    padding: 38px 0;
    background: #fff;
}

.cah-section--soft { background: var(--cah-bg); }

/* ── Encabezado de sección ─────────────────────────────────────────── */
.cah-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.cah-head__text {
    flex: 1 1 55%;
    min-width: 0;
}

.cah-head__kicker {
    display: block;
    margin-bottom: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cah-blue);
}

.cah-head__title {
    font-size: clamp(20px, 5.2vw, 30px);
    font-weight: 800;
    color: var(--cah-ink);
}

.cah-head__desc {
    margin-top: 6px;
    max-width: 58ch;
    font-size: 13.5px;
    color: var(--cah-muted);
}

.cah-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--cah-navy);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.cah-head__link:hover {
    background: var(--cah-navy);
    color: #fff;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.cah-hero {
    position: relative;
    z-index: 3;
    /* Solo se recorta el eje horizontal (chips a sangre). El vertical debe
       quedar visible para que el autocompletado pueda desbordar la sección. */
    overflow-x: clip;
    overflow-y: visible;
    padding: 26px 0 30px;
    background: var(--cah-navy);
    color: #fff;
}

.cah-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cah-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .38;
}

.cah-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 15, 45, .82) 0%, rgba(0, 28, 80, .92) 55%, var(--cah-navy) 100%),
        radial-gradient(circle at 85% 5%, rgba(77, 183, 254, .35), transparent 55%);
}

.cah-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.cah-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

.cah-hero__eyebrow i { color: var(--cah-green); }

.cah-hero__title {
    font-size: clamp(25px, 7.4vw, 46px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
}

.cah-hero__sub {
    margin-top: 10px;
    max-width: 46ch;
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
}

/* ── Buscador ──────────────────────────────────────────────────────── */
.cah-search {
    margin-top: 20px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    color: var(--cah-text);
    box-shadow: 0 20px 44px rgba(0, 12, 40, .32);
}

.cah-search__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
}

.cah-tab {
    flex: 1;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.cah-tab.is-active {
    background: #fff;
    color: var(--cah-navy);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.cah-search__panel { display: none; }
.cah-search__panel.is-active { display: block; }
.cah-search__form { margin: 0; }

.cah-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.cah-field:focus-within {
    border-color: var(--cah-blue);
    box-shadow: 0 0 0 4px rgba(77, 183, 254, .16);
}

.cah-field > i {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 15px;
}

.cah-field input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--cah-ink);
    font-size: 15px;
    text-align: left;
    outline: none;
}

.cah-field input[type="text"]::placeholder { color: #a3aec0; }

.cah-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.cah-select-wrap {
    display: block;
    margin: 0;
    min-width: 0;
}

.cah-select {
    width: 100%;
    height: 50px;
    padding: 0 38px 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    color: var(--cah-ink);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-align-last: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.cah-select:focus {
    border-color: var(--cah-blue);
    box-shadow: 0 0 0 4px rgba(77, 183, 254, .16);
    outline: none;
}

.cah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 20px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.cah-btn--primary {
    background: var(--cah-navy);
    color: #fff;
}

.cah-btn--primary:hover { background: #0a2a6b; }
.cah-btn--primary:active { transform: scale(.99); }

.cah-btn--ghost {
    background: #fff;
    border-color: var(--cah-line);
    color: var(--cah-navy);
}

.cah-btn--ghost:hover {
    background: var(--cah-navy);
    border-color: var(--cah-navy);
    color: #fff;
}

/* ── Chips de categorías (hero) ────────────────────────────────────── */
.cah-chips {
    display: flex;
    gap: 8px;
    margin: 16px calc(var(--cah-gutter) * -1) 0;
    padding: 0 var(--cah-gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cah-chips::-webkit-scrollbar { display: none; }

.cah-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

.cah-chip i { color: var(--cah-green); font-size: 13px; }

.cah-chip:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .4);
}

/* ── Autocompletado ────────────────────────────────────────────────── */
.cah .ca-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    max-height: min(70vh, 480px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .2);
    text-align: left;
}

.cah .ca-autocomplete.show { display: block; }

.cah .ca-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}

.cah .ca-ac-item:last-child { border-bottom: none; }
.cah .ca-ac-item:hover,
.cah .ca-ac-item.active { background: #f2f8ff; }

.cah .ca-ac-cover {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
    background: #eef2f7;
}

.cah .ca-ac-info { flex: 1; min-width: 0; }

.cah .ca-ac-name {
    overflow: hidden;
    color: var(--cah-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cah .ca-ac-name mark {
    padding: 0 2px;
    border-radius: 3px;
    background: #fef08a;
    color: var(--cah-ink);
}

.cah .ca-ac-addr {
    margin-top: 2px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cah .ca-ac-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--cah-blue);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
}

.cah .ca-ac-empty {
    padding: 22px 16px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.cah .ca-ac-more {
    padding: 11px 14px;
    border-top: 1px solid #f0f4f9;
    text-align: center;
}

.cah .ca-ac-more a {
    color: var(--cah-blue);
    font-size: 12.5px;
    font-weight: 700;
}

/* ── Carril de listados ────────────────────────────────────────────── */
.cah-rail {
    display: flex;
    gap: 12px;
    margin: 0 calc(var(--cah-gutter) * -1);
    padding: 4px var(--cah-gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--cah-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cah-rail::-webkit-scrollbar { display: none; }

.cah-rail > * {
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
}

.cah-railnav {
    display: none;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.cah-railnav button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--cah-line);
    border-radius: 50%;
    background: #fff;
    color: var(--cah-navy);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.cah-railnav button:hover {
    background: var(--cah-navy);
    border-color: var(--cah-navy);
    color: #fff;
}

/* ── Tarjeta ───────────────────────────────────────────────────────── */
.cah-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--cah-line);
    border-radius: var(--cah-radius);
    background: #fff;
    box-shadow: var(--cah-shadow);
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cah-card:hover {
    transform: translateY(-3px);
    border-color: #dbe7fb;
    box-shadow: var(--cah-shadow-lg);
}

.cah-card.is-hidden { display: none; }

.cah-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eef9, #dce7f8);
}

.cah-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.cah-card:hover .cah-card__media img { transform: scale(1.05); }

.cah-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8bd38, #e2892b);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(226, 137, 43, .35);
}

.cah-card__views {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(2, 15, 45, .62);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.cah-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
}

.cah-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--cah-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cah-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #8a97ab;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cah-card__meta i {
    flex: 0 0 auto;
    color: #ef4444;
    font-size: 11px;
}

.cah-card__desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--cah-muted);
    font-size: 12.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cah-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.cah-card__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cah-card__row .cah-card__title { flex: 1; min-width: 0; }

.cah-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.cah-pill span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cah-pill__ico {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c, var(--cah-blue));
    color: #fff;
    font-size: 9px;
}

.cah-rating {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    color: var(--cah-ink);
    font-size: 12px;
    font-weight: 800;
}

.cah-rating i {
    color: var(--cah-gold);
    font-size: 11px;
}

.cah-verified {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--cah-green);
    color: #fff;
    font-size: 9px;
}

.cah-contacts {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.cah-contact {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    transition: background .2s, color .2s;
}

.cah-contact:hover {
    background: var(--cah-navy);
    color: #fff;
}

.cah-contact--wa:hover { background: #25d366; }
.cah-contact--wa i { color: #25d366; }
.cah-contact--wa:hover i { color: #fff; }

/* ── Grid de categorías ────────────────────────────────────────────── */
.cah-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Tarjeta: foto arriba, datos sobre blanco */
.cah-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cah-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    color: var(--cah-ink);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cah-cat__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e9eff8;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .5s ease;
}

.cah-cat:hover {
    transform: translateY(-3px);
    border-color: #cfe0f7;
    box-shadow: 0 16px 30px rgba(3, 15, 45, .13);
}

.cah-cat:hover .cah-cat__media { transform: scale(1.06); }

.cah-cat:focus-visible {
    outline: 3px solid rgba(77, 183, 254, .55);
    outline-offset: 2px;
}

/* Icono de la categoría sobre la foto */
.cah-cat__ico {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 10px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 6px 14px rgba(3, 15, 45, .18);
    color: var(--cah-navy);
    font-size: 13px;
    backdrop-filter: blur(4px);
}

.cah-cat__body {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px 11px;
}

.cah-cat__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cah-cat__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--cah-ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cah-cat__count {
    color: #8494a9;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .01em;
}

.cah-cat__go {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--cah-navy);
    font-size: 9px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cah-cat:hover .cah-cat__go {
    background: var(--cah-navy);
    color: #fff;
    transform: translateX(2px);
}

/* ── Estadísticas ──────────────────────────────────────────────────── */
.cah-stats {
    position: relative;
    float: none;
    width: 100%;
    padding: 30px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #001c50 0%, #062a63 55%, #0b3a80 100%);
    color: #fff;
}

.cah-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(77, 183, 254, .3), transparent 46%),
        radial-gradient(circle at 88% 92%, rgba(94, 207, 177, .24), transparent 48%);
}

.cah-stats__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
}

.cah-stat { text-align: center; }

.cah-stat__num {
    display: block;
    font-size: clamp(22px, 6.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

.cah-stat__label {
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

/* ── Filtros de populares ──────────────────────────────────────────── */
.cah-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cah-filters::-webkit-scrollbar { display: none; }

.cah-filter {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.cah-filter:hover {
    border-color: var(--cah-blue);
    color: var(--cah-navy);
}

.cah-filter.is-active {
    background: var(--cah-navy);
    border-color: var(--cah-navy);
    color: #fff;
}

.cah-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

/* ── Cómo funciona ─────────────────────────────────────────────────── */
.cah-how {
    position: relative;
    overflow: hidden;
    padding: 26px 20px 28px;
    border-radius: 24px;
    background: linear-gradient(140deg, #00143c 0%, #00225e 48%, #0b3a80 100%);
    color: #fff;
    box-shadow: 0 24px 50px rgba(3, 15, 45, .22);
}

.cah-how::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% -10%, rgba(77, 183, 254, .4), transparent 55%),
        radial-gradient(circle at -10% 110%, rgba(94, 207, 177, .25), transparent 50%);
    pointer-events: none;
}

.cah-how .cah-head,
.cah-how__steps {
    position: relative;
    z-index: 1;
}

.cah-how .cah-head { margin-bottom: 22px; }
.cah-how .cah-head__kicker { color: #8ecbff; }
.cah-how .cah-head__title { color: #fff; }
.cah-how .cah-head__desc { max-width: 54ch; color: rgba(255, 255, 255, .72); }

.cah-how__steps {
    display: grid;
    gap: 0;
}

.cah-how__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 28px;
}

.cah-how__step:last-child { padding-bottom: 0; }

/* Línea conectora vertical (mobile / tablet) */
.cah-how__step::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 48px;
    bottom: 2px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .05));
}

.cah-how__step:last-child::before { display: none; }

.cah-how__node {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(6px);
    transition: background .25s, border-color .25s, transform .25s;
}

.cah-how__step:hover .cah-how__node {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-1px);
}

.cah-how__num {
    display: block;
    color: #8ecbff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.cah-how__text h3 {
    margin-top: 3px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
}

.cah-how__text p {
    margin-top: 4px;
    color: rgba(255, 255, 255, .7);
    font-size: 12.5px;
    line-height: 1.55;
}

@media (min-width: 640px) {
    .cah-how { padding: 32px 28px 34px; border-radius: 26px; }
    .cah-how__text h3 { font-size: 17px; }
    .cah-how__text p { font-size: 13px; }
}

@media (min-width: 820px) {
    .cah-how { padding: 40px 36px 42px; border-radius: 30px; }
    .cah-how .cah-head { margin-bottom: 30px; }
    .cah-how__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
        align-items: start;
    }
    .cah-how__step {
        flex-direction: column;
        gap: 14px;
        padding-bottom: 0;
    }
    /* Línea conectora horizontal (desktop) */
    .cah-how__step::before {
        left: 52px;
        right: -30px;
        top: 24px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .05));
    }
    .cah-how__step:last-child::before { display: none; }
    .cah-how__node { width: 48px; height: 48px; font-size: 17px; }
}

/* ── Vacíos / botón final ──────────────────────────────────────────── */
.cah-empty {
    padding: 40px 20px;
    border: 1px dashed var(--cah-line);
    border-radius: var(--cah-radius);
    background: #fff;
    text-align: center;
}

.cah-empty i {
    display: block;
    margin-bottom: 12px;
    color: #d5deeb;
    font-size: 40px;
}

.cah-empty h3 {
    color: var(--cah-text);
    font-size: 15px;
    font-weight: 700;
}

.cah-empty p {
    margin-top: 4px;
    color: var(--cah-muted);
    font-size: 13px;
}

.cah-more {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.cah-more .cah-btn {
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (min-width: 560px) {
    .cah-search { padding: 16px; }
    .cah-search__row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }
    .cah-search__row .cah-btn { padding: 0 26px; }
    .cah-rail > * { flex-basis: 46%; }
    .cah-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .cah-section { padding: 48px 0; }
    .cah-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 640px) {
    .cah { --cah-gutter: 24px; }
    .cah-hero { padding: 36px 0 42px; }
    .cah-hero__title { max-width: 20ch; }
    .cah-hero__sub { font-size: 15px; }
    .cah-search { max-width: 640px; }
    .cah-stats { padding: 44px 0; }
    .cah-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .cah-stat {
        padding: 0 8px;
        border-left: 1px solid rgba(255, 255, 255, .14);
        text-align: center;
    }
    .cah-stat:first-child { border-left: 0; }
    .cah-stat__label { font-size: 11.5px; }
}

@media (min-width: 900px) {
    .cah-cats { gap: 16px; }
    .cah-cat { border-radius: 18px; }
    .cah-cat__body { padding: 11px 13px 13px; gap: 10px; }
    .cah-cat__name { font-size: 14.5px; }
    .cah-cat__count { font-size: 11px; }
    .cah-cat__ico { top: 10px; left: 10px; width: 36px; height: 36px; font-size: 15px; }
    .cah-cat__go { width: 26px; height: 26px; }
    .cah-rail > * { flex-basis: 31%; }
    .cah-railnav { display: flex; }
}

@media (min-width: 1024px) {
    .cah-section { padding: 56px 0; }
    .cah-rail > * { flex-basis: calc(25% - 9px); max-width: none; }
    .cah-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .cah-head__desc { font-size: 14px; }
}

/* Escritorio ancho: las 6 categorías en una sola fila */
@media (min-width: 1200px) {
    .cah-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
    .cah-cat__body { padding: 10px 12px 12px; gap: 8px; }
    .cah-cat__name { font-size: 14px; }
}

/* Accesibilidad: movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .cah *,
    .cah *::before,
    .cah *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
    }
    .cah-card:hover { transform: none; }
}

/* ── Selector de categorías con búsqueda (combobox) ─────────────────── */
.cah-combo {
    position: relative;
    min-width: 0;
}

/* El <select> sigue en el DOM (envía el valor del formulario) pero
   la interfaz visible es el botón + panel con buscador. */
.cah-combo select {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
}

.cah-combo__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 50px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.cah-combo__btn:hover { border-color: #cbd5e1; }

.cah-combo__btn.has-value {
    color: var(--cah-ink);
    font-weight: 600;
}

.cah-combo__btn:focus-visible {
    border-color: var(--cah-blue);
    box-shadow: 0 0 0 4px rgba(77, 183, 254, .16);
    outline: none;
}

.cah-combo__btn i {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 13px;
    transition: transform .2s;
}

.cah-combo__panel.is-open + .cah-combo__btn i,
.cah-combo__btn[aria-expanded="true"] i { transform: rotate(180deg); }

.cah-combo__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cah-combo__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    padding: 10px;
    border: 1px solid var(--cah-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(3, 15, 45, .24), 0 2px 6px rgba(3, 15, 45, .06);
    text-align: left;
}

.cah-combo__panel.is-open {
    display: block;
    animation: cah-combo-in .16s ease-out;
}

@keyframes cah-combo-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cah-combo__search {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.cah-combo__search:focus-within {
    border-color: var(--cah-blue);
    box-shadow: 0 0 0 4px rgba(77, 183, 254, .15);
}

.cah-combo__search i {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 13px;
}

.cah-combo__search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--cah-ink);
    font-size: 13.5px;
    text-align: left;
    outline: none;
}

.cah-combo__list {
    max-height: 252px;
    margin-top: 2px;
    padding-right: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.cah-combo__list::-webkit-scrollbar { width: 6px; }
.cah-combo__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #dbe3ee;
}

.cah-combo__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 6px 8px;
    border-radius: 11px;
    color: var(--cah-text);
    font-size: 13.5px;
    line-height: 1.3;
    cursor: pointer;
    transition: background .15s;
}

.cah-combo__opt:hover,
.cah-combo__opt.is-active { background: #f2f8ff; }

.cah-combo__opt.is-selected {
    background: linear-gradient(90deg, #e8f4ff, #f6fbff);
    color: var(--cah-navy);
    font-weight: 700;
}

.cah-combo__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cah-combo__count {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 800;
}

.cah-combo__opt.is-selected .cah-combo__count {
    background: #fff;
    color: var(--cah-navy);
}

.cah-combo__empty {
    margin-top: 6px;
    padding: 22px 8px;
    border-radius: 12px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 12.5px;
    text-align: center;
}

/* Icono de cada categoría dentro de la lista */
.cah-combo__ico {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f1f5f9;
    background: color-mix(in srgb, var(--c, #4db7fe) 14%, #fff);
    color: var(--c, #4db7fe);
    font-size: 13px;
    transition: transform .15s;
}

.cah-combo__opt:hover .cah-combo__ico,
.cah-combo__opt.is-active .cah-combo__ico { transform: scale(1.06); }

.cah-combo__check {
    flex: 0 0 auto;
    color: var(--cah-blue);
    font-size: 12px;
}

.cah-combo__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 4px 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cah-combo__hint {
    display: none;
    margin-top: 4px;
    padding: 8px 4px 2px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 11px;
}

@media (min-width: 640px) {
    .cah-combo__panel { min-width: 320px; }
    .cah-combo__list { max-height: 288px; }
    .cah-combo__hint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .cah-combo__panel.is-open { animation: none; }
}

