* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0c3a4c;
  --secondary-color: red;
  --background-color: rgba(0, 0, 0, 0.7);
  --border-color: #fff;
  --body-color: #fff;
  --basic-font: 'Lato', sans-serif;
  --header-text-color: #fff;
  --footer-text-color: #fff;
  --button-color: #0c3a4c;
  --button-hover-color: #234d5e;
  --button-text-color: #fff;
  --font-thin: 100;
  --font-light: 300;
  --font-regular: 400;
  --font-bold: 700;
}

body {
  font-family: var(--basic-font);
  font-style: normal;
  font-weight: var(--font-regular);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--primary-color);
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 150px;
  color: var(--header-text-color);
}

header h1 {
  font-size: 30px;
  font-weight: var(--font-light);
}

header h1 a,
footer a {
  color: var(--header-text-color);
  text-decoration: none;
}

.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.contact-info {
  font-size: 0.85rem;
  color: var(--header-text-color);
  white-space: nowrap;
  display: flex;
  gap: 0.5rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info a:first-child::after {
  content: "·";
  margin-left: 0.5rem;
}

.burger-menu {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger-menu div {
  width: 25px;
  height: 3px;
  background: var(--header-text-color);
}

footer {
  background: var(--primary-color);
  color: var(--footer-text-color);
  padding: 20px;
  text-align: center;
  bottom: 0;
  width: 100%;
  font-weight: var(--font-thin);
}

footer p {
  margin: 5px 0;
}

.button {
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: var(--font-regular);
}

.button:hover {
  background: var(--button-hover-color);
  transition: background 1s ease;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.project img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  aspect-ratio: 16/9;
}

.project div {
  background: var(--background-color);
  color: var(--body-color);
  padding: 40px;
  border-radius: 10px;
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 500px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-weight: var(--font-light);
}

.project div h2 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: var(--font-regular);
}

.project div p {
  font-size: 16px;
  line-height: 1.5;
}

.slide-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  /* Set a specific height */
  min-height: 500px;

  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax video {
  object-fit: cover;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}


.project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 50px;
  padding-inline: 200px;
  background-color: var(--body-color);
}

.project-content .title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.project-content .title h2 {
  font-size: 26px;
  font-weight: var(--font-bold);
}

.project-content .price {
  align-self: center;
  padding: 3px 12px;
  font-size: 12px;
  border-radius: 20px;
  background-color: var(--button-color);
  color: var(--button-text-color);
}


.project-content p {
  font-size: 20px;
  line-height: 1.6;
  font-weight: var(--font-thin);
}

.map {
  height: 400px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

[data-i18n] {
  white-space: pre-line;
}

.language-selector {
  position: relative;
  display: inline-block;
  margin: 1rem;
}

.lang-dropdown {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--button-text-color);
  font-size: 1rem;
  background-color: var(--button-color);
  color: var(--button-text-color);
  cursor: pointer;
  appearance: none;
  /* Elimina estilo nativo */
}

.lang-dropdown:focus {
  outline: none;
  border-color: var(--button-text-color);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--body-color);
}

.project-details h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: var(--font-bold);
}

.features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 5rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem
}

.features-list img {
  width: 42px;
  height: 42px;
  filter: invert(45%) sepia(76%) saturate(300%) hue-rotate(180deg);
  filter: saturate(100%) invert(16%) sepia(27%) saturate(1813%) hue-rotate(156deg);
}

.features-list li span {
  font-size: 12px;
}

.features-list li span:first-of-type {
  font-weight: var(--font-bold);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    height: 100px;
  }

  header h1 {
    font-size: 24px;
  }

  .contact-info {
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .contact-info a:first-child::after {
    content: "";
    margin-left: 0;
  }

  .project img {
    aspect-ratio: auto;
  }

  .project div {
    width: 90%;
    left: 5%;
    bottom: 5%;
    padding: 20px;
    font-size: 14px;
  }

  .project-content {
    padding-inline: 20px;
  }

  .project-content p {
    font-weight: var(--font-light);
  }

  .features-list {
    grid-template-columns: 1fr;
  }

}