/* ============================================================
   app_home.css — portada propia en /condominios
   Todo va bajo .cc-app para no tocar login ni el portal.
   ============================================================ */

body:has(.cc-app) .navbar,
body:has(.cc-app) .web-footer,
body:has(.cc-app) footer.web-footer {
    display: none !important;
}

body:has(.cc-app) {
    background: #f6f1e7 !important;
}

.cc-app {
    --cc-tinta: #1c1917;
    --cc-ambar: #e8b830;
    --cc-suave: #78716c;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 56px;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--cc-tinta);
}

/* ---------------- Héroe ---------------- */
.cc-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 28px;
    border-radius: 22px;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(232, 184, 48, .30) 0%, transparent 55%),
        linear-gradient(135deg, #1c1917 0%, #2e2823 100%);
    color: #fdf8ee;
    box-shadow: 0 18px 38px -18px rgba(28, 25, 23, .55);
}

.cc-hero-badge {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .04em;
    color: #1c1917;
    background: linear-gradient(160deg, #ffd977, var(--cc-ambar));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.cc-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-hero-text h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fffdf7;
}

.cc-hero-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #c9bfae;
}

.cc-hero-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: #1c1917;
    background: var(--cc-ambar);
    box-shadow: 0 6px 16px -8px rgba(232, 184, 48, .9);
    transition: transform .14s ease, box-shadow .14s ease;
}

.cc-hero-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -10px rgba(232, 184, 48, 1);
    color: #1c1917;
}

/* ---------------- Rejilla ---------------- */
/* Columnas tipo mampostería: cada tarjeta ocupa solo el alto de su
   contenido y no queda hueco bajo las cortas. */
.cc-grid {
    columns: 3 320px;
    column-gap: 18px;
    margin-top: 24px;
}

.cc-card {
    break-inside: avoid;
    margin: 0 0 18px;
}

.cc-card {
    background: #fffdf8;
    border: 1px solid #eadfcb;
    border-radius: 18px;
    padding: 18px 18px 8px;
    box-shadow: 0 2px 4px rgba(90, 64, 20, .05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.cc-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cc-card-color) 35%, #eadfcb);
    box-shadow: 0 18px 30px -22px rgba(90, 64, 20, .55);
}

.cc-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1e7d6;
}

.cc-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--cc-card-color);
    background: color-mix(in srgb, var(--cc-card-color) 12%, #ffffff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc-card-color) 22%, #ffffff);
}

.cc-card-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-card-head h2 {
    margin: 1px 0 0;
    font-size: 14.5px;
    font-weight: 750;
    letter-spacing: -.01em;
    color: var(--cc-tinta);
}

.cc-card-head p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--cc-suave);
}

/* ---------------- Enlaces ---------------- */
.cc-links {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.cc-links li + li {
    border-top: 1px solid #f6efe2;
}

.cc-links a {
    display: block;
    padding: 9px 10px;
    border-radius: 9px;
    text-decoration: none !important;
    transition: background .13s ease, padding-left .13s ease;
}

.cc-links a:hover {
    background: #fdf3dd;
    padding-left: 14px;
}

.cc-link-label {
    display: block;
    font-size: 12.8px;
    font-weight: 650;
    color: #292524;
}

.cc-links a:hover .cc-link-label {
    color: var(--cc-card-color);
}

.cc-link-detail {
    display: block;
    font-size: 11px;
    color: #9a9081;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------- Pie ---------------- */
.cc-foot {
    margin-top: 26px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .04em;
    color: #a8a29e;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
    .cc-grid { columns: 2 260px; }
}

@media (max-width: 640px) {
    .cc-app { padding: 16px 12px 40px; }
    .cc-grid { columns: 1; margin-top: 16px; }
    .cc-hero { padding: 20px; border-radius: 18px; flex-wrap: wrap; }
    .cc-hero-text h1 { font-size: 21px; }
    .cc-hero-link { width: 100%; text-align: center; }
}

/* ---------------- Modo oscuro ---------------- */
[data-theme="dark"] body:has(.cc-app),
.dark body:has(.cc-app) {
    background: #12110e !important;
}

[data-theme="dark"] .cc-card,
.dark .cc-card {
    background: #1c1915;
    border-color: #2e2a22;
}

[data-theme="dark"] .cc-card-head,
.dark .cc-card-head {
    border-bottom-color: #2e2a22;
}

[data-theme="dark"] .cc-link-label,
.dark .cc-link-label {
    color: #ece5d8;
}

[data-theme="dark"] .cc-links li + li,
.dark .cc-links li + li {
    border-top-color: #262218;
}

[data-theme="dark"] .cc-links a:hover,
.dark .cc-links a:hover {
    background: #2a2317;
}

[data-theme="dark"] .cc-card-head h2,
.dark .cc-card-head h2 {
    color: #f5efe3;
}
