:root {
    --bg: #f8f8f8;
    --panel: #ffffff;
    --panel-soft: #f0f5ff;
    --card: #ffffff;
    --line: #e2e8f0;
    --text: #040710;
    --muted: #64748b;
    --accent: #1b4ed9;
    --accent-strong: #1947ca;
    --accent-light: #eff6ff;
    --navy: #040710;
    --success: #16a34a;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(4, 7, 16, .08);
    --shadow-md: 0 8px 40px rgba(27, 78, 217, .15);
    --radius: 10px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

img {
    width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #040710;
    border-bottom: 1px solid #081c42;
}

.nav {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-socials {
    display: flex;
    gap: 14px;
    align-items: center;
    flex: 0 0 auto;
}

.header-socials a {
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    transition: opacity .18s;
    display: flex;
    align-items: center;
}

.header-socials a:hover { opacity: .70; }

/* Iconos SVG inline (partials/icons.php). Heredan el color del enlace.
   `display:inline-block` anula el `svg { display:block }` global: si no, el icono
   empujaria el texto que lo acompana (telefono, @usuario) a la linea siguiente.
   El ajuste vertical lo deja a la altura del texto. */
.vc-icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex: 0 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    line-height: 1;
}

.brand-logo {
    height: 96px;
    width: auto;
    max-width: 315px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand strong {
    display: block;
    color: #ffffff;
    background: none;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand small {
    display: block;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 12px;
    color: rgba(255, 255, 255, .7);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
}

.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0 18px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border .18s ease, color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
}

.btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 6px 24px rgba(37, 99, 235, .35);
    transform: translateY(-2px);
}

.btn-secondary,
.btn-outline {
    color: var(--accent-strong);
    background: var(--accent-light);
    border-color: #bfdbfe;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: #dbeafe;
    border-color: var(--accent-strong);
}

.text-link {
    color: var(--accent);
    font-weight: 900;
}

.hero {
    position: relative;
    overflow: hidden;
    /* banner-hero.jpg (versión optimizada de imagen-Banner web-Vision-Cars) queda como
       fallback: se ve mientras el video carga (poster), si el video no está disponible,
       o con prefers-reduced-motion. */
    background: #040710 url('../img/imagenes-web/banner-hero.jpg') center / cover no-repeat;
    display: flex;
    flex-direction: column;
}

/* Video de fondo del hero: detrás del degradado (::before) y del contenido (hero-grid). */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(4,7,16,.93) 0%, rgba(4,7,16,.70) 52%, rgba(4,7,16,.28) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    padding: 110px 0 90px;
}

/* Accesibilidad: quien pide menos movimiento ve el banner fijo (el PNG de fondo). */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(28px, 3.8vw, 54px);
    text-transform: uppercase;
    letter-spacing: -.5px;
    line-height: 1.05;
    max-width: 760px;
    margin-bottom: 22px;
}

.hero-accent {
    color: var(--accent);
}

.hero .hero-copy > p:not(.kicker) {
    color: rgba(255, 255, 255, .72);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-copy {
    max-width: 780px;
}

.kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.2;
}

.hero-copy > p:not(.kicker),
.section-head p,
.info-card p,
.business-card p,
.contact-grid > div > p {
    color: var(--muted);
}

.hero-copy > p:not(.kicker) {
    max-width: 620px;
    margin-bottom: 28px;
    font-size: 18px;
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Widget de Turnstile dentro de los formularios (solo aparece si está activo). */
.turnstile-wrap {
    margin: 4px 0 16px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.trust-row span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.feature-card,
.vehicle-card,
.info-card,
.business-card,
.testimonial,
.contact-form,
details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.feature-card {
    overflow: hidden;
}

.feature-card img {
    height: 320px;
    object-fit: cover;
}

.feature-card-body {
    padding: 24px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.feature-card-body > span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-card-body div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin: 8px 0 18px;
}

.feature-card-body h2 {
    margin: 0;
    font-size: 22px;
}

.feature-card-body strong,
.price-row strong {
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
}

.quick-search {
    padding: 48px 0 52px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.search-intro {
    margin-bottom: 20px;
}

.search-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.3px;
    line-height: 1.1;
    margin: 0 0 8px;
    text-transform: none;
}

.search-subtitle {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    padding: 28px 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.label-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.label-icon svg {
    color: var(--accent);
    flex: 0 0 auto;
}

.search-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.search-btn {
    gap: 8px;
    min-height: 48px;
    font-size: 14px;
    width: 100%;
}

.search-browse-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease;
}

.search-browse-link:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--text);
    background: #ffffff;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.section {
    padding: 82px 0;
}

