/* Inicio */

/* Aviso de la última vacante, arriba a la derecha */
.vac-notice {
    position: fixed;
    right: 20px;
    top: 96px;
    z-index: 40;
    width: min(320px, calc(100% - 40px));
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(35, 31, 32, 0.16);
    padding: 18px 18px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: vac-in 700ms var(--ease) 1200ms both;
}
.vac-notice[hidden] { display: none; }
.vac-notice.is-leaving { animation: vac-out 320ms var(--ease-in-out) both; }
.vac-notice__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vac-notice__label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.vac-notice__close { width: 36px; height: 36px; margin: -8px -8px -8px 0; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; transition: background-color var(--fast) ease; }
.vac-notice__close:hover { background: var(--soft); }
.vac-notice__title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.vac-notice__meta { font-size: 13px; color: var(--muted); }
.vac-notice__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; }
.vac-notice__actions .btn { min-height: 42px; padding: 0 16px; }
.vac-notice__all { font-size: 14px; font-weight: 600; padding: 0 4px; }
.vac-tab {
    position: fixed;
    right: 0;
    top: 140px;
    z-index: 40;
    min-height: 44px;
    padding: 0 16px 0 14px;
    border: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--red);
    color: var(--white);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(35, 31, 32, 0.18);
    cursor: pointer;
    animation: tab-in 420ms var(--ease) both;
}
@keyframes vac-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes vac-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes tab-in { from { transform: translateX(100%); } }

.page-home .hero { padding-top: 72px; }
.page-home .hero__text { flex: 1.15 1 520px; gap: 24px; }

/* Banda de la norma */
.norma-band {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 48px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--square-off);
    border-left: 6px solid var(--red);
    border-radius: 8px;
    padding: 36px 40px;
    color: var(--ink);
    transition: box-shadow var(--medium) var(--ease), transform var(--medium) var(--ease);
}
.norma-band:hover { color: var(--ink); box-shadow: 0 20px 44px -28px rgba(35, 31, 32, 0.45); transform: translateY(-2px); }
.norma-band:hover .arrow { transform: translateX(4px); }
.norma-band__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.norma-band__title { font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; }
.norma-band__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; }
.norma-band__facts > span { display: flex; flex-direction: column; }
.norma-band__facts strong { font-weight: 800; font-size: 24px; color: var(--red); }
.norma-band__facts small { font-size: 13px; color: var(--muted); }

/* Banda de Agregados R */
.r-band { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.r-band__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.r-band__logo { width: 104px; height: auto; }
.r-band__lead { font-size: 16px; opacity: 0.9; }
.r-band__media { flex: 1 1 400px; min-width: 0; margin: 0; position: relative; border-radius: 8px; overflow: hidden; min-height: 420px; background: #3F3F42; }
.r-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transition: transform 1.6s var(--ease); }
.r-band__media:hover img { transform: scale(1.04); }
.r-band__media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(35, 31, 32, 0.78); color: var(--white); font-size: 13px; font-weight: 600; }

/* Nuestro impacto */
.impact { padding-top: 88px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.impact h2 { text-align: center; }
.impact__star { color: var(--red); }
.impact__grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px 32px; }
.impact__item { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.impact__value { font-weight: 800; font-size: clamp(44px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.02em; color: var(--red); font-variant-numeric: tabular-nums; }
.impact__value small { font-size: 0.5em; font-weight: 700; }
.impact__label { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.impact__note { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--red); }

@media (max-width: 720px) {
    .vac-notice { top: auto; bottom: 88px; right: 16px; }
    .vac-tab { top: auto; bottom: 150px; }
    .norma-band { padding: 28px 24px; }
    .r-band__media { min-height: 280px; }
}
