:root {
  /* Variables personalizadas para colores y animaciones */
  --primary: #00b36e;
  --primary-dark: #003d82; /* Azul oscuro para contrastes */
  --secondary: #333;
  --accent: #ff6b00;
  --accent-light: #ff8c33;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --transition-speed: 600ms;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Estilos generales básicos */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Encabezados de etiquetas html */
/* Tipografías y títulos */
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;
}

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

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

/* Sección de características o funcionalidades */
.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 de beneficios con íconos */
.benefits-list {
  list-style-type: none;
  padding-left: 0;
}

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

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

/* Tarjetas de métricas en formato grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

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

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

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin: 10px 0;
}

.metric-description {
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Contenedores de gráficos o visualizaciones */
.chart-container {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.chart {
  position: relative;
  height: 400px;
  width: 100%;
}

/* Tarjetas de tipo de reporte */
.report-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

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

.report-card:hover {
  transform: translateY(-5px);
}

.report-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* 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 sobre la imagen 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 navegación 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 circulares del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10; /* indicador de carrusel */
}

.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 o volver */
.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;
}

/* Diseño responsivo para pantallas medianas */
@media (max-width: 992px) {
  .carousel-inner {
    height: 450px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .chart {
    height: 350px;
  }
}

/* Diseño responsivo para pantallas pequeñas */
@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;
  }

  .carousel-caption {
    padding: 20px;
  }

  .carousel-control {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .chart {
    height: 300px;
  }
}

/* Diseño responsivo para pantallas extra pequeñas */
@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;
  }

  .chart {
    height: 250px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .report-types {
    grid-template-columns: 1fr;
  }
}
