/* ============================================================
   CampoLibre - Landing Page
   Variables, base, layout y componentes
   ============================================================ */

:root {
    --cl-green:        #1f9145;
    --cl-green-dark:   #156534;
    --cl-green-darker: #0f4326;
    --cl-dark:         #0f2a20;
    --cl-dark-2:       #15392a;
    --cl-dark-3:       #1c4a36;
    --cl-red:          #e0383f;

    --cl-bg:           #f4f7f5;
    --cl-bg-soft:      #eef3ef;
    --cl-white:        #ffffff;

    --cl-text:         #15241c;
    --cl-text-soft:    #4d6056;
    --cl-text-muted:   #8a978f;
    --cl-border:        #e6ece8;

    --cl-radius-lg:    24px;
    --cl-radius-md:    16px;
    --cl-radius-sm:    10px;

    --cl-shadow:       0 14px 34px rgba(15, 42, 32, .09);
    --cl-shadow-sm:    0 4px 16px rgba(15, 42, 32, .07);

    --cl-header-h:     76px;
    --cl-header-h-mobile: 60px;
    --cl-bottom-nav-h: 70px;
}

* { box-sizing: border-box; }

.cl-body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--cl-text);
    background: var(--cl-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.cl-body h1, .cl-body h2, .cl-body h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.cl-body a { text-decoration: none; color: inherit; }
.cl-body ul { margin: 0; padding: 0; list-style: none; }
.cl-body img { max-width: 100%; }

.cl-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cl-green);
    color: #fff;
    padding: 10px 16px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.cl-skip-link:focus { left: 0; }

.cl-body :focus-visible {
    outline: 2px solid var(--cl-green);
    outline-offset: 2px;
}

/* ============================================================
   Botones
   ============================================================ */
.btn.cl-btn-primary {
    background: var(--cl-green);
    border-color: var(--cl-green);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: .6rem 1.3rem;
}
.btn.cl-btn-primary:hover,
.btn.cl-btn-primary:focus {
    background: var(--cl-green-dark);
    border-color: var(--cl-green-dark);
    color: #fff;
}
.btn.cl-btn-pill { border-radius: 50px; }
.btn.cl-btn-lg { padding: .75rem 1.6rem; font-size: 1rem; }

.btn.cl-btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--cl-dark);
    font-weight: 600;
    border-radius: 10px;
    padding: .75rem 1.6rem;
}
.btn.cl-btn-light:hover { background: #eef3ef; color: var(--cl-dark); }

.btn.cl-btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
    border-radius: 10px;
}
.btn.cl-btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.cl-link {
    color: var(--cl-green);
    font-weight: 600;
    font-size: .92rem;
    white-space: nowrap;
}
.cl-link:hover { color: var(--cl-green-dark); }
.cl-link i { font-size: .8rem; margin-left: 2px; }
.cl-link--sm { font-size: .82rem; }
.cl-link--block {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--cl-border);
}

/* ============================================================
   Logo
   ============================================================ */
.cl-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cl-dark);
}
.cl-logo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cl-green);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cl-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--cl-dark);
}
.cl-logo__reg { font-size: .55em; font-weight: 600; }
.cl-logo__text small {
    font-weight: 500;
    font-size: .62rem;
    color: var(--cl-text-muted);
    letter-spacing: .01em;
}
.cl-logo--footer .cl-logo__text,
.cl-logo--footer .cl-logo__text small { color: #fff; }
.cl-logo--footer .cl-logo__text small { color: rgba(255,255,255,.6); }

/* ============================================================
   Header
   ============================================================ */
.cl-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    height: var(--cl-header-h);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 var(--cl-border);
}
.cl-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.cl-nav { flex: 1; justify-content: center; position: relative; }
.cl-nav > ul { display: flex; align-items: center; gap: 26px; }
.cl-nav > ul > li > a {
    font-size: .94rem;
    font-weight: 600;
    color: var(--cl-text-soft);
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cl-nav > ul > li > a:hover,
.cl-nav > ul > li > a.active { color: var(--cl-green); }
.cl-nav .dropdown-toggle::after { display: none; }
.cl-nav .dropdown-menu {
    border-radius: var(--cl-radius-sm);
    border: none;
    box-shadow: var(--cl-shadow);
    padding: 8px;
    margin-top: 10px;
}
.cl-nav .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .9rem;
    font-weight: 500;
}
.cl-nav .dropdown-item:hover,
.cl-nav .dropdown-item:focus { background: var(--cl-bg-soft); color: var(--cl-green); }

