/* ===============================
   RESET BÁSICO
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 100px;
    --texto-primario: #232832;
    --font-weight: bold;
}

body {
    font-family: "Rubik", sans-serif;
    color: var(--texto-primario);
    margin: 0;
    padding: 0;
    background: #e3e3e3 !important;
}

a {
    text-decoration: none;
    color: #232832;
}

h3 {
    color: var(--texto-primario);
    font-weight: 500;
    font-size: 32px;
}

h4 {
    color: var(--texto-primario);
    font-weight: 500;
    font-size: 20px;
}

span {
    color: var(--texto-primario);
    font-size: 14px;
    font-weight: 300;
}

.header {
    height: var(--header-height);
}

main {
    padding-top: var(--header-height);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    background: white;
    position: fixed;
    transition: all 0.5s;
    z-index: 1000;
    height: 70px;
    width: 100%;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
}

#header .btn-contacto {
    border: 1px solid #f57c00;
    color: #fff;
    background: #f57c00;
    font-size: 14px;
    border-radius: 5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 700;
}

#header .btn-contacto:hover {
    border-color: #f57c00;
    color: #f57c00;
    background: #fff;
}

#header .logo {
    font-size: 30px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
}

#header .logo a {
    color: #fff;
}

#header .logo img {
    max-height: 70px;
    height: auto;
    width: auto;
}

/* =========================
   NAVBAR BASE
========================= */

.navbar {
    padding: 0;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    font-size: 14px;
    color: #032e54;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
}

/* ===== Línea SOLO para links normales ===== */

.menu > li > a:not(.btn-contacto),
.menu > li > .submenu-toggle {
    position: relative;
}

.menu > li > a:not(.btn-contacto)::after,
.menu > li > .submenu-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background-color: #f57c00;
    transition: width 0.3s ease;
}

/* Hover */
.menu > li > a:not(.btn-contacto):hover::after,
.menu > li > .submenu-toggle:hover::after,
.menu > li > a.active:not(.btn-contacto)::after {
    width: 100%;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu > li {
    position: relative;
    padding: 5px 0 5px 24px;
}

.menu a,
.submenu-toggle {
    font-size: 14px;
    color: #232832;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s ease;
}

.menu a:hover,
.submenu-toggle:hover {
    font-weight: bold;
}

/* =========================
   SUBMENU BASE
========================= */

.submenu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

/* =====================================
   BASE → MOBILE (default)
===================================== */

.mobile-nav-toggle {
    display: block;
    font-size: 28px;
    color: #232832;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100% - 70px);
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#navbar.active .menu {
    right: 0;
}

/* ===== Mobile → SIN línea ===== */

.menu > li > a::after,
.menu > li > .submenu-toggle::after {
    display: none !important;
}

/* Hover para links y botón Servicios */
.menu > li > a:hover,
.menu > li > .submenu-toggle:hover {
    background: rgba(3, 46, 84, 0.08);
    border-radius: 6px;
}

/* =============================
   SUBMENU
============================= */

.submenu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    background: transparent;
    position: static;
    box-shadow: none;
}

.menu > li {
    width: 100%;
    padding: 10px 0;
}

.menu > li > a {
    transition: all 0.25s ease;
}

.menu > li > a:hover {
    background: rgba(3, 46, 84, 0.08);
    border-radius: 6px;
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 10px; /* separación moderna */
    padding-left: 15px;
    background: transparent;
    position: static;
    box-shadow: none;
}
.submenu a {
    font-size: 14px;
    opacity: 0.9;
}

.menu > li > a:hover,
.submenu a:hover {
    background: rgba(3, 46, 84, 0.08);
    color: #032e54;
    transform: translateX(4px); /* pequeño desplazamiento */
}

.has-submenu.active .submenu {
    display: flex;
}

/* =====================================
   ≥576px (Mobile grande)
===================================== */

@media (min-width: 576px) {
    .menu {
        width: 280px;
    }
}

/* =====================================
   ≥768px (Tablet)
===================================== */

@media (min-width: 768px) {
    .menu {
        width: 320px;
        padding: 25px;
    }

    .menu > li {
        padding: 12px 0;
    }

    .submenu {
        padding-left: 20px;
    }
}

/* =====================================
   ≥992px (Desktop real)
===================================== */

@media (min-width: 992px) {
    .menu {
        gap: 25px;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .menu {
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        align-items: center;
        padding: 0;
        overflow: visible;
        right: 0;
        background: transparent;
        box-shadow: none;
    }

    .menu > li {
        position: relative;
        padding: 0;
    }

    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        display: none;
        padding: 0;
    }

    .submenu li {
        padding: 0;
    }

    .submenu a {
        padding: 10px 20px;
        display: block;
    }

    .submenu a:hover {
        background: #232832;
        color: #fff;
    }

    .has-submenu:hover .submenu {
        display: block;
    }
}

/* =====================================
   ≥1200px (Desktop grande)
===================================== */

@media (min-width: 1200px) {
    .menu {
        gap: 30px;
    }
}

/* =====================================
   ≥1400px (Pantallas XL)
===================================== */

@media (min-width: 1400px) {
    .menu {
        gap: 40px;
    }
}

/*--------------------------------------------------------------
# portada
--------------------------------------------------------------*/

#portada .hero-title {
    position: relative;
    font-size: 40px;
    font-weight: 600;
    z-index: 1; /* más seguro que usar 2 */
}