.value-section,
.testimonials-section,
.services-section,
.contact-section {
    background: #ffffff;
}

.inventory-section,
.faq-section {
    background: #f8fafc;
}

.business-section,
.financieras-section {
    background: var(--panel-soft);
}

.financieras-grid {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0 8px;
}

.financiera-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
}

.financiera-logo {
    height: auto;
    width: auto;
    max-height: 120px;
    max-width: 220px;
    object-fit: contain;
    transition: opacity .2s, transform .2s;
}

.financiera-item:hover .financiera-logo { opacity: .85; transform: scale(1.04); }

.financieras-cta {
    text-align: center;
    margin-top: 32px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head.center {
    display: block;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pillar-grid,
.vehicle-grid,
.service-grid,
.business-grid,
.testimonial-grid {
    display: grid;
    gap: 22px;
}

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

.vehicle-grid,
.service-grid,
.business-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .vehicle-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .vehicle-grid-3 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card p {
    flex: 1;
}

.info-card,
.business-card,
.testimonial {
    padding: 26px;
}

.icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: var(--radius);
    color: var(--accent);
    background: var(--accent-light);
}

.vehicle-card {
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.card-img-link {
    display: block;
    overflow: hidden;
}

.card-img-link img {
    transition: transform .3s ease;
}

.card-img-link:hover img {
    transform: scale(1.04);
}

.vehicle-card img {
    height: 230px;
    object-fit: cover;
}

.vehicle-body {
    padding: 22px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-stock {
    color: #15803d;
    background: #dcfce7;
    border-color: #86efac;
}

.card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    flex: 0 0 auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.delivery-tag {
    display: inline-block;
    margin-top: 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Estado "Vendido": el vehículo sigue publicado dentro de la ventana de retención */
.card-img-link,
.product-gallery {
    position: relative;
}

.sold-overlay,
.reserved-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .35);
}

.reserved-overlay {
    background: #d97706;
    box-shadow: 0 6px 16px rgba(217, 119, 6, .35);
}

.is-sold .card-img-link img,
.product-gallery.is-sold .product-main-image {
    filter: grayscale(.85) brightness(.82);
}

.is-reserved .card-img-link img,
.product-gallery.is-reserved .product-main-image {
    filter: grayscale(.55) brightness(.92);
}

.badge-sold {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fca5a5;
}

.badge-reserved {
    color: #b45309;
    background: #fef3c7;
    border-color: #fcd34d;
}

.delivery-tag.sold {
    color: #dc2626;
}

.delivery-tag.reserved {
    color: #d97706;
}

.sold-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.vehicle-body p {
    color: var(--muted);
    font-size: 14px;
}

.price-row {
    display: grid;
    gap: 2px;
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.price-row small {
    color: var(--muted);
    font-weight: 700;
}

.business-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial {
    padding: 32px;
}

.testimonial p {
    color: var(--muted);
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.testimonial strong,
.testimonial span {
    display: block;
}

.testimonial span {
    color: var(--muted);
    font-size: 13px;
}

details {
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: none;
}

summary {
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

details p {
    margin: 14px 0 0;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-weight: 800;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.site-footer {
    padding: 32px 0;
    color: var(--muted);
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.page-hero {
    padding: 32px 0 26px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero p:not(.kicker) {
    max-width: 580px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
}

.page-hero .hero-actions {
    justify-content: center;
    margin-top: 20px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 104px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-panel form {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-head h2 {
    margin: 0;
    font-size: 22px;
}

.text-button {
    border: 0;
    color: var(--accent);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.catalog-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.catalog-toolbar h2 {
    margin: 0;
}

.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-more {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

[hidden] {
    display: none !important;
}

.empty-state {
    padding: 32px;
    border: 1px dashed #b8c7d8;
    border-radius: var(--radius);
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.empty-state h3 {
    color: var(--text);
}

.product-hero {
    padding: 54px 0 70px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    border-bottom: 1px solid var(--line);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 34px;
    align-items: stretch;
}

.product-gallery,
.product-summary {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.product-summary {
    height: 100%;
    box-sizing: border-box;
}

.product-gallery {
    overflow: hidden;
}

.product-main-image {
    height: 430px;
    object-fit: cover;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
}

.thumb-grid img {
    height: 170px;
    object-fit: cover;
}

.product-summary {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.product-summary h1 {
    margin-bottom: 0;
    font-size: clamp(26px, 3vw, 38px);
}

/* Títulos de las tarjetas de la ficha (Ficha técnica / Características),
   más contenidos que el h2 general del sitio. */
.product-details .info-card h2 {
    font-size: clamp(22px, 2.4vw, 28px);
}

.product-summary p {
    color: var(--muted);
}

.product-price {
    display: block;
    color: var(--text);
    font-size: 34px;
    font-weight: 950;
}

.product-price-block {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 10px 0 16px;
}

.product-pie {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.trust-badges {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: var(--panel-soft);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid #e0eaff;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.trust-item svg {
    color: var(--accent);
    flex: 0 0 auto;
}

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

.spec-grid span {
    display: grid;
    gap: 3px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.spec-grid strong {
    color: var(--text);
    font-size: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-list,
.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-list span,
.check-list {
    color: var(--muted);
}

.check-list li {
    position: relative;
    padding-left: 22px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* === Social bar === */
.social-bar {
    background: var(--text);
    padding: 18px 0;
}
.social-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.social-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
}
.social-stat strong {
    font-size: 28px;
    font-weight: 950;
    color: #ffffff;
    line-height: 1;
}
.social-stat span {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.3;
}
.social-stat small {
    display: block;
    font-size: 11px;
    color: #64748b;
}
.social-divider {
    width: 1px;
    height: 36px;
    background: #1e293b;
}

/* === CTA Banner === */
.cta-banner {
    background: var(--accent);
    padding: 60px 0;
}
.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-banner h2 {
    color: #ffffff;
    margin-bottom: 8px;
}
.cta-banner p {
    color: #bfdbfe;
    font-size: 16px;
    margin: 0;
}
.cta-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-white {
    background: #ffffff;
    color: var(--accent);
    font-weight: 900;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius);
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}
.btn-white:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,.4);
    font-weight: 900;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}
.btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
}

/* === Testimonials mejorados === */
.testimonial-stars {
    color: #f59e0b;
    font-size: 17px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 13px;
    flex: 0 0 auto;
}

/* === Business icons === */
.business-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 18px;
}

/* === Breadcrumb === */
.breadcrumb-nav {
    padding: 14px 0;
    background: var(--panel-soft);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb-nav a {
    color: var(--accent);
    font-weight: 700;
}
.breadcrumb-nav a:hover { text-decoration: underline; }

/* === Gallery arrows === */
.gallery-nav {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(4, 7, 16, .52);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .18s;
    padding: 0;
}

.gallery-arrow:hover { background: rgba(4, 7, 16, .88); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }

.gallery-counter {
    padding: 10px 16px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border-top: 1px solid var(--line);
}

/* === Thumb grids en fichas de producto === */
.thumb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}
.thumb-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}
.thumb-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
}
.thumb-grid-3 img,
.thumb-grid-4 img,
.thumb-grid-5 img {
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity .15s;
    display: block;
    width: 100%;
}
.thumb-grid-3 img:hover,
.thumb-grid-4 img:hover,
.thumb-grid-5 img:hover { opacity: .8; }

@media (max-width: 720px) {
    .thumb-grid-3,
    .thumb-grid-4,
    .thumb-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .thumb-grid-3 img,
    .thumb-grid-4 img,
    .thumb-grid-5 img {
        height: 90px;
    }
}

/* === Formularios de contacto: estados de envío + honeypot === */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success {
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #166534;
    border-radius: var(--radius);
    padding: 22px 24px;
    font-size: 15px;
}

.form-error {
    border: 1px solid #fca5a5;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* === Galería moderna (ficha) + lightbox === */
.gallery-stage {
    position: relative;
    overflow: hidden;
}

.gallery-stage .product-main-image {
    width: 100%;
    display: block;
    cursor: zoom-in;
    transition: transform .35s ease;
}

.gallery-stage:hover .product-main-image {
    transform: scale(1.03);
}

.gallery-count,
.gallery-zoom-hint {
    position: absolute;
    bottom: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(4, 7, 16, .62);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    backdrop-filter: blur(4px);
}

.gallery-count { right: 12px; }

.gallery-zoom-hint {
    left: 12px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.gallery-stage:hover .gallery-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.thumb-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 14px;
}

.thumb-strip .thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    opacity: .72;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.thumb-strip .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-strip .thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumb-strip .thumb.is-active {
    opacity: 1;
    border-color: var(--accent);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vmin;
    background: rgba(4, 7, 16, .92);
    backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .18s;
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, .2); }

.lightbox-close {
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
}

.lightbox-arrow.prev { left: 3vw; }
.lightbox-arrow.next { right: 3vw; }

.lightbox-count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 720px) {
    .thumb-strip { grid-template-columns: repeat(4, 1fr); }
    .lightbox-arrow { width: 42px; height: 42px; }
    .lightbox-arrow.prev { left: 8px; }
    .lightbox-arrow.next { right: 8px; }
}

/* === Evaluation card === */
.eval-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}
.eval-number {
    font-size: 52px;
    font-weight: 950;
    color: var(--accent);
    line-height: 1;
}
.eval-label {
    font-size: 16px;
    color: var(--muted);
    font-weight: 700;
}
.eval-bars {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}
.eval-bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 32px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.eval-bar-row > span { color: var(--muted); font-weight: 700; }
.eval-bar-row > strong { color: var(--text); font-weight: 900; text-align: right; }
.eval-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.eval-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
}

/* === Contact guarantee === */
.contact-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--panel-soft);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid #bfdbfe;
}
.contact-guarantee svg { flex: 0 0 auto; }

/* === Footer mejorado === */
.site-footer {
    background: var(--text);
    padding: 60px 0 0;
    color: #94a3b8;
    border-top: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid #1e293b;
}
.footer-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    max-width: 260px;
    margin: 0;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}
.footer-col a,
.footer-col span {
    font-size: 14px;
    color: #64748b;
}
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    font-size: 13px;
    color: #334155;
}

.footer-raise {
    color: var(--accent);
    font-weight: 700;
}

.footer-raise:hover {
    text-decoration: underline;
}

/* === Botones hero === */
.btn-icon-gap {
    gap: 8px;
}

.btn-hero-dark {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .32);
    color: #ffffff;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.btn-hero-dark:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .55);
}

.btn-green {
    background: #16a34a;
    color: #ffffff;
    border: none;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(22, 163, 74, .28);
}

.btn-green:hover {
    background: #15803d;
    box-shadow: 0 6px 24px rgba(22, 163, 74, .42);
    transform: translateY(-2px);
}

/* === Floating WhatsApp button === */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: grid;
    place-items: center;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.10);
    box-shadow: 0 6px 28px rgba(37, 211, 102, .62);
}

/* === Hero service cards === */
.hero-services {
    background: #040710;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.hero-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hero-service-card {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid rgba(255, 255, 255, .07);
    color: #ffffff;
    text-decoration: none;
    transition: background .2s;
}

.hero-service-card:last-child {
    border-right: none;
}

.hero-service-card:hover {
    background: rgba(27, 78, 217, .12);
}

.hero-service-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
}

