:root {
  --primary-green: #e9b600;
  --primary-green-hover: #e9b600;
  --accent-color: #e9b600;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fdfbf7;
  color: #333333;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  flex-direction: column;
  overflow-x: hidden;
}

.logo {
  width: 180px;
  height: auto;
}

.nav-link {
  transition: color 0.3s ease;
  font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.modal-overlay {
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  transition: transform 0.3s ease-in-out;
}

.carousel-image {
  transition: opacity 0.5s ease-in-out;
}

.dot {
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent-color);
}

.color1 {
  color: var(--accent-color);
}

.circ {
  width: 4rem;
  height: 4rem;
  background-color: var(--accent-color);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-carousel-viewport {
  display: flex;
  width: 600%;
  height: 100%;
  animation: slide 30s infinite ease-in-out;
}

.hero-carousel-slide {
  flex: 0 0 16.666%;
  height: 100%;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0%);
  }
  15% {
    transform: translateX(0%);
  }
  18.333% {
    transform: translateX(-16.666%);
  }
  31.666% {
    transform: translateX(-16.666%);
  }
  35% {
    transform: translateX(-33.333%);
  }
  48.333% {
    transform: translateX(-33.333%);
  }
  51.666% {
    transform: translateX(-50%);
  }
  65% {
    transform: translateX(-50%);
  }
  68.333% {
    transform: translateX(-66.666%);
  }
  81.666% {
    transform: translateX(-66.666%);
  }
  85% {
    transform: translateX(-83.333%);
  }
  98.333% {
    transform: translateX(-83.333%);
  }
  100% {
    transform: translateX(0%);
  }
}

.hero-carousel-viewport {
  scrollbar-width: none;
}

.hero-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.animate-fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counters {
  padding: 2em;
  background: #f5c20a;
  backdrop-filter: blur(10px);
  border: 1px solid #f5c20a;
  width: 100%;
  margin: 2em auto;
  text-align: center;
}

.counters > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
  margin: 0 auto;
}

.counter h1 {
  font-family: "Roboto Mono", monospace;
  font-size: 4rem;
  background-color: #ffffff;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.counter h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #ffffff;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@media (max-width: 768px) {
  .counters > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
  }

  h1 {
    font-size: 2.5rem;
  }

  .counter h1 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .counters > div {
    grid-template-columns: 1fr;
  }
}

@import "https://unpkg.com/open-props";
@import "https://unpkg.com/open-props/normalize.min.css";

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(to right, #fdfbf7, #fdfbf7);
}

:root {
  --magnifier: 3;
  --gap: 1vmin;
  --transition: 0.5s;
}