#portada .bg-text {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-40px);
    font-size: 100px;
    font-weight: 800;
    color: #f2f2f2;
    z-index: 0;
    pointer-events: none;
}

#portada h3 {
    color: #232832;
    font-weight: 800;
    font-size: 45px;
    line-height: 1.5;
}

#portada h3 span {
    font-size: 45px;
    font-weight: 800;
}

#portada .resaltado {
    background: #f0ca3f;
}

#portada span {
    color: #232832;
    font-size: 14px;
    font-weight: 300;
}

#portada .btn2 {
    border: 1px solid #232832;
    color: #fff;
    background: #232832;
    font-size: 14px;
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: 300;
}

#portada .btn2:hover {
    border: 1px solid #232832;
    color: #232832;
    background: #fff;
}

#portada .btn1 {
    border: 1px solid #232832;
    color: #232832;
    font-size: 14px;
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: 300;
}

#portada .btn1:hover {
    border-color: #232832;
    color: #fff;
    background: #232832;
}

#portada label {
    color: var(--texto-primario);
    font-weight: 300;
}

.service-img {
    width: 300px; /* mismo ancho */
    height: 300px; /* mismo alto */
    object-fit: cover; /* recorta sin deformar */
    border-radius: 10%; /* círculo perfecto */
    margin: 0 auto; /* centrado */
    display: block;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background: rgb(63, 84, 113);
    background: linear-gradient(
        96deg,
        rgba(63, 84, 113, 1) 30%,
        rgba(44, 62, 88, 1) 49%
    );
    padding: 0 0 30px 0;
    color: #fff;
    font-size: 14px;
}

#footer img {
    width: 70%;
}

#footer span {
    font-weight: 300;
    color: #fff;
    font-size: 14px;
}

#footer hr {
    color: rgb(255, 255, 255);
    background-color: rgb(255, 255, 255);
    height: 3px;
    margin-top: 20px;
    margin-bottom: 20px;
    /*  width: 320px !important; */
}

#footer .linea-sm hr {
    color: rgb(255, 255, 255);
    background-color: rgb(255, 255, 255);
    height: 3px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 320px !important;
}

#footer ul {
    list-style-type: none;
    font-weight: 300;
    padding: 0;
}

#footer .list-title {
    font-weight: 600;
}

#footer i {
    color: #fff;
    font-size: 20px;
}

#footer h4 {
    font-weight: 500;
    font-size: 20px;
    color: #fff;
}

#footer .input-container {
    position: relative;
    display: inline-block;
}

#footer .input-sus {
    padding-right: 35px;
}

#footer .btn-sus {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: #fff;
    font-size: 10px;
    border-radius: 5px;
    padding: 1px !important;
    font-weight: 300;
}

#footer a {
    color: #fff !important;
}

#section-consultores {
    background-color: #fff; /* fondo naranja */
    padding: 80px 0;
}

#section-consultores h3 {
    color: #232832; /* título en gris oscuro */
    font-weight: 600;
    font-size: 32px;
}

#section-consultores h3 > span {
    color: #232832; /* palabra destacada también en gris oscuro */
    font-weight: 700;
}

#section-consultores span {
    color: #232832; /* subtítulos en gris oscuro */
    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
}

#section-consultores p {
    color: #232832; /* párrafos en gris oscuro */
}

#section-consultores .btn {
    background: #232832; /* botón en gris oscuro para contraste */
    color: #fff;
    font-weight: 400;
}

.icon-small {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.small-text {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #555;
}

#caso-exito h3 {
    font-size: 32px;
    font-weight: 600;
    color: #232832;
}

#caso-exito span {
    font-size: 16px;
    color: #555;
}

#caso-exito .lead {
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
}

.icon-beneficio {
    width: 64px; /* tamaño fijo */
    height: 64px; /* tamaño fijo */
    object-fit: contain; /* mantiene proporción dentro del cuadro */
}

.sellos img {
    width: 64px; /* tamaño fijo */
    height: 64px; /* altura fija */
    object-fit: contain; /* mantiene proporción sin deformar */
    margin: 0; /* elimina separación */
}

.servicio-card {
    background-color: #e3e3e3;
    color: #232832;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.servicio-img {
    background-color: #fff;
    height: 160px; /* espacio fijo para imagen */
}

.servicio-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.checklist li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.checklist i {
    color: #232832; /* icono blanco */
    font-size: 1.2rem;
    margin-right: 8px;
}

.btn-whatsapp {
    background-color: #ff7f00; /* tu hex personalizado */
    color: #fff; /* texto negro para contraste */
    font-weight: 600;
    border: none;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: #e56f00; /* tono más oscuro al pasar el mouse */
    color: #fff; /* texto blanco en hover */
}

.whatsapp-float {
    position: fixed;
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* color oficial de WhatsApp */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: background-color 0.3s;
}
.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #fff;
}

.servicio-img {
    width: 100%;
    height: 200px; /* ajusta la altura según tu diseño */
    overflow: hidden;
}

.servicio-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill; /* fuerza a expandirse en todo el div */
}

.card-body.compacto {
    font-size: 0.85rem; /* reduce el tamaño del texto */
    line-height: 1.3; /* ajusta la altura de línea para mayor densidad */
}
.card-body.compacto h5 {
    font-size: 1rem; /* título más pequeño */
    margin-bottom: 0.5rem;
}

.parrafo-compacto {
    margin: 0;
    font-size: 13px;
}
