:root {
  /* Colores principales */
  --primary: #00b38c;
  --primary-dark: #003d82; /* Azul oscuro para contrastes */
  --secondary: #333;
  --accent: #ff6b00;
  --accent-light: #ff8c33;

  /* Colores de fondo y texto */
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;

  /* Velocidad y suavidad de transiciones */
  --transition-speed: 600ms;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset de márgenes y padding + box-sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Estilo base del body */
body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

/* Contenedor central */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Encabezados */
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}
h3 {
  font-size: 1.5rem;
  color: var(--primary);
}
h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

/* Subtítulo destacado */
.subtitle {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

/* Estilo del encabezado principal */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 60px 0 80px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Caja destacada de características */
.feature-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-right: 25px;
  min-width: 60px;
  text-align: center;
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.feature-section {
  margin-bottom: 30px;
}

/* Lista con íconos personalizados */
.benefits-list {
  list-style-type: none;
  padding-left: 0;
}

.benefits-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.benefits-list li:hover {
  transform: translateX(5px);
}

.benefits-list li::before {
  content: "\f00c"; /* Check icon de Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Ciclo de mejora en pasos */
.improvement-cycle {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.improvement-cycle::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  z-index: 1;
}

.cycle-step {
  text-align: center;
  padding: 0 15px;
  position: relative;
  z-index: 2;
  width: 25%;
  transition: transform 0.3s ease;
}

.cycle-step:hover {
  transform: translateY(-5px);
}

.cycle-step-icon {
  background: white;
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  border: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.cycle-step:hover .cycle-step-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Estudios de caso */
.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.case-study {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.case-study h4 {
  color: var(--primary);
  margin-top: 0;
}

.case-study-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.metric {
  text-align: center;
  flex: 1;
}

.metric-value {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--secondary);
}

/* Carrusel de imágenes mejorado */
.carousel-container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  position: relative;
}

.carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background-color: var(--dark);
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-speed) var(--easing);
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(2px);
  transition: filter 0.7s ease;
}

.carousel-item.active img {
  filter: blur(0);
}

/* Texto del carrusel */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: white;
  padding: 30px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  z-index: 2;
}

.carousel-item.active .carousel-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Botones de control del carrusel */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0.8;
}

.carousel-control:hover {
  background: white;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* Indicadores del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  opacity: 0.7;
}

.indicator.active {
  background: var(--accent);
  transform: scale(1.2);
  opacity: 1;
}

/* Botón de regresar */
.back-button {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 40px auto;
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

.back-button i {
  margin-right: 8px;
}

.back-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
}

/* Pie de página */
footer {
  background: var(--secondary);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

footer p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* Responsividad para tablets y móviles */
@media (max-width: 992px) {
  .carousel-inner {
    height: 450px;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .improvement-cycle::before {
    left: 30px;
    right: 30px;
  }
}

@media (max-width: 768px) {
  .feature-content {
    grid-template-columns: 1fr;
  }
  .carousel-inner {
    height: 400px;
  }
  header {
    padding: 40px 0 60px;
  }
  .subtitle {
    font-size: 1.1rem;
  }
  .feature-container {
    padding: 30px;
  }
  .feature-header {
    flex-direction: column;
    text-align: center;
  }
  .feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .improvement-cycle {
    flex-wrap: wrap;
  }
  .improvement-cycle::before {
    display: none;
  }
  .cycle-step {
    width: 50%;
    margin-bottom: 30px;
  }
  .carousel-caption {
    padding: 20px;
  }
  .carousel-control {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .carousel-inner {
    height: 350px;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .cycle-step {
    width: 100%;
  }
  .carousel-caption {
    padding: 15px;
  }
  .indicator {
    width: 10px;
    height: 10px;
  }
  .back-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .case-studies {
    grid-template-columns: 1fr;
  }
}
