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

html { height: 100%; }

body {
  font-family: "Montserrat", sans-serif;
  max-width: 100vw;
  height: 100%;
  margin: 0 auto;
  background-color: #eeeeee;
  overflow-x: hidden;
}

a { text-decoration: none; }
a:link, a:visited, a:hover { color: white; }
ul { list-style: none; }
img { width: 95%; height: auto; }

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.1));
  transition: all .5s ease;
  border: none;
  background: #a60500;
  border-radius: 30px;
  text-transform: uppercase;
  box-sizing: border-box;
  padding: 15px 40px;
  font-weight: 500;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  box-shadow: 2px 2px 25px -1px rgba(75,18,5,.5);
}
button:hover {
  color: #fff;
  background: #4b1205;
  filter: drop-shadow(0 0 5px rgba(0,0,0,.2));
}

/* ── NAV ── */
.mainNav {
  position: fixed; top: 0; z-index: 1;
  width: 100vw; display: flex; flex-flow: row;
  height:70px; background: #a60500; margin-top: 20px;
}
.mainNav .toggleBtn {
  display: none; height: 2rem; width: 2rem;
  background: transparent; border: none; cursor: pointer;
  padding: 0; box-sizing: border-box;
  flex-direction: column; justify-content: space-around;
}
.mainNav .toggleBtn:focus { outline: none; }
.mainNav .toggleBtn_line {
  display: none; width: 2rem; height: 2px; background-color: white;
}
.mainNav .imgNav {
  top: -10px; left: 2vw; position: relative;
  border-radius: 2px; cursor: pointer;
}
.mainNav .imgNav .logoNav {
  box-shadow: 5px 5px 15px rgba(0,0,0,.75);
  border-radius: 5px;
}
.mainNav .barNav {
  display: flex; flex-direction: row;
  justify-content: space-evenly; align-items: center; width: 100%;
}
.mainNav .barNav .navItem {
  cursor: pointer; color: white; text-transform: uppercase;
  font-weight: bold; padding: 1rem; border-radius: 5px;
  transition: all .5s ease-in;
}
.mainNav .barNav .navItem:hover {
  background-color: #751c08;
  box-shadow: 5px 5px 10px rgba(0,0,0,.75);
}

