/* ============================================
  Archivo: especiales.css
  Descripción: Estilos para la sección "Recorridos > Especiales" del sistema web Ecorut@s.
  Notas:
    - Incluye estilos para carrusel Bootstrap personalizado
    - Estilos de cajas con animación al pasar el cursor
    - Tipografía y responsividad
============================================ */

/* =========================
  1. VARIABLES DE COLOR
========================= */
:root {
  --color-negro: black;
  --color-blanco: white;
  --color-oro: gold;
}

/* =========================
  2. ESTILOS DEL CARRUSEL
  Indicadores y controles personalizados
========================= */

/* Indicadores (puntos) del carrusel */
.carousel-indicators [data-bs-target] {
  position: relative;
  width: 60px;
  height: 6px;
  border: none;
  border-radius: 24px;
}

/* Iconos de control prev/next */
.carousel-control-prev-icon, 
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  border-radius: 50%; /* Bordes redondeados */
  width: 50px; 
  height: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Transiciones suaves */
}

/* Efecto hover para iconos del carrusel */
.carousel-control-prev-icon:hover, 
.carousel-control-next-icon:hover {
  background-color: var(--color-negro); /* Color negro al pasar el mouse */
  transform: scale(1.3); /* Agrandar icono */
}

/* Tamaño de los iconos (flechas) */
.carousel-control-prev-icon::before, 
.carousel-control-next-icon::before {
  font-size: 20px;
}

/* Posición controles */
.carousel-control-prev {
  left: 10px; /* Separación izquierda */
}

.carousel-control-next {
  right: 10px; /* Separación derecha */
}

/* =========================
  3. ESTILO DE LAS CAJAS INTERACTIVAS (.box)
  Inspirado en Uiverse.io por Cornerstone-04
========================= */
.box {
  width: 100%;
  height: auto;
  float: left;
  transition: .5s linear;
  position: relative;
  display: block;
  overflow: hidden;
  padding: 15px;
  text-align: center;
  margin: 0 5px;
  background: transparent;
  font-weight: 900;
}

/* Efecto de líneas animadas en el borde inferior izquierdo */
.box:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  border-bottom: 4px solid transparent;
  border-left: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(100%);
}

/* Efecto de líneas animadas en el borde superior derecho */
.box:after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 4px solid transparent;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(-100%);
}

/* Hover para caja: sombra y animación de líneas */
.box:hover {
  box-shadow: 0 5px 15px var(--color-negro);
}

.box:hover:before {
  border-color: var(--color-negro);
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .3s;
}

.box:hover:after {
  border-color: var(--color-negro);
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .5s;
}

/* =========================
  4. ESTILO GENERAL DE ENLACES
========================= */
a {
  color: var(--color-negro);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;
}

/* =========================
  5. TIPOGRAFÍA Y ESTILOS DE TITULOS Y TARJETAS
========================= */
.titulo-principal h1 {
  color: var(--color-negro);
  font-weight: bold;
}

.separador {
  border-color: var(--color-negro) !important;
}

.subtitulo-principal h2 {
  color: var(--color-negro);
  font-weight: bold;
}

.card {
  box-shadow: 0 4px 6px var(--color-negro);
}

.card-body h3,
.card-body h4 {
  color: var(--color-negro);
  font-weight: bold;
}

.card-body .card-text {
  font-weight: bold;
}

/* =========================
  6. MEDIA QUERIES (RESPONSIVO)
========================= */

/* Tablets y pantallas medianas */
@media screen and (max-width: 768px) {
  .titulo-principal h1 {
    font-size: 31px;
  }

  .subtitulo-principal h2 {
    font-size: 26px;
  }

  .card-body h3 {
    font-size: 23px;
  }

  .card-body h4 {
    font-size: 20px;
  }

  .card-body .card-text {
    font-size: 14px;
  }

  .box {
    font-size: 14px;
    padding: 13px;
  }
}

/* Móviles y pantallas pequeñas */
@media screen and (max-width: 576px) {
  .titulo-principal h1 {
    font-size: 29px;
  }

  .subtitulo-principal h2 {
    font-size: 24px;
  }

  .card-body h3 {
    font-size: 21px;
  }

  .card-body h4 {
    font-size: 18px;
  }

  .card-body .card-text {
    font-size: 12px;
  }

  .box {
    font-size: 12px;
    padding: 11px;
  }
}