/* ==================== Estilos Globales ==================== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Orkey', sans-serif !important; /* Forzamos Orkey */
  color: #333;
}

/* Transiciones generales en enlaces y botones */
a, button {
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

/* ==================== Navbar / Header ==================== */
.navbar, .bg-orange {
  background-color: #f96332 !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
}

.navbar {
  padding: 0.625rem 1rem !important;
  min-height: 60px !important;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.logo a {
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.navbar-toggler {
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggler i {
  color: white;
  font-size: 1.5rem;
}

/* Dropdown en Navbar (perfil) */
.navbar .dropdown.ml-auto {
  display: flex;
  align-items: center;
  position: relative;
}

.navbar .dropdown img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 50%;
}

.navbar .dropdown span {
  font-size: 1rem;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-menu {
  background-color: #292929 !important;
  border: none !important;
  right: 0;
  top: 60px;
  position: absolute;
  z-index: 1060;
}

.dropdown-menu .dropdown-item {
  color: white !important;
}

.dropdown-menu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.dropdown-divider {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Clase para mantener el perfil fijo */
.fixed-profile {
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: 1070;
}

/* ==================== Sidebar ==================== */

.sidebar-wrapper {
  /* Permitir scroll vertical, ocultar scroll horizontal */
  overflow-y: auto;
  overflow-x: hidden;

  /* Ocultar la barra de scroll visualmente en IE/Edge/Firefox */
  -ms-overflow-style: none;  /* IE y Edge */
  scrollbar-width: none;     /* Firefox */
}

.sidebar-wrapper::-webkit-scrollbar {
  /* Chrome/Safari */
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}

.sidebar {
  width: 250px;
  background-color: #343a40;
  transition: all 0.3s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1100;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  width: 100%;
}

.nav-item a {
  color: #fff !important;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nav-item a i {
  margin-right: 1rem;
  font-size: 1.25rem;
}

.nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active a {
  background-color: rgba(37, 37, 37, 0.89) !important;
  color: #fff !important;
  border-radius: 0.25rem;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar.collapsed .nav-item a {
  justify-content: center;
}

.sidebar.collapsed .nav-item a i {
  margin-right: 0;
}

.sidebar.collapsed .nav-item p,
.sidebar.collapsed .nav-item .sidebar-item-text {
  display: none !important;
}

.sidebar-footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 1001;
}

#toggleSidebar {
  background-color: #292929;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  transition: all 0.2s ease-out;
  cursor: pointer;
}

#toggleSidebar:hover {
  background-color: #d86000;
}

.sidebar.collapsed .fa-chevron-left {
  transform: rotate(180deg);
}

/* ==================== Main Panel / Content ==================== */
.main-panel {
  margin-left: 250px;
  padding: 20px;
  transition: all 0.3s ease-in-out;
  flex: 1;
  background-color: transparent;
}

.main-panel.sidebar-collapsed {
  margin-left: 70px;
}

.content {
  margin: 0 auto;
  padding-bottom: 0;
  margin-top: 20px;
}

/* ==================== Footer ==================== */
footer {
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 10;
  margin: 0;
  padding: 0;
}

.footer {
  padding: 20px 0;
  background-color: #333;
  color: #fff;
  text-align: center;
}

.footer a {
  color: white;
}

/* ==================== Tarjetas y Formularios ==================== */
.card {
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.card-body {
  padding: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Botones */
.btn-primary {
  background-color: #12bd3d;
  border-color: #12bd3d;
  color: white;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.btn-primary:hover {
  background-color: #0fa831;
  border-color: #0fa831;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-reset {
  padding: 0.2rem;
  font-size: 0.9rem;
  color: #007bff;
}

/* Switch para Renovable */
.custom-switch .custom-control-label::before {
  background-color: #f96332;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #4caf50;
}

/* Checkbox visibles */
.form-check-label {
  font-weight: 400;
  padding-left: 0 !important;
}

.form-check-input[type="checkbox"] {
  position: static !important;
  opacity: 1 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  width: auto !important;
}

/* ==================== Tablas ==================== */
.table-responsive {
  overflow-x: auto; /* Permite desplazamiento horizontal solo si es necesario */
  white-space: nowrap; /* Evita que las celdas de la tabla se envuelvan */
    /* Para IE y Edge */
  -ms-overflow-style: none;  
    /* Para Firefox */
  scrollbar-width: none;
}


/* Para Chrome/Safari */
.table-responsive::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
  background: transparent;
}

.table {
  table-layout: fixed; /* Hace que la tabla mantenga un ancho consistente */
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  margin-bottom: 1rem;
  color: #212529;
  transition: all 0.3s ease-in-out;
}

.table thead {
  background-color: #f8f9fa;
  border-radius: 10px 10px 0 0;
}

.table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  border-bottom: 2px solid #dee2e6;
}

.table tbody tr {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f1f1f1;
  transform: scale(1.01);
}

.table td {
  padding: 0.75rem;
  vertical-align: middle; /* Centrado vertical */
  border-bottom: 1px solid #dee2e6;
  font-size: 0.95rem;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  text-align: center; /* Centrado horizontal */
}

.table td:last-child {
  white-space: nowrap;
}

.table td:hover {
  overflow: visible;
  white-space: normal;
}

/* Botones en tablas */
.table .btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.875rem;
}

/* ==================== Textos y Transiciones ==================== */
.text-primary {
  color: #007bff !important;
}

.h4, h4 {
  font-size: 1.5rem;
}

.huella-rojo {
  background-color: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.huella-amarillo {
  background-color: #f1c40f;
  color: black;
  padding: 5px 10px;
  border-radius: 5px;
}

.huella-verde {
  background-color: #2b00ec;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f1c40f;
}

.filtro-radio, .filtro-select {
  margin-bottom: 10px;
}

/* ==================== Misceláneos ==================== */
.logo img {
  width: 100%;
  height: auto;
  max-width: 180px;
}

.logo-mini {
  display: none;
}

.content-box {
  padding: 40px;
  border-radius: 10px;
}

.toggle-arrow {
  cursor: pointer;
  font-size: 14px;
  margin-left: 5px;
}

.placas-list {
  margin-top: 5px;
  background-color: #f5b7b1;
  padding: 5px;
  border-radius: 5px;
  color: #333;
}

.placas-list div {
  font-size: 12px;
  padding: 2px 0;
}

/* ==================== Panel Header con imagen ==================== */
.panel-header {
  position: relative;
  background-image: url('/media/panel/tire.jpg');
  background-size: cover;
  background-position: center;
  height: auto;
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  margin-top: 10px;
}

.panel-header img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel-header img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.panel-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.panel-header .container {
  position: relative;
  z-index: 2;
}

.header-title {
  font-weight: 700;
  color: white;
  font-size: 2rem;
  margin: 0;
}

/* Botones de posición (círculo) */
.position-btn {
  border-radius: 50%;
  width: 40px;
  height: 40px; 
  padding: 0;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.position-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Hover en card, barra y números */
.card-hover {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover:hover {
  transform: scale(1.02);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.bar-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bar-hover:hover {
  transform: scale(1.02);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}

.num-hover {
  transition: transform 0.2s ease;
}

.num-hover:hover {
  transform: scale(1.1);
}

/* Badges */
.badge-info {
  background-color: #5bc0de;
  padding: 8px 12px;
  font-size: 14px;
  margin-right: 5px;
  border-radius: 0.25rem;
}

/* Scroll en tablas y adaptabilidad */
.table-scroll {
  overflow-x: auto;
  white-space: nowrap;
    /* Oculta scrollbar en IE, Edge y Firefox */
  -ms-overflow-style: none; /* IE y Edge */
  scrollbar-width: none;    /* Firefox */
}

.table-scroll::-webkit-scrollbar {
  width: 0;         /* Safari y Chrome */
  height: 0;
  background: transparent;
  display: none;    /* O simplemente width: 0 */
}

.table-adaptive {
  width: 100%;
  table-layout: auto;
}

#empresa_autocomplete, #criticidad, #order_by {
  transition: none;
}

/* ==================== Responsivo ==================== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 100%;
    padding: 0 10px;
  }

  .navbar .dropdown span {
    display: inline;
  }

  .main-panel {
    margin-left: 0;
  }

  .sidebar {
    z-index: 1100;
    position: fixed;
    width: 250px;
    height: 100%;
    display: none;
    top: 0;
    left: 0;
  }
  .sidebar.active {
    display: block;
  }

  #toggleSidebar {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 5px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem !important;
  }

  .logo a {
    font-size: 1.25rem;
  }

  .header-title {
    font-size: 1.75rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .position-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .main-panel {
    padding: 10px;
  }

  .card,
  .accordion .card-header {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 15px;
  }

  .table-responsive-sm {
    overflow-x: auto;
  }

  /* Table en modo "mobile" */
  .table thead {
    display: none;
  }

  .table, .table tbody, .table tr, .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
    position: relative;
  }

  .table td {
    font-size: 0.875rem;
    padding: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    border-bottom: 1px dotted #dee2e6;
    padding-left: 100px;
  }

  .table td::before {
    content: attr(data-label);
    left: 0;
    padding-right: 10px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .table td:last-child {
    border-bottom: 0;
  }

  .bar-hover {
    display: block;
    margin: 5px 0;
  }

  .panel-header {
    margin-top: 21px;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 5px;
  }

  .navbar {
    padding: 0.5rem 0.75rem !important;
  }

  .navbar-toggler i {
    font-size: 1.25rem;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .card h2 {
    font-size: 1.25rem;
  }

  .position-btn {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }

  .table td, .table th {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .card,
  .accordion .card-header {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 10px;
  }

  .panel-header {
    margin-top: 21px;
  }
}

/* ==================== Página de Login ==================== */
.full-page.section-image {
  background: url("/media/panel/login.png") no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.full-page.section-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  filter: blur(5px);
  z-index: -1;
}

.login-page .card-login {
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 400px;
  margin: 100px auto;
}

.login-page .input-group {
  border-radius: 50px;
  margin-bottom: 20px;
}

.login-page .input-group-prepend .input-group-text {
  background: transparent;
  border: none;
  color: #fff;
}

.login-page .form-control {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
}

.login-page .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.login-page .btn-primary {
  background-color: #FF7F50;
  border: none;
  border-radius: 50px;
  padding: 15px 0;
  font-size: 1rem;
  text-transform: uppercase;
  width: 100%;
}

.login-page .footer-link {
  color: rgba(255, 255, 255, 0.8);
}

.login-page .footer-link:hover {
  color: #FF7F50;
  text-decoration: none;
}

.login-page h6 a {
  color: white;
  font-weight: 700;
}

.login-page .logo-container img {
  width: 100px;
  margin-bottom: 20px;
}

/* ==================== Select2 ==================== */
.select2-dropdown::-webkit-scrollbar,
.select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
  display: none; 
}

.select2-container--default .select2-selection--single {
  overflow: hidden;
  height: auto;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 200px !important;
  overflow-y: auto !important;
}

/* ==================== Campos de Fecha en Modal ==================== */
#previewModal .form-label {
  color: #333;
}

#previewModal .form-control {
  border-radius: 5px;
  border: 1px solid #ced4da;
}

#apply-filter {
  width: 100%;
}

/* ==================== Sobre Nosotros / Misión / Visión ==================== */
.main-content {
  padding: 40px 20px;
  background-color: #ffffff;
}

.section {
  margin-bottom: 40px;
}

/* Panel Header Pequeño con Imagen de Neumáticos */
.neumaticos-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.neumaticos-header .header-title {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  letter-spacing: 2px;
  background: url("{% static 'assets/img/tire-icon.png' %}") no-repeat left center;
  padding-left: 50px;
  background-size: 30px 30px;
}

/* Estilos Generales para Secciones */
.section h2 {
  font-size: 2rem;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #f96332;
  border-bottom: 2px solid #f96332;
  display: inline-block;
  padding-bottom: 5px;
  position: relative;
}

.section h2::before {
  content: "";
  background: url("{% static 'assets/img/tire-icon-small.png' %}") no-repeat left center;
  width: 20px;
  height: 20px;
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
}

.section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
  text-align: justify;
}

/* Fundadores (Uso general) */
.fundadores {
  display: flex;
  justify-content: center; /* Centra los recuadros horizontalmente */
  align-items: center;
  gap: 15px;
  flex-wrap: wrap; /* Para que las tarjetas se ajusten en pantallas pequeñas */
}

.fundador {
  flex: 1;
  max-width: 180px;
  min-width: 160px;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fundador:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.fundador-img {
  border-radius: 50%;
  border: 3px solid #ff5722;
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fundador-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(249, 99, 50, 0.4);
}

.fundador p {
  margin: 0;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
}

/* Valores */
.valores ul {
  list-style-type: none;
  padding: 0;
}

.valores li {
  background-color: #f8f9fa;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #f96332;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.valores li::before {
  content: "";
  background: url("{% static 'assets/img/icons/tire-bullet.png' %}") no-repeat left center;
  width: 15px;
  height: 15px;
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
}

.valores li:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

.valores li strong {
  color: #f96332;
}

/* Responsivo en "Sobre Nosotros" */
@media (max-width: 768px) {
  .neumaticos-header {
    height: 150px;
  }

  .neumaticos-header .header-title {
    font-size: 2rem;
    padding-left: 40px;
    background-size: 25px 25px;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .section h2::before {
    left: -25px;
  }

  .fundadores {
    gap: 30px;
  }

  .fundador-img {
    width: 120px;
    height: 120px;
  }

  .fundador p {
    font-size: 1rem;
  }

  .section p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .neumaticos-header {
    height: 120px;
  }

  .neumaticos-header .header-title {
    font-size: 1.5rem;
    padding-left: 35px;
    background-size: 20px 20px;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .section h2::before {
    left: -20px;
  }

  .fundadores {
    gap: 20px;
  }

  .fundador-img {
    width: 100px;
    height: 100px;
  }

  .fundador p {
    font-size: 0.9rem;
  }

  .section p {
    font-size: 0.9rem;
  }
}

/* ==================== Timeline ==================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  transform: translateX(-50%);
}

.timeline__block {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.timeline__marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 15px;
  height: 15px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.timeline__title,
.timeline__desc {
  margin: 0 0 10px;
}

/* Se unifican estilos repetidos en timeline__content y card-hover-zoom */
.timeline__content,
.card-hover-zoom {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline__content:hover::before,
.card-hover-zoom:hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.1), transparent 70%) center center,
              radial-gradient(circle at top left, rgba(255, 87, 34, 0.05), transparent 70%) top left,
              radial-gradient(circle at bottom right, rgba(255, 87, 34, 0.1), transparent 80%) bottom right;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.timeline__content:hover,
.card-hover-zoom:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.timeline__content h3,
.timeline__content p,
.card-hover-zoom h3,
.card-hover-zoom p {
  position: relative;
  z-index: 1;
}

.timeline__block:nth-child(odd) .timeline__content {
  margin-left: 55%;
  text-align: left;
}

.timeline__block:nth-child(even) .timeline__content {
  margin-right: 55%;
  text-align: right;
}

.timeline__content:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .timeline {
    padding: 1rem 0;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline__marker {
    left: 20px;
  }

  .timeline__content {
    width: calc(100% - 50px);
    margin: 0;
    text-align: left;
    padding-left: 50px;
  }

  .timeline__block:nth-child(odd) .timeline__content,
  .timeline__block:nth-child(even) .timeline__content {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 576px) {
  .timeline {
    padding: 1rem 0;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline__marker {
    left: 15px;
  }

  .timeline__content {
    width: calc(100% - 40px);
    margin: 0;
    text-align: left;
    padding-left: 40px;
    font-size: 0.9rem;
  }
}

/* ==================== Misión y Visión ==================== */
.section-mision-vision .section-title {
  color: #FFA500; /* Color naranja */
}

/* Efecto Zoom en Imágenes */
.img-hover-zoom {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-hover-zoom:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== Fondo Global ==================== */
body {
  position: relative;
  overflow-x: hidden;
  background-color: #f9f9f9;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.1), transparent 70%) center center,
              radial-gradient(circle at top left, rgba(255, 87, 34, 0.05), transparent 70%) top left,
              radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.05), transparent 80%) bottom right;
  background-size: cover;
}

body::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 87, 34, 0.3);
  border-radius: 50%;
  top: 30%;
  left: 15%;
  z-index: -1;
  opacity: 0.5;
  animation: pulse 6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* Sección especial "Valores" */
.section-tribal {
  position: relative;
  background-color: #fff6f2;
  overflow: hidden;
}

.section-tribal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 87, 34, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.section-tribal::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 87, 34, 0.2);
  border-radius: 50%;
  z-index: 0;
}

.section-tribal .container {
  position: relative;
  z-index: 1;
}

.text-orange {
  color: #ff5722;
}

.card-hover-zoom:hover p {
  position: relative;
  z-index: 1;
}

/* ==================== Sobre Nosotros - Página ==================== */
.sobre-nosotros-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw; /* Cubre todo el ancho de la ventana */
  height: 100%; /* Cubre toda la altura del contenido */
  background-image: url("/static/assets/img/fondonosotros.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* Envía el fondo detrás del contenido */
}

.sobre-nosotros-page .container,
.sobre-nosotros-page .section,
.sobre-nosotros-page .section-tribal {
  background-color: transparent;
}

.sobre-nosotros-page h2.section-title,
.sobre-nosotros-page h2.ui-section__title {
  color: #ffffff !important; 
  border-bottom: 2px solid #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); 
}

.sobre-nosotros-page h2.custom-mision-vision-title {
  color: #ff5722 !important;
  border-bottom: 2px solid #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.profile-icon img {
  margin-left: 40px;
}

/* Ajustes específicos para la sección de fundadores en "Sobre Nosotros" */
.sobre-nosotros-page .section-fundadores .section-title {
  margin-top: 3rem;
}

.sobre-nosotros-page .fundadores {
  justify-content: flex-start; /* Alinear imágenes a la izquierda */
  gap: 20px; 
  padding-left: 20px;
  margin-top: 20px;
}

.sobre-nosotros-page .fundador-img {
  width: 150px;
  height: 150px;
  border: 3px solid rgba(245, 208, 197, 0.185);
}

.sobre-nosotros-page .fundadores p {
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .sobre-nosotros-page .fundadores {
    justify-content: center;
    gap: 15px;
  }
  .sobre-nosotros-page .fundador-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .sobre-nosotros-page .fundadores {
    justify-content: space-around;
    gap: 10px;
  }
  .sobre-nosotros-page .fundador-img {
    width: 100px;
    height: 100px;
  }
}

/* ==================== Fuentes personalizadas (Django) ==================== */
@font-face {
  font-family: 'Orkey';
  src: url('{% static "fonts/Orkey-Bold.woff2" %}') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Orkey';
  src: url('{% static "fonts/Orkey-Bold-Italic.woff2" %}') format('woff2');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'Orkey';
  src: url('{% static "fonts/Orkey-Light.woff2" %}') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Orkey';
  src: url('{% static "fonts/Orkey-Light-Italic.woff2" %}') format('woff2');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Orkey';
  src: url('{% static "fonts/Orkey-Medium.woff2" %}') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Orkey';
  src: url('{% static "fonts/Orkey-Medium-Italic.woff2" %}') format('woff2');
  font-weight: 500;
  font-style: italic;
}

/* ==================== Overlay opcional en "Sobre Nosotros" ==================== */
.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.sobre-nosotros-page > .section,
.sobre-nosotros-page > section {
  position: relative;
  z-index: 2;
}

/* Ajuste de color de textos sobre overlay oscuro */
.section-title,
.section-text,
.timeline__title,
.timeline__desc,
.fundadores p {
  color: rgb(0, 0, 0);
}




/* =========================
   Estilos para reporte 
   de Neumáticos 
   ========================= */

/* Estilos para la columna "Averías" */
.averias-container {
  cursor: pointer;
  position: relative;
}
.averias-summary {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0d6efd; 
  text-decoration: underline;
}
.averias-fulltext {
  margin-top: 10px;
  display: none;
  transition: max-height 0.3s ease;
  overflow: hidden;
}
.averias-fulltext.collapse {
  display: none;
}
.averias-fulltext:not(.collapse) {
  display: block;
}

/* Ajustes para pantallas móviles en la tabla */
@media (max-width: 768px) {
  .table thead {
      display: none;
  }
  .table, .table tbody, .table tr, .table td {
      display: block;
      width: 100%;
  }
  .table tr {
      margin-bottom: 1rem;
      border-bottom: 2px solid #dee2e6;
      position: relative;
  }
  .table td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem;
      text-align: left;
      border-bottom: 1px dotted #dee2e6;
      padding-left: 0;
  }
  .table td::before {
      content: attr(data-label);
      font-weight: bold;
      text-transform: uppercase;
      color: #6c757d;
      margin-right: 10px;
      width: 40%;
      flex-shrink: 0;
  }
  .table td[data-label="Acciones"] {
      justify-content: flex-start;
  }
  .table td[data-label="Acciones"] .btn {
      margin-right: 5px;
      margin-bottom: 5px;
      flex: 1 1 auto;
      text-align: center;
  }
  .table td[data-label="Acciones"] .btn {
      flex: none;
      width: auto;
  }
  .card-body {
      padding: 1rem;
  }
}
@media (max-width: 576px) {
  .header-title {
      font-size: 1.5rem;
  }
  .btn-lg {
      font-size: 0.875rem;
      padding: 0.5rem 1rem;
  }
  .btn-sm {
      font-size: 0.75rem;
      padding: 0.25rem 0.5rem;
  }
  .card-body {
      padding: 0.5rem;
  }
}

/* Ajustes para filtros */
form .form-label {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 5px;
}
form .form-check-label {
  font-size: 1.05rem;
  font-weight: 500;
}
form .form-check-input {
  transform: scale(1.1);
  margin-right: 6px;
}

/* Panel Header */
.panel-header {
  position: relative;
  background-image: url('/media/panel/tire.jpg');
  background-size: cover;
  background-position: center;
  height: auto;
  padding: 50px 0;
  display: block;
  z-index: 1;
}
.header-title {
  font-weight: 700;
  color: white;
  font-size: 2rem;
  margin: 0;
}