.cl-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.cl-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cl-bg-soft);
    border-radius: 50px;
    padding: 9px 16px;
    width: 220px;
}
.cl-search i { color: var(--cl-text-muted); font-size: .9rem; }
.cl-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: .88rem;
    width: 100%;
    color: var(--cl-text);
}
.cl-search--mobile {
    width: 100%;
    margin-bottom: 18px;
    background: rgba(255,255,255,.08);
}
.cl-search--mobile input { color: #fff; }
.cl-search--mobile input::placeholder { color: rgba(255,255,255,.55); }
.cl-search--mobile i { color: rgba(255,255,255,.55); }

.cl-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--cl-bg-soft);
    color: var(--cl-text-soft);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.cl-icon-btn:hover { background: #e3ebe5; color: var(--cl-green); }
.cl-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--cl-red);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.cl-dropdown-panel {
    width: 290px;
    border: none;
    border-radius: var(--cl-radius-sm);
    box-shadow: var(--cl-shadow);
    padding: 14px;
    margin-top: 12px;
}
.cl-dropdown-panel__title {
    font-weight: 700;
    font-size: .9rem;
    margin: 0 0 8px;
    padding: 0 6px;
}
.cl-dropdown-panel__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 6px;
    border-radius: 8px;
    font-size: .85rem;
    color: var(--cl-text-soft);
}
.cl-dropdown-panel__item:hover { background: var(--cl-bg-soft); }
.cl-dropdown-panel__item i { color: var(--cl-green); margin-top: 2px; }

/* Offcanvas menu mobile */
.cl-offcanvas {
    background: var(--cl-dark);
    color: #fff;
    width: 300px;
}
.cl-offcanvas .offcanvas-title { font-weight: 800; }
.cl-nav-mobile li { border-bottom: 1px solid rgba(255,255,255,.08); }
.cl-nav-mobile a {
    display: block;
    padding: 14px 4px;
    font-weight: 600;
    color: #fff;
}
.cl-nav-mobile a:hover { color: var(--cl-green); }

/* ============================================================
   Hero
   ============================================================ */
