/* Hoja de estilos del sitio Master Pack, C.A.
   Complementa a Bootstrap 5; aquí solo va lo propio de la marca y del sitio. */

/* Paleta corporativa Master Pack.
   Azul y amarillo medidos sobre el logo (static/img/Logo_MasterPack.png):
   azul del monograma "MP" (#0c14a4, oscurecido a pedido de gerencia) y amarillo de su
   recuadro. Cambiar aquí cambia todo el sitio. */
:root {
    --azul-master: #0a1186;
    --amarillo-master: #f4dc1c;
    --amarillo-master-oscuro: #d9c30f;
}

.bg-azul-master {
    background-color: var(--azul-master);
}

.text-azul-master {
    color: var(--azul-master);
}

.text-amarillo-master {
    color: var(--amarillo-master);
}

.bg-amarillo-master {
    background-color: var(--amarillo-master);
}

.btn-amarillo-master {
    background-color: var(--amarillo-master);
    color: var(--azul-master);
    font-weight: bold;
}

.btn-amarillo-master:hover {
    background-color: var(--amarillo-master-oscuro);
    color: var(--azul-master);
}

/* Borde en el amarillo corporativo (sustituye al amarillo genérico de Bootstrap) */
.border-amarillo-master {
    border-color: var(--amarillo-master) !important;
}

/* Botón secundario en el azul corporativo (sustituye al azul genérico de Bootstrap) */
.btn-outline-azul-master {
    border: 1px solid var(--azul-master);
    color: var(--azul-master);
}

.btn-outline-azul-master:hover {
    background-color: var(--azul-master);
    color: #fff;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Efecto moderno en tarjetas */
.transition-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .15) !important;
}

/* Al saltar a una sección desde el menú, deja libre el alto de la barra fija
   para que el título no quede tapado. */
[id] {
    scroll-margin-top: 8rem;
}

/* Logo de la barra: 88px de alto (laptops) y 100px en pantallas anchas (>= 1400px).
   En pantallas angostas se reduce en proporción al ancho disponible, dejando sitio
   al botón del menú. */
.navbar-brand {
    max-width: 82%;
}

.navbar-brand img {
    max-height: 88px;
    max-width: 100%;
    width: auto;
    height: auto;
}

@media (min-width: 1400px) {
    .navbar-brand img {
        max-height: 100px;
    }
}

/* Opciones del menú y botón de contacto siempre en una sola línea */
.navbar-nav .nav-link,
.navbar-nav .btn {
    white-space: nowrap;
}

/* Párrafo de presentación del encabezado: ancho de lectura cómodo */
.hero-descripcion {
    max-width: 800px;
}

/* Foto de las tarjetas del catálogo: misma altura en todas, recortando sin deformar */
.img-producto {
    height: 200px;
    object-fit: cover;
}

/* Enlaces de redes en el pie de página, sobre fondo azul */
.enlace-pie {
    color: #fff;
    text-decoration: none;
}

.enlace-pie:hover {
    color: var(--amarillo-master);
}

/* ── Formulario de cotización ───────────────────────────── */

/* Secciones numeradas del formulario */
.paso {
    border-top: 1px solid #e3e6ea;
    padding-top: 1rem;
}

.paso-titulo {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--azul-master);
    margin-bottom: 0.75rem;
}

.paso-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background-color: var(--azul-master);
    color: #fff;
    font-size: 0.9rem;
}

/* Tarjetas de selección del tipo de producto.
   Se configuran con las variables de .btn de Bootstrap para que los estados
   normal, hover y seleccionado (btn-check) usen la paleta corporativa. */
.opcion-tarjeta {
    --bs-btn-color: var(--azul-master);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #ced4da;
    --bs-btn-hover-color: var(--azul-master);
    --bs-btn-hover-bg: #f3f4fc;
    --bs-btn-hover-border-color: var(--azul-master);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--azul-master);
    --bs-btn-active-border-color: var(--azul-master);
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(10, 17, 134, 0.25);
    padding: 0.75rem 0.5rem;
    line-height: 1.25;
}

/* Esquema de bolsa con sus cotas */
.esquema-bolsa {
    width: 100%;
    max-width: 150px;
}

.esquema-cuerpo {
    fill: #eef0fb;
    stroke: var(--azul-master);
    stroke-width: 2;
}

.esquema-fuelle {
    fill: none;
    stroke: var(--azul-master);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.esquema-cota {
    stroke: #6c757d;
    stroke-width: 1.5;
}

.esquema-texto {
    font-size: 12px;
    fill: #495057;
    text-anchor: middle;
}

.esquema-texto-fuelle {
    text-anchor: start;
}

/* Panel "Otras formas de contacto": queda a la vista mientras se recorre el formulario */
@media (min-width: 992px) {
    .contacto-fijo {
        position: sticky;
        top: 8.5rem;
    }
}

/* Fotos cuya parte superior trae texto o elementos ajenos: se encuadran desde abajo */
.img-encuadre-abajo {
    object-position: center bottom;
}
