/* ===== GENERAL ===== */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #124b5d;
  font-family: 'Jost', sans-serif;
  scroll-behavior: smooth;
}

/* Control de padding según el tipo de página */
body.scroll-offset {
  padding-top: 100px; /* espacio para navbar fija */
}

body.no-scroll-offset {
  padding-top: 0; /* sin espacio (ej. carrusel a pantalla completa) */
}

/* Espaciado correcto para navegación por anclas */
section {
  scroll-margin-top: 110px;
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background-color: #ffffff;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1030;
}

.navbar-custom .nav-link {
  font-weight: bold;
  color: #124b5d;
  position: relative;
  padding-bottom: 0.8rem;
  margin: 0 1rem;
}
.navbar-custom .nav-link.active {
  color: #124b5d !important;
}


.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background-color: #B19061;
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: 100%;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    display: inline-block;
    float: none;
  }

  .navbar-nav .nav-item {
    display: block;
    margin: 0 auto;
  }
}


/* ===== INDEX LOGO CENTERED ===== */
.centered-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #124b5d;
  text-align: center;
}

.logo {
  max-width: 250px;
  width: 100%;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
  transition: transform 0.2s ease;
}
.logo:hover {
  transform: scale(0.95);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===== FOOTER ===== */
.footer-custom {
  background-color: #124b5d;
  border-top: 10px solid #9BA0A7; /* línea gris clara */
}

.footer-custom a {
  color: white;
  text-decoration: none;
}

.footer-custom a:hover {
  text-decoration: underline;
}

.social-icons i {
  font-size: 1.5rem;
  color: white;
  transition: color 0.3s ease;
}

.icon-link:hover i {
  color: #aad1b6;
}

/* Newsletter */
.newsletter-input {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid white;
  border-radius: 0;
  color: white;
  padding-left: 0;
  padding-right: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  background-color: transparent;
  color: white;
  border-bottom-color: #aad1b6;
  outline: none;
  box-shadow: none;
}

.newsletter-input::selection {
  background: rgba(255, 255, 255, 0.3);
}

.btn-newsletter {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  background-color: white;
  color: #124b5d;
  border-color: white;
}

/* ===== NOSOTROS ===== */
.nosotros-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.nosotros-text {
  background-color: #124b5d;
  border-radius: 0;
  height: 100%;
}

.liviano {
  font-weight: 200;
}

/* ===== PROYECTOS - CARRUSEL ===== */
.proy-img {
  height: 100vh;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.carousel {
  scroll-margin-top: 110px;
}

.carousel-item {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.carousel-caption-custom {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  z-index: 2;
  color: white;
  padding: 0 50px;
}

.carousel-caption-custom h5 {
  font-weight: bold;
  font-size: 1.6rem;
}

.caption-line {
  height: 6px;
  width: 100px;
  background-color: white;
}

.caption-logo {
  max-height: 30px;
  object-fit: contain;
}

.carousel-caption-custom p {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.carousel-control-prev,
.carousel-control-next {
  bottom: 20%;
}

.img-half {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: transparent; /* sin fondo visible */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.img-half:hover {
  background-color: rgba(18, 75, 93, 0.4); /* aparece al pasar el mouse */
}


.overlay-text {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(18, 75, 93, 0.6); /* fondo azul con transparencia */
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  opacity: 1; /* siempre visible */
  pointer-events: none; /* no bloquea clic */
  white-space: nowrap;
}


@media (min-width: 768px) {
  .img-half:hover .overlay-text {
    opacity: 1;
  }
}

.img-half:hover .overlay-text {
  opacity: 1;
}

.left-side {
  left: 0;
}

.right-side {
  right: 0;
}


.novedades-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.novedades-section .row {
  height: 60vh; /* hace más grande la sección completa */
}

.novedades-section img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* la imagen se recorta pero no se deforma */
}

.novedades-text {
  height: 100%; /* hace que la columna derecha acompañe toda la altura */
  display: flex;
  flex-direction: column;
  justify-content: center; /* mantiene el texto centrado verticalmente */
}
