html {
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
}

.navbar {
    background-color: #032240;
}

/*HERO*/
#heroCarousel {
    position: relative;
}

#heroCarousel .carousel-item img {
    height: 72vh;
    /* altura del hero: ajustar si quieres */
    object-fit: cover;
}

@media (max-width: 767.98px) {
    #heroCarousel .carousel-item img {
        height: 56vh;
    }

    /* menos alto en móviles */
}

#heroCarousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(3, 34, 64, 0.5), rgba(3, 34, 64, 0.4));
    /* ajusta opacidad */
    z-index: 1;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
    max-width: 1100px;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 .5rem;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    color: #f8f9fa;
    opacity: .95;
    margin: 0 0 1rem;
}

#heroCarousel .btn-primary {
    background-color: var(--primary, #0d6efd);
    border-color: transparent;
    padding: .65rem 1.1rem;
    font-weight: 600;
}

#heroCarousel .carousel-control-next-icon,
#heroCarousel .carousel-control-prev-icon {
    filter: invert(1) brightness(1.6);
}

#heroCarousel .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.6);
}

/* servicios*/
.service-card {
    transition: transform .18s ease, box-shadow .18s ease;
    border-radius: .5rem;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
}

.service-card .card-title {
    font-size: 1.05rem;
}

.service-card .card-body {
    padding: 1.25rem;
}

@media (max-width: 575.98px) {
    .service-card .card-body {
        padding: .9rem;
    }
}

.text-brand {
    color: var(--brand) !important;
}

#services h2.fw-bold {
    color: #032240;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.05;
    margin-bottom: .5rem;
}

.service-card .card-title {
    color: #032240;
    font-weight: 600;
}

.trabajo-title {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.02rem;
}

/*trabajos*/
#trabajos .card {
    transition: transform .18s ease, box-shadow .18s ease;
    border-radius: .5rem;
    cursor: pointer;
}

#trabajos .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
}

/* pequeño efecto sobre la imagen interna */
#trabajos .card .card-img-top {
    transition: transform .35s ease;
}

#trabajos .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
}

#trabajos .card-img-top {
    height: 180px;
    object-fit: cover;
}

@media(min-width:992px) {
    #trabajos .card-img-top {
        height: 220px;
    }
}


#offCarousel .carousel-item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}


.btn-ver-trabajo {
    transition: transform .12s ease;
}

.btn-ver-trabajo:hover {
    transform: translateY(-3px);
}

:root {
    --brand: #032240;
}

/* Nosotros */
:root {
    --brand: #032240;
}


.title-lg {
    color: var(--brand);
}


.text-brand {
    color: var(--brand);
}


.nosotros-text {
    text-align: justify;
    text-justify: inter-word;
    color: #6c757d;
}


#nosotros img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    #nosotros img {
        max-height: 260px;
    }
}

#nosotros .logo-nosotros {
    max-width: 100px;
    width: 40%;
    height: auto;
    display: block;
}


#nosotros .nosotros-text {
    text-align: justify;
    text-justify: inter-word;
    color: #6c757d;
}

@media (max-width: 575.98px) {
    #nosotros .logo-nosotros {
        max-width: 160px;
        width: 50%;
    }
}

/* Contacto */
.contacto-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;

}

.contacto-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}
.contacto-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(3,34,64,0.5), rgba(3,34,64,0.4));
  z-index: 1;
  pointer-events: none;
}

/* tarjeta central */
.contacto-card {
    position: relative;
    z-index: 2;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    padding: 2.2rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(3, 34, 64, 0.25);
    color: #ffffff;
}

/* texto en tarjeta */
.contacto-card .contacto-list a {
    color: #dbe7ef;
    text-decoration: none;
}

.contacto-card .contacto-list a:hover {
    text-decoration: underline;
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border-radius: 10rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.18);
}

.btn-whatsapp:hover {
    background: #20b85b;
    border-color: #20b85b;
    color: #fff;
}

/* footer */
#footer {
    background: #071a2a !important;
}

#footer a {
    color: #cfe8f5;
}

#footer a:hover {
    color: #fff;
    text-decoration: none;
}

.btn-morado{
    background-color: #071a2a !important;
}