/***********************/
/* Estilos generales */
/***********************/


header {
  background-size: cover;
  background-position: center;
  color: white;
}

h1 {
  font-weight: 500;
}

/***********************/
/*Texto de introduccion*/
/***********************/

.textos-presentaciones {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  text-align: justify;
}

.seo {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}


.texto-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.columna-texto {
  flex: 1 1 45%;
  text-align: justify;
}

@media (max-width: 768px) {
  .columna-texto {
    flex: 1 1 100%;
  }
}


/**************************/
/*Estilos para el carrusel*/
/**************************/

.carousel-item {
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

#landingCarousel {
  position: relative;
}

.carousel-overlay-text {
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  color: white;
  text-align: center;
}

.text-overlay {
  font-size: clamp(3rem, 6vw, 8rem);
  text-transform: uppercase;
  line-height: 1.1;
}

.fade-in-1,
.fade-in-2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 2s ease-out forwards;
}

.fade-in-2 {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flecha animada */
.down-arrow {
  animation: bounce 2s infinite;
  display: inline-block;
  cursor: pointer;
  pointer-events: auto;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}


.carousel-logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.carousel-logo-img {
  max-width: 60px;
  height: auto;
}


/****************************************/
/*Estilos para la navbar offside lateral*/
/****************************************/


.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1030;
  background: transparent;
  border: none;
  color: #d6d6d6;
  font-size: 2rem;
}

.offcanvas-body .nav-link {
  font-size: 1.25rem;
  color: #333333;
  padding: 0.75rem 0;
  padding-left: 1rem;
}

.offcanvas-body .nav-link:hover {
  color: #000000;
  text-decoration: none;
}

.section-below {
  background-color: white;
  padding: 80px 20px;
  color: #333;
}

.offcanvas-logo {
  max-width: 50px;
  height: auto;
}


/**********************************/
/* Estilos selector de lenguaje   */
/**********************************/

.language-dropdown {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 1050;
  font-size: 1.2rem;
  user-select: none;
}

.language-dropdown .dropdown-toggle {
  background-color: transparent;
  border: none;
  color: #d6d6d6;
  opacity: 0.6;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.3s ease;
}

.language-dropdown .dropdown-toggle:hover {
  opacity: 1;
}

.language-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 60px;
}

.language-dropdown .dropdown-menu a {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.language-dropdown .dropdown-menu a:hover {
  background-color: #f5f5f5;
}


/**********************************/
/* Seccion de cartas de proyectos */
/**********************************/

.section-title {
  font-size: clamp(3rem, 5vw, 8rem);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  color: #242424;
}

.project-card {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;

  opacity: 0;
  transform: translateY(20px) scale(1);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}


.project-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  z-index: 1;
}

.project-card span {
  position: relative;
  z-index: 2;
  color: white;
  padding: 1.5rem 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

.project-card.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:hover {
  transform: translateY(0) scale(1.02);
  transition: transform 0.3s ease;
}

.project-card a.stretched-link {
  z-index: 2;
}


/**********************************/
/* Sobre el estudio               */
/**********************************/

.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}


/* Focus values */
.focus-values .icon-design::before {
  content: "🎨";
}

.focus-values .icon-sustainability::before {
  content: "🌱";
}

.focus-values .icon-client::before {
  content: "🤝";
}

.focus-values i {
  font-style: normal;
}




/**********************************/
/* Premios y reconocimientos      */
/**********************************/


.premios-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.premio-card {
  background: #242424;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.premio-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.premio-year {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.premio-title {
  font-size: 1.1rem;
  margin: 0;
}

.premio-desc {
  margin: 0;
  color: #cecece;
}



/* ---------------------------------- */
/* BOTONES COOKIES */
/* ---------------------------------- */

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.cookie-btn {
  background-color: #e0e0e0;
  color: black;
  font-weight: bold;
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

/* En pantallas pequeñas, los botones se apilan */
@media (max-width: 600px) {
  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
  }

  .cookie-btn {
    width: 100%;
  }
}