/* =====================================================================
   CarmenApp · Página de categoría — mobile-first
   Prefijo .cahc (CarmenApp Category): aislado del tema Towhub.
   Identidad: navy #001c50 · azul #4db7fe · verde #5ecfb1 · dorado #f8bd38
   ===================================================================== */

.cahc {
    --navy: #001c50;
    --navy-2: #062a63;
    --blue: #4db7fe;
    --green: #5ecfb1;
    --gold: #f8bd38;
    --ink: #0b1b3a;
    --text: #334155;
    --muted: #7c8798;
    --line: #e7ecf5;
    --bg: #f5f7fb;
    --gutter: 20px;

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

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

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

.cahc p { margin: 0; }
.cahc a { color: inherit; text-decoration: none; }

/* El tema aplica float y 100px de padding a <section>; aquí se anula el
   float. El padding y el background los define cada sección: si se fijan
   aquí, esta regla (más específica) pisaría a .cahc-hero y .cahc-section. */
.cahc > section {
    float: none;
    width: 100%;
}

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

/* ── HERO (claro, separado del header navy) ────────────────────────── */
.cahc-hero {
    position: relative;
    padding: 24px 0 28px;
    border-bottom: 1px solid #eaf0f8;
    background:
        radial-gradient(circle at 92% 0%, rgba(77, 183, 254, .12), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: var(--ink);
}

.cahc-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #8b98aa;
    font-size: 11.5px;
    font-weight: 600;
}

.cahc-crumbs a { transition: color .2s; }
.cahc-crumbs a:hover { color: var(--navy); }
.cahc-crumbs i { font-size: 10px; opacity: .55; }
.cahc-crumbs__current { color: var(--navy); }

.cahc-hero__main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.cahc-hero__ico {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 17px;
    background: linear-gradient(135deg, #001c50, #0b3a80);
    color: #fff;
    font-size: 21px;
    box-shadow: 0 10px 22px rgba(0, 28, 80, .22);
}

.cahc-hero__text { min-width: 0; }

.cahc-hero__title {
    color: var(--navy);
    font-size: clamp(26px, 7.6vw, 42px);
    font-weight: 800;
}

.cahc-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cahc-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(94, 207, 177, .16);
    color: #12785f;
    font-size: 11.5px;
    font-weight: 800;
}

.cahc-hero__pill i { font-size: 5px; color: #12a37f; }

.cahc-hero__place {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7b889b;
    font-size: 12px;
    font-weight: 600;
}

.cahc-hero__place i { color: var(--blue); font-size: 12px; }

/* Buscador dentro de la categoría */
.cahc-search {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding: 6px;
    border: 1px solid #e4ecf7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(3, 15, 45, .07);
}

.cahc-search:focus-within {
    border-color: #bcd9f5;
    box-shadow: 0 12px 30px rgba(3, 15, 45, .1);
}

.cahc-search__box {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
}

.cahc-search__box > i { color: #9aa8bb; font-size: 14px; }

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

.cahc-search__box input::placeholder { color: #9aa7b8; }

.cahc-search__btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.cahc-search__btn:hover { background: #0a2a6b; }
.cahc-search__btn span { display: none; }

/* ── SECCIONES CON MÁS AIRE ────────────────────────────────────────── */
.cahc-section { padding: 32px 0 48px; }

.cahc-section--soft {
    padding: 36px 0 52px;
    border-top: 1px solid #eef3f9;
    background: var(--bg);
}

.cahc-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.cahc-bar__title {
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.cahc-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    transition: border-color .2s, box-shadow .2s;
}

.cahc-bar__link:hover {
    border-color: #cfe0f5;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

/* ── TARJETAS ──────────────────────────────────────────────────────── */
.cahc-list {
    display: grid;
    gap: 20px;
}

.cahc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .05);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}

.cahc-card:hover {
    transform: translateY(-2px);
    border-color: #d6e3f5;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.cahc-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eef2f7;
}

.cahc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.cahc-card:hover .cahc-card__media img { transform: scale(1.04); }

.cahc-card__ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #b8c4d4;
    font-size: 30px;
}

.cahc-card__flag {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    backdrop-filter: blur(8px);
}

.cahc-card__flag--star {
    left: 12px;
    background: rgba(248, 189, 56, .96);
    color: #4a2c00;
    text-transform: uppercase;
}

.cahc-card__flag--status {
    right: 12px;
    background: rgba(255, 255, 255, .95);
}

.cahc-card__flag--status i { font-size: 6px; }
.cahc-card__flag--status.is-open { color: #15803d; }
.cahc-card__flag--status.is-closed { color: #b91c1c; }

.cahc-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 18px;
}

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

.cahc-card__cat {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(77, 183, 254, .15);
    color: #0b63b0;
    font-size: 10.5px;
    font-weight: 700;
}

.cahc-card__cat i { font-size: 10px; }

.cahc-card__addr {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cahc-card__addr i {
    flex: 0 0 auto;
    color: #9aa8bb;
    font-size: 11px;
}

.cahc-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 13px;
    border-top: 1px solid #f1f5f9;
}

.cahc-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.cahc-card__stat .fa-star { color: var(--gold); }
.cahc-card__stat .fa-eye { color: #9aa8bb; }

.cahc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 800;
}

.cahc-card__cta i { transition: transform .2s; }
.cahc-card:hover .cahc-card__cta i { transform: translateX(3px); }

/* ── ESTADO VACÍO ──────────────────────────────────────────────────── */
.cahc-empty {
    padding: 44px 24px;
    border: 1px dashed #d7e1ef;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.cahc-empty__ico {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2563eb;
    font-size: 23px;
}

.cahc-empty__title { color: var(--ink); font-size: 18px; font-weight: 700; }

.cahc-empty__text {
    max-width: 42ch;
    margin: 8px auto 22px;
    color: var(--muted);
    font-size: 13.5px;
}

.cahc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: 13px;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}

.cahc-btn:hover { background: #0a2a6b; }

/* ── OTRAS CATEGORÍAS ──────────────────────────────────────────────── */
.cahc-more__title {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.cahc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cahc-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #e2e9f4;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.cahc-tag i { color: var(--blue); font-size: 12px; }

.cahc-tag em {
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.cahc-tag:hover {
    border-color: #bcd9f5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

/* ── BREAKPOINTS ───────────────────────────────────────────────────── */
@media (min-width: 480px) {
    .cahc-search__btn span { display: inline; }
    .cahc-search__btn { padding: 0 22px; }
}

@media (min-width: 560px) {
    .cahc-hero { padding: 32px 0 36px; }
    .cahc-hero__ico { width: 62px; height: 62px; font-size: 23px; }
    .cahc-hero__main { gap: 17px; }
    .cahc-card__media { aspect-ratio: 16 / 10; }
    .cahc-list { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
}

@media (min-width: 760px) {
    .cahc { --gutter: 28px; }
    .cahc-hero { padding: 42px 0 46px; }
    .cahc-hero__title { font-size: 44px; }
    .cahc-search { max-width: 620px; margin-top: 26px; }
    .cahc-section { padding: 44px 0 64px; }
    .cahc-section--soft { padding: 50px 0 68px; }
    .cahc-bar { margin-bottom: 26px; }
    .cahc-bar__title { font-size: 19px; }
    .cahc-list { gap: 22px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
    .cahc-card__body { padding: 18px 20px 20px; gap: 9px; }
    .cahc-card__name { font-size: 18px; }
    .cahc-more__title { font-size: 19px; margin-bottom: 20px; }
    .cahc-tags { gap: 12px; }
}

@media (min-width: 1000px) {
    .cahc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .cahc-card,
    .cahc-card__media img,
    .cahc-card__cta i,
    .cahc-tag { transition: none; }
    .cahc-card:hover { transform: none; }
    .cahc-card:hover .cahc-card__media img { transform: none; }
    .cahc-card:hover .cahc-card__cta i { transform: none; }
}

/* Texto SEO de la categoria */
.cahc-intro {
    margin: 0 0 20px;
    max-width: 760px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
}

@media (min-width: 768px) {
    .cahc-intro { font-size: 15.5px; }
}
