* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Asegura que el body tenga al menos la altura de la ventana */
  font-family: 'Helvetica', sans-serif;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  background: #000000;
  transition: opacity 0.4s ease;
}

body.loading {
  opacity: 0.8;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: blur(0px);
  opacity: 0.8;
  background-attachment: fixed;
}

/* Header */
.header-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.header-desktop {
  display: block;
  max-width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(0, 10, 20, 0.5);
  text-align: center;
  position: relative;
}

.header-mobile {
  display: none;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px 0;
  position: relative;
}

.logo-floating {
  position: absolute;
  top: 14px;
  left: 12px;
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

.logo-floating img {
  height: 3.4rem;
  filter: drop-shadow(0 0px 0px rgba(255, 255, 255, 0.7));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Eslogan */
.slogan-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(100%) translateY(-50%);
  color: #fff9ea;
  font-size: 1.5rem;
  font-weight: normal;
  font-style: italic;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 10;
  padding: 1rem;
}

.slogan-text.slide-in {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Botón */
.glow-button {
  position: absolute;
  right: 1%;
  top: 20%;
  padding: 10px 20px;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  color: white;
  border: #ffd500 solid 0px;
  border-radius: 2px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
  transition: all 0.4s ease;
  opacity: 0;
  transform: scale(0.8);
  z-index: 100;
  font-size: 0.9rem;
}

.glow-button:hover {
  transform: scale(1.05);
  border: #ffa500 solid 2px;
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.9);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.7);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.9);
  }

  100% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.7);
  }
}

#navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

#navbar ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  padding: 5px 10px;
  border-bottom: 3px solid transparent;
  transition: 0.3s;
}

#navbar ul li a.active,
#navbar ul li a:hover {
  color: #004E89;
  border-bottom-color: #004E89;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: normal;
}

.nav-menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: rgba(255, 200, 0, 0.8);
  font-style: oblique;
  transform: scale(1.05);
}

.nav-menu a:first-child {
  border-left: none;
}

.nav-menu a:last-child {
  border-right: none;
}

.projects-section {
  padding: 75px 2px;
}

.projects-container {
  padding: 75px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 90%;
  margin: 0 auto;
}

.project-card {
  background: rgba(0, 10, 20, 0.3);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.241);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-header {
  padding: 18px 20px;

}

.project-header h1 {
  padding: 18px 20px;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
}

.project-item {
  display: block;
  padding: 12px 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: color 0.3s ease;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 60px; /* o el valor que consideres adecuado */
}

.project-item:hover {
  color: rgb(23, 43, 61) !important;
}

