/* Covema 2.0 — página de marca (página 2 de la maqueta) */
.covema-brand-page { background:#fff; color:#3d3d3d; }
.covema-brand-top { padding:34px 0 30px; }
.covema-brand-top__logo { display:flex; height:58px; margin:0 auto 32px; align-items:center; justify-content:center; }
.covema-brand-top__logo img { width:auto; max-width:130px; max-height:54px; object-fit:contain; filter:grayscale(1) brightness(0); }
.covema-brand-promos { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; max-width:1110px; margin:0 auto; }
.covema-brand-promo { position:relative; display:block; height:320px; overflow:hidden; border-radius:8px; background:#111; text-decoration:none!important; }
.covema-brand-promo::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.76)); }
.covema-brand-promo img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .35s ease; }
.covema-brand-promo:hover img { transform:scale(1.025); }
.covema-brand-promo span { position:absolute; z-index:2; left:16px; right:16px; bottom:16px; color:#fff; font-size:13px; font-weight:700; line-height:1.35; text-shadow:0 1px 5px rgba(0,0,0,.4); }

.covema-brand-models { padding:38px 0 72px; }
.covema-brand-heading { max-width:980px; margin:0 auto 24px; text-align:center; }
.covema-brand-heading h1 { margin:0 0 10px; color:#505050; font-size:clamp(26px,3vw,36px); font-weight:700; letter-spacing:-.02em; }
.covema-brand-heading p { max-width:760px; margin:0 auto; color:#777; font-size:14px; line-height:1.65; }
.covema-brand-filters { display:flex; max-width:880px; margin:24px auto 36px; align-items:center; justify-content:center; flex-wrap:wrap; }
.covema-brand-filters button { position:relative; min-width:104px; height:42px; padding:0 24px; border:0; border-right:1px solid #555; background:#fff; color:#555; font-size:12px; cursor:pointer; }
.covema-brand-filters button:last-child { border-right:0; }
.covema-brand-filters button.is-active { background:#4a4c4f; color:#fff; }
.covema-brand-grid { max-width:980px; margin:0 auto!important; gap:20px!important; }
.covema-brand-grid .covema-vehicle-card { min-height:328px; border:1px solid #aaa; border-radius:5px; box-shadow:none; }
.covema-brand-grid .covema-vehicle-card:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.06); }
.covema-brand-grid .covema-vehicle-card__image-link { min-height:185px; }
.covema-brand-grid .covema-vehicle-card__figure { height:185px; padding:42px 12px 4px; background:#fff; }
.covema-brand-grid .covema-vehicle-card__figure img { max-width:210px!important; height:128px!important; }
.covema-brand-grid .covema-vehicle-card__brand-logo { max-width:72px; height:24px; filter:grayscale(1) brightness(0); }
.covema-brand-grid .covema-vehicle-card__body { padding:13px 16px; }
.covema-brand-grid .covema-vehicle-card__title { font-size:14px; margin-bottom:4px; }
.covema-brand-grid .covema-vehicle-card__price { min-height:36px; margin-bottom:8px; }
.covema-brand-grid .covema-vehicle-card__price span,
.covema-brand-grid .covema-vehicle-card__price strong { font-size:13px; }
.covema-brand-grid .covema-vehicle-card__cta { padding-top:11px; font-size:12px; }
.covema-brand-grid .covema-vehicle-card__arrow { width:auto; height:auto; background:transparent!important; color:#333!important; font-size:19px; }
.covema-brand-no-results { margin:30px 0 0; text-align:center; color:#777; }

.covema-brand-social { padding:22px 0 72px; }
.covema-brand-social .container { max-width:980px; }
.covema-brand-social small { display:block; color:#777; font-size:11px; }
.covema-brand-social h2 { margin:3px 0 24px; color:#505050; font-size:28px; }
.covema-brand-social__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.covema-brand-social__item { position:relative; display:block; aspect-ratio:4/5; overflow:hidden; border-radius:5px; }
.covema-brand-social__item img { width:100%; height:100%; object-fit:cover; }
.covema-brand-social__item span { position:absolute; left:50%; top:50%; width:54px; height:54px; display:flex; align-items:center; justify-content:center; border-radius:14px; background:rgba(255,255,255,.9); color:#d02c83; font-size:34px; transform:translate(-50%,-50%); }

.covema-brand-description,
.covema-brand-legal { padding:46px 0; }
.covema-brand-description .container,
.covema-brand-legal .container { max-width:980px; }
.covema-brand-description { border-top:1px solid #333; }
.covema-brand-description h2,
.covema-brand-legal h2 { margin:0 0 16px; color:#4b4b4b; font-size:27px; font-weight:700; }
.covema-brand-description p,
.covema-brand-legal p { color:#666; font-size:12px; line-height:1.8; }
.covema-brand-legal { border-top:1px solid #333; padding-top:38px; padding-bottom:78px; }

.covema-brand-page .covema-branches-section { margin-top:10px; background:#f4f4f4; }

@media (max-width: 991px) {
    .covema-brand-promos { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .covema-brand-promo { height:300px; }
    .covema-brand-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media (max-width: 767px) {
    .covema-brand-top { padding-top:24px; }
    .covema-brand-promos { gap:10px; }
    .covema-brand-promo { height:230px; }
    .covema-brand-filters { gap:7px; }
    .covema-brand-filters button { min-width:auto; height:38px; padding:0 13px; border:1px solid #ddd!important; border-radius:4px; }
    .covema-brand-social__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}
@media (max-width: 520px) {
    .covema-brand-promos { grid-template-columns:1fr 1fr; }
    .covema-brand-promo { height:195px; }
    .covema-brand-grid { grid-template-columns:1fr!important; max-width:340px; }
}

/* =========================================================
   COVEMA 2.13 · PÁGINA DE MARCA (PÁGINA 2 DEL PDF)
   ========================================================= */
.covema-brand-page .container { width:min(100% - 40px, 1180px); }
.covema-brand-top { padding-top:28px; padding-bottom:34px; }
.covema-brand-top__logo { margin-bottom:24px; }
.covema-brand-top__logo img { max-width:148px; max-height:58px; }
.covema-brand-promos { max-width:1080px; gap:18px; }
.covema-brand-promo { height:auto; aspect-ratio: .69; border-radius:8px; }
.covema-brand-models { padding-top:26px; }
.covema-brand-heading { margin-bottom:14px; }
.covema-brand-heading h1 { max-width:1000px; margin-inline:auto; font-size:clamp(28px,3vw,38px)!important; line-height:1.15; }
.covema-brand-filters { margin-top:18px; margin-bottom:34px; }
.covema-brand-grid { max-width:1040px; }
.covema-brand-description__intro { margin:0 0 12px!important; color:#555!important; font-size:15px!important; line-height:1.65!important; }

@media (max-width: 991px) {
    .covema-brand-page .container { width:min(100% - 28px, 1180px); }
    .covema-brand-promos { gap:12px; }
}
@media (max-width: 600px) {
    .covema-brand-page .container { width:min(100% - 22px, 1180px); }
    .covema-brand-top__logo { height:48px; margin-bottom:18px; }
    .covema-brand-top__logo img { max-width:125px; max-height:46px; }
    .covema-brand-promos { grid-template-columns:1fr 1fr; gap:9px; }
    .covema-brand-models { padding-top:20px; }
    .covema-brand-heading h1 { font-size:27px!important; }
}

/* =========================================================
   COVEMA 2.14 · FILTROS DE MARCA FIELES A LA MAQUETA
   ========================================================= */
.covema-brand-heading {
    max-width: 1120px;
    margin-bottom: 18px;
}
.covema-brand-heading h1 {
    color: #474747 !important;
    font-size: clamp(30px, 2.6vw, 38px) !important;
    font-weight: 400 !important;
    letter-spacing: -.025em !important;
}
.covema-brand-filters {
    display: flex;
    width: min(100%, 960px);
    max-width: 960px;
    min-height: 48px;
    margin: 20px auto 42px;
    padding: 0;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
}
.covema-brand-filters button {
    flex: 1 1 0;
    min-width: 126px;
    height: 48px;
    margin: 0;
    padding: 0 24px;
    border: 0 !important;
    border-right: 1px solid #313131 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #303030 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 48px;
    text-align: center;
    white-space: nowrap;
    box-shadow: none !important;
    transition: background .18s ease, color .18s ease;
}
.covema-brand-filters button:last-child {
    border-right: 0 !important;
}
.covema-brand-filters button:hover,
.covema-brand-filters button:focus-visible {
    background: #f3f3f3 !important;
    color: #111 !important;
}
.covema-brand-filters button.is-active {
    background: #424649 !important;
    color: #fff !important;
    font-weight: 500 !important;
}
.covema-brand-filters button.is-active:hover,
.covema-brand-filters button.is-active:focus-visible {
    background: #363a3d !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    .covema-brand-filters {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .covema-brand-filters button {
        flex: 0 0 auto;
        min-width: 125px;
    }
}
@media (max-width: 600px) {
    .covema-brand-heading h1 {
        font-size: 27px !important;
        line-height: 1.2 !important;
    }
    .covema-brand-filters {
        margin-top: 16px;
        margin-bottom: 30px;
    }
    .covema-brand-filters button {
        height: 44px;
        min-width: 112px;
        padding: 0 18px;
        font-size: 14px !important;
        line-height: 44px;
    }
}

/* =========================================================
   COVEMA 2.15 · INSTAGRAM + SUCURSALES POR MARCA
   Página 2 fiel a la maqueta Italmotors.
   ========================================================= */
.covema-brand-social {
    padding: 26px 0 68px;
}
.covema-brand-social .container {
    max-width: 1040px;
}
.covema-brand-social__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.covema-brand-social__heading small {
    margin: 0 0 4px;
    color: #4e4e4e;
    font-size: 12px;
    font-weight: 500;
}
.covema-brand-social__heading h2 {
    margin: 0;
    color: #4b4b4b;
    font-size: clamp(25px, 2.2vw, 31px);
    font-weight: 600;
    letter-spacing: -.02em;
}
.covema-brand-social__profile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 2px;
    color: #383838 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.covema-brand-social__profile:hover {
    opacity: .7;
}
.covema-brand-social__grid {
    gap: 20px;
}
.covema-brand-social__item {
    aspect-ratio: 4 / 5;
    border-radius: 7px;
    background: #eee;
}
.covema-brand-social__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .2s ease;
}
.covema-brand-social__item:hover::after {
    background: rgba(0,0,0,.05);
}
.covema-instagram-mark {
    z-index: 2;
    width: 58px !important;
    height: 58px !important;
    padding: 9px;
    border: 4px solid #fff;
    border-radius: 16px !important;
    background: radial-gradient(circle at 30% 105%, #fdf497 0 5%, #fd5949 42%, #d6249f 65%, #285aeb 100%) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.covema-instagram-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
}
.covema-instagram-mark .dot {
    fill: #fff;
    stroke: none;
}

.covema-brand-page .covema-branches-section {
    position: relative;
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto 4px;
    padding: 48px 34px 52px;
    overflow: hidden;
    border-radius: 7px;
    background: #f1f1f1;
}
.covema-brand-page .covema-branches-section::before,
.covema-brand-page .covema-branches-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: .8;
}
.covema-brand-page .covema-branches-section::before {
    top: 0;
    right: 2%;
    width: 62%;
    height: 70%;
    background: linear-gradient(145deg, transparent 0 38%, rgba(213,213,213,.58) 38.2% 55%, transparent 55.2% 100%);
}
.covema-brand-page .covema-branches-section::after {
    left: 25%;
    bottom: -10%;
    width: 58%;
    height: 78%;
    background: linear-gradient(155deg, transparent 0 39%, rgba(223,223,223,.68) 39.2% 57%, transparent 57.2% 100%);
}
.covema-brand-page .covema-branches-section > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 850px;
}
.covema-brand-page .covema-branches-section .covema-global-heading {
    margin-bottom: 26px;
}
.covema-brand-page .covema-branches-section .covema-global-heading h2 {
    color: #4b4b4b;
    font-size: 28px !important;
    font-weight: 600;
}
.covema-brand-page .covema-branches-grid {
    max-width: 790px;
    gap: 16px;
}
.covema-brand-page .covema-branch-card {
    min-height: 102px;
    padding: 14px 15px 14px 18px;
    border: 1.5px solid #353535;
    border-radius: 7px;
    background: rgba(255,255,255,.78);
    box-shadow: none;
}
.covema-brand-page .covema-branch-card h3 {
    margin-bottom: 4px;
    color: #3f3f3f;
    font-size: 14px;
    font-weight: 700;
}
.covema-brand-page .covema-branch-card p,
.covema-brand-page .covema-branch-card > div > a {
    margin-bottom: 2px;
    color: #404040;
    font-size: 11px;
    line-height: 1.35;
}
.covema-brand-page .covema-branch-map {
    min-width: 67px;
    width: 67px;
    margin: -4px 0 -4px 8px;
    border-left: 1px solid #777;
    color: #343434 !important;
}
.covema-brand-page .covema-branch-map span {
    font-size: 25px;
}
.covema-brand-page .covema-branch-map strong {
    max-width: 54px;
    font-size: 10px;
    font-weight: 500;
}

.covema-brand-description {
    padding-top: 58px;
}
.covema-brand-description h2 {
    font-size: 28px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .covema-brand-social__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .covema-brand-social__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .covema-brand-page .covema-branches-section {
        width: min(calc(100% - 22px), 1180px);
        padding: 38px 18px 42px;
    }
    .covema-brand-page .covema-branches-grid {
        grid-template-columns: 1fr;
    }
}

/* COVEMA - MODELO VISIBLE BAJO VEHICULO */
.covema-brand-grid .covema-vehicle-card__title{
    padding-top:20px !important;
}
/* COVEMA - MODELO VISIBLE END */
