html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #e8e8e8
}

/* ===== NAVBAR estilo mockup ===== */
.vb-navbar {
    background: #cfcdc7;
    min-height: 100px
}

    .vb-navbar .container-xl {
        min-height: 100px
    }

.vb-brand {
    font-weight: 600;
    font-size: 24px;
    color: #111
}

    .vb-brand:hover {
        color: #111;
        text-decoration: none
    }

.vb-nav {
    gap: 40px;
    flex: 1;
    justify-content: center;
    align-items: center
}

    .vb-nav li {
        display: inline-flex
    }

    .vb-nav a {
        color: #333;
        text-decoration: none;
        font-size: 16px
    }

        .vb-nav a:hover {
            color: #000
        }

.vb-btn-dark {
    background: #000;
    color: #fff;
    border: 0;
    padding: 10px 18px;
    min-width: 150px;
    height: 45px;
    border-radius: 0
}

/* Layout base para que el footer quede abajo */
html, body {
    height: 100%
}

body {
    display: flex;
    flex-direction: column
}

main {
    flex: 1 0 auto
}

/* ===== FOOTER ===== */
.vb-footer {
    background: #cfcdc7;
    padding: 28px 0
}

.vb-social-link svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: #000
}

.vb-footer-links {
    list-style: none;
    padding: 0
}

    .vb-footer-links a {
        color: #333;
        text-decoration: none;
        font-size: 16px
    }

        .vb-footer-links a:hover {
            text-decoration: underline
        }

/* ====== Full-bleed helper (para salir del .container del layout) ====== */
.full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* ====== HERO ====== */
.vb-hero {
    background: #f6f4f2 url("/img/hero.jpg") center right / cover no-repeat;
    min-height: 420px;
    padding: clamp(56px, 12vh, 140px) 0;
}

@media (min-width: 768px) {
    .vb-hero {
        min-height: 520px;
    }
}

.vb-hero h1 {
    font-weight: 600;
    letter-spacing: .4px;
    font-size: clamp(28px, 4vw, 44px);
    color: #222;
}

.vb-hero .vb-cta {
    margin-top: 16px;
}


/* --- Secciones --- */
.vb-section {
    padding: 56px 0;
}

.vb-section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: .2px;
    color: #222;
}

/* --- Features / Servicios --- */
.vb-feature {
    max-width: 420px;
    margin-inline: auto;
}

.vb-feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: .25rem;
}

.vb-feature-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* Thumb circular de 140x140 como el mockup */
.vb-feature-thumb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: #52575c; /* fallback si no hay imagen */
    box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.05);
}

    .vb-feature-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Botón ya existente */
.vb-btn-dark {
    background: #111;
    color: #fff;
    border: 0;
    padding: .55rem 1rem;
    border-radius: 0;
}

    .vb-btn-dark:hover {
        background: #000;
        color: #fff;
    }

/* ---- Productos Home ---- */
.vb-products-grid {
    row-gap: 24px;
}

.vb-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow .15s ease;
    background: #fff;
}

    .vb-card:hover {
        box-shadow: 0 6px 24px rgba(0,0,0,.06);
    }

/* imagen más contenida */
.vb-thumb {
    height: 240px; /* <— tamaño más pequeño */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}


    /* La imagen debe ajustarse sin deformarse */
    .vb-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    
/* La imagen debe ajustarse sin deformarse */
.vb-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 1400px) {
    .vb-thumb {
        height: 260px;
    }
}
.vb-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 4px;
}

.vb-desc {
    color: #555;
    font-size: .95rem;
    line-height: 1.45;
    /* limitar a 2 líneas para alturas uniformes */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* bloque de precio + botón al fondo */
.vb-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px; /* mt-auto en HTML empuja esto abajo */
}

.vb-price {
    font-weight: 700;
}

.vb-cta {
    min-width: 140px;
}

@media (min-width: 1200px) {
    .vb-thumb {
        height: 260px;
    }
    /* ligero ajuste en pantallas grandes */
}
.vb-product-card .card-body {
    display: flex;
    flex-direction: column;
}

/* ===== Tarjetas (Productos/Servicios) - imagen contenida y alturas consistentes ===== */
.vb-card-img-wrap {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.vb-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* evita deformación y recorte */
    display: block;
}

@media (min-width: 1200px) {
    .vb-card-img-wrap {
        height: 260px;
    }
}

/* Tarjeta base */
.vb-product-card,
.vb-service-card {
    border: 1px solid #eee;
    border-radius: 12px;
    transition: box-shadow .15s ease;
    background: #fff;
}

    .vb-product-card:hover,
    .vb-service-card:hover {
        box-shadow: 0 6px 24px rgba(0,0,0,.06);
    }

    /* body flexible para empujar el botón al fondo */
    .vb-product-card .card-body,
    .vb-service-card .card-body {
        display: flex;
        flex-direction: column;
    }

