@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Style+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Style+Script&family=Montserrat:wght@400;600&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f8f5f0;
  color: #2f2f2f;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.galeria-header {
  text-align: center;
  padding: 40px 20px 40px;
  background-color: #ffffff;
  width: 100%;
}

.galeria-header h1 {
  font-size: 64px;
  font-family: "Style Script", cursive;
  font-weight: 400;
  margin-bottom: 10px;
}

.galeria-header p {
  font-size: 18px;
  color: #666;
}

/* Carrousel */

.carousel-container {
  width: 100%;
  max-width: 1200px;
  height: 450px;
  position: relative;
  perspective: 1000px;
  margin-top: 80px;
}

.carousel-track {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card {
  position: absolute;
  width: 280px;
  height: 500px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.center {
  z-index: 10;
  transform: scale(1.1) translateZ(0);
}

.card.center img {
  filter: none;
}

.card.left-2 {
  z-index: 1;
  transform: translateX(-400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.left-2 img {
  filter: grayscale(100%);
}

.card.left-1 {
  z-index: 5;
  transform: translateX(-200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.left-1 img {
  filter: grayscale(100%);
}

.card.right-1 {
  z-index: 5;
  transform: translateX(200px) scale(0.9) translateZ(-100px);
  opacity: 0.9;
}

.card.right-1 img {
  filter: grayscale(100%);
}

.card.right-2 {
  z-index: 1;
  transform: translateX(400px) scale(0.8) translateZ(-300px);
  opacity: 0.7;
}

.card.right-2 img {
  filter: grayscale(100%);
}

.card.hidden {
  opacity: 0;
  pointer-events: none;
}

.member-info {
  text-align: center;
  margin-top: 40px;
  transition: all 0.5s ease-out;
}

.member-name {
  color: #d57a8d;
  font-size: 64px;
  font-family: "Style Script", cursive;
  font-weight: 400;
  font-style: normal;
  position: relative;
  display: inline-block;
  margin-bottom: 0px;
}

.member-name::before,
.member-name::after {
  content: "";
  position: absolute;
  top: 57%;
  width: 100px;
  height: 2px;
  background: #d57a8d
}

.member-name::before {
  left: -120px;
}

.member-name::after {
  right: -120px;
}

.member-role {
  color: #848696;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.8;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 0;
  margin-top: -15px;
  position: relative;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(8, 42, 123, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: rgb(65, 65, 65);
  transform: scale(1.2);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(65, 65, 65);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  border: none;
  outline: none;
  padding-bottom: 4px;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
  left: 20px;
  padding-right: 3px;
}

.nav-arrow.right {
  right: 20px;
  padding-left: 3px;
}

@media (max-width: 768px) {
  .about-title {
    font-size: 4.5rem;
  }

  .card {
    width: 200px;
    height: 280px;
  }

  .card.left-2 {
    transform: translateX(-250px) scale(0.8) translateZ(-300px);
  }

  .card.left-1 {
    transform: translateX(-120px) scale(0.9) translateZ(-100px);
  }

  .card.right-1 {
    transform: translateX(120px) scale(0.9) translateZ(-100px);
  }

  .card.right-2 {
    transform: translateX(250px) scale(0.8) translateZ(-300px);
  }

  .member-name {
    font-size: 2rem;
  }

  .member-role {
    font-size: 1.2rem;
  }

  .member-name::before,
  .member-name::after {
    width: 50px;
  }

  .member-name::before {
    left: -70px;
  }

  .member-name::after {
    right: -70px;
  }
}

/*                   UXUI               */
.uxui-section {
  padding: 60px 20px;
  text-align: center;
}

.uxui-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.uxui-gallery img {
  width: 260px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.uxui-gallery img:hover {
  transform: scale(1.05);
}

#verMasBtn {
  background-color: #d57a8d;
  color: white;
  padding: 12px 24px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}


.figma-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.figma-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 80vh;
  background: white;
  border-radius: 16px;
  overflow: hidden;
}

.figma-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cerrar {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 30px;
  color: #333;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  font-size: 14px;
  color: #999;
}

.volver {
  text-decoration: none;
  align-items: start;
  color: #768a75;
  font-weight: 600;
  transition: color 0.3s;
  display: flex;
  width: 100%;
  padding-left: 25px;
}

.volver:hover {
  color: #5e705d;
}

/* Responsive */
@media (max-width: 768px) {
  .galeria-header h1 {
    font-size: 48px;
  }

}

@media (max-width: 480px) {
  .galeria-header h1 {
    font-size: 36px;
  }
   .galeria-header  {
    padding: 30px 20px 40px;
  }
.carousel-container {
 
  margin-top: 0px;
}
}

/* ux ui */
@media (max-width: 768px) {
  .uxui-gallery {
    flex-direction: column;
    align-items: center;
  }

  .uxui-gallery img {
    width: 90%;
    max-width: 360px;
  }

  .figma-content {
    width: 95%;
    height: 75vh;
  }

  #verMasBtn {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .cerrar {
    top: 8px;
    right: 12px;
    font-size: 24px;
  }
}

  .uxui-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
  }

  .uxui-item {
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

 .uxui-item img {
  width: 100%;
  height: 220px; /* o el valor que prefieras */
  object-fit: cover;
  border-radius: 8px;
}


  .verMasBtn {
    margin-top: 0.75rem;
    padding: 0.5rem 1.2rem;
    background-color: #d57a8d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
  }

  .verMasBtn:hover {
    background-color: #c65f75;
  }

  /* Modal styling (ya estaba bien) */
  .figma-modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
  }

  .figma-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
  }

  .figma-content iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }

  /* Responsive: stack en mobile */
  @media (max-width: 768px) {
    .uxui-gallery {
      flex-direction: column;
      align-items: center;
    }

    .uxui-item {
      max-width: 90%;
    }
  }

.uxui-desc {
  font-size: 0.95rem;
  color: #444;
  text-align: center;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
  .uxui-desc {
    font-size: 0.95rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .uxui-desc {
    font-size: 0.9rem;
  }
}
.uxui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 2rem;
  column-gap: 6rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.uxui-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  height: 360px; /* menor altura */
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.uxui-item:hover {
  transform: translateY(-4px);
}

.uxui-item img {
  width: 90%;
  height: 200px; /* más ancha y menos alta */
  object-fit: cover;
  border-radius: 8px;
}

.uxui-desc {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0 1rem;
  padding: 0 1rem;
  flex-grow: 1;
      align-content: center;
}

.verMasBtn {
  padding: 0.5rem 1.2rem;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}


@media (max-width: 768px) {
  .uxui-grid {
    grid-template-columns: 1fr;
  }

  .uxui-item {
    height: auto;
  }

  .uxui-item img {
    height: 180px;
  }

  .uxui-desc {
    margin: 1rem 0;
  }
}
.gal-contenedor {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔹 centra todo el contenido dentro */
  gap: 2rem;           /* 🔹 espacio entre grid e video */
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  gap: 20px;
  justify-content: center;
}

.gal-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
}

/* Video centrado */
.gal-video {
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔹 centra el video y el texto */
  text-align: center;
  max-width: 800px;
  width: 100%;
  gap: 8px;
}

.gal-video video {
  max-width: 800px;     /* 🔹 limita ancho */
  width: 100%;
}


/* efecto hover en imágenes y video */
.gal-item img:hover,
.gal-item video:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.gal-descripcion {
  font-size: 0.9rem;
  text-align: center;
  color: #555;
}

/* ----------- RESPONSIVE ----------- */

/* Tablets */
@media (max-width: 768px) {
  .gal-contenedor {
    padding: 1.5rem;
  }
  .gal-grid {
    gap: 15px;
  }
  .gal-video {
    grid-column: span 1; /* 🔹 en pantallas chicas vuelve a ocupar 1 sola columna */
  }
}

/* Móviles */
/* --- MOBILE FIX --- */
@media (max-width: 480px) {
  .gal-contenedor {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .gal-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .gal-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .gal-video {
    width: 100%;
  }

  .gal-video iframe,
  .gal-video video {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
  }

  .gal-descripcion {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
}

