@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

html {
  font-family: "Lato", sans-serif;
  background-color: #d9d9d9;
  width: 100% !important;
  overflow-x: hidden;
}

body {
  font-family: "Lato", sans-serif;
  width: 100% !important;
  overflow-x: hidden;
  background-color: #d9d9d9;
}

.poppins {
  font-family: "Poppins", sans-serif;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
}

.roboto {
  font-family: "Roboto", sans-serif;
}

.bg-nav1 {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 58px;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.bg-nav1 a {
  color: #000000;
  font-weight: normal;
  font-family: "Lato", sans-serif !important;
}

.btn-contact {
  background-color: #1c757d;
  color: #ffffff !important;
}

/* Hero Section Styles */
.hero-bg {
  position: relative;
  background-image: url("../img/banner1.webp");
  background-size: cover;
  display: flex;
  background-position: center;
  align-items: center;
  border-radius: 20px 20px 0 20px;
  min-height: 500px;
  overflow: hidden;
  border: 0;
  z-index: 1;
  /* Establishes stacking context for animated background layers */
}

/* Background animation layers for smooth crossfade */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0;
  border-radius: inherit;
}

.hero-bg::before {
  background-image: url("../img/banner2.webp");
  animation: heroBanner2 25s infinite;
}

.hero-bg::after {
  background-image: url("../img/banner3.webp");
  animation: heroBanner3 25s infinite;
}

@keyframes heroBanner2 {

  0%,
  26.66% {
    opacity: 0;
  }

  33.33%,
  66.66% {
    opacity: 1;
  }

  73.33%,
  100% {
    opacity: 0;
  }
}

