/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    color: #333333c5;
}
/* Navbar */
.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem 0rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  
  margin: 0 auto;
}

.nav-item {
  color: #fff;
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.3s;
}

.nav-item:hover {
  color: #f39c12;
}
/* Logo */
.logo img {
  height: 50px;
  width: auto;
}

.navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.navbar-toggler-icon {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon:nth-child(2) {
  margin: 5px 0;
}

/* Estilo de los enlaces */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-item:hover {
  color: #f39c12;
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 86px;
      right: 20px;
      background-color: rgba(0, 0, 0, 0.9);
      padding: 1rem;
      width: 94%;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
      display: flex;
  }

  .navbar-toggler {
      display: flex;
  }
}

/* Estilo adicional para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
  .nav-container {
      flex-direction: row;
      align-items: flex-start;
  }

  .logo img {
      height: 50px; /* Logo más pequeño */
  }

  .navbar-toggler {
      align-self: center;
  }

  .nav-links {
      width: 100%; /* Ocupa todo el ancho */
      top: 85px;
      right: 0;
      padding: 1rem;
      text-indent: 12px;
  }

  .nav-item {
      font-size: 14px; /* Tamaño de fuente más pequeño */
  }
}


    .whatsapp {
      position:fixed;
      width:60px;
      height:60px;
      bottom:40px;
      left:40px;
      background-color:#25d366;
      color:#FFF;
      border-radius:50px;
      text-align:center;
      font-size:30px;
      z-index:100;
    }
    
    .whatsapp-icon {
      margin-top:13px;
    }


/* Header con imagen de fondo y animación */
.header {
    position: relative;
    height: 600px; /* Altura del header */
    background-image: url('/CONDOSBYAREA/caption.webp'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Efecto de superposición para mejorar la legibilidad */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(66, 66, 66, 0.349); /* Fondo oscuro semi-transparente */
}

/* Contenido del header */
.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Título del header */
.header-title {
    font-size: 4rem;
    color: #fff;
    margin: 0;
    animation: fadeInDown 1.5s ease-in-out; /* Animación de entrada */
}

/* Animación de entrada para el título */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor principal */
.header-content {
    text-align: center;
    padding: 2rem 1rem;
}

.header-content h1 {
  text-align: center;
  padding: 2rem 1rem;
  text-shadow: 4px 0px 2px #181717;
}

/* Estilo del H1 */
.animated-heading {
    font-size: 3rem; /* Tamaño grande del texto */
    font-weight: bold;
    font-family: 'Roboto', sans-serif; /* Cambia la fuente a algo moderno */
    color: #d2a67a; /* Color principal */
    text-transform: uppercase; /* Convierte el texto a mayúsculas */
    position: relative; /* Necesario para la animación */
    display: inline-block; /* Para que el texto y el ícono estén juntos */
}
  /* Icono */
.animated-heading i {
    font-size: 1.5em; /* Tamaño relativo del icono */
    color: #fff; /* Color del ícono */
    margin-left: 0.5rem;
    transition: transform 0.5s ease, color 0.3s ease;
}

/* Efectos de animación */
.animated-heading::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -10px;
    left: 0;
    background-color: #d2a67a;
    transition: width 0.5s ease-in-out;
}
.animated-heading:hover::after {
    width: 100%; /* Línea animada debajo del texto */
}
  
.animated-heading:hover i {
    transform: rotate(360deg); /* Rotación del ícono */
    color: #d2a67a; /* Cambia el color del ícono al pasar el mouse */
}
  
  /* Animación de entrada */
.animated-heading {
    animation: fadeIn 2s ease-out;
}
@keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* Contenedor del grid */
.grid-container {
    display: flex;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas de igual tamaño */
    grid-template-rows: repeat(2, 1fr); /* 2 filas de igual tamaño */
    gap: 40px; /* Espacio entre los elementos del grid */
    padding: 18px;
    height: 25vh; /* Altura del contenedor */
    max-width: 1200px;
    margin: 40px auto ; /* Superpone el grid sobre el header */
    width: 100%; /* Ancho del contenedor */
    background-color: #2c2b2b8a;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    justify-items: center;
}

.grid-item {
  position: relative;
  width: 400px; /* Ajusta el tamaño según tus necesidades */
  height: 230px; /* Ajusta el tamaño según tus necesidades */
  background-color: #3b3c3d00;
  color: #fff;
  font-size: 24px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease ;
  transform-style: preserve-3d;
  perspective: 1000px; /* Necesario para el efecto 3D */
   overflow: hidden;
}

/* Asegura que el contenedor de la tarjeta no se desborde */
.grid-item a {
  display: block; /* Hace que el enlace sea un contenedor bloque */
  position: relative; /* Asegura que se mantenga dentro de los límites */
  width: 100%; /* Se asegura de que el enlace ocupe el 100% del espacio disponible */
  height: 100%; /* Asegura que el enlace tenga la misma altura que el grid-item */
  text-decoration: none; /* Elimina subrayado del enlace */
}

/* Efecto hover para los elementos del grid */
.grid-item:hover {
  transform: translateY(-10px); /* Levanta el elemento */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
  
}

/* Contenedor frontal y trasero */
.grid-item .front,
.grid-item .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Oculta la parte trasera durante la rotación */
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s ease; /* Transición para el flip */
  
}