.cl-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 64px 0 150px;
    color: #fff;
    overflow: hidden;
}
.cl-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10,26,18,.86) 0%, rgba(10,26,18,.55) 45%, rgba(10,26,18,.25) 75%);
}
.cl-hero__inner { position: relative; z-index: 1; }
.cl-hero__title {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1.18;
    margin-bottom: 14px;
}
.cl-hero__subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 500;
    margin: 0 0 14px;
    color: #eef5f0;
}
.cl-hero__text {
    font-size: 1rem;
    max-width: 480px;
    color: #d8e6dd;
    margin: 0 0 28px;
}
.cl-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cl-weather-card {
    background: linear-gradient(160deg, var(--cl-dark-3) 0%, var(--cl-dark) 100%);
    border-radius: var(--cl-radius-lg);
    padding: 26px 28px;
    box-shadow: var(--cl-shadow);
    max-width: 360px;
    margin-left: auto;
}
.cl-weather-card__label { font-size: .82rem; color: rgba(255,255,255,.65); margin: 0 0 4px; }
.cl-weather-card__city {
    font-size: .92rem;
    font-weight: 600;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cl-weather-card__city i { color: var(--cl-green); }
.cl-weather-card__main { display: flex; align-items: center; justify-content: space-between; }
.cl-weather-card__temp { font-size: 3rem; font-weight: 800; line-height: 1; }
.cl-weather-card__icon { font-size: 2.6rem; }
.cl-weather-card__desc { color: rgba(255,255,255,.75); font-size: .92rem; margin: 4px 0 22px; }
.cl-weather-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 16px;
    margin-bottom: 18px;
}
.cl-weather-card__stat { display: flex; flex-direction: column; gap: 4px; }
.cl-weather-card__stat .lbl { font-size: .72rem; color: rgba(255,255,255,.55); }
.cl-weather-card__stat .val { font-size: .95rem; font-weight: 700; }
.cl-weather-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9be3ad;
    font-weight: 600;
    font-size: .88rem;
}
.cl-weather-card__link:hover { color: #fff; }

/* ============================================================
   Panel: sheet flotante sobre el hero
   ============================================================ */
.cl-panel { position: relative; }
.cl-panel__sheet {
    background: #fff;
    border-radius: var(--cl-radius-lg);
    box-shadow: var(--cl-shadow);
    margin-top: -110px;
    padding: 34px;
    position: relative;
    z-index: 2;
}
.cl-panel__block { margin-bottom: 28px; }

.cl-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.cl-section-head h2 { font-size: 1.4rem; }
.cl-section-head--sm { margin-bottom: 14px; }
.cl-section-head--sm h3 {
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.cl-section-head--sm h3 i { color: var(--cl-green); }

/* ============================================================
   Mercados del día (cards desktop)
   ============================================================ */
.cl-markets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.cl-market-card {
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius-md);
    padding: 18px;
    transition: box-shadow .15s, transform .15s;
}
.cl-market-card:hover { box-shadow: var(--cl-shadow-sm); transform: translateY(-2px); }
.cl-market-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cl-market-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cl-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cl-market-card__name { font-weight: 700; font-size: .95rem; margin: 0; }
.cl-market-card__market { font-size: .76rem; color: var(--cl-text-muted); margin: 0; }
.cl-market-card__price { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px; }
.cl-market-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-sparkline { width: 64px; height: 28px; flex-shrink: 0; }

.cl-change { font-weight: 700; font-size: .85rem; }
.cl-change--up { color: var(--cl-green); }
.cl-change--down { color: var(--cl-red); }

/* Mercados - lista mobile */
.cl-markets-list { display: flex; flex-direction: column; }
.cl-markets-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cl-border);
}
.cl-markets-list li:last-child { border-bottom: none; }
.cl-markets-list__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cl-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cl-markets-list__info { flex: 1; min-width: 0; }
.cl-markets-list__info .name { font-weight: 700; font-size: .9rem; display: block; }
.cl-markets-list__info .market { font-size: .74rem; color: var(--cl-text-muted); }
.cl-markets-list__values { text-align: right; flex-shrink: 0; }
.cl-markets-list__values .price { display: block; font-weight: 700; font-size: .88rem; }

/* ============================================================
   Cards genéricas (cotizaciones / remates / alertas)
   ============================================================ */
.cl-card {
    background: var(--cl-bg);
    border-radius: var(--cl-radius-md);
    padding: 20px;
    height: 100%;
}

.cl-quote-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--cl-border);
    font-size: .88rem;
}
.cl-quote-list li:last-child { border-bottom: none; }
.cl-quote-list__name { color: var(--cl-text-soft); flex: 1; }
.cl-quote-list__price { font-weight: 700; }

.cl-remates-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--cl-border);
}
.cl-remates-list li:last-child { border-bottom: none; }
.cl-remates-list__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-green);
    flex-shrink: 0;
    box-shadow: var(--cl-shadow-sm);
}
.cl-remates-list__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-remates-list__info .title { font-weight: 700; font-size: .85rem; }
.cl-remates-list__info .date { font-size: .74rem; color: var(--cl-text-muted); }

.cl-tag {
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    flex-shrink: 0;
}
.cl-tag--live { background: var(--cl-green); color: #fff; }
.cl-tag--next { background: transparent; border: 1px solid var(--cl-border); color: var(--cl-text-muted); }

.cl-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: var(--cl-radius-sm);
    padding: 14px;
    box-shadow: var(--cl-shadow-sm);
}
.cl-alert__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.cl-alert .title { font-weight: 700; font-size: .88rem; margin: 0 0 3px; }
.cl-alert .desc { font-size: .8rem; color: var(--cl-text-soft); margin: 0 0 6px; }
.cl-alert .valid { font-size: .74rem; color: var(--cl-text-muted); margin: 0; }

.cl-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.cl-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: var(--cl-border);
    padding: 0;
    cursor: pointer;
}
.cl-dots button.active { background: var(--cl-green); width: 18px; border-radius: 4px; }

/* ============================================================
   Banner marketplace
   ============================================================ */