.hero-service-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-service-text > span {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-service-text > strong {
    color: var(--accent);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .3px;
    line-height: 1.15;
}

.hero-service-text > small {
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 1020px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .pillar-grid,
    .vehicle-grid,
    .service-grid,
    .business-grid,
    .testimonial-grid,
    .catalog-layout,
    .product-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        position: static;
    }

    .catalog-layout,
    .product-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav {
        min-height: 84px;
    }

    .brand-logo {
        height: 70px;
        max-width: 230px;
    }

    .brand small {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-top: -13px;
    }

    .site-header .btn {
        display: none;
    }

    .hero {
        padding: 64px 0;
    }

    .trust-row,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .search-action {
        flex-direction: row;
        justify-content: flex-start;
    }

    .search-btn { width: auto; }

    .pillar-grid,
    .vehicle-grid,
    .service-grid,
    .business-grid,
    .testimonial-grid,
    .catalog-grid,
    .spec-grid {
        grid-template-columns: 1fr;
    }

    .product-main-image {
        height: 300px;
    }

    .thumb-grid img {
        height: 120px;
    }

    .section {
        padding: 62px 0;
    }

    .section-head {
        display: block;
    }

    .feature-card-body div {
        display: block;
    }

    .social-bar-inner { gap: 20px; }
    .social-divider { display: none; }

    .cta-banner-inner { flex-direction: column; align-items: flex-start; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .hero-grid { padding: 70px 0 56px; }

    .hero-services-grid {
        grid-template-columns: 1fr;
    }

    .hero-service-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    .hero-service-card:last-child {
        border-bottom: none;
    }
}