/* Frente de la tarjeta */
.grid-item .front {
  background: conic-gradient(#d2a67a, #333,  #d2a67a, #333);
  transform: rotateY(0deg);
  z-index: 2; /* Asegura que .front esté por encima de .back */
  flex-direction: column; /* Alinea el contenido en columna */

}

/* Estilos para la etiqueta */
.grid-item .front .etiqueta {
  position: absolute; /* Posicionamiento absoluto para superponer */
  top: 10px; /* Distancia desde la parte superior */
  left: 10px; /* Distancia desde la izquierda */
  background-color: #d2a67a; /* Fondo de la etiqueta */
  color: white; /* Color del texto */
  padding: 5px 10px; /* Espaciado interno */
  border-radius: 5px; /* Bordes redondeados */
  font-size: 16px; /* Tamaño del texto */
  z-index: 3; /* Asegura que la etiqueta esté por encima de la imagen */
}

/* Imagen dentro de la parte trasera */
.grid-item .front img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para cubrir el contenedor */
  border-radius: 10px;
  
}

/* Imagen pequeña en .front */
.grid-item .front .imagen-pequena {
  width: 300px; /* Tamaño de la imagen pequeña */
  height: 100px; /* Tamaño de la imagen pequeña */
  margin-top: -70px; /* Espacio entre el texto y la imagen */
  border-radius: 10%; /* Opcional: para hacerla circular */
  object-fit: cover; /* Ajusta la imagen para cubrir el contenedor */
}

/* Parte trasera de la tarjeta */
.grid-item .back {
  background-color: #3b3c3d;
  transform: rotateY(180deg);
  z-index: 1; /* Asegura que .back esté detrás de .front */
}

/* Imagen dentro de la parte trasera */
.grid-item .back img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para cubrir el contenedor */
  border-radius: 10px;
  
}

/* Animación de flip al hacer hover en .grid-item */
.grid-item:hover .front {
  transform: rotateY(180deg); /* Rota el frente al hacer hover */
}

.grid-item:hover .back {
  transform: rotateY(0deg); /* Rota la parte trasera al hacer hover */
}


/* Media Queries para pantallas más pequeñas */

/* Pantallas grandes */
@media (min-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    grid-template-rows: repeat(2, 1fr); /* Dos filas */
    gap: 40px;
  }
  .grid-item {
    width: 400px; /* Mantener el tamaño de los elementos en pantallas grandes */
    height: 230px;
  }
}

/* Pantallas medianas (tablet) */
@media (max-width: 1199px) and (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    grid-template-rows: repeat(2, 1fr); /* Dos filas */
    gap: 30px; /* Menor espacio entre los elementos */
  }
  .grid-item {
    width: 350px; /* Reducir el tamaño de los elementos */
    height: 200px;
  }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 767px) {
  .grid-container {
    grid-template-columns: 1fr; /* Una columna */
    grid-template-rows: repeat(4, 1fr); /* Cuatro filas */
    gap: 20px; /* Menor espacio entre los elementos */
    min-height: 83vh;
    max-width: 90%;
  }
  .grid-item {
    width: 100%; /* Los elementos ocupan el 100% del ancho */
    height: 200px;
  }
}

/* Pantallas extra pequeñas */
@media (max-width: 480px) {
  .grid-container {
    flex-direction: column ;
    padding: 10px; /* Menos espacio interno */
    min-height: 77vh;
    max-width: 90%;
    }

  .grid-item {
    font-size: 18px; /* Reducir el tamaño de la fuente */
    height: 180px; /* Ajustar altura de los elementos */
  }
}
/*======================
	ANIMATION SVG SECTION
========================*/

svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: block;
    background-color: #08080809;
    background-image: linear-gradient(to bottom, rgb(7, 7, 7), #000000);
    z-index: -7;
  }
  
  /*==================
      END ANIMATION SVG SECTION
  ====================*/


/* Footer General */
.footer-container {
    background-color: #1616169d;
    color: #fff;
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
  
  .footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  
  .footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
  }
  
  /* Footer Columnas */
  .footer-col {
    flex: 1;
    min-width: 250px;
    
   
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
  }
  
  .footer-logo {
    max-width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
    padding: 0px 50px;
  }
  
  .footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .footer-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #bbb;
  }
  .footer-links {
    list-style: none;
    padding: 0;
  }
  
  .footer-links li {
    margin-bottom: 0.5rem;
  }
  
  .footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: #fff;
  }
  
  /* Social Icons */
  .social-icons a {
    display: inline-block;
    margin-right: 1rem;
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 1px 23px;
  }
  
  .social-icons a:hover {
    color: #fff;
  }
  
  /* Newsletter Form */
  .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .newsletter-input {
    padding: 0.5rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #1c1c1c;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
  }
  
  .newsletter-button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #cead8c;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .newsletter-button:hover {
    background-color:#cead8c;
  }
  
  /* Footer Bottom */
  .footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #aaa;
  }
  
  .footer-bottom a {
    color: #0078d4;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-bottom a:hover {
    color: #005bb5;
  }
  
  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #cead8c;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .back-to-top:hover {
    background-color: #d2a67a;
  }