.new-gallery-container {
  width: 100%;
  height: 50vmin;
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.new-gallery-container img {
  --brightness: 0.75;
  --grayscale: 1;
  transition: flex var(--transition), filter var(--transition);
  height: 100%;
  filter: grayscale(var(--grayscale)) brightness(var(--brightness));
  object-fit: cover;
  overflow: hidden;
  flex: 1;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.new-gallery-container img:hover {
  --brightness: 1.15;
  --grayscale: 0;
  flex: var(--magnifier);
}

button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

button.learn-more {
  width: 12rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #282936;
  border-radius: 1.625rem;
}

button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

button:hover .circle {
  width: 100%;
}

button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

button:hover .button-text {
  color: #fff;
}

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

.gallery-container {
  max-width: 1900px;
  width: 100%;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: flex-start;
  box-sizing: border-box;
}

.both-gallery-containe {
  max-width: 1100px;
  width: 100%;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: flex-start;
}

.text-column {
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 600px;
}

.text-column h1 {
  font-size: 1.8em;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}

.text-column p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.main-image-display {
  flex: 3;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.main-image-display img {
  max-width: 80%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

.thumbnail-navigation {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
  overflow-y: auto;
  max-height: 600px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}

.thumbnail-navigation::-webkit-scrollbar {
  display: none;
}

.thumbnails-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.thumbnail-link {
  display: block;
  width: 100px;
  height: 100px;
  border: 3px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  flex-shrink: 0;
}

.thumbnail-link:hover {
  transform: translateY(-2px);
}

.thumbnail-link.active {
  border-color: #ffe100;
  transform: scale(1);
}

.thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (max-width: 992px) {
  .gallery-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .both-gallery-containe {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .text-column,
  .main-image-display,
  .thumbnail-navigation {
    width: 100%;
    max-height: none;
    overflow-y: visible;
  }

  .main-image-display {
    min-height: 300px;
  }

  .main-image-display img {
    max-width: 90%;
  }

  .thumbnail-navigation {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: center;
  }

  .thumbnails-wrapper {
    flex-direction: row;
  }

  .thumbnail-navigation::-webkit-scrollbar {
    display: none;
  }

  .thumbnail-link {
    min-width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    border-radius: 8px;
  }

  .text-column {
    padding: 15px;
  }

  .text-column h1 {
    font-size: 1.5em;
  }

  .text-column p {
    font-size: 0.9em;
  }

  .main-image-display {
    min-height: 250px;
  }

  .main-image-display img {
    max-width: 100%;
  }

  .thumbnail-navigation {
    gap: 10px;
    padding: 10px 0;
  }

  .thumbnail-link {
    min-width: 70px;
    height: 70px;
    border-radius: 8px;
    padding: 3px;
  }

  .thumbnail-link img {
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .text-column {
    padding: 10px;
  }

  .text-column h1 {
    font-size: 1.3em;
  }

  .text-column p {
    font-size: 0.85em;
  }

  .thumbnail-navigation {
    gap: 8px;
  }

  .thumbnail-link {
    min-width: 60px;
    height: 60px;
    border-radius: 6px;
    padding: 2px;
  }

  .thumbnail-link img {
    border-radius: 4px;
  }
}

.timeline-section-wrapper {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
  margin-top: 40px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  width: 4px;
  background-color: #ffe100;
  transform: translateX(-50%);
  height: 100%;
}

.timeline-circle {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: #ffe100;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: 2px solid #ffe100b1;
}

.timeline-event-content {
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: relative;
  width: calc(50% - 40px);
}

.timeline-event.left .timeline-event-content {
  margin-right: 40px;
  text-align: right;
}

.timeline-event.right .timeline-event-content {
  margin-left: 40px;
  text-align: left;
}

.timeline-images img {
  width: 220px;
  height: 275px;
  object-fit: cover;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: translateX(0);
  }
  .timeline-circle {
    left: 20px;
    transform: translate(-50%, -50%);
  }
  .timeline-event {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-event-content {
    border-radius: 0rem;
    padding: 0rem;
    position: relative;
    width: calc(70%);
  }
  .timeline-event.left .timeline-event-content,
  .timeline-event.right .timeline-event-content {
    width: calc(100% - 40px);
    margin-left: 40px;
    margin-right: 0;
    padding: 1rem;
    text-align: left;
  }
  .timeline-event-content::before {
    left: -20px;
    right: auto;
  }

  .timeline-images {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }
  .timeline-images img {
    width: 100%;
    height: auto;
    max-width: 275px;
    margin-bottom: 0.5rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#proyectos {
  position: relative;
  overflow: hidden;
}

.background-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 40%;
  z-index: -1;
  max-width: none;
}
.background-shape {
  position: absolute;
  opacity: 0.8;
}

.shape1 {
  top: 78%;
  left: 8%;
  width: 150%;
}

.shape2 {
  top: 28%;
  left: 2%;
  width: 200%;
}
.shape3 {
  top: 470%;
  left: -20%;
  width: 70%;
}

.shape4 {
  top: 230%;
  left: -50%;
  max-width: none;
  width: 200% !important;
}

.shape5 {
  top: 1%;
  left: 60%;
  width: 190%;
  rotate: 8deg;
}
.shape6 {
  top: -100%;
  left: 15%;
  width: 180%;
}

@media (max-width: 767px) {
  #nosotros {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .background-shapes {
    display: none;
  }
}
/* Programmer: vicent.llido.contacto@gmail.com */
