/* Gestoría de trámites: /tramites/ y sus guías.
 * Reutiliza los componentes `seo-*` de content.css; aquí solo vive lo propio
 * de estas páginas, cuya conversión es la llamada: la tarjeta de llamada del
 * hero y la barra fija de llamada en móvil. */

.tr-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
    gap: 38px;
    align-items: start;
}

.tr-hero .seo-answer { margin-top: 20px; }
.tr-hero__points { margin-top: 18px; }

.tr-revisado {
    margin: 14px 0 0;
    color: var(--seo-soft);
    font-size: 14px;
}

/* Tarjeta de llamada ----------------------------------------------------- */

.tr-call {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: 18px;
    background: var(--seo-ink);
    color: #fff;
    scroll-margin-top: 110px;
}

.tr-call__eyebrow {
    color: var(--seo-mint);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tr-call__title {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.tr-call__text {
    margin: 0;
    color: #c9d0cb;
    font-size: 15px;
    line-height: 1.5;
}

.tr-call__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    padding: 15px 18px;
    border-radius: 12px;
    background: var(--seo-mint);
    color: #0c2b1f;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease;
}

.tr-call__button:hover,
.tr-call__button:focus-visible { background: #a4f9d7; }

.tr-call__hours {
    color: #c9d0cb;
    font-size: 14px;
    text-align: center;
}

.tr-call__facts {
    margin: 6px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #e4e9e6;
}

.tr-call__facts li { position: relative; padding-left: 20px; }
.tr-call__facts li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--seo-mint);
}

/* Contenido -------------------------------------------------------------- */

.tr-card h3 { margin: 0; font-size: 18px; }
.tr-card p { margin: 8px 0 0; color: var(--seo-muted); font-size: 15.5px; line-height: 1.55; }

.tr-card--link { position: relative; border-color: var(--seo-green-line); }
.tr-card--link h3 a { color: var(--seo-ink); text-decoration: none; }
.tr-card--link h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tr-card--link:hover { border-color: var(--seo-green); }
.tr-card__more { display: inline-block; margin-top: 12px; color: var(--seo-green); font-weight: 700; font-size: 15px; }

.tr-prose { max-width: 78ch; }
.tr-prose p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.65; }
.tr-list { max-width: 78ch; }
.tr-more { margin: 14px 0 0; font-weight: 700; }
.tr-hours-note { text-align: center; }

/* Barra fija de llamada (solo móvil) ------------------------------------- */

.tr-callbar { display: none; }

@media (max-width: 900px) {
    .tr-hero__grid { grid-template-columns: 1fr; gap: 26px; }
    .tr-call { position: static; }
}

@media (max-width: 760px) {
    body.vt-tramites { padding-bottom: 76px; }

    .tr-callbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 14px;
        background: var(--seo-mint);
        color: #0c2b1f;
        text-decoration: none;
        box-shadow: 0 10px 30px rgba(16, 23, 19, .22);
    }

    .tr-callbar span { display: flex; flex-direction: column; line-height: 1.2; }
    .tr-callbar strong { font-size: 16px; }
    .tr-callbar small { font-size: 12.5px; }
}

/* Portada: cabecera con llamada directa ----------------------------------- */

.tr-hub-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)), var(--vt-gradient);
    color: #fff;
    padding: 56px 0 60px;
    text-align: center;
}

/* Mismo fondo que la cabecera de la home: degradado de marca con el rayo. */
.tr-hub-hero::before,
.tr-hub-hero::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 450px;
    background: var(--vt-ray) center / 100% 100% no-repeat;
    opacity: .18;
    pointer-events: none;
}

.tr-hub-hero::before { left: -40px; top: -40px; }
.tr-hub-hero::after { right: -50px; bottom: -120px; transform: rotate(12deg); }
.tr-hub-hero__inner { position: relative; }

.tr-hub-hero .tr-hub-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tr-hub-hero__kicker {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--vt-green-deep, #0f7a53);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tr-hub-hero h1 {
    max-width: 20ch;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.tr-hub-hero__lead {
    max-width: 52ch;
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    line-height: 1.5;
}

.tr-hub-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 17px 28px;
    border-radius: 999px;
    background: var(--seo-mint);
    color: #0c2b1f;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(124, 245, 196, .22);
    transition: background .15s ease, transform .15s ease;
}

