@charset "UTF-8";
/* fa-lightbulb animada */
.animated-icon {
  animation: switch-icon 2s infinite;
}

@keyframes switch-icon {
  0%, 49% {
    content: "\f0eb"; /* fa-lightbulb (unicode) */
  }
  50%, 100% {
    content: "\f1fc"; /* fa-paintbrush (unicode) */
  }
}
/* header */
.header {
  background: #151515 url("../img/mar-rojo-ola.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /*para que quede fijo el fondo*/
}

.header::after { /*fantasma de fondo*/
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(223, 93, 93, 0.6);
}

.header .text-container {
  z-index: 10; /*texto encima del overlay para que no se opaque*/
}

.header .roles {
  font-family: "inter", sans-serif;
}

.header .social {
  bottom: 50px;
}

.sobremi-img {
  width: 200px;
}

.proyecto:hover {
  transform: scale(1.05); /*para cuanndo haces hover con el cursor se agrande la imagen*/
  transition: all 0.5s ease-in-out;
  opacity: 0.8;
}

.servicios {
  background: url("../img/mar-azul-ola.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.servicios::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(63, 225, 233, 0.9);
}

.servicios .container {
  z-index: 10;
}

.barquito {
  position: absolute;
  width: 400px;
  transition: transform 0.2s linear;
  pointer-events: none;
  z-index: 20;
  top: 0;
  left: 0;
}

input,
textarea {
  color: white !important;
  font-weight: bold !important;
}

input::placeholder,
textarea::placeholder {
  color: white !important;
  opacity: 1; /* para que no sea translúcido en algunos navegadores */
}

@keyframes navegar {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(110vw) rotate(2deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}
.barcos-loop {
  position: absolute;
  bottom: 20%;
  left: -200vw; /* empieza bien fuera de pantalla */
  width: 400vw;
  display: flex;
  gap: 100px;
  animation: navegar-barcos 60s linear infinite;
  z-index: 5;
  pointer-events: none;
}

.barco {
  width: 160px;
  height: auto;
  animation: opacidad-barco 6s ease-in-out infinite;
}

/* Movimiento lateral */
@keyframes navegar-barcos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(200vw);
  }
}
/* Flotar y opacidad */
@keyframes opacidad-barco {
  0%, 100% {
    opacity: 0;
    transform: translateY(5px);
  }
  25%, 75% {
    opacity: 0.7;
    transform: translateY(-5px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}
.custom-modal-container {
  max-width: 1440px;
  margin: 0 auto;
}

.trendy-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.grid-row-1,
.grid-row-2,
.grid-row-3 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 40%;
  background: rgba(46, 189, 233, 0.85);
  color: #000;
  transition: bottom 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.grid-item:hover .overlay {
  bottom: 0;
}

.grid-item--text {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
}

.col-md-6 .d-flex.flex-wrap.gap-4 > .text-center {
  cursor: pointer;
  color: #000;
  transition: color 0.3s ease;
}

.col-md-6 .d-flex.flex-wrap.gap-4 > .text-center:hover {
  color: var(--bs-primary);
}

.col-md-6 .d-flex.flex-wrap.gap-4 > .text-center:hover img {
  filter: brightness(0) saturate(100%) invert(34%) sepia(92%) saturate(618%) hue-rotate(342deg) brightness(92%) contrast(90%);
  transition: filter 0.3s ease;
}

@media (max-width: 767px) {
  .header .social i { /*achicar los social iconos para que no queden ta grandes en pantallas chicas*/
    font-size: 30px;
  }
  .header .roles {
    font-size: 18px !important;
  }
  .sobremi-content {
    flex-direction: column;
  }
  .barquito {
    display: none;
  }
  .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
  }
  .grid-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  .grid-item:hover .overlay {
    bottom: 0;
  }
  .grid-item--text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: left;
  }
  .overlay {
    height: 100%;
  }
  .overlay p {
    font-size: smaller;
  }
  .modal h2 {
    font-size: 0.8rem;
  }
  .modal-footer .btn {
    font-size: 0.7rem;
  }
  .modal-dialog-scrollable .modal-content {
    max-height: 100vh;
    overflow: hidden;
  }
  .modal-body {
    max-height: calc(100vh - 140px); /* Ajustá según el tamaño de tu header/footer */
    overflow-y: auto;
    padding: 1rem;
  }
  /* Asegurarnos de que el texto largo se quiebre bien */
  .grid-item--text,
  .overlay p {
    word-break: break-word;
    white-space: normal;
  }
}
