/* ==============================================
   EXPERIENCIAS CAROUSEL SECTION
   ============================================== */

.experiencias-section {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.experiencias-section-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;
}

.experiencias-header {
  text-align: center;
  margin-bottom: 60px;
}

.experiencias-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  color: #373f3f;
  margin: 0;
  margin-bottom: 8px;
}

.experiencias-subtitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 30px;
}

.experiencias-view-all-btn {
  background: transparent;
  color: #373f3f;
  border: 2px solid #373f3f;
  padding: 12px 24px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

.experiencias-view-all-btn:hover {
  background: #373f3f;
  color: white;
  transform: translateY(-2px);
}

.experiencias-carousel-container {
  position: relative;
  overflow: hidden;
}

.experiencias-carousel {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 30px;
}

.experiencia-card {
  flex: 0 0 calc(33.333% - 20px); /* Always 1/3 width for 3 columns */
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  min-height: 500px;
  position: relative;
}

.experiencia-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.experiencia-image {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.experiencia-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.experiencia-card:hover .experiencia-img {
  transform: scale(1.05);
}

.experiencia-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2) 60%, transparent);
  transition: opacity 0.4s ease;
}



.experiencia-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 30px;
  color: white;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.3) 60%, rgba(0,0,0,0));
}

.experiencia-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 45px;
  font-weight: 300;
  color: white;
  margin-bottom: 15px;
  line-height: 1.2;
  text-transform: capitalize;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.experiencia-description {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 25px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.experiencia-btn {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 14px 28px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 300;
  text-transform: lowercase;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(137, 177, 38, 0.3);
  text-shadow: none;
}

.experiencia-btn:hover {
  background: #2a3131;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 49, 49, 0.4);
}

/* Navigation Controls */
.experiencias-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  gap: 30px;
}

.experiencias-btn-prev,
.experiencias-btn-next {
  width: 50px;
  height: 50px;
  border: 2px solid #373f3f;
  background: rgba(255, 255, 255, 0.9);
  color: #373f3f;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experiencias-btn-prev:hover,
.experiencias-btn-next:hover {
  background: #373f3f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(55, 63, 63, 0.3);
}

.experiencias-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.experiencias-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.experiencias-dot.active {
  background: #373f3f;
  transform: scale(1.2);
}

.experiencias-dot:hover {
  background: #373f3f;
  opacity: 0.7;
}

/* =============================
   Responsive Design
   ============================= */

/* Desktop (1200px+) - 3 cards visible */
@media (min-width: 1200px) {
  .experiencia-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 columns */
  }
}

/* Laptop (768px - 1199px) - 2 cards visible */
@media (max-width: 1199px) {
  .experiencias-section-container {
    padding: 0 30px;
  }
  
  .experiencia-card {
    flex: 0 0 calc(50% - 15px); /* 2 columns */
  }
  
  .experiencias-carousel {
    gap: 20px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .experiencias-section {
    padding: 80px 0;
  }
  
  .experiencias-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }
  
  .experiencia-image {
    height: 450px;
  }
  
  .experiencia-card {
    min-height: 450px;
  }
  
  .experiencia-content {
    padding: 35px 25px;
  }
  
  .experiencia-title {
    font-size: 1.4rem;
  }
}

/* Mobile (hasta 767px) - 1 card visible */
@media (max-width: 767px) {
  .experiencias-section {
    padding: 60px 0;
  }
  
  .experiencias-section-container {
    padding: 0 20px;
  }
  
  .experiencias-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .experiencia-card {
    flex: 0 0 100%; /* 1 column in mobile */
    min-height: 500px;
  }
  
  .experiencias-carousel {
    gap: 0px;
  }
  
  .experiencia-image {
    height: 500px;
  }
  
  .experiencia-content {
    padding: 40px 25px;
  }
  
  .experiencia-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .experiencia-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
  
  .experiencias-navigation {
    margin-top: 40px;
    gap: 20px;
  }
  
  .experiencias-btn-prev,
  .experiencias-btn-next {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Small Mobile (hasta 480px) */
@media (max-width: 480px) {
  .experiencias-section-container {
    padding: 0 16px;
  }
  
  .experiencia-content {
    padding: 30px 20px;
  }
  
  .experiencia-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .experiencia-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .experiencia-btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }
}

/* ==============================================
   EXPERIENCES ARCHIVE SECTION (usando clases del slider)
   ============================================== */

.experiences-archive-section {
  padding: 60px 0 100px 0;
  background: #ffffff;
}

.experiences-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.experiences-archive-header {
  text-align: center;
  margin-bottom: 60px;
}

.experiences-archive-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: #373f3f;
  margin: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.experiences-archive-subtitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Archive Grid Layout - Flex 3 columnas usando clases originales */
.experiencias-archive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.experiencias-archive-grid .experiencia-card {
  flex: 0 1 calc(33.333% - 20px);
  min-width: 300px;
  margin-bottom: 30px;
}

/* Responsive para Archive Grid */
@media (max-width: 1200px) {
  .experiences-archive-container {
    padding: 0 30px;
  }
  
  .experiencias-archive-grid .experiencia-card {
    flex: 0 1 calc(33.333% - 20px);
    min-width: 280px;
  }
}

@media (max-width: 992px) {
  .experiencias-archive-grid {
    gap: 25px;
  }
  
  .experiencias-archive-grid .experiencia-card {
    flex: 0 1 calc(50% - 12.5px);
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .experiences-archive-container {
    padding: 0 20px;
  }
  
  .experiences-archive-title {
    font-size: 2.2rem;
  }
  
  .experiences-archive-subtitle {
    font-size: 1.1rem;
  }
  
  .experiencias-archive-grid .experiencia-card {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 400px;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 480px) {
  .experiences-archive-container {
    padding: 0 16px;
  }
  
  .experiences-archive-header {
    margin-bottom: 40px;
  }
  
  .experiences-archive-title {
    font-size: 1.8rem;
  }
  
  .experiences-archive-subtitle {
    font-size: 1rem;
  }
}

/* ==============================================
   LIGHTBOX MODAL
   ============================================== */

.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image,
#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.lightbox-image.loaded,
#lightbox-image.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-navigation {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2rem;
  color: #2c3e50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100000;
}

.lightbox-prev {
  margin-left: 40px;
}

.lightbox-next {
  margin-right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev {
    margin-left: 15px;
  }
  
  .lightbox-next {
    margin-right: 15px;
  }
  
  .lightbox-counter {
    bottom: 15px;
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  
  .lightbox-content {
    padding: 10px;
  }
  
  .lightbox-image,
  #lightbox-image {
    max-height: 70vh;
  }
}
