/* Variables de color */
:root {
  --color-light: #fdfdfd;
  --color-dark: #1c1c1c;
  --color-accent: #f8c13a;
  --color-accent-hover: #e5a800;
  --color-primary: #3b3b3b;
  --color-secondary: #eeeeee;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-light);
  color: var(--color-primary);
  scroll-behavior: smooth;
}

/* Navegación */
  body.no-scroll {
    overflow: hidden;
  }

  .navbar {
    background-color: var(--color-dark);
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5em;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
  }

  .navbar a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
  }

  .navbar a:hover,
  .navbar a:focus {
    color: var(--color-accent);
  }

  .navbar a:active {
    color: var(--color-accent);
    transition: color 0.1s ease;
  }

  .navbar a.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
  }

  .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: center;
    margin-left: auto;
  }

  .menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    display: block;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .close-menu {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    z-index: 1001;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .navbar {
      justify-content: flex-end;
    }

    .navbar ul {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: rgba(0, 0, 0, 0.85);
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      z-index: 999;
      transition: opacity 0.3s ease, max-height 0.3s ease;
    }

    .navbar ul.show {
      max-height: 100vh;
      opacity: 1;
      pointer-events: auto;
    }

    .close-menu.show {
      display: block;
    }

    .navbar ul li {
      margin: 1em 0;
    }

    .navbar ul li a {
      font-size: 1.5em;
      padding: 0.5em 1em;
      color: white;
      transition: color 0.3s ease;
    }

    .navbar ul li a:hover,
    .navbar ul li a:focus {
      color: var(--color-accent);
    }

    .navbar ul li a:active {
      color: var(--color-accent);
      transition: color 0.1s ease;
    }

    .navbar ul li a.active {
      color: var(--color-accent);
      border-bottom: 2px solid var(--color-accent);
    }

    .menu-toggle {
      display: flex;
    }
  }

/* Hero */
.hero {
  background: url('Images/HabitatNatural2.png') center/cover no-repeat;
  padding: 5em 2em;
  text-align: center;
  color: white;
}

.hero .container {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2em;
  border-radius: 10px;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.2em;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.landscape-image {
  width: 100%;
  height: 100%;
}

.cta-button {
  background-color: var(--color-accent);
  color: black;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 2.5rem;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: var(--color-accent-hover);
}

/* Secciones generales */
.section {
  padding: 4em 15em;
}

.section-light {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.section-dark {
  background-color: var(--color-dark);
  color: white;
}

.section-multi-columns > div.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.section-multi-columns > div.container > div.container-item{
  flex: 1 1 calc(45% - 0.75rem);
  box-sizing: border-box;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  margin: 0;
}

.section-multi-columns > div.container > div.container-item > p{
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 1em;
}

/* Galerías y catálogo */
.morph-gallery,
.gecko-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.gecko-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    font-family: var(--font-main);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

    .gecko-card:hover img {
    transform: scale(1.05);
  }

  .gecko-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.gecko-card .info {
  padding: 1em;
}

.gecko-card h3 {
  margin: 0.5em 0 0.2em;
  font-size: 1.1em;
  color: var(--color-primary);
}

.gecko-card p {
  margin: 0.2em 0;
  font-size: 0.95em;
  color: #555;
}

.gecko-card .price {
  font-weight: bold;
  color: var(--color-accent);
  margin-top: 0.5em;
}

/* Contacto */
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-main);
}

#contact-form button {
  background-color: var(--color-accent);
  color: black;
  padding: 0.8em 1.2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#contact-form button:hover {
  background-color: #e5a800;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 0.5rem 0rem;
  font-size: 0.8rem; /* Tamaño de texto más pequeño */
  height: 5rem;
  z-index: 100;
}

.footer-container {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0rem 15rem;
  flex-direction: column;
}

.social-icons {
  display: flex;
  justify-items: flex-start;
  gap: 2rem; 
  flex-grow: 1;
}

.social-icons a {
  color: #fff; /* Color blanco para los iconos */
  font-size: 1.3rem; /* Tamaño de los iconos */
  text-decoration: none; /* Eliminar subrayado */
  transition: color 0.3s ease; /* Animación suave al cambiar de color */
}

.social-icons a:hover {
  color: var(--color-accent); /* Cambiar el color al pasar el mouse (rojo) */
}

.copy-right {
  justify-items: flex-end;
  flex-grow: 1;
}

.hide {
  display: none !important;
}

main {
  margin-bottom: 5.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .cta-button {
    font-size: 0.9em;
  }

  .section {
    padding: 2rem 3rem;
  }

  .section-multi-columns > div.container > div.container-item{
    flex: 1 1 calc(100% - 0.75rem);
  }

  .footer {
    height: 2.5rem;
  }

  .footer-container {
    padding: 0rem 3rem;
    flex-direction: row;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .copy-right p {
    text-align: end;
  }
}