.cl-mid-row { margin-bottom: 28px; }
.cl-banner {
    position: relative;
    border-radius: var(--cl-radius-lg);
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--cl-dark);
    margin-bottom: 28px;
}
.cl-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(10,26,18,.92) 0%, rgba(10,26,18,.78) 38%, rgba(10,26,18,.25) 75%);
}
.cl-banner__content { position: relative; z-index: 1; padding: 36px 42px; color: #fff; max-width: 520px; }
.cl-banner__content h2 { font-size: 1.7rem; margin-bottom: 10px; }
.cl-banner__content p { color: #d8e6dd; margin: 0 0 20px; font-size: .98rem; }

/* ============================================================
   Categorías
   ============================================================ */
.cl-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
.cl-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: var(--cl-radius-sm);
}
.cl-category:hover { background: var(--cl-bg-soft); }
.cl-category__icon {
    font-size: 1.6rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cl-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.cl-category__title { font-weight: 700; font-size: .86rem; }
.cl-category__sub { font-size: .72rem; color: var(--cl-text-muted); }

/* ============================================================
   Secciones genéricas (noticias / herramientas)
   ============================================================ */
.cl-section { padding: 56px 0; }
.cl-section--alt { background: var(--cl-bg-soft); }
.cl-section .cl-section-head h2 { font-size: 1.5rem; }

.cl-news-card {
    background: #fff;
    border-radius: var(--cl-radius-md);
    overflow: hidden;
    box-shadow: var(--cl-shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cl-news-card__thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
}
.cl-news-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.cl-news-card__date {
    font-size: .72rem;
    color: var(--cl-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 8px;
}
.cl-news-card__title { font-size: 1.02rem; margin: 0 0 8px; line-height: 1.3; }
.cl-news-card__summary { font-size: .86rem; color: var(--cl-text-soft); flex: 1; margin: 0 0 14px; }
.cl-news-card__link { font-weight: 700; font-size: .86rem; color: var(--cl-green); display: inline-flex; align-items: center; gap: 6px; }

.cl-tool-card {
    background: #fff;
    border-radius: var(--cl-radius-md);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--cl-shadow-sm);
}
.cl-tool-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cl-bg-soft);
    color: var(--cl-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.cl-tool-card__title { font-weight: 700; font-size: .95rem; margin: 0; }
.cl-tool-card__desc { font-size: .82rem; color: var(--cl-text-soft); margin: 0; flex: 1; }

/* ============================================================
   Footer
   ============================================================ */
.cl-footer {
    background: var(--cl-dark);
    color: rgba(255,255,255,.8);
    padding: 56px 0 0;
}
.cl-footer__top { padding-bottom: 36px; }
.cl-footer__desc { font-size: .88rem; line-height: 1.6; margin: 16px 0 18px; color: rgba(255,255,255,.62); }
.cl-footer__social { display: flex; gap: 10px; }
.cl-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cl-footer__social a:hover { background: var(--cl-green); }
.cl-footer__title { font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.cl-footer__links li, .cl-footer__contact li {
    margin-bottom: 11px;
    font-size: .86rem;
    color: rgba(255,255,255,.62);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cl-footer__links a:hover { color: #fff; }
.cl-footer__contact a { color: rgba(255,255,255,.62); }
.cl-footer__contact a:hover { color: #fff; }
.cl-footer__contact i { margin-top: 2px; }
.cl-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
}
.cl-footer__legal { display: flex; gap: 18px; }
.cl-footer__legal a:hover { color: #fff; }

/* ============================================================
   Bottom navigation (mobile)
   ============================================================ */
.cl-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--cl-bottom-nav-h);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 16px rgba(15,42,32,.1);
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom);
}
.cl-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: .66rem;
    font-weight: 600;
    color: var(--cl-text-muted);
    flex: 1;
}
.cl-bottom-nav__item i { font-size: 1.15rem; }
.cl-bottom-nav__item.active { color: var(--cl-green); }
.cl-bottom-nav__item--fab {
    background: var(--cl-green);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex: 0 0 52px;
    justify-content: center;
    margin-top: -26px;
    box-shadow: 0 6px 16px rgba(31,145,69,.45);
}
.cl-bottom-nav__item--fab i { font-size: 1.4rem; }
.cl-bottom-nav__item--fab:hover { color: #fff; }

/* ============================================================
   Toasts
   ============================================================ */
.cl-toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 360px;
    padding: 0 16px;
}
.cl-toast {
    background: var(--cl-dark);
    color: #fff;
    font-size: .85rem;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: var(--cl-shadow);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    text-align: center;
}
.cl-toast.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   Accesos rápidos mobile (debajo del clima)
   ============================================================ */
.cl-quick-access {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0 28px;
}
.cl-quick-access a {
    background: #fff;
    border-radius: var(--cl-radius-sm);
    box-shadow: var(--cl-shadow-sm);
    padding: 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--cl-text);
}
.cl-quick-access__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
}
.cl-quick-access__icon--green { background: var(--cl-green); }
.cl-quick-access__icon--blue { background: #2f8fe0; }
.cl-quick-access__icon--cash { background: var(--cl-green-dark); }
.cl-quick-access__icon--leaf { background: #58b368; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* >= 1600px: contenedor más generoso */
@media (min-width: 1600px) {
    .container { max-width: 1360px; }
    .cl-hero__title { font-size: 3rem; }
}

/* < 1200px (tablet horizontal / lg) */
@media (max-width: 1199.98px) {
    .cl-markets-grid { grid-template-columns: repeat(3, 1fr); }
}

/* < 992px: navbar mobile, hero/panel mobile */
@media (max-width: 991.98px) {
    .cl-body { padding-bottom: var(--cl-bottom-nav-h); }

    .cl-header {
        height: var(--cl-header-h-mobile);
        background: var(--cl-dark);
        box-shadow: none;
    }
    .cl-header .cl-logo__text,
    .cl-header .cl-logo__text small { color: #fff; }
    .cl-header .cl-logo__text small { color: rgba(255,255,255,.6); }
    .cl-header .cl-icon-btn {
        background: rgba(255,255,255,.12);
        color: #fff;
    }
    .cl-header .cl-icon-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
    .cl-header .cl-badge { border-color: var(--cl-dark); }

    .cl-hero {
        background-image: none !important;
        padding: 16px 0 4px;
    }
    .cl-hero__overlay { display: none; }
    .cl-hero__content { display: none; }
    .cl-weather-card { max-width: 100%; margin: 0; }

    .cl-quick-access { display: grid; }

    .cl-panel__sheet { padding: 22px; margin-top: 0; border-radius: var(--cl-radius-md) var(--cl-radius-md) 0 0; }

    .cl-markets-grid { display: none; }
    .cl-markets-list { display: flex !important; }

    .cl-banner { min-height: 0; padding: 0; }
    .cl-banner__content { padding: 26px 24px; }

    .cl-categories { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* < 768px */
@media (max-width: 767.98px) {
    .cl-hero__title { font-size: 1.65rem; }
    .cl-hero__subtitle { font-size: 1.05rem; }
    .cl-hero__actions .btn { flex: 1; text-align: center; }

    .cl-panel__sheet { margin-top: -84px; padding: 18px; }
    .cl-section-head h2 { font-size: 1.2rem; }

    .cl-mid-row > div { margin-bottom: 0; }

    .cl-banner__content h2 { font-size: 1.3rem; }

    .cl-footer { text-align: center; }
    .cl-footer__social { justify-content: center; }
    .cl-footer__bottom { justify-content: center; text-align: center; }
}

/* < 576px (telefonos chicos) */
@media (max-width: 575.98px) {
    .cl-categories { grid-template-columns: repeat(3, 1fr); }
    .cl-category__sub { display: none; }
    .cl-hero { padding: 20px 0 120px; }
    .cl-weather-card { padding: 20px; }
    .cl-weather-card__temp { font-size: 2.4rem; }
}

/* <= 390px (telefonos muy chicos) */
@media (max-width: 390px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .cl-hero__title { font-size: 1.45rem; }
    .cl-weather-card__stats { gap: 4px; }
    .cl-bottom-nav__item span { font-size: .62rem; }
}

@media (max-width: 320px) {
    .cl-logo__text { font-size: 1.05rem; }
    .cl-weather-card__temp { font-size: 2.1rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .cl-market-card, .cl-toast { transition: none; }
}
