.cover {
    position: relative;
    /* WebP (antes PNG de ~2 MB): misma foto, una fracción del peso. En celular, versión más chica (abajo). */
    background-image: url('/img/page/index/camiones/inicio_camiones.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100vh;
}
.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%);
}
.cover .container {
    position: relative;
    z-index: 1;
    color: #fff;
}
.cover-caption {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 640px;
}

/* Inputs de datos de contacto: label fijo arriba + icono a la izquierda,
   en vez del floating-label de Bootstrap (se veía plano/genérico). */
.tc-input-group { margin-bottom: 16px; }
.tc-input-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #16161c;
    margin-bottom: 6px;
}
.tc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.tc-input-wrap i {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: #b0b0ba;
    pointer-events: none;
    transition: color .15s ease;
}
.tc-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border-radius: 12px;
    border: 1.5px solid #e2e2e8;
    background: #f7f7fa;
    font-size: 14px;
    color: #16161c;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tc-input-wrap input::placeholder { color: #b0b0ba; }
.tc-input-wrap input:hover { border-color: #d3d3da; }
.tc-input-wrap input:focus {
    outline: none;
    background: #fff;
    border-color: var(--tc-p-orange, #ff5c00);
    box-shadow: 0 0 0 4px rgba(255, 96, 0, .12);
}
.tc-input-wrap:has(input:focus) i { color: var(--tc-p-orange, #ff5c00); }

/* Mismo efecto "ShinyText" del título del home (index.blade.php,
   .tc-p-shiny en public/css/redesign/index.css) — copiado aquí en vez de
   cargar todo index.css solo por esta regla (mismo patrón que
   page/suppliers.css). */
.tc-p-shiny {
    background: linear-gradient(90deg, #fff 0%, var(--tc-p-orange, #ff5c00) 35%, #fff 55%, var(--tc-p-orange, #ff5c00) 80%, #fff 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tcTrucksShine 6s linear infinite;
}
@keyframes tcTrucksShine { to { background-position: -300% 0; } }

/* Bloques de preguntas del formulario B2B (tipo de negocio, medidas,
   aplicación, posición): cada uno queda en su propia tarjeta gris para que
   el form (datos de contacto) y las pastillas de abajo se lean como un solo
   componente parejo, no como una lista suelta separada por <hr>. */
.form-question {
    background: #f7f7fa;
    border: 1.5px solid #eeeef2;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.form-question--last { margin-bottom: 24px; }
.form-question-label {
    font-weight: 700;
    font-size: 14px;
    color: #16161c;
    margin-bottom: 12px;
}
.form-question-hint {
    color: #8a8a95;
    font-weight: 500;
    font-size: 12px;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; margin: 0; }
.chip input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid #e2e2e8;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #16161c;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover span { border-color: var(--tc-p-orange, #ff5c00); }
.chip input:checked + span {
    background: var(--tc-p-orange, #ff5c00);
    border-color: var(--tc-p-orange, #ff5c00);
    color: #fff;
}
.chip input:focus-visible + span { outline: 2px solid var(--tc-p-orange, #ff5c00); outline-offset: 2px; }

/* Modo oscuro (sin data-theme="light"): los colores de arriba son fijos de modo claro — etiquetas casi
   negras sobre la tarjeta oscura, cajas de preguntas y pastillas blancas. Aquí pasan a los tokens del tema.
   Los <input> ya los pinta app.css con los tokens. */
:root:not([data-theme="light"]) .tc-input-group label,
:root:not([data-theme="light"]) .form-question-label { color: var(--tc-p-text); }
:root:not([data-theme="light"]) .tc-input-wrap i,
:root:not([data-theme="light"]) .form-question-hint { color: var(--tc-p-text-dim); }
:root:not([data-theme="light"]) .form-question {
    background: rgba(255, 255, 255, .03);
    border-color: var(--tc-p-border);
}
:root:not([data-theme="light"]) .chip span {
    background: var(--tc-p-field-bg);
    border-color: var(--tc-p-input-border);
    color: var(--tc-p-text);
}
:root:not([data-theme="light"]) .chip input:checked + span {
    background: var(--tc-p-orange, #ff5c00);
    border-color: var(--tc-p-orange, #ff5c00);
    color: #fff;
}

@media (max-width: 767.98px) {
    .cover {
        background-image: url('/img/page/index/camiones/inicio_camiones-mobile.webp');
        height: 65vh;
    }
    .cover-caption { max-width: none; padding: 18px 20px; }
}
