/* =========================================================
   TROCAS GARAGE - estilos principales (Bootstrap 3)
   Paleta tomada del logo (aproximada; ajustar con los
   codigos exactos si el logo se vectoriza).
   ========================================================= */

:root {
  --tr-navy: #0e2a4d;
  --tr-navy-dark: #091d36;
  --tr-red: #c8102e;
  --tr-red-dark: #a00d25;
  --tr-cream: #f4ecd8;
  --tr-cream-dark: #e6dabd;
  --tr-ink: #1b2635;
  --tr-muted: #5b6575;
  --tr-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: auto; }

body {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tr-ink);
  background: #fff;
  padding-top: var(--tr-header-h);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tr-navy);
  margin-top: 0;
}

a { color: var(--tr-red); }
a:hover, a:focus { color: var(--tr-red-dark); text-decoration: none; }

img { max-width: 100%; }

/* ---------- Botones ---------- */
.tr-btn {
  display: inline-block;
  background: var(--tr-red);
  color: var(--tr-cream);
  border: 2px solid var(--tr-red);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 4px;
  transition: background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.tr-btn:hover, .tr-btn:focus {
  background: var(--tr-red-dark);
  border-color: var(--tr-red-dark);
  color: var(--tr-cream);
}
.tr-btn .fa { margin-right: 6px; }

.tr-btn-outline {
  background: transparent;
  border-color: var(--tr-cream);
  color: var(--tr-cream);
}
.tr-btn-outline:hover, .tr-btn-outline:focus {
  background: var(--tr-cream);
  border-color: var(--tr-cream);
  color: var(--tr-navy);
}

.tr-btn-block { display: block; width: 100%; text-align: center; white-space: normal; }

/* ---------- Header / menu ---------- */
/* Todo con !important donde Bootstrap (o un bootstrap.css modificado)
   podria pisar fondos, alturas o paddings del navbar */
#tr-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--tr-cream);
  border-bottom: 3px solid var(--tr-red);
  transition: box-shadow .25s;
}
#tr-header.tr-scrolled { box-shadow: 0 3px 14px rgba(0, 0, 0, .18); }

#tr-header .tr-navbar,
#tr-header .tr-navbar > .container,
#tr-header .navbar-header,
#tr-header .navbar-collapse {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

#tr-header .tr-navbar {
  border-radius: 0;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

#tr-header .tr-navbar > .container {
  height: calc(var(--tr-header-h) - 3px);
}

.tr-brand {
  display: flex;
  align-items: center;
  height: calc(var(--tr-header-h) - 3px);
  float: left;
  padding: 0 !important;
}
.tr-brand img { height: 44px; width: auto; max-width: none; }

.tr-nav { margin: 0 !important; }
.tr-nav > li > a {
  position: relative;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tr-navy) !important;
  background: transparent !important;
  padding: 26px 16px 27px !important;
  transition: color .2s;
}
/* Rayita roja bajo el item activo / al pasar el mouse */
.tr-nav > li > a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 18px;
  height: 2px;
  background: var(--tr-red);
  transform: scaleX(0);
  transition: transform .2s;
}
.tr-nav > li > a:hover,
.tr-nav > li > a:focus,
.tr-nav > li.active > a { color: var(--tr-red) !important; }
.tr-nav > li > a:hover::after,
.tr-nav > li.active > a::after { transform: scaleX(1); }

.tr-navbar .navbar-toggle {
  margin: 17px 0 0 !important;
  border: 1px solid var(--tr-navy) !important;
  border-radius: 4px;
  background: transparent !important;
}
.tr-navbar .navbar-toggle .icon-bar { background: var(--tr-navy) !important; }
.tr-navbar .navbar-toggle:hover,
.tr-navbar .navbar-toggle:focus { background: var(--tr-cream-dark) !important; }

/* ---------- Hero / slider ---------- */
.tr-hero { position: relative; background: var(--tr-navy-dark); }

.tr-slide {
  position: relative;
  height: calc(100vh - var(--tr-header-h));
  min-height: 460px;
  max-height: 820px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.tr-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 29, 54, .88) 0%, rgba(9, 29, 54, .55) 60%, rgba(9, 29, 54, .35) 100%);
}
.tr-slide--ph {
  background-image: repeating-linear-gradient(45deg, #12345d 0, #12345d 22px, #0e2a4d 22px, #0e2a4d 44px);
}

.tr-slide-content { position: relative; z-index: 2; }
.tr-slide-title {
  color: var(--tr-cream);
  font-size: 58px;
  line-height: 1.1;
  max-width: 760px;
  margin-bottom: 18px;
}
.tr-slide-content p {
  color: var(--tr-cream);
  font-size: 20px;
  max-width: 620px;
  margin-bottom: 30px;
  opacity: .92;
}
.tr-hero-btns .tr-btn { margin: 0 10px 10px 0; }

.tr-ph-tag {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 2;
  font-size: 12px;
  color: var(--tr-cream);
  background: rgba(0, 0, 0, .35);
  padding: 3px 10px;
  border-radius: 3px;
}

/* Antes de que Slick cargue, mostrar solo el primer slide (evita el salto) */
.tr-hero-slider > div:not(:first-child) { display: none; }

/* Puntos del slider (estilo propio, no depende del tema de Slick) */
.tr-hero .slick-dots {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  margin: 0; padding: 0;
  list-style: none;
  text-align: center;
  z-index: 5;
}
.tr-hero .slick-dots li { display: inline-block; margin: 0 5px; }
.tr-hero .slick-dots li button {
  font-size: 0;
  width: 12px; height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--tr-cream);
  background: transparent;
  cursor: pointer;
}
.tr-hero .slick-dots li button::before { display: none; }
.tr-hero .slick-dots li.slick-active button { background: var(--tr-red); border-color: var(--tr-red); }

