/* ==========================================================================
   QB SERVICIOS INTEGRALES SPA - HOJA DE ESTILOS PRINCIPAL
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES CSS
   ========================================================================== */
:root {
    /* Colores principales */
    --qb-color-primary: #0d1b3d;      /* Azul marino oscuro (marca, textos fuertes) */
    --qb-color-secondary: #c9922f;    /* Dorado / ámbar (acentos, botones) */
    --qb-color-light: #f7f4ef;        /* Fondo claro / crema */
    --qb-color-white: #ffffff;        /* Blanco */
    --qb-color-text: #333333;         /* Texto general */
    --qb-color-text-muted: #646872;   /* Texto secundario */

    /* Tipografía */
    --qb-font-primary: 'Poppins', sans-serif;
}

/* ==========================================================================
   2. RESET BÁSICO
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ==========================================================================
   3. ESTILOS GENERALES DEL BODY
   ========================================================================== */
body {
    font-family: var(--qb-font-primary);
    color: var(--qb-color-text);
    background-color: var(--qb-color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Compensación del header fijo al navegar mediante anclas */
#inicio,
#nosotros,
#servicios,
#beneficios,
#contacto {
    scroll-margin-top: 90px;
}

/* ==========================================================================
   4. HEADER / NAVBAR
   ========================================================================== */
.qb-header {
    width: 100%;
    background-color: var(--qb-color-white);
    box-shadow: 0 2px 12px rgba(13, 27, 61, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.qb-navbar {
    min-height: 80px;
    padding-top: 0;
    padding-bottom: 0;
}

.qb-navbar-container {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Logo */
.qb-navbar-brand {
    padding: 0;
    margin-right: 1.5rem;
}

.qb-logo {
    height: 42px;
    width: auto;
}

/* Menú de navegación */
.qb-nav-menu {
    align-items: center;
    gap: 0.5rem;
}

.qb-nav-menu .nav-link {
    position: relative;
    color: var(--qb-color-primary);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    transition: color 0.3s ease;
}

.qb-nav-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.15rem;
    height: 2px;
    background-color: var(--qb-color-secondary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.qb-nav-menu .nav-link:hover,
.qb-nav-menu .nav-link:focus {
    color: var(--qb-color-secondary);
}

.qb-nav-menu .nav-link:hover::after,
.qb-nav-menu .nav-link:focus::after {
    transform: scaleX(1);
}

/* Botón WhatsApp */
.qb-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--qb-color-secondary);
    color: var(--qb-color-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.qb-btn-whatsapp i {
    font-size: 1.1rem;
}

.qb-btn-whatsapp:hover,
.qb-btn-whatsapp:focus {
    background-color: #b47f24;
    color: var(--qb-color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 146, 47, 0.35);
}

/* Botón hamburguesa (mobile) */
.qb-navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.qb-navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================================================
   4.1 HEADER / NAVBAR - RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 991.98px) {
    .qb-navbar-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .qb-navbar-collapse {
        margin-top: 1rem;
        padding-bottom: 1rem;
    }

    .qb-nav-menu {
        align-items: flex-start;
        gap: 0;
        border-top: 1px solid rgba(13, 27, 61, 0.08);
        padding-top: 0.5rem;
    }

    .qb-nav-menu .nav-item {
        width: 100%;
    }

    .qb-nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 0.5rem;
    }

    .qb-nav-menu .nav-link::after {
        display: none;
    }

    .qb-btn-whatsapp {
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* ==========================
   HERO
========================== */
.qb-hero {
    width: 100%;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-color: var(--qb-color-white);
    overflow: hidden;
}

.qb-hero-container {
    max-width: 1200px;
}

/* Texto */
.qb-hero-title {
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--qb-color-primary);
    margin-bottom: 1.1rem;
}

.qb-text-gold {
    display: block;
    color: var(--qb-color-secondary);
}

.qb-hero-text {
    font-size: 1rem;
    color: var(--qb-color-text-muted);
    max-width: 440px;
    margin-bottom: 1.75rem;
}

.qb-hero-btn {
    display: inline-flex;
}

/* Imagen: esquinas redondeadas uniformes, sin sombra pesada, tal como en la referencia */
.qb-hero-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.qb-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}

/* ==========================================================================
   5.1 HERO - RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 991.98px) {
    .qb-hero {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
        text-align: center;
    }

    .qb-hero-title {
        font-size: 2rem;
    }

    .qb-hero-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .qb-hero-btn {
        width: 100%;
    }

    .qb-hero-image {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .qb-hero-title {
        font-size: 1.7rem;
    }

    .qb-hero-image {
        height: 240px;
    }
}

/* ==========================
   NOSOTROS
========================== */
.qb-about {
    width: 100%;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-color: var(--qb-color-white);
    border-top: 1px solid rgba(13, 27, 61, 0.06);
    border-bottom: 1px solid rgba(13, 27, 61, 0.06);
}

.qb-about-container {
    max-width: 1200px;
}

/* Título de la sección (mismo estilo que "NUESTROS SERVICIOS") */
.qb-about-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.qb-about-line {
    display: inline-block;
    width: 60px;
    height: 2px;
    background-color: var(--qb-color-secondary);
}

.qb-about-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--qb-color-primary);
    margin: 0;
    white-space: nowrap;
}

/* Título destacado */
.qb-about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--qb-color-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Texto descriptivo */
.qb-about-text {
    font-size: 0.95rem;
    color: var(--qb-color-text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.qb-about-text:last-of-type {
    margin-bottom: 0;
}

/* ==========================================================================
   NOSOTROS - RESPONSIVE (TABLET)
   ========================================================================== */
@media (max-width: 991.98px) {
    .qb-about {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ==========================================================================
   NOSOTROS - RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 575.98px) {
    .qb-about {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .qb-about-title-wrapper {
        margin-bottom: 1.5rem;
    }

    .qb-about-line {
        width: 35px;
    }

    .qb-about-title {
        font-size: 1.2rem;
        white-space: normal;
    }

    .qb-about-heading {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .qb-about-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ==========================
   NUESTROS SERVICIOS
========================== */
.qb-services {
    width: 100%;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    background-color: var(--qb-color-light);
}

.qb-services-container {
    max-width: 1180px;
}

/* Título */
.qb-services-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

.qb-services-line {
    display: inline-block;
    width: 60px;
    height: 2px;
    background-color: var(--qb-color-secondary);
}

.qb-services-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--qb-color-primary);
    margin: 0;
    white-space: nowrap;
}

/* Fila de tarjetas */
.qb-services-row {
    row-gap: 2rem;
}

/* Tarjeta */
.qb-service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--qb-color-white);
    border: 1px solid rgba(13, 27, 61, 0.07);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(13, 27, 61, 0.05);
    overflow: visible;
}

/* Imagen superior */
.qb-service-image-wrapper {
    width: 100%;
    height: 190px;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.qb-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ícono circular superpuesto */
.qb-service-icon {
    width: 62px;
    height: 62px;
    margin: -31px auto 0;
    background-color: var(--qb-color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(13, 27, 61, 0.12);
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: var(--qb-color-secondary);
}

/* Contenido */
.qb-service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.1rem 1.4rem 1.6rem;
}

.qb-service-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--qb-color-primary);
    margin-bottom: 0.75rem;
}

.qb-service-text {
    font-size: 0.9rem;
    color: var(--qb-color-text-muted);
    margin: 0;
}

/* ==========================================================================
   6.1 NUESTROS SERVICIOS - RESPONSIVE (TABLET)
   ========================================================================== */
@media (max-width: 991.98px) {
    .qb-services {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ==========================================================================
   6.2 NUESTROS SERVICIOS - RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 575.98px) {
    .qb-services {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .qb-services-title-wrapper {
        margin-bottom: 2rem;
    }

    .qb-services-line {
        width: 35px;
    }

    .qb-services-title {
        font-size: 1.2rem;
        white-space: normal;
    }

    .qb-service-image-wrapper {
        height: 190px;
    }
}

/* ==========================
   BENEFICIOS
========================== */
.qb-benefits {
    width: 100%;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-color: var(--qb-color-white);
}

.qb-benefits-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.qb-benefits-row {
    row-gap: 1.5rem;
}

/* Beneficio individual: ícono a la izquierda, título y texto a la derecha (como en la maqueta original) */
.qb-benefit {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.85rem;
    height: 100%;
    padding: 0 0.5rem;
}

.qb-benefit-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 2.25rem;
    color: var(--qb-color-secondary);
}

.qb-benefit-content {
    flex: 1;
}

.qb-benefit-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--qb-color-primary);
    margin-bottom: 0.3rem;
}

.qb-benefit-text {
    font-size: 0.82rem;
    color: var(--qb-color-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   7.1 BENEFICIOS - RESPONSIVE (TABLET)
   ========================================================================== */
@media (max-width: 991.98px) {
    .qb-benefits {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }
}

/* ==========================================================================
   7.2 BENEFICIOS - RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 575.98px) {
    .qb-benefits-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .qb-benefit-icon {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .qb-benefit-title {
        font-size: 0.82rem;
    }

    .qb-benefit-text {
        font-size: 0.82rem;
    }
}

/* ==========================
   CTA DE CONTACTO
========================== */
.qb-contact {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: var(--qb-color-white);
    border-top: 1px solid rgba(13, 27, 61, 0.08);
}

.qb-contact-container {
    max-width: 1200px;
}

.qb-contact-row {
    row-gap: 1.25rem;
}

/* Ícono (verde WhatsApp, tal como en la referencia) */
.qb-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--qb-color-white);
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* Contenido de texto */
.qb-contact-content {
    padding: 0 0.5rem;
}

.qb-contact-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--qb-color-primary);
    margin-bottom: 0.3rem;
}