.tr-hub-hero__cta:hover,
.tr-hub-hero__cta:focus-visible { background: #a4f9d7; transform: translateY(-1px); }

.tr-hub-hero__hours { color: rgba(255, 255, 255, .88); font-size: 14px; }
.tr-hub-hero__alt { color: #fff; font-size: 15px; font-weight: 600; text-underline-offset: 3px; }

/* Selector compañía → trámite → llamada ----------------------------------- */

.tr-picker { padding: 44px 0 12px; scroll-margin-top: 90px; }
.tr-picker__head { text-align: center; }
.tr-picker__head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; }
.tr-picker__head p { margin: 8px 0 0; color: var(--seo-muted); font-size: 16px; }
.tr-picker__fallback { margin: 18px auto 0; text-align: center; font-size: 17px; }

.tr-picker__card {
    max-width: 780px;
    margin: 22px auto 0;
    padding: 26px;
    border: 1px solid var(--seo-line);
    border-radius: 18px;
    background: var(--seo-surface);
    box-shadow: 0 14px 40px rgba(17, 20, 19, .06);
}

.tr-picker__steps {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: var(--seo-soft);
    font-size: 14px;
    font-weight: 600;
}

.tr-picker__steps li { display: flex; align-items: center; gap: 8px; }
.tr-picker__steps span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--seo-bg);
    color: var(--seo-muted);
    font-size: 13px;
}
.tr-picker__steps li[aria-current="step"],
.tr-picker__steps li.is-done { color: var(--seo-ink); }
.tr-picker__steps li[aria-current="step"] span,
.tr-picker__steps li.is-done span { background: var(--seo-mint); color: #0c2b1f; }

.tr-picker__question { margin: 0 0 14px; font-size: 18px; outline: none; }

.tr-picker__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tr-picker__grid--logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tr-picker__option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--seo-line);
    border-radius: 12px;
    background: #fafbfa;
    color: var(--seo-ink);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.tr-picker__option:hover,
.tr-picker__option:focus-visible { border-color: var(--seo-green); background: var(--seo-green-bg); }

.tr-picker__option--logo {
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    text-align: center;
    font-size: 13px;
    color: var(--seo-muted);
}

.tr-picker__option--logo img {
    width: 112px;
    height: 36px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .2s ease, opacity .2s ease;
}

.tr-picker__option--logo:hover img,
.tr-picker__option--logo:focus-visible img { filter: none; opacity: 1; }
.tr-picker__other-mark { font-size: 26px; line-height: 36px; color: var(--seo-green); }

.tr-picker__back {
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--seo-muted);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.tr-picker__result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.tr-picker__result[hidden] { display: none; }

.tr-picker__check {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--seo-green-bg);
    color: var(--seo-green);
    font-size: 22px;
    font-weight: 800;
}

.tr-picker__result .tr-picker__question { margin: 4px 0 0; font-size: 22px; }
.tr-picker__summary { margin: 0; font-size: 17px; }
.tr-picker__cost { margin: 0; color: var(--seo-muted); font-size: 15px; }
.tr-picker__call { margin-top: 8px; padding-inline: 26px; }
.tr-picker__hours { color: var(--seo-soft); font-size: 13px; }
.tr-picker__guide { font-weight: 700; color: var(--seo-green); }

.tr-trust { margin-top: 18px; text-align: center; }

@media (max-width: 760px) {
    .tr-hub-hero { padding: 38px 0 42px; }
    .tr-hub-hero__lead { font-size: 16px; }
    .tr-hub-hero__cta { font-size: 18px; padding: 15px 22px; }
    .tr-picker__card { padding: 18px; }
    .tr-picker__steps { gap: 14px; font-size: 13px; }
    .tr-picker__grid,
    .tr-picker__grid--logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Carrusel de compañías (guías generales) ---------------------------------------- */

.tr-brands { padding: 28px 0 8px; }

.tr-brands__title {
    margin: 0 0 14px;
    color: var(--seo-muted);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.tr-brands__viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tr-brands__track {
    display: flex;
    gap: 14px;
    width: max-content;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    animation: tr-brands-scroll 40s linear infinite;
}

.tr-brands__viewport:hover .tr-brands__track,
.tr-brands__viewport:focus-within .tr-brands__track { animation-play-state: paused; }

.tr-brands__item > a,
.tr-brands__item > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 150px;
    padding: 14px 12px 10px;
    border: 1px solid var(--seo-line);
    border-radius: 14px;
    background: var(--seo-surface);
    color: var(--seo-ink);
    text-decoration: none;
}

.tr-brands__item > a:hover,
.tr-brands__item > a:focus-visible { border-color: var(--seo-green); }

.tr-brands__item img {
    width: 112px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .2s ease, opacity .2s ease;
}

/* Logos en gris para que la franja no sea un mosaico de colores; el color
   vuelve al pasar el ratón o al enfocar con el teclado. */
.tr-brands__item > a:hover img,
.tr-brands__item > a:focus-visible img { filter: none; opacity: 1; }
.tr-brands__name { font-size: 13px; font-weight: 600; color: var(--seo-muted); }

.tr-brands__note {
    margin: 10px 0 0;
    color: var(--seo-soft);
    font-size: 12.5px;
    text-align: center;
}

@keyframes tr-brands-scroll {
    to { transform: translateX(calc(-50% - 7px)); }
}

@media (prefers-reduced-motion: reduce) {
    .tr-brands__viewport { -webkit-mask-image: none; mask-image: none; }
    .tr-brands__track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
    .tr-brands__item[aria-hidden="true"] { display: none; }
}
