/* --- HERO --- */
* {
  font-family: tcomMed, HelveticaNeueMedium, Helvetica Neue light, Arial, sans-serif;
}

.hero-t77 {
  background-image: url('../img/t77/t77_banner.jpg');
  background-size: cover;
  background-position: center;
  height: 63vh;
  position: relative;
  color: white;
  display: flex;
  align-items: end;
}

.hero-box .line {
  height: 2px;
  width: 40px;
  background: #fff;
  margin-bottom: 15px;
}

.hero-box .t55-text {
  font-family: tcomMed, HelveticaNeueMedium, Helvetica Neue light, Arial, sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #fff;
}

.hero-box a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-box a:first-of-type {
  border-top: none;
}

.hero-box a:hover {
  text-decoration: underline;
  color: #ffc107;
}

/* --- NAV LINKS SUBRAYADO --- */
.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link.active {
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link.active::after {
  transform: scaleX(1);
}

/* --- COLOR BUTTONS SECCIÓN TIPO TOYOTA --- */
.color-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #00000033;
}

/* --- TABS EXTERIOR / INTERIOR --- */
.tab-selector {
  border: none;
  border-bottom: 3px solid #e0e0e0;
  border-radius: 0;
  background: none;
  font-size: 1rem;
  padding: 6px 20px 4px 20px;
  margin: 0;
  transition: all 0.3s ease;
}

.tab-selector:hover {
  border-color: #999;
}

.tab-selector.active {
  border-bottom: 3px solid #000;
}

/* --- INDICADORES CARROUSEL --- */
.indicator-bar {
  appearance: none;
  background-color: #000;
  opacity: 0.2;
  border: none;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator-bar.active {
  width: 40px;
  height: 4px;
  opacity: 1;
  background-color: #000;
  border-radius: 8px;
}

.indicator-bar:hover {
  opacity: 0.5;
}

/* --- BOOTSTRAP CAROUSEL INDICATOR OVERRIDE --- */
.carousel-indicators .indicator-bar {
  width: 20px;
  height: 2px;
  background-color: #000;
  opacity: 0.2;
  border: none;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.tech-t55-fullscreen,
.carousel-item,
.card-feature {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.carousel-fade .carousel-item {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Optimizar composición GPU */
.tech-overlay,
.carousel-inner {
  transform: translateZ(0);
}

.carousel-indicators .indicator-bar.active {
  width: 40px;
  opacity: 1;
  background-color: #000;
}

.carousel-indicators .indicator-bar:hover {
  opacity: 0.6;
}

/* --- Tarjetas estilo Toyota (cuadradas con imagen y texto) --- */
@media (min-width: 992px) {
  .card-feature .text {
    padding: 3.5rem;
  }
}

.card-feature {
  background-color: #e3e4e1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease;
}

.card-feature:hover {
  transform: scale(1.01);
}

.card-feature .text {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-feature h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card-feature img {
  width: 100%;
  object-fit: cover;
  height: 180px;
  display: block;
}

.card-feature .info-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background-color: #000;
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 12px;
  opacity: 0.7;
}


.tech-t55-fullscreen {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.tech-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.tech-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 2;
}

.tech-list li {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 16px;
  border-left: 2px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-list li:hover,
.tech-list li.active {
  border-color: #ffc107;
  transform: translateX(3px);
}



.color-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  position: relative;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.color-btn .color-ring {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 44px;
  height: 44px;
  border: 2px solid #000;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
}

.color-btn .checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 14px;
  color: #fff;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.color-btn.active .color-ring {
  opacity: 1;
  transform: scale(1);
}

.color-btn.active .checkmark {
  opacity: 1;
}

.color-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #00000033;
}

.color-btn[style*="#ffffff"] {
  box-shadow: inset 0 0 0 1.5px #888;
  /* Borde gris sutil solo para el botón blanco */
}

.model-card+.model-card {
  border-left: 1px solid #ccc;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-t55 {
    height: 75vh;
    padding: 0;
    justify-content: flex-start;
  }

  .hero-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 360px;
    padding: 20px;
    text-align: center;
  }

  .hero-box .t55-text {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .hero-box .line {
    margin: 10px auto;
  }

  .hero-box a {
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
  }

  section {
    scroll-margin-top: 80px;
  }

  #galleryTabs {
    flex-direction: row !important;
    justify-content: center !important;
  }

  .tab-selector {
    font-size: 0.95rem;
    padding: 5px 12px 3px 12px;
  }

  .carousel-item img {
    max-height: 300px !important;
    object-fit: cover;
  }

  #galeria {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 576px) {
  h2.fs-3 {
    font-size: 1.4rem;
  }

  #carImage {
    max-height: 240px !important;
  }
}

/* btn animated */
.animated-btn {
  position: relative;
  min-height: 40px;
  padding: 9pt 2pc;
  transform-style: preserve-3d;
  background: white;
  color: black;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  font-family: tcomMed, HelveticaNeueMedium, Helvetica Neue Medium, Arial, sans-serif;
  border: var(--bs-border-width) var(--bs-border-style) #000 !important
}

.animated-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.btn-text {
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.arrow {
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  z-index: 2;
}

.arrow svg {
  width: 10px;
  height: 10px;
  fill: white;
}

.animated-btn:hover .btn-text {
  transform: translateX(-10px);
}

.animated-btn:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}