/* Estilos para el slider de proyectos */
.work-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.8), rgba(15, 15, 15, 0.95));
  padding: 100px 0;
  border-top: 1px solid rgba(197, 164, 126, 0.1);
  border-bottom: 1px solid rgba(197, 164, 126, 0.1);
}

/* Formas decorativas */
.proyecto-shape-1,
.proyecto-shape-2 {
  position: absolute;
  background: rgba(197, 164, 126, 0.05);
  border-radius: 50%;
}

.proyecto-shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -150px;
}

.proyecto-shape-2 {
  width: 500px;
  height: 500px;
  bottom: -250px;
  right: -250px;
  opacity: 0.03;
}

/* Texto de fondo grande */
.proyecto-background-text {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  opacity: 0.02;
  user-select: none;
  pointer-events: none;
  font-weight: 900;
}

.proyecto-background-text h2 {
  font-size: 150px;
  color: #fff;
  margin-top: -50px;
  margin-left: -15px;
  letter-spacing: 10px;
  line-height: 1;
  text-transform: uppercase;
}

/* Contador de proyectos */
.proyecto-contador {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.proyecto-contador::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(197, 164, 126, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.proyecto-contador::after {
  content: '';
  position: absolute;
  width: 92%;
  height: 92%;
  border: 1px solid rgba(197, 164, 126, 0.15);
  border-radius: 50%;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.proyecto-contador span {
  font-size: 42px;
  font-weight: 700;
  color: #c5a47e;
  margin-bottom: 5px;
  line-height: 1;
}

.proyecto-contador p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

.section-head h6 {
  font-size: 14px;
  font-weight: 500;
  color: #c5a47e;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-head h6:after {
  content: '';
  width: 40px;
  height: 1px;
  background-color: #c5a47e;
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
}

.section-head h4 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 40px;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 1px;
  position: relative;
}

.section-head h4:before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(197, 164, 126, 0.15);
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
}

.proyecto-slider {
  padding-bottom: 60px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.proyecto-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #181818;
  box-shadow: 0 8px 30px -5px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0);
  height: 100%;
}

.proyecto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.4);
}

.img-wrap {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.img-wrap:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.proyecto-card:hover .img-wrap:before {
  opacity: 1;
}

/* Año del proyecto */
.proyecto-year {
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 5px 15px;
  border-radius: 20px;
  letter-spacing: 1px;
  z-index: 5;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(197, 164, 126, 0.2);
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.proyecto-card:hover .proyecto-year {
  opacity: 1;
  transform: translateY(0);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: brightness(0.9);
}

.proyecto-card:hover .img-wrap img {
  transform: scale(1.1) rotate(1deg);
  filter: brightness(1.1);
}

.hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.proyecto-card:hover .hover-effect {
  background: rgba(0, 0, 0, 0.4);
}

.proyecto-info {
  padding: 25px;
  position: relative;
  background-color: #0e0e0e;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-top: 1px solid rgba(197, 164, 126, 0.1);
}

.proyecto-card:hover .proyecto-info {
  background-color: #0a0a0a;
}

.cat-tipo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.cat-tipo span {
  font-size: 11px;
  color: #c5a47e;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.proyecto-card:hover .cat-tipo span {
  color: #d9bc96;
}

.cat-tipo span:first-child {
  position: relative;
}

.cat-tipo span:first-child:after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #c5a47e;
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.proyecto-card:hover .cat-tipo span:first-child:after {
  background-color: #d9bc96;
}

.proyecto-titulo {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.proyecto-titulo a {
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.proyecto-titulo a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #c5a47e;
  transition: all 0.4s ease;
}

.proyecto-titulo a:hover {
  color: #c5a47e;
}

.proyecto-titulo a:hover:after {
  width: 100%;
}

.proyecto-link {
  position: absolute;
  right: 25px;
  bottom: 25px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background-color: #c5a47e;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 2;
}

.proyecto-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: -1;
}

.proyecto-link:hover {
  color: #c5a47e;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.proyecto-link:hover:before {
  transform: scale(1);
}

/* Personalización de los controles de Swiper */
.swiper-button-next,
.swiper-button-prev {
  width: 50px !important;
  height: 50px !important;
  background: rgba(197, 164, 126, 0.9) !important;
  color: #fff !important;
  border-radius: 50%;
  font-weight: bold;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(0) scale(1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #c5a47e !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #333;
  opacity: 0.3;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
  background-color: #c5a47e;
  opacity: 1;
  transform: scale(1.2);
}

/* Estilo para paginación dinámica */
.swiper-pagination-bullet-active-main {
  background-color: #c5a47e !important;
}

.swiper-pagination-bullet-active-prev,
.swiper-pagination-bullet-active-next {
  background-color: rgba(197, 164, 126, 0.5) !important;
}

/* Botón Ver todos los proyectos */
.btn-curve.btn-color {
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  background: #c5a47e;
  color: #fff;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2;
  border: 2px solid transparent;
}

.btn-curve.btn-color:hover {
  background: transparent;
  border-color: #c5a47e;
  color: #c5a47e;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-curve.btn-color:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: -1;
}

.btn-curve.btn-color:hover:before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Efectos de animación */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeUp {
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 1s ease forwards;
}

/* Estilos responsivos */
@media (max-width: 991px) {
  .work-slider {
    padding: 80px 0;
  }
  
  .proyecto-background-text h2 {
    font-size: 120px;
  }
  
  .section-head h4 {
    font-size: 34px;
  }
  
  .img-wrap {
    height: 260px;
  }
  
  .proyecto-titulo {
    font-size: 18px;
  }
  
  .proyecto-contador {
    width: 110px;
    height: 110px;
  }
  
  .proyecto-contador span {
    font-size: 36px;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 45px !important;
    height: 45px !important;
  }
}

@media (max-width: 767px) {
  .work-slider {
    padding: 60px 0;
  }
  
  .proyecto-background-text h2 {
    font-size: 100px;
    margin-top: -30px;
  }
  
  .section-head h4 {
    font-size: 30px;
  }
  
  .img-wrap {
    height: 240px;
  }
  
  .proyecto-card {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px !important;
  }
}

@media (max-width: 575px) {
  .work-slider {
    padding: 50px 0;
  }
  
  .proyecto-background-text h2 {
    font-size: 70px;
    letter-spacing: 5px;
    margin-top: -20px;
  }
  
  .section-head h6 {
    font-size: 12px;
    letter-spacing: 2px;
  }
  
  .section-head h4 {
    font-size: 26px;
  }
  
  .proyecto-contador {
    width: 100px;
    height: 100px;
  }
  
  .proyecto-contador span {
    font-size: 32px;
  }
  
  .proyecto-contador p {
    font-size: 10px;
  }
  
  .img-wrap {
    height: 220px;
  }
  
  .proyecto-info {
    padding: 20px;
  }
  
  .proyecto-titulo {
    font-size: 16px;
  }
  
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
  
  .btn-curve.btn-color {
    padding: 10px 25px;
    font-size: 13px;
  }
} 