/* Aviso superior tipo pill con icono */
.top-pill-announcement {
    position: relative;
    top: 8px;
    /* súbela ligeramente */
    z-index: 1040;
    display: inline-block;
    color: #000;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-weight: 600;
    letter-spacing: .1px;
}

.pill-icon-wrap {
    /* ocultar icono para dejar solo texto */
    display: none !important;
}

.pill-icon {
    height: 38px;
    width: 38px;
    object-fit: contain;
    display: block;
}

:root {
    --brand: #d32f2f;
    --bg: #f7f7f8;
    --muted: #4b5563;
    /* más oscuro para mejor contraste */
    /* Hero configurable */
    --hero-image: url('Solucion Hikfires.png');
    /* Soporte retina: por defecto usa la misma imagen si no hay 2x */
    --hero-image-1x: var(--hero-image);
    --hero-image-2x: var(--hero-image);
    --hero-position: center;
    /* Desplazamiento vertical del contenido del hero */
    --hero-offset: clamp(48px, 14vh, 220px);

    .pill-icon {
        filter: brightness(0) invert(1);
    }

}

body {
    background: var(--bg);
}

/* Logo en navbar */
.brand-logo {
    height: 38px;
    /* antes 34px */
    width: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 34px;
    }
}

/* Hero */
.hero {
    min-height: 62vh;
    /* reducido desde 79vh */
    position: relative;
    background: #040303;
    place-items: center;
}

/* Fondo del hero: gradiente + imagen (soporta 2x) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Fallback */
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .5)), var(--hero-image);
    /* Retina/HiDPI */
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .5)), image-set(var(--hero-image-1x) 1x, var(--hero-image-2x) 2x);
    background-size: cover, contain;
    background-position: center, var(--hero-position);
    background-repeat: no-repeat, no-repeat;
}

.hero .badge {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #000;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: var(--hero-offset);
    padding-bottom: clamp(24px, 6vh, 96px);
}

/* Icon bubble */
.icon-circle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(211, 47, 47, .1);
    color: var(--brand);
    font-size: 20px
}

/* Product images */
.product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

a[href*="camaras-"]:hover .product-img {
    transform: scale(1.07);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.18);
    z-index: 2;
}

/* CTA band */
.cta-band {
    background: linear-gradient(90deg, var(--brand), #b71c1c)
}

/* Bullets */
.bullets li {
    position: relative;
    padding-left: 22px;
    margin: .4rem 0;
}

.bullets li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand)
}

/* Cuando una lista usa iconos propios, ocultar el check automático */
.bullets.bullet-icons li::before {
    content: none;
}

/* Ajustes responsive del hero */

/* Igualar tamaño de tipografía en el menú principal */
.navbar-nav .nav-link {
    font-size: 0.85em;
    font-weight: 500;
}

@media (max-width: 576px) {
    .hero {
        min-height: 58svh;
        /* un poco más corta en móvil */
    }

    :root {
        --hero-offset: clamp(32px, 10vh, 120px);
    }
}

/* Sección etiqueta */
.product-tag-img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.tag-section .card {
    background: #fff
}

/* Hacer la imagen del bloque etiqueta más grande en desktop */
@media (min-width: 992px) {
    .tag-image-col {
        flex: 0 0 auto;
        width: 45%;
    }

    .tag-text-col {
        flex: 0 0 auto;
        width: 55%;
    }
}

/* Aumentar el área de video ~10% en desktop */
@media (min-width: 992px) {
    .video-col {
        flex: 0 0 auto;
        width: 45%;
    }

    .contact-form-col {
        flex: 0 0 auto;
        width: 55%;
    }
}

/* Título destacado en la sección etiqueta */
.tag-title {
    color: #111;
    letter-spacing: -.1px;
    /* reducir compresión para mejorar nitidez */
    font-weight: 700;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.tag-title::before {
    content: "🔥";
    margin-right: 8px;
    color: var(--brand);
    font-size: 1.1em;
    vertical-align: -2px;
}

.tag-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), #b71c1c);
}

/* Si el título usa un iconset manual, no mostrar el emoji por defecto */
.tag-title.with-icons::before {
    content: none;
    margin: 0;
}

/* Logos sección etiqueta */
.brand-logos {
    justify-content: flex-start;
}

.hikvision-logo {
    height: 38px;
    /* +50% desde 32px */
    width: auto;
    object-fit: contain;
    color: #000;
    /* negro 100% */
    /* Si consigues versión con fondo transparente, se verá perfecto. */
}

.hikfire-wordmark {
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-logos {
    justify-content: flex-start;
    /* mantener alineación a la izquierda */
    align-items: flex-start;
    /* alinear contenido hacia arriba */
}

.hikvision-logo {
    height: 40px;
    /* reducido */
    width: auto;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .06));
}

.hikfire-wordmark {
    font-weight: 800;
    letter-spacing: 1px;
    color: #111;
}

/* Línea decorativa para subtítulos de sección */
.section-underline {
    width: 1300px;
    /* antes 120px */
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #b71c1c);
    border-radius: 2px;
}

/* Tarjetas de videos: hacer el reproductor un poco más pequeño y centrado */
.video-card .ratio {
    /* reduce ~8-10% para que cuadro y controles quepan completos */
    width: 92%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .video-card .ratio {
        width: 100%;
    }
}

/* Botones "Ficha Tecnica" más pequeños en tarjetas */
.card .btn-success.btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.68rem;
    line-height: 1.05;
    background-color: rgba(0, 0, 0, 0.10) !important;
    /* gris 10% */
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}

/* Estados: hover/active/focus para botón de ficha técnica */
.card .btn-success.btn-sm:hover {
    background-color: rgba(0, 0, 0, 0.18) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: #111 !important;
}

.card .btn-success.btn-sm:active,
.card .btn-success.btn-sm:focus {
    background-color: rgba(0, 0, 0, 0.24) !important;
    border-color: rgba(0, 0, 0, 0.30) !important;
    color: #111 !important;
    box-shadow: none !important;
}

/* Botones Cotizar más chicos */
.btn-quote-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.15;
}

/* Nitidez de texto en elementos clave */
.top-pill-announcement,
.tag-title,
.navbar-brand,
.card h3,
.hero .badge {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-shadow: none;
}

/* Título principal del bloque intro: reducir puntos (tamaño) */
#intro .display-5 {
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.2px;
}