.project-location {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

.project-location::before {
  content: "📍";
  margin-right: 5px;
  font-size: 0.8rem;
}

.project-description {
  padding: 18px 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1px;
  line-height: 1.5;
}

/* === Project Detail View === */
.project-detail-section {
  padding: 40px 20px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Galería de miniaturas */
.project-main-bg {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  margin: 30px 0;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 50px;
}

.detail-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 12rem;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 2px;
  background: rgba(0, 10, 20, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.197);
  transition: transform 0.3s ease;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.thumbnail {
  width: 200px;
  height: 60px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 1px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail:hover {
  transform: scale(1.1);
  border-color: #ffcc00;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 50px;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 12rem;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 2px;
  background: rgba(0, 10, 20, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.197);
  transition: transform 0.3s ease;
  z-index: 1;
}

.service-content-area {
  flex: 2;
  background: rgba(0, 0, 10, 0.3);
  padding: 0.5rem;
  border-radius: 2px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.service-content {
  transition: opacity 0.3s ease;
  background: rgba(144, 144, 144, 0.4);
  padding: 0.5rem;
}

.service-card:hover {
  transform: translateY(-5px);

}

.service-item {
  content: "";
  padding: 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  z-index: 1000;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.20);
}

.service-content h2 {
  color: #ffcc00;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item {
    font-size: 0.7rem;
  }

  .service-content h2 {
    font-size: 0.8rem;
  }
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 4rem;
  justify-content: center;
}

.section {
  flex: 1;
  padding: 20px;
  border: 1px solid rgba(0, 10, 20, 0.3);
  background-color: rgba(0, 10, 20, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.section h3 {
  font-size: 1rem;
  font-weight: bold;
  font-style: italic;
  color: rgba(255, 187, 0, 0.8);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header-title h1 {
    font-size: 1.8rem;
  }

  .text-column {
    font-size: 0.9rem;
  }
}

.contact-clean {
  background: #ffffff;
  padding: 40px 0;
}

@media (max-width:767px) {
  .contact-clean {
    padding: 20px 0;
  }
}

.contact-container {
  position: relative;
  background: rgba(0, 0, 10, 0.3);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.row {
  padding: 1rem 3rem;
  margin-top: 1rem;
  color: #ffffff;
}

.typed-texto {
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
}

.typed-texto-color {
  color: #ffcc00;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
}


.contact-clean form {
  max-width: 480px;
  width: 90%;
  margin: 0 auto;
  background-color: rgba(218, 218, 218, 0.2);
  padding: 40px;
  border-radius: 4px;
  color: #ffffff;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width:767px) {
  .contact-clean form {
    padding: 30px;
  }
}

.contact-clean h2 {
  margin-top: 5px;
  font-weight: bold;
  font-size: 28px;
  margin-bottom: 36px;
  color: inherit;
}

.contact-clean form .form-control {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  outline: none;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 12px;
  height: 42px;
}

.contact-clean form .form-control:focus {
  border: 1px solid #00010f;
}

.contact-clean form textarea.form-control {
  background: rgba(0, 0, 0, 0.1);
  min-height: 100px;
  max-height: 260px;
  padding-top: 10px;
  resize: vertical;
}

.contact-clean form .btn {
  padding: 16px 32px;
  border: none;
  background: none;
  box-shadow: none;
  text-shadow: none;
  opacity: 0.9;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.4px;
  line-height: 1;
  outline: none !important;
}

.contact-clean form .btn:hover {
  opacity: 1;
  transform: translateY(0.1rem);
}

.contact-clean form .btn:active {
  transform: translateY(1px);
}

.contact-clean form .btn-primary {
  background-color: rgba(0, 0, 10, 0.5) !important;
  margin-top: 15px;
  color: #ffffff;
}

.form-text {
  color: #ffffff;
  font-size: 0.8rem;
}

.link {
  text-decoration: none;
  color: rgba(0, 0, 10, 0.4);
  font-size: 0.8rem;
  font-style: italic;
}

.form-control {
  color: rgba(255, 255, 255, 0.8);
}

::placeholder {
  color: rgba(0, 0, 10, 0.3) !important;
  font-size: 0.8rem;
  font-style: italic;
}

/* Mobile menu styles */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: rgba(0, 10, 20, 0.8);
  width: 100%;
  text-align: center;
  padding: 0;
}

.mobile-menu li {
  list-style: none;
  padding: 2px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: normal;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu a:hover {
  color: #fff;
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0px;
  background-color: rgba(0, 10, 20, 0.8);
  width: 100%;
  color: white;
  margin-bottom: 1px;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

#content-area {
  flex-grow: 1;
}

.services-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px 20px;
}

.loader {
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.7;
  color: #222222;
  background: #ffffff;
  transition: opacity 0.4s ease;
}

.loader h1 {
  font-size: 1.9rem;
  margin-bottom: rem;
  text-align: left;
  margin-left: 5px;
}

.loader h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
  margin-left: 10px;
}

.loader p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
  margin-left: 10px;
}

.footer {
  background: transparent;
  color: rgb(255, 248, 235);
  font-size: 0.8rem;
  text-align: center;
  text-decoration: none;
  padding: 20px 0;
  margin-top: 2px;
}

.language-switcher {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 10px 0;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Animaciones */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
  }

  .body {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .logo-floating {
    top: 7px;
    left: 1rem;
    height: 2rem;
    transform: scale(1rem);
  }

  .slogan-text {
    font-size: 1.2rem;
    max-width: 90%;
    padding: 0.5rem;
    top: 70%;
    transform: translateX(100%) translateY(-50%);
  }

  .slogan-text.slide-in {
    transform: translate(-50%, -50%);
  }

  .glow-button {
    display: block;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}