html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*fuente general*/
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "width" 100;
}
a{
  text-decoration: none;
  color: #042e99;
}
/*funte impact instalada*/
@font-face {
  font-family: 'Impact';
  src: url('./fonts/impact.ttf') format('ttf'),
    /*  Asegúrate de que la ruta sea correcta */
  ;
  font-weight: normal;
  /*  y font-style para la cursiva */
  font-style: normal;
}

/*tipografía*/
.title {
  font-size: 64px;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.subtitle {
  font-size: 24px;
  font-family: "Arsenal SC", sans-serif;
}

.body {
  font-size: 16px;
  font-family: "Archivo", sans-serif;
}

.body-sm {
  font-size: 14px;
  font-family: "Archivo", sans-serif;

}

/*fuente en media mobile */
@media (max-width:767px) {
  .title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 16px;
  }

  .body {
    font-size: 14px;
  }

  .body-sm {
    font-size: 12px;
  }
}

/*weights*/
.regular {
  font-size: 400;
}

.semi-bold {
  font-weight: 500;
}

.bold {
  font-weight: 700;
}

/*styles*/
.italic {
  font-style: italic;
}

/* fuentes*/
.archivo {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.arsenal-sc {
  font-family: "Arsenal SC", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/*colores de fuente*/
.principal {
  color: #5076C6;
}

.black {
  color: #353131;
}

.white {
  color: #ffff;
}

/*botones*/
.btn-primary {
  background-color: #ffff;
  color: #353131;
  width: 330px;
  padding: 12px 12px;
  border-radius: 6px;
  text-align: center;
  border: none;
  font-family: "Archivo", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: #5076C6;
  color: #ffff;
  width: 330px;
  padding: 6px 10px;
  border: none;
  font-family: "Archivo", sans-serif;

  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {

  font-weight: 600;
  transform: translateY(-1px);
}

@media (max-width:767px) {
  .btn-primary {
    font-size: 12px;
    width: 100%;
    max-width: 300px;
  }

  .btn-secondary {
    font-size: 12px;
  }
}

/* MAIN */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* HEADER Y HERO */
.header-hero-container {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.5));
  position: relative;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* HEADER */

header {
  display: flex;
  padding: 20px 64px;
  justify-content: space-between;
}

header .logo {
  
  display: flex;
  gap: 6px;
}

.logo-img{
  width: 40px;
  
}

.logo-text{
  font-size: 32px;
  font-family: "Impact", sans-serif;
  color: #bfbfbf;
}

nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

nav .link {
  text-decoration: none;
  color: #ffff;
  padding: 0 5px;
  transition: transform 0.5s ease;
}

nav .link:hover {
  transform: scale(1.03);
}

@media (max-width:890px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
  }

  nav {
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* HERO */

.hero {
  height: 90vh;
  padding: 80px;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 80px;
}

.hero div {
  flex: 1;
}

.hero-about * {
  line-height: 120%;
}
.hero-about p{
  text-align: justify;
}

.hero-content {
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.hero-title{
  display: flex;
  flex-direction: column
}
.title-first{
  font-size: 71.9px;
}
.title-second{
  font-size: 53.6px;
}
.title-third{
  font-size: 67.55px;
}

@media (max-width : 1020px) {
  .hero {
    flex-direction: column-reverse;
    padding: 40px 40px;
  }

  .hero-content {
    gap: 20px;
  }


  .hero-about {
    display: flex;
    justify-content: center;
    align-items: center;
  }

.title-first{
  font-size: 43px;
}
.title-second{
  font-size: 32.3px;
}
.title-third{
  font-size: 40.4px;
}
.title-fourth{
  font-size: 38.3px;
}
}

/*ABOUT US*/
#about-us {
  scroll-margin-top: 100px;
}

.about-us {
  width: 100%;
  display: flex;
  padding: 112px 64px;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.about-us-img {
  min-width: 200px;
  max-width: 616px;
  border-radius: 40px;
  max-height: 100%;
  height: 640px;
  object-fit: cover;

}

.about-us-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 616px;
  height: 100%;
}

.about-us-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-us .units {
  display: flex;
  gap: 32px;
  flex-direction: column;
  flex-wrap: wrap;
}

.about-us .units-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap
}

@media (max-width: 767px) {
  .about-us {
    flex-direction: column;
    gap: 80px;
    padding: 112px 40px;
  }

  .about-us-content {
    width: 100%;
  }

  .about-us-img {
    width: 100%;
  }
}

/*PROYECTOS*/
.proyects {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: 112px 64px;
  gap: 80px;
  background-color: #e0e0e0;
}

@media (max-width:767px) {
  .proyects {
    padding: 112px 20px;

  }
}

.proyects-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 768px;
  gap: 10px;

}

.proyects-header * {
  text-align: center;
}

.carousel-container {
  position: relative;
}
.proyectos-title{
  font-size: 70px;
}
.carousel {
  margin: 0 24px;
  width: 70vw;
  height: 600px;
  border-radius: 30px;
  overflow: hidden;
}

@media (max-width:767px) {
  .carousel-container {
    width: 100%;
  }

  .carousel {
    margin: 0;
    width: 100%;
  }

  .carousel-actions {
    padding: 0 4px;

  }
  .proyectos-title{
  font-size: 35px;
}
}

.slider {
  width: 300%;
  height: 100%;
  display: flex;
  transition: transform 1s ease;

}

.slider[data-index="0"] {
  transform: translate(0%);
}

.slider[data-index="1"] {
  transform: translate(-33.3%);
}

.slider[data-index="2"] {
  transform: translate(-66.6%);
}

.slide {
  display: flex;
  height: 100%;
  width: 33.3%;
  background-color: gray;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  object-fit: cover;
}

.slide-info {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  background-color: rgba(41, 41, 41, 0.793);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px 10%;
}

.slide-info * {
  text-align: center;
}

.carousel-actions {
  position: absolute;
  top: 45%;
  display: flex;
  justify-content: space-between;
  width: 100%;

}

.carousel-btn {
  background-color: white;
  border-radius: 4px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border: rgba(0, 0, 0, 0.119) 1px solid;
}

.dots-list {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

.dot-button {
  width: 30px;
  height: 30px;
  display: flex;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 10px;
  background-color: gray;
}

[data-dot-state="active"] .dot {
  background-color: black;
}

/* PROPIEDADES */

.propiedades {
  width: 100%;
  padding: 112px 64px;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.propiedades-header {
  width: 100%;
  max-width: 768px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.disponibles-title{
  display: flex;
  flex-direction: column;
}
.disponibles-first{
  font-size: 48px;
}
.propiedades-contenido {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.propiedades-grid {
  width: 100%;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 0;
  justify-content: center;
}

.propiedad {
  width: 310px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;

  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Ícono oculto inicialmente */
.icon-link {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 6px;
  border-radius: 50%;
  font-size: 20px;
  color: black;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  z-index: 2;
}

/* Al hacer hover en la card, el ícono aparece */
.propiedad:hover .icon-link {
  opacity: 1;
  transform: scale(1);
}

.propiedad img {
  width: 304px;
  height: 304px;
  border-radius: 32px;
}

.propiedad-info {
  width: 296px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 767px) {
  .propiedades {
    padding: 112px 40px;

  }

  .propiedades-header {
    align-items: center;
    gap: 10px;
  }

  .propiedades-header * {
    text-align: center;
  }
  .disponibles-first{
  font-size: 24px;
}
}
.encuetas-title{
  margin-bottom: 10px;
}
.encuetas-subtitle{
  margin-bottom: 20px;
}
/* COMUNIDAD-RSE */
/* ===== Comunidad – RSE ===== */

.comunidad {
  width: 100%;
  padding: 160px 64px;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./assets/imágenes/comunidad_rse.webp") center no-repeat;
  background-size: cover;
  color: white;

}

.comunidad-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.comunidad-titulo{
  display: flex;
}
.comunidad-contenido {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.triple-impacto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lineas-lista {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.linea {
  width: 300px;
  background-color: #f8f8f8;
  color: #353131;
  border-radius: 30px;
  padding: 20px;
}

.descargas {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.descargas-title{
  font-size: 32px;
}
.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  background-color: white;
  color: #353131;
  justify-content: space-between;
  padding: 5px 5px 5px 10px;
  border-radius: 30px;
  text-decoration: none;

}

.download-icon {
  background-color: #353131;
  border-radius: 30px;
}

.download {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: black;
  background-color: #f8f8f8;
  transition: background-color 0.3s ease;
}

.download:hover {
  background-color: #e0e0e0;
}

.download-icon {
  width: 24px;
  transition: transform 0.3s ease;
}

.download:hover .download-icon {
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .comunidad {
    padding: 112px 40px;

  }

}

/* PROXIMAMENTE */

.proximamente {
  width: 80%;
  margin-top: 112px;
  padding: 112px 0px;
  display: flex;
  flex-direction: column;
  gap: 138px;
  align-items: center;
  background: url(./assets/imágenes/prox.webp), linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(0, 0, 0, 0.16) 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.proximamente-overlay {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 138px;
  align-items: center;
}

.proximamente-header {
  max-width: 874px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proximamente-titulo {
  color: #e4d262;
}

.proximamente-subtitulo {
  margin-top: 16px;
}

.proximamente-cards {
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  flex-direction: column;
}

.proximamente-card-container {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.proximamente-card {
  width: 700px;
  background-color: #e0e0e0;
  padding: 40px;
  height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  box-sizing: border-box;
  color: #353131;
}

.proximamente-card * {
  max-width: 632px;

}

@media (max-width: 767px) {
  .proximamente-cards {
    gap: 60px;
  }

  .proximamente-card-container {
    justify-content: center;
  }

  .proximamente-card {
    width: 100%;
    margin: 0 40px;
  }
}

/* ==== CONTACTO ==== */

.contacto {
  padding: 112px 64px;
  background-color: white;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.left-contacto{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px
  ;
}
.contacto-imagen {
  height: 734px;
  border-radius: 40px;
  object-fit: cover;
  max-width: 616px;
}

.contacto-info {
  max-width: 616px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width:767px) {
  .contacto {
    padding: 112px 40px;

  }

  .contacto-imagen {
    width: 100%;
    height: fit-content;
  }
}

.contacto-header .etiqueta {
  margin-bottom: 8px;
}

.contacto-header .titulo {
  margin: 0 0 16px 0;
}

.contacto-formulario {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo input,
.campo textarea {
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid rgba(12, 10, 10, 0.15);
  resize: vertical;
  background-color: transparent;
}

.campo textarea::placeholder {
  color: rgba(12, 10, 10, 0.6);
}

.contact-button {
  width: 151px;
  height: 51px;
  padding: 6px 12px;
  background-color: #5076C6;
  border: none;
  border-radius: 6px;
  color: white;
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #3e5fb0;
}

/* ==== DATOS DE CONTACTO ==== */

.datos-contacto {
  padding: 112px 64px;
  overflow: hidden;
}

.datos-grid {
  display: flex;
  gap: 48px;

}

.dato {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dato-icono {
  width: 48px;
  height: 48px;
  position: relative;
  overflow: hidden;
}

.icono {
  position: absolute;
}

.icono.email {
  width: 40px;
  height: 32px;
  left: 4px;
  top: 8px;
}

.icono.telefono {
  width: 38px;
  height: 38px;
  left: 6px;
  top: 4px;
}

.icono.oficina {
  width: 32px;
  height: 40px;
  left: 8px;
  top: 4px;
}

.dato-contenido {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dato-texto {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dato-enlace {
  color: #353131;
  text-decoration: underline;
}

@media (max-width:767px) {
  .datos-contacto {
    padding: 0px 40px 112px;


  }

  .datos-grid {
    flex-direction: column;
  }
}

/* ==== FOOTER ==== */

.footer {
  padding: 80px 64px;
  overflow: hidden;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-info {
  max-width: 864px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-contacto {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.footer-item a {
  color: #0C0A0A;
  text-decoration: underline;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav li a {
  color: #0C0A0A;
  text-decoration: none;
  display: block;
  padding: 8px 0;
}

.footer-nav li a:hover {
  text-decoration: underline;
}

.footer-logo{
  display: flex;
  gap: 6px;
  align-items: center;
}
.footer-logo-img{
  width: 32px;
}
.footer-logo-text {
  font-size: 24px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #808080;
}

@media (max-width:767px) {
  .footer {
    padding: 112px 40px;

  }
}