@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

html, body {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  scroll-padding-top: 75px;
  scroll-behavior: smooth;
}
.bold{
  font-weight:  700;
}
.semi-bold{
  font-weight:  600;
}
.bg-red{
  background-color: #B10000;
  border: 3px #B10000 solid;
}

.bg-lightgray{
  background-color: #777777;
}

.btn-red{
  background-color: #B10000 !important;
  color: white;
  border: 1px #B10000 solid;
}

.btn-red:hover{
  color: white;
  background-color: #8C0000 !important;
}


.btn-gray{
  background-color: #777777 !important;
  color: white;
  border: 1px #777777 solid;
}

.btn-outline-secondary:hover{
  background: #777777;
}

.btn-gray:hover{
  color: white;
  background-color: #555555 !important;
}

.no-btn{
  padding: 0;
  margin-top: -10px;
  padding-right: 5px;
  
}

#carousel {
  position: relative;
}

#carousel .overlay{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.55);
  color: white;
  z-index: 1;
}

#main .carousel-inner img{
  min-height: 90vh;
  max-height: 90vh;
  object-fit: cover;
  filter: grayscale(80%);
}


#header img{
  width: 80px;
}

a{
  text-decoration: none;
  color: black;
}

a.hover{
  text-decoration: none;
  color: black;
}
#footer{
  background: #121314;
}

#footer a{
  color: white;
}

#servicios{
  min-height: 90vh;
  }
.contacto{
  background-color: #F5F5F5;
  min-height: 90vh;
  }



.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:30px;
	right:30px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}

.float:hover{
  color:#FFF;
}

.my-float{
	margin-top:16px;
}

/* ____________________________________________________________ */







ul.timeline {
  list-style-type: none;
  position: relative;
}
ul.timeline:before {
  content: ' ';
  background: black;
  display: inline-block;
  position: absolute;
  left: 28px;
  width: 4px;
  height: 95%;
  z-index: 400;
}
ul.timeline > li {
  margin: 50px 0;
  padding-left: 20px;
}
ul.timeline > li:before {
  content: ' ';
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 4px solid #AF242C;
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
}

ul.timeline > li:nth-child(2):before{
  background: #AF242C;
}

.box-part{
  background:#FFF;
  border-radius:5px;
  padding:20px 10px;
  margin:10px 0px;
  box-shadow: 0 5px 30px -5px #ddd;
}

.box-part img{
  width: 2em;
}
.text{
  margin:20px 0px;
  font-weight: 300;
}


.desaturate {
  filter: grayscale(100%);
  transition: .2s ease-in;
}

.desaturate:hover {
  filter: grayscale(0%);
  box-shadow: 0 5px 30px -5px #888;

}



/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .box-part {
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .box-part {
    min-height: 300px;
  }
  
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .box-part {
    min-height: 255px;
  }
  
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .box-part {
    min-height: 280px;
  }
  
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .box-part {
    min-height: 255px;
  }
  
}

/* --- Variables globales --- */
:root{
  --brand: #B10000;
  --brand-dark: #8C0000;
}

