:root {
  /* Variables de color y transición reutilizables */
  --primary: #00b392; /* Color verde claro primario */
  --primary-dark: #003d82; /* Azul oscuro para contrastes */
  --secondary: #333; /* Color negro oscuro secundario */
  --accent: #ff6b00; /* Color naranja */
  --accent-light: #ff8c33; /* Color naranja claro */
  --light: #f8f9fa; /* Color blanco claro  */
  --gray: #6c757d; /* Color negro claro  */
  --light-gray: #e9ecef;
  --transition-speed: 600ms;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estilos generales */
* {
  box-sizing: border-box; /* padding y border en el cálculo del ancho */
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif; /* Fuente base para textos */
  line-height: 1.6;
  color: var(--dark); /* Texto oscuro */
  background-color: var(--light); /* Fondo claro */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Espacio horizontal interno */
}

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

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent); /* Línea naranja */
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary); /* Verde */
}

h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

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

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

/* Header */
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);
}

/* Feature sections */
.feature-section {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-highlight {
  background-color: #f0f7ff; /* Azul muy claro */
  border-left: 4px solid var(--accent);
  padding: 25px;
  margin: 30px 0;
  border-radius: 4px;
}

/* List styles --> lista de estilos*/
.benefits-list {
  list-style-type: none;
  padding-left: 0;
}

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

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

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

.process-steps {
  counter-reset: step-counter;
  list-style-type: none;
  padding-left: 0;
}

/* Pasos de proceso numerado */
.process-steps li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
  counter-increment: step-counter;
}

.process-steps li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Carrusel 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); /* Imagen borrosa por defecto */
  transition: filter 0.7s ease;
}

.carousel-item.active img {
  filter: blur(0); /* Imagen nítida en la activa */
}

/* texto centrado */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgb(0, 0, 0), transparent);
  color: rgba(235, 228, 228, 0.937);
  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;
}

.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;
}

.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;
}

/* Back button --> Botón "Volver al inicio" */
.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(245, 112, 3, 0.3);
}

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

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

/* Responsive (Diseño adaptado) */
@media (max-width: 992px) {
  .carousel-inner {
    height: 450px;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .carousel-inner {
    height: 400px;
  }
  header {
    padding: 40px 0 60px;
  }
  .subtitle {
    font-size: 1.1rem;
  }
  .feature-section {
    padding: 20px;
  }
  .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;
  }
  .carousel-caption {
    padding: 15px;
  }
  .indicator {
    width: 10px;
    height: 10px;
  }
  .back-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .process-steps li {
    padding-left: 40px;
  }
  .process-steps li:before {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }
}
