/* Variables CSS personalizadas para la sección */
:root {
  --bg-primary: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --color-primary: #4285F4;
  --color-primary-dark: #0a00cc;
}

/* Estilos adicionales para el texto resaltado */
.blue-accent {
  color: var(--color-primary);
  font-weight: 600;
}

/* Funcionalidad Section - GRID SIMPLE SIN SLIDER */
.funcionalidad-stepbystep-section {
  background: var(--bg-primary);
  padding: 100px 0;
  margin: 40px 0;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.funcionalidad-stepbystep-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.funcionalidad-stepbystep-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
}

/* Header mejorado para funcionalidad */
.stepbystep-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out 0.1s;
}

.funcionalidad-stepbystep-section.visible .stepbystep-header {
  opacity: 1;
  transform: translateY(0);
}

.stepbystep-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out 0.2s;
}

.funcionalidad-stepbystep-section.visible .stepbystep-header h2 {
  opacity: 1;
  transform: translateY(0);
}

.stepbystep-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-out 0.3s;
}

.funcionalidad-stepbystep-section.visible .stepbystep-header p {
  opacity: 1;
  transform: translateY(0);
}

/* NUEVO STEPS CAROUSEL - Basado en el HTML proporcionado */
.steps-carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s ease-out 0.15s;
}

.funcionalidad-stepbystep-section.visible .steps-carousel-container {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.steps-progress-section {
  padding: 0 40px 20px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.steps-progress-bar {
  width: 100%;
  max-width: 600px;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.steps-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.steps-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(20px); }
}

.steps-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.steps-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.steps-step-card {
  flex: 0 0 100%;
  padding: 30px 50px;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 350px;
}

.steps-step-number-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps-step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
  position: relative;
  overflow: hidden;
}

.steps-step-number::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.steps-step-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.steps-step-content {
  flex: 1;
  text-align: left;
}

.steps-step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
  text-align: left;
}

.steps-step-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: left;
}

.steps-step-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.steps-step-tag {
  background: rgba(66, 133, 244, 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.steps-navigation-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px 40px;
  background: rgba(248, 249, 250, 0.5);
}

.steps-nav-buttons {
  display: flex;
  gap: 15px;
}

.steps-nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
}

.steps-nav-button:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.steps-nav-button:active {
  transform: translateY(0);
}

.steps-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.steps-nav-button:disabled:hover {
  background: transparent;
  color: var(--color-primary);
  transform: none;
  box-shadow: none;
}

.steps-step-indicators {
  display: flex;
  gap: 10px;
}

.steps-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
}

.steps-step-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.steps-step-dot.completed {
  background: #28a745;
}

.steps-step-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* RESPONSIVE STYLES */

/* Tablets y pantallas medianas (max-width: 1200px) */
@media (max-width: 1200px) {
  .funcionalidad-stepbystep-section {
    padding: 80px 0;
  }

  .funcionalidad-stepbystep-container {
    padding: 0 40px;
  }

  .stepbystep-header {
    margin-bottom: 60px;
  }

  .stepbystep-header h2 {
    font-size: 2.2rem;
  }

  .steps-carousel-container {
    max-width: 800px;
  }

  .steps-step-card {
    padding: 25px 40px;
    gap: 30px;
    min-height: 320px;
  }

  .steps-step-number {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .steps-step-title {
    font-size: 1.8rem;
  }

  .steps-navigation-section {
    padding: 25px 40px 35px;
  }
}

/* Tablets en modo portrait (max-width: 768px) */
@media (max-width: 768px) {
  .funcionalidad-stepbystep-section {
    padding: 60px 0;
  }

  .funcionalidad-stepbystep-container {
    padding: 0 20px;
  }

  .stepbystep-header h2 {
    font-size: 1.8rem;
  }

  .stepbystep-header p {
    font-size: 1rem;
  }

  .steps-carousel-container {
    border-radius: 15px;
  }

  .steps-progress-section {
    padding: 15px 30px;
  }

  .steps-step-card {
    flex-direction: column;
    text-align: left;
    padding: 20px 30px;
    gap: 20px;
    min-height: auto;
  }

  .steps-step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .steps-step-title {
    font-size: 1.5rem;
  }

  .steps-step-description {
    font-size: 1rem;
  }

  .steps-navigation-section {
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
  }

  .steps-nav-buttons {
    order: 2;
  }

  .steps-nav-button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* Móviles (max-width: 480px) */
@media (max-width: 480px) {
  .funcionalidad-stepbystep-section {
    padding: 40px 0;
  }

  .funcionalidad-stepbystep-container {
    padding: 0 15px;
  }

  .stepbystep-header h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .stepbystep-header p {
    font-size: 0.95rem;
  }

  .steps-carousel-container {
    border-radius: 12px;
  }

  .steps-progress-section {
    padding: 12px 20px;
  }

  .steps-step-card {
    padding: 15px 20px;
    gap: 15px;
  }

  .steps-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .steps-step-title {
    font-size: 1.3rem;
  }

  .steps-step-description {
    font-size: 0.9rem;
  }

  .steps-step-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .steps-navigation-section {
    padding: 15px 20px 20px;
  }

  .steps-nav-button {
    font-size: 0.8rem;
    padding: 8px 16px;
    min-width: 100px;
  }

  .steps-step-indicators {
    gap: 8px;
  }

  .steps-step-dot {
    width: 10px;
    height: 10px;
  }
}

/* Animaciones adicionales */
@keyframes backgroundMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efectos hover para mejorar la interactividad */
.steps-step-card:hover .steps-step-number {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(66, 133, 244, 0.5);
}

.steps-step-card:hover .steps-step-title {
  color: var(--color-primary);
}

/* Micro-interacciones para indicadores */
.steps-step-dot:hover {
  transform: scale(1.3);
  background: var(--color-primary);
} 