/* ==========================================
   TALLES PAGE STYLES
   ========================================== */

/* Page Header */
.page-header--talles {
  background: linear-gradient(135deg, var(--secondary) 0%, #2c3e50 100%);
  text-align: center;
  padding: var(--space-8) 0;
}

.page-header--talles h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-header--talles p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   SLIDER DE TABLAS DE TALLES
   ========================================== */

.talles-slider-section {
  padding: var(--space-8) 0;
  background: var(--surface-2);
}

.talles-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.talles-slider__container {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.talles-slider__track {
  display: flex;
  transition: transform 0.4s ease;
  gap: var(--space-4);
}

.talles-slider__slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.talles-slider__slide:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.talles-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talles-slider__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.talles-slider__arrow:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.talles-slider__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.talles-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
}

.talles-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.talles-slider__dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.talles-slider__hint {
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-top: var(--space-4);
}

/* ==========================================
   CÓMO MEDIRSE
   ========================================== */

.como-medirse {
  padding: var(--space-8) 0;
  background: white;
}

.medirse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.medirse-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.medirse-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(230, 54, 131, 0.15);
}

.medirse-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.medirse-card__step {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
}

.medirse-card h3 {
  color: var(--secondary);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

.medirse-card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.medirse-card__visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

/* Body diagram (simplified illustration) */
.body-diagram {
  width: 60px;
  height: 90px;
  background: linear-gradient(180deg, #f8d7da 0%, #fce4ec 50%, #f8d7da 100%);
  border-radius: 20px 20px 10px 10px;
  position: relative;
  border: 2px solid var(--primary-light);
}

.body-diagram::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: #fce4ec;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
}

.body-diagram__line {
  position: absolute;
  left: -15px;
  right: -15px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.body-diagram__line::before,
.body-diagram__line::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.body-diagram__line::before {
  left: 0;
}

.body-diagram__line::after {
  right: 0;
}

.body-diagram__line--bust {
  top: 15px;
}

.body-diagram__line--waist {
  top: 40px;
}

.body-diagram__line--hip {
  top: 65px;
}

.body-diagram--leg {
  border-radius: 5px;
  height: 80px;
}

.body-diagram__line--leg {
  width: 3px;
  height: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.body-diagram__line--leg::before {
  top: 0;
  left: -4px;
}

.body-diagram__line--leg::after {
  top: auto;
  bottom: 0;
  left: -4px;
  right: auto;
}

/* ==========================================
   TIPS
   ========================================== */

.talles-tips {
  padding: var(--space-8) 0;
  background: var(--surface-2);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.tip-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-left: 4px solid var(--primary);
  transition: all 0.2s ease;
}

.tip-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.tip-card__icon {
  font-size: 1.8rem;
}

.tip-card h4 {
  color: var(--secondary);
  font-size: var(--fs-base);
  margin: 0;
}

.tip-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================
   IMAGE MODAL
   ========================================== */

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.image-modal.active {
  display: flex;
}

.image-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--secondary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.image-modal__close:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.image-modal__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .talles-slider__slide {
    flex: 0 0 calc(50% - 8px);
    min-width: 200px;
  }
  
  .talles-slider__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .medirse-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  
  .medirse-card {
    padding: var(--space-4);
  }
  
  .medirse-card__visual {
    height: 80px;
  }
  
  .body-diagram {
    width: 50px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .talles-slider {
    flex-direction: column;
  }
  
  .talles-slider__container {
    width: 100%;
    order: 1;
  }
  
  .talles-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .talles-slider__arrow {
    display: none;
  }
  
  .talles-slider__dots {
    order: 2;
  }
  
  .medirse-grid {
    grid-template-columns: 1fr;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
}