h1,h2,h3,h4 { color:#111; font-weight:800; }

.navbar { box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.table thead th{
  background: var(--brand);
  color:#fff;
  border-color: var(--brand);
  font-weight:700;
}
.table-striped>tbody>tr:nth-of-type(odd) { background-color:#faf6f6; }
.badge.status-revision{ background:#6c757d; }
.badge.status-presupuestado{ background:#ffc107; color:#222; }
.badge.status-reparacion{ background:#0d6efd; }
.badge.status-entregado{ background:#198754; }

/* filtros arriba a la izquierda */
.tl-table-toolbar{
  display:flex; gap:12px; align-items:center; margin-bottom:10px;
}
.tl-table-toolbar .form-control{ max-width:280px; }
.tl-table-footer{ display:flex; justify-content:space-between; align-items:center; margin-top:8px; }

/* --- Admin: botones y links con color de marca --- */
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.card { border: none; box-shadow: 0 2px 10px rgba(0,0,0,.07); }

/* --- Tom Select + branding Leguizamón --- */
.ts-control { border-radius: .5rem; min-height: calc(1.5em + .75rem + 2px); }
.ts-dropdown .active { background: var(--brand); color: #fff; }
.ts-wrapper.multi .ts-control > div { background: #e9ecef; color:#333; }
.ts-dropdown { z-index: 2000; }

/* --- Portal público: badges de estado --- */
.badge-estado-turno       { background:#6c757d; color:#fff; }
.badge-estado-presupuesto { background:#ffc107; color:#222; }
.badge-estado-proceso     { background:#0d6efd; color:#fff; }
.badge-estado-terminado   { background:#fff3cd; color:#856404; border:1px solid #ffc107; }
.badge-estado-entregado   { background:#198754; color:#fff; }
.badge-estado-cancelado   { background:#dee2e6; color:#555; }

/* --- Portal público: barra de progreso OT --- */
.tl-prewrap { white-space: pre-wrap; }
.tl-progress { position: relative; margin-top: 1rem; }
.tl-wrap { position: relative; margin: 0 3%; }
.tl-track { position: relative; height: 12px; border-radius: 999px; background: #e5e5e5; }
.tl-fill { position: absolute; top:0; left:0; bottom:0; border-radius:999px; background: var(--brand); width: var(--fill, 0%); }
.tl-tick { position: absolute; top:50%; transform: translate(-50%,-50%); width:12px; height:12px; border-radius:50%; background: var(--brand); left: var(--pos, 0%); }
.tl-car  { position: absolute; top:-22px; transform: translateX(-50%); color:#000; font-size:20px; left: var(--car, 0%); }
.tl-labels { position: relative; margin-top:8px; min-height:2rem; }
.tl-label { position: absolute; transform: translateX(-50%); white-space: nowrap; left: var(--pos, 0%); color:#6b7280; font-size:.8rem; }
.tl-label.active { color: var(--brand); font-weight:600; }
.tl-label:first-child { white-space: normal; max-width: 100px; text-align: center; line-height: 1.1; }
@media (max-width: 876px) {
  .tl-wrap { margin: 0 12px; display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
  .tl-track { width:12px; height:280px; margin:8px 0; }
  .tl-fill { width:12px; height: var(--fill, 0%); }
  .tl-tick { left: 50%; top: var(--pos, 0%); transform: translate(-50%,-50%); }
  .tl-car  { left: 50%; top: calc(var(--car, 0%) - 6px); transform: translate(-50%,-50%); }
  .tl-labels { margin-top:10px; display:grid; grid-template-rows: repeat(5,1fr); row-gap: calc((280px - 5 * 0px) / 4); height:280px; }
  .tl-label { position: relative; transform:none; left:auto; display:flex; align-items:center; min-height:0; }
  .tl-label:first-child { white-space: normal; max-width: 100%; text-align: left; line-height: 1.1; }
}

/* --- Portal público: tabla mobile --- */
@media (max-width: 767.98px) {
  .table-mobile thead { display: none !important; }
  .table-mobile, .table-mobile tbody, .table-mobile tr, .table-mobile td { display: block; width: 100%; }
  .table-mobile tr { background:#fff; border:1px solid #dee2e6; border-radius:.5rem; margin-bottom:1rem; box-shadow:0 1px 3px rgba(0,0,0,.05); padding:.5rem; }
  .table-mobile td { border:none; position:relative; padding:.5rem .5rem .5rem 45%; min-height:2.5rem; }
  .table-mobile td::before { content:attr(data-label); position:absolute; left:.75rem; top:50%; transform:translateY(-50%); font-weight:600; color:#6c757d; width:40%; white-space:nowrap; }
  .table-mobile td.text-end, .table-mobile td.text-center { text-align:left !important; }
  .table-mobile .btn-group { display:flex; gap:.5rem; flex-wrap:wrap; }
}

/* --- Portal público: card total mobile --- */
.total-mobile-card { border-left: 4px solid var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.06); }

/* --- Notificaciones offcanvas --- */
#notifOffcanvas { width: 320px; }
.notif-item.notif-read { opacity: 0.5; }

/* --- Admin: tablas responsive mobile --- */
@media (max-width: 767.98px) {
  /* Subnav pills: scroll horizontal en mobile */
  .border-bottom .nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .border-bottom .nav-pills .nav-link {
    white-space: nowrap;
    font-size: .8rem;
    padding: .3rem .6rem;
  }

  /* Navbar top: ocultar links secundarios y colapsar */
  .navbar .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }
  .navbar .nav-link {
    font-size: .85rem;
    padding: .3rem .5rem !important;
  }

  /* Botones de acción en tablas: agrupar verticalmente */
  .btn-group.btn-group-sm {
    flex-wrap: wrap;
    gap: 2px;
  }

  /* Cards de OT en lista admin: reducir padding */
  .card-body { padding: .75rem !important; }

  /* Hacer la paginación scrollable */
  .d-flex.gap-1 { flex-wrap: wrap; }
}

/* --- Admin: tabla de notificaciones con header rojo --- */
#pane-notificaciones .js-datatable thead tr,
.tl-table-notif thead tr {
  background-color: #b10000;
  color: #fff;
}
#pane-notificaciones .js-datatable thead th,
.tl-table-notif thead th {
  background-color: #b10000 !important;
  color: #fff !important;
  border-color: #8c0000;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ====== consulta/ver: items & checklist ====== */

/* Etiqueta de sección (REPUESTOS / MANO DE OBRA) */
.tl-items-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: .35rem 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: .25rem;
}

/* Tabla de ítems — override de la regla global .table thead th */
table.tl-items-table thead tr,
.tl-items-table.table thead tr {
  background: transparent !important;
  border-bottom: 1px solid #e5e7eb;
}
table.tl-items-table thead th,
.tl-items-table.table thead th {
  background: transparent !important;
  color: #6b7280 !important;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .35rem .25rem;
  border: none !important;
}
.tl-items-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}
.tl-items-table tbody td {
  padding: .55rem .25rem;
  border: none;
  font-size: .9rem;
}
/* Columnas de precio: siempre en una línea */
.tl-items-table tbody td.tl-price,
.tl-items-table tfoot td.tl-price {
  white-space: nowrap;
  min-width: 7rem;
}
.tl-items-table tfoot td {
  padding-top: .75rem;
  font-size: .9rem;
  color: #374151;
}
.tl-items-table tfoot tr {
  border-top: 1px solid #e5e7eb;
}

/* Checklist: filas ítem + ícono */
.tl-check-section .tl-items-label {
  margin-top: 1.25rem;
}
.tl-check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: .9rem;
  line-height: 1.4;
}
.tl-check-row:last-child { border-bottom: none; }
.tl-check-row span:first-child { flex: 1; }
.tl-check-row span:last-child  { flex-shrink: 0; font-size: 1.1rem; }

/* ====== Dashboard: sub-tabs de notificaciones ====== */
.tl-notif-pills .nav-link {
  color: #4b5563;
  font-size: .85rem;
  padding: .35rem .85rem;
  border-radius: 20px;
  border: 1px solid #dee2e6;
  background: #fff;
}
.tl-notif-pills .nav-link.active {
  background: var(--brand, #B10000);
  border-color: var(--brand, #B10000);
  color: #fff;
}
.tl-notif-pills .nav-link:not(.active):hover {
  background: #f3f4f6;
}

/* ====== consulta/ver: panel de pestañas con fondo blanco ====== */
.tl-tab-panel {
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: none;           /* continúa visualmente la tab activa */
  border-radius: 0 0 .5rem .5rem;
  padding: 1.5rem 1.25rem 1rem;
}
@media (max-width: 575.98px) {
  .tl-tab-panel { padding: 1rem .85rem .75rem; }
}
/* Pestaña activa conectada con el panel blanco */
#consultaTabs .nav-link.active {
  background: #fff;
  border-bottom-color: #fff;
}

/* ====== Admin: botones de acción en tablas ====== */
.btn-tl-view,
.btn-tl-edit,
.btn-tl-pdf,
.btn-tl-delete {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: .85rem;
  border-width: 1px;
  border-style: solid;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  flex-shrink: 0;
}

/* Ver — rojo brand sólido (acción principal) */
.btn-tl-view {
  background: var(--brand, #B10000);
  border-color: var(--brand, #B10000);
  color: #fff;
}
.btn-tl-view:hover, .btn-tl-view:focus {
  background: #8f0000;
  border-color: #8f0000;
  color: #fff;
}

/* Editar — gris neutro */
.btn-tl-edit {
  background: #fff;
  border-color: #d1d5db;
  color: #4b5563;
}
.btn-tl-edit:hover, .btn-tl-edit:focus {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

/* PDF — gris oscuro */
.btn-tl-pdf {
  background: #fff;
  border-color: #d1d5db;
  color: #374151;
}
.btn-tl-pdf:hover, .btn-tl-pdf:focus {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111;
}

/* Eliminar — rojo suave (solo borde/ícono hasta hover) */
.btn-tl-delete {
  background: #fff;
  border-color: #fca5a5;
  color: #b91c1c;
}
.btn-tl-delete:hover, .btn-tl-delete:focus {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

/* ====== Home: textos del hero carousel siempre blancos ====== */
#carousel .overlay h1,
#carousel .overlay p {
  color: #fff;
}

/* ====== Consulta mobile: descripción truncada con ellipsis ====== */
.tl-desc-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