@keyframes heroBanner3 {

  0%,
  60% {
    opacity: 0;
  }

  66.66%,
  93.33% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.hero-content {
  max-width: 700px;
  display: grid;
}

.hero-text-container-01,
.hero-text-container-02,
.hero-text-container-03 {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
}

.hero-text-container-01 {
  animation: textBanner1 25s infinite;
}

.hero-text-container-02 {
  animation: textBanner2 25s infinite;
}

.hero-text-container-03 {
  animation: textBanner3 25s infinite;
}

@keyframes textBanner1 {

  0%,
  26.66% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  33.33%,
  85% {
    opacity: 0;
    transform: translateY(-25px);
    pointer-events: none;
  }

  86%,
  93.33% {
    opacity: 0;
    transform: translateY(25px);
    pointer-events: none;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@keyframes textBanner2 {

  0%,
  26.66% {
    opacity: 0;
    transform: translateY(25px);
    pointer-events: none;
  }

  33.33%,
  60% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  66.66%,
  95% {
    opacity: 0;
    transform: translateY(-25px);
    pointer-events: none;
  }

  96%,
  100% {
    opacity: 0;
    transform: translateY(25px);
    pointer-events: none;
  }
}

@keyframes textBanner3 {

  0%,
  20% {
    opacity: 0;
    transform: translateY(-25px);
    pointer-events: none;
  }

  21%,
  60% {
    opacity: 0;
    transform: translateY(25px);
    pointer-events: none;
  }

  66.66%,
  93.33% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  100% {
    opacity: 0;
    transform: translateY(-25px);
    pointer-events: none;
  }
}

.hero-content h1 {
  font-family: "Lato", sans-serif;
}

.hero-text {
  font-family: "Lato", sans-serif;
}

.hero-actions {
  background-color: transparent;
  border-top-left-radius: 20px;
  border: 2px solid transparent;
  padding: 25px 25px;
  width: 400px;
  z-index: 999;
}

.btn-services {
  color: #000;
  text-decoration: none;
  border: 2px solid #00b074;
  background-color: #d9d9d9;
  font-size: 1rem;
}

.btn-services:hover {
  background-color: #1c757d;
  color: #fff;
}

.btn-arrow {
  background-color: #c0c0c0;
  color: #000;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
}

.btn-arrow:hover {
  background-color: #a0a0a0;
  color: #000;
}

/* Calidad Section Styles */
.calidad-title {
  font-family: "Lato", sans-serif;
  font-size: 2.5rem;
  color: #000;
  line-height: 1.2;
}

.calidad-img-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card {
  padding: 30px 40px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-light {
  background-color: #b8b7b7;
  opacity: 1 !important;
}

.stat-dark {
  background-color: #1c757d;
}

.stat-number {
  font-family: "Lato", sans-serif;
  font-size: 3rem;
  color: #000;
  line-height: 1;
}

.stat-text {
  font-family: "Lato", sans-serif;
  font-size: 0.9rem;
  color: #333;
}

/* Services Section Styles */
.service-card {
  background-color: #003042;
  /* Carta color azul oscuro */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card.active .service-desc,
.service-card.active .service-title2 {
  display: block;
}

.service-card.active .service-title {
  display: none;
}

.service-card.active .service-content.ps-4.py-4 {
  padding-top: 0 !important;
}

.service-img {
  height: 350px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.service-content {
  min-height: 30px;
}

.service-title2 {
  color: #50e3c2;
  /* Título color verde/aqua brillante */
  font-size: 1.4rem;
  display: none;
}

.service-title {
  color: #50e3c2;
  /* Título color verde/aqua brillante */
  font-size: 1.4rem;
}

.service-desc {
  display: none;
  color: rgba(255, 255, 255, 0.9) !important;
}

.service-btn {
  width: 65px;
  height: 65px;
  background-color: #d9d9d9;
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex !important;
}

.service-btn:hover {
  background-color: #b0b0b0;
  color: #000;
}

.nav-control-btn {
  width: 40px;
  height: 40px;
  background-color: #003056;
  /* Azul marino */
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-control-btn:hover {
  background-color: #004f9d;
  transform: scale(1.1);
}

/* Experiencia Section Styles */
.testimonial-box {
  background: rgba(152, 152, 152, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 50%;
  margin-left: 40px !important;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: -20px;
  font-size: 3rem;
  opacity: 0.3;
  transform: rotate(-180deg);
}

.exp-icon {
  width: 70px;
  height: 70px;
  background-color: #003042;
  /* Color azul oscuro/teal */
  color: #fff;
  font-size: 1.8rem;
}

/* Proyectos Section Styles */
#proyectos-grid {
  height: 800px;
}

.proy-card {
  border-radius: 25px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.proy-card:hover {
  transform: translateY(-5px);
}

.proy-cutout {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 110px;
  height: 110px;
  background-color: #d9d9d9;
  border-top-left-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Esquinas curvas invertidas del cutout */
.proy-cutout::before,
.proy-cutout::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  pointer-events: none;
}

.proy-cutout::before {
  top: -25px;
  right: 0;
  background: radial-gradient(circle at top left,
      transparent 24.5px,
      #d9d9d9 25px);
}

.proy-cutout::after {
  bottom: 0;
  left: -25px;
  background: radial-gradient(circle at top left,
      transparent 24.5px,
      #d9d9d9 25px);
}

.proy-cutout-btn {
  width: 60px;
  height: 60px;
  background-color: #003042;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 5;
}

.btn-contact:hover {
  background-color: #0b555d !important;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(30, 123, 133, 0.3);
}

/* Footer Section Styles */
.footer-glass {
  background: rgba(255, 255, 255, 0.45);
  /* Blanco semi-transparente como en el diseño */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 40px;
}

.text-foot {
  font-size: 1.05rem;
  line-height: 1.6;
  padding-right: 40%;
}

@media (max-width: 1280px) {}

/* LG */
@media (max-width: 1199px) {}

/* MD */
@media (max-width: 991px) {
  #proyectos-grid {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .footer-glass {
    border-radius: 20px;
  }

  #proyectos-grid .col-lg-5,
  #proyectos-grid .col-lg-7,
  #proyectos-grid .d-flex.flex-column {
    height: auto !important;
  }

  .proy-row-mobile {
    flex-direction: column !important;
    height: auto !important;
  }

  .proy-card {
    height: 350px !important;
    width: 100% !important;
  }
}

/* SM */
@media (max-width: 768px) {
  .showPhone {
    display: block !important;
  }

  .hiddenPhone {
    display: none !important;
  }

  .centerP {
    text-align: center !important;
    align-items: center !important;
    align-content: center !important;
    display: block !important;
  }

  .hero-bg {
    display: block;
    min-height: 300px !important;
  }

  .hero-content {
    width: 100%;
  }

  .hero-actions {
    position: absolute !important;
    bottom: 0 !important;
    background-color: transparent;
    padding: 0 0px 0px 0px;
    margin-top: 200px;
    width: 100%;
    bottom: -50px;
    justify-content: right;
  }

  .btn-services {
    background-color: rgba(232, 232, 232, 0.9);
    padding: 10px 12px !important;
  }

  #ready h2 {
    font-size: 2.2rem !important;
  }

  /* Calidad Responsive */
  .stat-card {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .calidad-title {
    font-size: 2rem;
  }

  .text-foot {
    padding-right: 0%;
  }

  .hero-bg {
    background-image: url("../img/banner1P.webp") !important;
    border-radius: 20px 20px 20px 20px !important;
  }

  .hero-bg::before {
    background-image: url("../img/banner2P.webp") !important;
    border-radius: 20px 20px 20px 20px !important;
  }

  .hero-bg::after {
    background-image: url("../img/banner3P.webp") !important;
    border-radius: 20px 20px 20px 20px !important;
  }

}

/* XS */
@media (max-width: 575px) {}

/* XS */
@media (max-width: 330px) {}