.qb-contact-text {
    font-size: 0.9rem;
    color: var(--qb-color-text-muted);
    margin: 0;
}

/* Botón */
.qb-contact-btn {
    display: inline-flex;
}

/* ==========================================================================
   8.1 CTA DE CONTACTO - RESPONSIVE (TABLET)
   ========================================================================== */
@media (max-width: 991.98px) {
    .qb-contact {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
}

/* ==========================================================================
   8.2 CTA DE CONTACTO - RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 767.98px) {
    .qb-contact-content {
        padding: 0;
        margin: 0.5rem 0;
    }

    .qb-contact-btn {
        width: 100%;
    }
}

/* ==========================
   FOOTER
========================== */
.qb-footer {
    width: 100%;
}

.qb-footer-container {
    max-width: 1200px;
}

/* Parte superior */
.qb-footer-main {
    background-color: var(--qb-color-white);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.qb-footer-logo {
    height: 46px;
    width: auto;
}

/* Información de contacto */
.qb-footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.qb-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--qb-color-text);
    white-space: nowrap;
}

.qb-footer-contact-item i {
    color: var(--qb-color-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Redes sociales */
.qb-footer-social {
    display: inline-flex;
    gap: 0.6rem;
}

.qb-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--qb-color-primary);
    color: var(--qb-color-white);
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.qb-footer-social-link:hover,
.qb-footer-social-link:focus {
    background-color: var(--qb-color-secondary);
    color: var(--qb-color-white);
    transform: translateY(-3px);
}

/* Parte inferior */
.qb-footer-bottom {
    background-color: var(--qb-color-primary);
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}

.qb-footer-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    font-style: italic;
    color: var(--qb-color-secondary);
    margin-bottom: 0.3rem;
}

.qb-footer-copyright {
    font-size: 0.78rem;
    color: var(--qb-color-white);
    margin: 0;
    opacity: 0.85;
}

/* ==========================================================================
   9.1 FOOTER - RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 767.98px) {
    .qb-footer-main {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
        text-align: center;
    }

    .qb-footer-logo {
        height: 42px;
        margin: 0 auto;
    }

    .qb-footer-contact {
        justify-content: center;
        margin-top: 1rem;
    }

    .qb-footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   10. MEDIA QUERIES / RESPONSIVE GENERALES
   ========================================================================== */