/* ---------- Franja ---------- */
.tr-strip {
  background: var(--tr-navy);
  color: var(--tr-cream);
  padding: 14px 0;
}
.tr-strip-item {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  padding: 6px 15px;
}
.tr-strip-item .fa { color: var(--tr-red); margin-right: 8px; font-size: 16px; }

/* ---------- Secciones ---------- */
.tr-section { padding: 90px 0; }
#servicios, #nosotros, #trabajos, #contacto { scroll-margin-top: var(--tr-header-h); }

.tr-bg-cream { background: var(--tr-cream); }
.tr-bg-navy { background: var(--tr-navy); }

.tr-section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.tr-section-head h2 { font-size: 40px; line-height: 1.15; margin-bottom: 0; }

.tr-eyebrow {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tr-red);
  margin-bottom: 8px;
}

.tr-divider { width: 60px; height: 4px; background: var(--tr-red); margin: 18px auto; }
.tr-divider-left { margin-left: 0; }

.tr-lead { font-size: 17px; color: var(--tr-muted); margin: 0; }

.tr-section-head-light h2 { color: var(--tr-cream); }
.tr-section-head-light .tr-lead { color: var(--tr-cream); opacity: .85; }

/* ---------- Tarjetas de servicios ---------- */
.tr-cards { display: flex; flex-wrap: wrap; }
.tr-cards > [class*="col-"] { display: flex; margin-bottom: 30px; }

.tr-card {
  background: #fff;
  border-top: 4px solid var(--tr-red);
  border-radius: 6px;
  padding: 34px 28px;
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(14, 42, 77, .08);
  transition: transform .25s, box-shadow .25s;
}
.tr-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(14, 42, 77, .14); }

.tr-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--tr-navy);
  color: var(--tr-cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.tr-card h3 { font-size: 22px; margin-bottom: 10px; }
.tr-card p { color: var(--tr-muted); margin: 0; }

/* Bloque importacion */
.tr-import {
  background: var(--tr-navy);
  color: var(--tr-cream);
  border-radius: 6px;
  padding: 30px 34px;
  margin-top: 10px;
}
.tr-import h3 { color: var(--tr-cream); font-size: 24px; margin-bottom: 6px; }
.tr-import h3 .fa { color: var(--tr-red); margin-right: 6px; }
.tr-import p { margin: 0; opacity: .88; }
.tr-import-btn { text-align: right; padding-top: 12px; }

/* ---------- Nosotros ---------- */
.tr-about { display: flex; flex-wrap: wrap; align-items: center; }
.tr-about-logo { text-align: center; margin-bottom: 30px; }
.tr-about-logo img { max-width: 420px; width: 100%; }
.tr-about h2 { font-size: 40px; margin-bottom: 0; }
.tr-about p { font-size: 16px; color: var(--tr-muted); }

.tr-about-lists { margin-top: 20px; }
.tr-about-lists h4 { font-size: 18px; margin-bottom: 12px; }

.tr-list { list-style: none; padding: 0; margin: 0 0 20px; }
.tr-list li { padding: 5px 0; }
.tr-list .fa { width: 22px; }
.tr-list-yes .fa { color: #2e7d32; }
.tr-list-no .fa { color: var(--tr-red); }

/* ---------- Galeria (masonry con CSS columns) ---------- */
.tr-galeria { column-count: 1; column-gap: 16px; }
@media (min-width: 768px)  { .tr-galeria { column-count: 2; } }
@media (min-width: 992px)  { .tr-galeria { column-count: 3; } }
@media (min-width: 1200px) { .tr-galeria { column-count: 4; } }

.tr-galeria-item {
  display: block;
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}
.tr-galeria-item img { display: block; width: 100%; transition: transform .35s; }
.tr-galeria-link:hover img { transform: scale(1.05); }

.tr-galeria-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 42, 77, 0);
  transition: background .25s;
}
.tr-galeria-overlay .fa { color: var(--tr-cream); font-size: 28px; opacity: 0; transition: opacity .25s; }
.tr-galeria-link:hover .tr-galeria-overlay { background: rgba(14, 42, 77, .4); }
.tr-galeria-link:hover .tr-galeria-overlay .fa { opacity: 1; }

