/* Fuentes */
:root {
  --font-paraph: 'Open Sans';
  --font-title: 'Lora';
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

/* Párrafos, links, botones y demás */
body, p, a, button {
  font-family: var(--font-paraph);
}


/* css body */

.hero {
  position: relative;
  height: 100vh;
}

.img_hero {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero_logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.logo_hero {
  margin-top: 50px;
  width: 101px;
  height: 108px;
}

.hero_text {
  position: absolute;
  margin-top: 70px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  z-index: 10;
}

.text_hero {
  text-align: center;
  color: whitesmoke;
}

.title_hero {
  position: absolute;
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
}

@media (max-width: 668px) {
  .hero {
    height: 50vh;
  }
}

/* Imagen hero: zoom-out + desenfoque + fade */
@keyframes heroZoomOutBlur {
  0% { transform: scale(1.2); filter: blur(8px); opacity: 0; }
  60% { transform: scale(1); filter: blur(4px); opacity: 0.7; }
  100% { transform: scale(1); filter: blur(0); opacity: 1; }
}

.img_hero.animate {
  animation: heroZoomOutBlur 2.2s ease-out forwards;
}




/* carrusel */
.carousel_medium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}


.carousel-left {
  flex: 1;
  position: relative;
}

.carousel-left img {
  width: 100%;
  height: 100%;;
  /* object-fit: cover; */
}



.carousel-indicators {
  position: absolute;
  display: flex;
  justify-content: center;
  margin-bottom: .5rem;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.5;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: #fff;
  opacity: 1;
}

.btn-outline-dark {
  border: 1px solid #4a3b2d;
  color: #4a3b2d;
  background-color: transparent;
  transition: 0.7s ease !important;
}

.btn-outline-dark:hover {
  background-color: #4a3b2d;
  color: #fff;
  border-color: #4a3b2d;
}




/* Responsivo */
@media (max-width: 768px) {
  .carousel_medium {
    flex-direction: column;
    text-align: center;
    margin-top: 30px;
  }
  .carousel-text {
    margin-top: 20px;
    padding: 0 20px;
  }
  .carousel-left img {
    max-height: 300px;
  }
}



/* trends */

.trends {
  margin-top: 50px;
}

.trends_images {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.img_trends {
  width: 380px;
  height: 350px;
}

@media (max-width: 768px) {
  .img_trends {
    width: 220px;
    height: 200px;
  }
}

@media (max-width: 700px) {
  .trends_images {
    justify-content: center;
  }

  .img_trends {
    width: 250px;
    height: auto;
  }

  .mt_img_trends {
    margin: 20px 0px;
  }
}


/* details */

.details {
  position: relative;
  margin-top: 100px;
}

.box_details_left{
  padding: 0px 35px;
}

.box_details_right {
  padding-right: 35px;
}

.img_details {
  width: 100%;
  height: 100%;
}

.text__img__details {
  text-align: justify;           
  text-justify: inter-word;     
  hyphens: auto;                 
  line-height: 1.5;              
  margin-top: 10px;              
  padding: 0 5px;                
  word-break: normal;   
}


@media (max-width: 768px) {

  .box_details_left{
  padding: 0px 10px;
}

.box_details_right {
  padding-right: 10px;
}

.img_projects {
  width: 220px;
  height: 200px;
}

}

@media (max-width: 550px) {
  .details {
    margin-top: 50px;
  }

  .images_details {
    flex-direction: column;
    align-items: center;
  }

  .img_details {
    width: 250px;
    height: auto;
    object-fit: cover;
  }

  .text__img__details {
    width: 250px;
  }


}


/* projects */

.projects {
  margin-top: 150px;
  padding-bottom: 100px;
  font-family: var(--font-title);
}

.project-box {
  position: relative;
  overflow: hidden;
}

.img_projects {
  width: 100%;
  display: block;
  filter: brightness(70%);
}

/* Texto superpuesto visible siempre */
.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  color: white;
  padding: 2rem;
  text-align: left;
}

/* Línea blanca a todo el ancho */
.hr-white {
  border: none;
  height: 2px;
  width: 30%;
  background-color: white;
  margin: 0.5rem 0 1rem 0;
}

.overlay-text h2 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.overlay-text p {
  font-size: 1rem;
  max-width: 80%;
}

.font_lora {
  font-family: var(--font-title);
  text-align: justify;           /* alinea a ambos lados */
  text-justify: inter-word;      /* ajusta el espaciado de palabras */
  hyphens: auto;                 /* permite cortes de palabra naturales */
  line-height: 1.5;              /* mejora la legibilidad */
  margin-top: 10px;              /* separa el texto de la imagen */
  padding: 0 5px;                /* evita que el texto toque los bordes */
  word-break: normal; 
}

@media (max-width: 550px) {
  .projects {
    margin-top: 50px;
    padding-bottom: 0px;
  }

  .overlay-text {
    padding: 1rem;
  }

  .overlay-text p {
    width: 100%;
  }

.overlay-text h2 {
  margin-top: 0;
  margin-bottom: 0rem;
}
}



/* footer */

.footer {
  padding: 50px 0px;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
}

.footer__class {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text__logo {
  padding-left: 30px;
  font-family: var(--font-title);
  margin-bottom: 0px;
}

.socials {
  display: flex;
  justify-content: center; /* centra todo el grupo */
  gap: 15px; /* separación entre los íconos */
  align-items: center;
  margin-top: 20px; /* opcional, espacio desde el logo/texto */
}

.social_img {
  width: 50px;
  height: 50px;
  border-radius: 50%; /* círculo perfecto */
  background: #777; /* gris */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.social_img img {
  width: 24px; /* ajusta según convenga */
  height: 24px;
}

.social_img:hover {
  background: #555; /* cambio de color al hover opcional */
  cursor: pointer;
}


@media (max-width: 768px) {

.logo {
  flex-direction: column;
}

.text__logo {
  text-align: center;
}

.footer__class {
  flex-wrap: wrap;       /* permite que los elementos se muevan a la siguiente línea */
}
.socials {
  order: 1;              /* fuerza que aparezca después del logo/texto */
  width: 100%;           /* opcional, para que ocupe toda la fila */
  display: flex;
  justify-content: center; /* centra la imagen */
  margin-top: 20px;       /* espacio con respecto al logo/texto */
}
}


/* fonto principal */
.carousel-wrapper {
  position: relative;
  background-image: url('img/Fondo.jpg'); /* ruta a tu imagen */
  background-size: cover;      /* ocupa todo el contenedor */
  background-position: center; /* centra la imagen */
  background-repeat: no-repeat;
  z-index: 0;                  /* detrás de todo */
  padding-top: 50px;           /* opcional, espacio desde arriba */
}
