/**
 * Osmecon — Cartilla (vista de inicio)
 * Estilos de marca que complementan UIkit/YOOtheme.
 *
 * @author  Alejo Sotelo <soporte@alejosotelo.com.ar>
 */

/* ── Tokens de color Osmecon ─────────────────────────────────────────── */
:root {
    --osm-primary:        #185FA5;
    --osm-primary-dark:   #0c447c;
    --osm-primary-light:  #E6F1FB;
    --osm-primary-mid:    #378ADD;
    --osm-celeste:        #B5D4F4;
    --osm-green:          #1D9E75;
    --osm-green-light:    #E1F5EE;
    --osm-amber:          #BA7517;
    --osm-amber-light:    #FAEEDA;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.osm-header {
    background: var(--osm-primary);
    padding: 40px 30px 32px;
    text-align: center;
}

.osm-header__title {
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
}

.osm-header__sub {
    color: rgba(255, 255, 255, .72);
    font-size: .85rem;
    margin-bottom: 24px;
}

/* ── Chips de contacto ───────────────────────────────────────────────── */
.osm-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    text-decoration: none !important;
    transition: background .15s;
    color: #fff !important;
}

.osm-chip:hover { background: rgba(255, 255, 255, .22); }

.osm-chip__label {
    font-size: .58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .65);
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.osm-chip__num {
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.osm-chip__sub {
    font-size: .58rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1;
    display: block;
    margin-top: 2px;
}

/* ── Buscador flotante ───────────────────────────────────────────────── */
.osm-search-float {
    max-width: 660px;
    margin: -24px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ── Divisor de sección ──────────────────────────────────────────────── */
.osm-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.osm-divider__line {
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, .12);
}

.osm-divider__text {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #999;
    white-space: nowrap;
}

/* ── Tarjeta de categoría ────────────────────────────────────────────── */
.osm-cat-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    min-height: 110px;
    text-decoration: none !important;
    transition: transform .15s, box-shadow .18s;
}

.osm-cat-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(24, 95, 165, .22);
}

.osm-cat-link:active { transform: translateY(0); }

.osm-cat-link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.osm-cat-link:hover img { transform: scale(1.07); }

/* Gradient overlay azul Osmecon */
.osm-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(12, 68, 124, .55) 0%, rgba(24, 95, 165, .76) 100%);
    transition: background .18s;
}

.osm-cat-link:hover .osm-cat-overlay {
    background: linear-gradient(160deg, rgba(12, 68, 124, .68) 0%, rgba(24, 95, 165, .88) 100%);
}

.osm-cat-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 10px;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