/* bloque precio/botón alineado abajo */
.vb-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vb-price {
    font-weight: 700;
}
/* ===== About / Más sobre nosotros ===== */
.vb-about-panel {
    background: #f3f3f3;
    border-radius: 12px;
    padding: clamp(24px,5vw,48px);
}

.vb-about-text {
    color: #555;
    line-height: 1.65;
    max-width: 560px;
}

.vb-about-figure {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.vb-about-img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.vb-about-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-weight: 700;
    font-size: clamp(22px,3vw,40px);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
    pointer-events: none;
}
.vb-nav {
    gap: 2rem;
    flex-wrap: nowrap;
}

    .vb-nav .nav-link, .vb-nav > li > a {
        display: block;
        padding: .5rem 0;
        white-space: nowrap;
    }


    /*Ajustes en layout   */


/* ===== Navbar (responsivo, sin cambiar colores) ===== */
.vb-navbar.navbar {
    /* aquí NO tocamos colores; solo espaciado si quieres */
/*     padding: .25rem 0;  <-- opcional 
*/}

.vb-brand {
    font-weight: 700;
}

/* Espaciado de links y alineación en desktop */
/*.navbar .nav-link {
    padding: .5rem .75rem;
}*/

/* Menú colapsado: columnas cómodas en móvil */
@media (max-width: 991.98px) {
    .navbar .nav-link {
        padding: .5rem 0;
    }
    /* separa el bloque derecho (login/logout) del menú al abrir en móvil */
    #mainNav .d-flex.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: .5rem !important;
    }
}

/* Opcional: mejorar foco del toggler sin color fijo */
.vb-navbar .navbar-toggler:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ===== Footer (responsivo, sin cambiar colores) ===== */

    /* Enlaces: no forzamos color; solo estilo */
    .vb-footer a {
        text-decoration: none;
        opacity: .9;
    }

        .vb-footer a:hover {
            opacity: 1;
            text-decoration: underline;
        }

/* Íconos sociales: solo tamaño y uso de color heredado */
.vb-social svg {
    width: 22px;
    height: 22px;
    /* sin fill fijo; usa el color heredado */
    fill: currentColor;
}

/* Footer: apila en móvil y separa elementos */
@media (max-width: 767.98px) {
    .vb-footer .container-xl {
        gap: 1rem;
    }

    .vb-footer-links {
        justify-content: center;
    }
}

/*mas*/

/* Restaurar colores del texto del navbar a los tuyos */
.vb-navbar .navbar-brand,
.vb-navbar .nav-link,
.vb-navbar .nav-link:focus {
    color: inherit !important; /* usa el color que ya tenga .vb-navbar */
}

    /* Hover/activo: mismo color, solo un leve cambio de opacidad */
    .vb-navbar .nav-link:hover,
    .vb-navbar .nav-link.active,
    .vb-navbar .nav-link.show {
        color: inherit !important;
        opacity: .85;
    }

/* Botón toggler: que herede el color de tu navbar (borde) */
.vb-navbar .navbar-toggler {
    color: inherit;
    border-color: currentColor;
}



/* Collapse móvil: ocupar ancho y permitir scroll si hay muchos items */
@media (max-width: 991.98px) {
    #mainNav {
        width: 100%;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding-top: .25rem;
        padding-bottom: .5rem;
    }

        #mainNav .navbar-nav {
            flex-direction: column !important;
            align-items: center !important;
            gap: .25rem;
        }
}

/* Restaurar colores del texto del navbar a los tuyos */
.vb-navbar .navbar-brand,
.vb-navbar .nav-link,
.vb-navbar .nav-link:focus {
    color: inherit !important;
}

    .vb-navbar .nav-link:hover,
    .vb-navbar .nav-link.active,
    .vb-navbar .nav-link.show {
        color: inherit !important;
        opacity: .85;
    }

/* Toggler: que herede el color de tu navbar */
.vb-navbar .navbar-toggler {
    color: inherit;
    border-color: currentColor;
}

/* Neutralizar reglas antiguas de .vb-nav que forzaban layout */
.vb-nav {
    gap: initial;
    flex: initial;
    justify-content: initial;
    align-items: initial;
    flex-wrap: wrap;
}

    .vb-nav .nav-link {
        white-space: normal;
    }


/* Offcanvas del menú móvil: mismo look del navbar, sin tocar tu paleta global */
.vb-offcanvas {
    background: #cfcdc7; /* mismo fondo del navbar */
    color: inherit;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .vb-offcanvas .nav-link {
        color: inherit;
    }

        .vb-offcanvas .nav-link:hover {
            opacity: .85;
        }

/* Colores del navbar heredados (por si Bootstrap intenta sobrescribir) */
.vb-navbar .navbar-brand,
.vb-navbar .nav-link {
    color: inherit !important;
}

.vb-navbar .navbar-toggler {
    color: inherit;
    border-color: currentColor;
}

/* Centrado del menú en desktop */
@media (min-width: 992px) {
    .navbar-nav {
        gap: .5rem;
    }
}