@keyframes fadeIn {
  0% { opacity: 1; }
  100% { background-color: #751c08; transform: scale(1.5); padding: 1rem; border-radius: 5px; box-shadow: 5px 5px 10px rgba(0,0,0,.75); }
}

/* ── MOBILE NAV ── */
@media (max-width: 599px) {
  .mainNav.noMenu { display: flex; justify-content: space-between; }
  .mainNav.noMenu .toggleBtn,
  .mainNav.noMenu .toggleBtn_line { display: flex; }
  .mainNav.noMenu .barNav { display: none; }
  .mainNav.noMenu .imgNav {
    top: -5px; overflow: hidden;
    display: flex; justify-content: flex-end; margin-right: 2em;
    border-radius: 5px;
  }
  .mainNav.noMenu .imgNav .logoNav { height: 100%; width: auto; }
  .sideMenu {
    height: 100%; background-color: #a60500;
    box-shadow: 2px 0 5px rgba(0,0,0,.5);
    position: fixed; display: flex; flex-direction: column;
    top: 0; left: 0; width: 20rem; max-width: 200px; z-index: 2; margin-top: 0;
  }
  .sideMenu .imgNav { left: 3em; margin-top: 2em; max-width: 6em; }
  .sideMenu .barNav { flex-direction: column; height: 20em; align-items: flex-start; padding: 0 0 10em 0; margin: 0; font-size: 1.2em; }
  .backdrop { position: fixed; width: 100%; height: 100%; top: 0; background: rgba(0,0,0,.3); z-index: 1; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .mainNav.noMenu .toggleBtn { display: flex; margin-left: 1em; }
  .mainNav.noMenu .toggleBtn_line { display: flex; }
  .mainNav.noMenu .barNav { display: none; }
  .mainNav.noMenu .imgNav {
    top: -5px; height: 150%; overflow: hidden; display: flex;
    justify-content: flex-end; margin-right: 3em;
    box-shadow: 5px 5px 15px rgba(0,0,0,.75); border-radius: 5px;
  }
  .sideMenu {
    height: 100%; background-color: #a60500;
    box-shadow: 2px 0 5px rgba(0,0,0,.5);
    position: fixed; display: flex; flex-direction: column;
    justify-content: space-around; top: 0; left: 0;
    width: 20rem; max-width: 300px; z-index: 2; margin-top: 0;
  }
  .sideMenu .barNav { flex-direction: column; height: 20em; align-items: flex-start; padding: 0 0 10em 0; margin: 0; font-size: 1.5em; }
  .backdrop { position: fixed; width: 100%; height: 100%; top: 0; background: rgba(0,0,0,.3); z-index: 1; }
}

/* ── SLIDER ───────────────────────────────── */

.carrousel {
  margin-top: 90px;
}

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 400; 
  overflow: hidden;
}


.track{
  width:100%;
  height:100%;
  position:relative;
}

.slider a.previousButton,
.slider a.nextButton {
  font-size: 22px;
  line-height: 0;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all .3s linear;
  z-index: 2;
  padding: 10px;
  cursor: pointer;
}

.slider a.previousButton:hover,
.slider a.nextButton:hover {
  transform: translateY(-50%) scale(1.2);
}

.slider a.previousButton { left: 20px; }
.slider a.nextButton { right: 20px; }

polygon { fill: #a60500; }

.slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.slide.hidden { visibility: hidden; }

.slide.previous { left: -100%; }
.slide.current  { left: 0; }
.slide.next     { left: 100%; }

.slide.animateIn,
.slide.animateOut {
  transition: all 0.8s ease;
}

.slide.animateIn.previous,
.slide.animateIn.next {
  left:0;
  visibility:visible;
}

.slide.animateOut.previous { left:100%; }
.slide.animateOut.next { left:-100%; }

.slide picture,
.slide img{
  width:100%;
  height:100%;
  display:block;
}

.slide img{
  object-fit:cover;
}

/* responsive */
@media (max-width:768px){

  .slider{
    aspect-ratio:16/9;
  }
  .slide img{
    object-fit: cover;
    object-position: center;
  }

}

/* ── ABOUT ── */
#about {
  display: flex; flex-direction: row;
  justify-content: space-evenly; align-items: center;
  padding: 3rem 2rem; background: #fff; flex-wrap: wrap; gap: 2rem;
}
.Camiones { max-width: 45%; }
.Camiones img { width: 100%; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.historia { max-width: 50%; }
.historia .heading { color: #a60500; font-size: 1.8rem; margin-bottom: 1rem; }
.historia p { line-height: 1.8; margin-bottom: 1rem; color: #333; }

@media (max-width: 768px) {
  #about { flex-direction: column; }
  .Camiones, .historia { max-width: 100%; }
}

/* ── BRAND SLIDER ── */
.brandSlider {
  padding: 3rem 0; background: #f5f5f5;
  overflow: hidden; position: relative;
}
.brandSlider h2 { text-align: center; color: #a60500; margin-bottom: 2rem; font-size: 1.5rem; text-transform: uppercase; }
.brandSliderWrapper {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 1.5rem;
  padding: 0 2rem;
}
.brandCard {
  width: 200px; height: 200px;
  perspective: 1000px; cursor: pointer;
}
.brandCardInner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .6s;
}
.brandCard:hover .brandCardInner { transform: rotateY(180deg); }
.brandCardFront, .brandCardBack {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.brandCardFront {
  background: #fff; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.brandCardFront img { width: 90%; height: 90%; object-fit: contain; }
.brandCardBack {
  background: #a60500; color: white;
  transform: rotateY(180deg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 15px; text-align: center;
}
.brandCardBack h1 { font-size: 1.1rem; margin-bottom: .5rem; }
.brandCardBack p { font-size: .7rem; margin-bottom: 1rem; line-height: 1.4; }
.brandCardBack button { padding: 8px 20px; font-size: .7rem; }

/* ── BRANCHES ── */
.branchWrapper { padding: 3rem 2rem; background: #fff; }
.branchSection { max-width: 900px; margin: 0 auto; }
.branches { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; border: none; }
.branchName { flex: 1; min-width: 200px; }
.branchName h2 { color: #a60500; font-size: 1.5rem; margin-bottom: .5rem; }
.branchDetails p { color: #555; line-height: 1.6; }
.branchMap { width: 100%; min-width: 280px; flex: 2; height: 300px; border: none; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,.1); }

/* ── CONTACT ── */
.contact {
  background: #a60500; color: white;
  padding: 3rem 2rem; text-align: center;
}
.contact h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact .tip { margin-bottom: 1.5rem; opacity: .85; }
.contact ul { padding: 0; margin: 0; }
.contact ul li { margin-bottom: .8rem; font-size: 1rem; }
.contact ul li .enlace { color: #f9d342; margin-left: .5rem; font-weight: bold; }
.contact ul li .enlace:hover { text-decoration: underline; }

/* ── CAPACITACIONES ── */
.capacitaciones {
  background: #333; color: white;
  padding: 3rem 2rem; text-align: center;
}
.capacitaciones h1 { font-size: 1.8rem; margin-bottom: 1rem; color: #f9d342; }
.capacitaciones div { opacity: .8; }

/* ── FOOTER ── */
.footer {
  background: #1a1a1a; color: white;
  padding: 2rem; display: flex;
  flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1.5rem;
}
.footerContact { padding: 0; margin: 0; }
.contactItem .name { font-weight: bold; font-size: 1rem; margin-bottom: .25rem; }
.contactItem .address, .contactItem .phone { font-size: .85rem; opacity: .7; }
.mediaContainer { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.icon { width: 40px; height: 40px; object-fit: contain; }
.socialLink { display: block; transition: transform .3s; }
.socialLink:hover { transform: scale(1.15); }

/* ── TRAININGS ── */

.trainingWrapper{
  display:flex;
  gap:40px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:40px;
}

.trainingCard{
  background:#444;
  padding:30px;
  border-radius:10px;
  width:320px;
  text-align:left;
  box-shadow:0 10px 25px rgba(0,0,0,.3);
}

.trainingCard h2{
  color:#f9d342;
  margin-bottom:10px;
}

.trainingHour{
  font-size:14px;
  opacity:.8;
  margin-bottom:20px;
}

.trainingDates{
  padding-left:18px;
  margin-bottom:20px;
}

.trainingDates li{
  margin-bottom:6px;
}

.trainingBtn{
  display:inline-block;
  background:#a60500;
  padding:10px 22px;
  border-radius:30px;
  font-size:14px;
  font-weight:bold;
}