/* Relleno mientras no hay fotos */
.tr-ph {
  background: repeating-linear-gradient(45deg, var(--tr-cream-dark) 0, var(--tr-cream-dark) 14px, #ddcfae 14px, #ddcfae 28px);
  border: 2px dashed rgba(14, 42, 77, .25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
}
.tr-ph span {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tr-navy);
  background: rgba(244, 236, 216, .85);
  padding: 4px 12px;
  border-radius: 3px;
}

/* ---------- Contacto ---------- */
.tr-contact-info { margin-bottom: 30px; }
.tr-contact-list { list-style: none; padding: 0; margin: 25px 0 0; }
.tr-contact-list li { color: var(--tr-cream); padding: 8px 0; font-size: 16px; word-break: break-word; }
.tr-contact-list .fa { color: var(--tr-red); width: 24px; }
.tr-contact-list a { color: var(--tr-cream); }
.tr-contact-list a:hover { color: #fff; text-decoration: underline; }

.tr-form-card {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.tr-form label { font-weight: 600; color: var(--tr-navy); font-size: 14px; }
.tr-form .form-control {
  height: 44px;
  border-radius: 4px;
  border-color: #cfd5de;
  box-shadow: none;
}
.tr-form textarea.form-control { height: auto; }
.tr-form .form-control:focus { border-color: var(--tr-navy); box-shadow: 0 0 0 3px rgba(14, 42, 77, .12); }

.tr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
#tr-footer { background: var(--tr-navy-dark); color: var(--tr-cream); padding-top: 60px; }
.tr-footer-col { margin-bottom: 30px; }
.tr-footer-col h4 { color: var(--tr-cream); font-size: 18px; margin-bottom: 14px; }
.tr-footer-col p { opacity: .85; }
.tr-footer-logo { width: 80px; margin-bottom: 14px; }

.tr-footer-list { list-style: none; padding: 0; margin: 0; }
.tr-footer-list li { padding: 4px 0; word-break: break-word; }
.tr-footer-list .fa { color: var(--tr-red); width: 22px; }
.tr-footer-list a { color: var(--tr-cream); opacity: .85; }
.tr-footer-list a:hover { opacity: 1; color: #fff; }

.tr-footer-social { margin-top: 12px; }
.tr-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(244, 236, 216, .12);
  color: var(--tr-cream);
  margin-right: 6px;
  font-size: 18px;
  transition: background .2s;
}
.tr-footer-social a:hover { background: var(--tr-red); color: var(--tr-cream); }

.tr-footer-bottom {
  border-top: 1px solid rgba(244, 236, 216, .12);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: .75;
}

/* ---------- Flotantes ---------- */
.tr-whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.tr-whatsapp-float:hover, .tr-whatsapp-float:focus { color: #fff; transform: scale(1.08); }

.tr-scroll-top {
  position: fixed;
  right: 26px; bottom: 88px;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tr-navy);
  color: var(--tr-cream);
  display: none;
  align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.tr-scroll-top.tr-visible { display: flex; }
.tr-scroll-top:hover, .tr-scroll-top:focus { background: var(--tr-red); color: var(--tr-cream); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .tr-brand img { height: 36px; }
  .tr-nav > li > a { padding-left: 9px !important; padding-right: 9px !important; font-size: 13px; letter-spacing: .5px; }
  .tr-nav > li > a::after { left: 9px; right: 9px; }
  .tr-slide-title { font-size: 44px; }
  .tr-import-btn { text-align: left; padding-top: 18px; }
}

@media (max-width: 767px) {
  :root { --tr-header-h: 66px; }
  .tr-brand img { height: 32px; }
  .tr-navbar .navbar-toggle { margin-top: 15px !important; }
  #tr-header .tr-navbar > .container { height: auto; min-height: calc(var(--tr-header-h) - 3px); }
  #tr-header .navbar-collapse {
    background: var(--tr-cream) !important;
    border-top: 1px solid var(--tr-cream-dark) !important;
    margin: 0 -15px;
    max-height: none;
  }
  .tr-nav > li > a { padding: 12px 15px !important; text-align: center; }
  .tr-nav > li > a::after { display: none; }

  .tr-section { padding: 60px 0; }
  .tr-section-head { margin-bottom: 35px; }
  .tr-section-head h2, .tr-about h2 { font-size: 30px; }

  .tr-slide { min-height: 520px; }
  .tr-slide-title { font-size: 34px; }
  .tr-slide-content p { font-size: 17px; }
  .tr-hero-btns .tr-btn { display: block; margin: 0 0 10px; text-align: center; }

  .tr-strip-item { padding: 4px 15px; }
  .tr-import { padding: 24px 20px; }
  .tr-import h3 { font-size: 20px; }
  .tr-import-btn .tr-btn { display: block; text-align: center; }
  .tr-form-card { padding: 22px 18px; }
  .tr-footer-col { text-align: center; }
}
