/**
 * RETOMA.CSS
 * Estilos específicos para la página "Retoma de Motos"
 * AKT Via Motos - www.aktviamotos.com
 */

/* ============================================
   HERO SECTION
   ============================================ */

.retoma-hero {
  background: linear-gradient(135deg, var(--color-akt-red, #E20613) 0%, var(--color-akt-blue, #004F9E) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  color: var(--color-white, #ffffff);
}

.retoma-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge .material-icons {
  font-size: 18px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  margin-bottom: 48px;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.retoma-section {
  padding: 80px 0;
  position: relative;
}

.retoma-section.section--primary {
  background: var(--color-white, #ffffff);
}

.retoma-section.section--gray {
  background: var(--color-gray-50, #FAFAFA);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(226, 6, 19, 0.1) 0%, rgba(0, 79, 158, 0.1) 100%);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-akt-red, #E20613);
  margin-bottom: 20px;
}

.section-badge .material-icons {
  font-size: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--color-gray-900, #171717);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-gray-600, #525252);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-content--reverse {
  grid-template-columns: 1fr 1fr;
}

.section-content--reverse .section-text {
  order: 2;
}

.section-content--reverse .section-image {
  order: 1;
}

.section-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-gray-700, #404040);
}

.section-description strong {
  color: var(--color-gray-900, #171717);
  font-weight: 700;
}

.section-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary, #E20613) 0%, var(--color-secondary, #004F9E) 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white, #ffffff);
  gap: 16px;
  padding: 32px;
}

.image-placeholder .material-icons {
  font-size: 64px;
  opacity: 0.9;
}

.image-placeholder p {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   BENEFICIOS GRID
   ============================================ */

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.beneficio-card {
  background: var(--color-white, #ffffff);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border, #e5e5e5);
}

.beneficio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.beneficio-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary, #E20613) 0%, var(--color-secondary, #004F9E) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-white, #ffffff);
}

.beneficio-icon .material-icons {
  font-size: 32px;
}

.beneficio-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-gray-900, #171717);
  line-height: 1.3;
}

.beneficio-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-600, #525252);
}

/* ============================================
   CUANDO GRID
   ============================================ */

.cuando-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.cuando-card {
  background: var(--color-white, #ffffff);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--color-primary, #E20613);
}

.cuando-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cuando-icon {
  width: 56px;
  height: 56px;
  background: var(--color-background-alt, #f8f9fa);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary, #E20613);
}

.cuando-icon .material-icons {
  font-size: 28px;
}

.cuando-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-gray-900, #171717);
  line-height: 1.3;
}

.cuando-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-600, #525252);
}

/* ============================================
   PERFILES GRID
   ============================================ */

.perfiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.perfil-card {
  background: linear-gradient(135deg, var(--color-akt-red, #E20613) 0%, var(--color-akt-blue, #004F9E) 100%);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  color: var(--color-white, #ffffff);
}

.perfil-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.perfil-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-white, #ffffff);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.perfil-icon .material-icons {
  font-size: 28px;
}

.perfil-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-white, #ffffff);
  line-height: 1.3;
}

.perfil-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.perfil-card span:not(.material-icons) {
  color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   PROCESO TIMELINE
   ============================================ */

.proceso-timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 40px;
}

.proceso-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary, #E20613) 0%, var(--color-secondary, #004F9E) 100%);
}

.proceso-step {
  position: relative;
  margin-bottom: 48px;
  padding-left: 48px;
}

.proceso-step:last-child {
  margin-bottom: 0;
}

.proceso-step-number {
  position: absolute;
  left: -20px;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary, #E20613) 0%, var(--color-secondary, #004F9E) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white, #ffffff);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.proceso-step-content {
  background: var(--color-white, #ffffff);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border, #e5e5e5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proceso-step-content:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.proceso-step-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-gray-900, #171717);
  line-height: 1.3;
}

.proceso-step-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-600, #525252);
}

/* ============================================
   OPCIONES GRID
   ============================================ */

.opciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.opcion-card {
  background: var(--color-white, #ffffff);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--color-primary, #E20613);
  text-align: center;
}

.opcion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.opcion-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary, #E20613) 0%, var(--color-secondary, #004F9E) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--color-white, #ffffff);
}

.opcion-icon .material-icons {
  font-size: 32px;
}

.opcion-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-gray-900, #171717);
  line-height: 1.3;
}

.opcion-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-600, #525252);
}

/* ============================================
   RESPONSIVE TEXT
   ============================================ */

.text-desktop {
  display: block;
}

.text-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .text-desktop {
    display: none;
  }
  
  .text-mobile {
    display: block;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1023px) {
  .retoma-hero {
    padding: 80px 0 60px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .retoma-section {
    padding: 60px 0;
  }
  
  .section-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .section-content--reverse .section-text {
    order: 1;
  }
  
  .section-content--reverse .section-image {
    order: 2;
  }
  
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .cuando-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .perfiles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .opciones-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .proceso-timeline {
    padding-left: 32px;
  }
  
  .proceso-timeline::before {
    left: 16px;
  }
  
  .proceso-step {
    padding-left: 40px;
  }
  
  .proceso-step-number {
    left: -16px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .retoma-hero {
    padding: 60px 0 40px;
  }
  
  .retoma-section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  .beneficios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .beneficio-card,
  .cuando-card,
  .perfil-card,
  .opcion-card {
    padding: 24px;
  }
  
  .proceso-step-content {
    padding: 24px;
  }
  
  .section-cta {
    flex-direction: column;
  }
  
  .section-cta .btn {
    width: 100%;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.beneficio-card,
.cuando-card,
.perfil-card,
.opcion-card,
.proceso-step-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.beneficio-card.visible,
.cuando-card.visible,
.perfil-card.visible,
.opcion-card.visible,
.proceso-step-content.visible {
  opacity: 1;
  transform: translateY(0);
}

