/* =====================================================
   KAIROS TRANSPORTES - Estilos principales
   ===================================================== */

/* Variables CSS */
:root {
  /* Colores principales - tema oscuro */
  --color-primary: #c9a227;
  --color-primary-dark: #a88620;
  --color-secondary: #1a1a2e;
  --color-dark: #0f0f1a;
  --color-light: #f8f9fa;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-muted: #999;

  /* Fondos */
  --bg-dark: #1a1a2e;
  --bg-darker: #0f0f1a;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;

  /* Tipografia */
  --font-primary: "Raleway", sans-serif;
  --font-secondary: "Open Sans", sans-serif;

  /* Espaciado */
  --section-padding: 80px 0;
  --section-padding-sm: 60px 0;
}

/* =====================================================
   PRELOADER
   ===================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  max-width: 200px;
  margin-bottom: 30px;
  animation: fadeInDown 1s ease;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Secciones */
section {
  padding: var(--section-padding);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--color-light);
}

.section-darker {
  background-color: var(--bg-darker);
  color: var(--color-light);
}

.section-light {
  background-color: var(--bg-light);
}

/* Botones personalizados */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  padding: 12px 30px;
}

.btn-outline-light:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
}

/* Utilidades */
.text-primary {
  color: var(--color-primary) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

/* =====================================================
   SECTION TITLE
   ===================================================== */
.section-title {
  margin-bottom: 50px;
}

.section-title .section-line {
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto 20px;
}

.section-title .section-subtitle {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title .section-heading {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

/* Light variant for dark backgrounds */
.section-title-light .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section-title-light .section-heading {
  color: var(--color-light);
}

/* =====================================================
   NAVBAR / HEADER
   ===================================================== */
.navbar {
  padding: 15px 0;
  transition: all 0.4s ease;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

/* Logos */
.logo-img {
  height: 45px;
  width: auto;
  transition: all 0.4s ease;
  border: none;
  outline: none;
}

.navbar-brand {
  border: none;
  outline: none;
}

.navbar-brand:focus {
  outline: none;
  box-shadow: none;
}

.logo-white {
  display: block;
}

.logo-dark {
  display: none;
}

.navbar.scrolled .logo-white {
  display: none;
}

.navbar.scrolled .logo-dark {
  display: block;
}

.navbar.scrolled .logo-img {
  height: 40px;
}

/* Nav Links */
.nav-link {
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px !important;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 18px;
  right: 18px;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary) !important;
}

/* Estado con scroll */
.navbar.scrolled .nav-link {
  color: var(--color-text) !important;
  text-shadow: none;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--color-primary) !important;
}

/* Custom Toggler */
.navbar-toggler {
  border: none;
  padding: 10px;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-icon {
  display: flex;
  flex-direction: column;
  width: 28px;
  height: 20px;
  justify-content: space-between;
}

.toggler-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .toggler-icon span {
  background-color: var(--color-text);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100%;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  animation: kenburns 25s ease infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 26, 0.7) 0%,
    rgba(15, 15, 26, 0.5) 40%,
    rgba(15, 15, 26, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  padding-top: 40px;
}

/* Logo */
.hero-logo-container {
  margin-bottom: 25px;
}

.hero-logo {
  max-width: 450px;
  width: 85vw;
  height: auto;
  animation: fadeInDown 1s ease forwards;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Quick Nav Buttons */
.hero-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 120px;
}

.hero-nav-btn:hover {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(201, 162, 39, 0.3);
}

.hero-nav-btn i {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hero-nav-btn span {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Button */
.hero-cta {
  animation: fadeInUp 1s ease 0.7s forwards;
  opacity: 0;
}

.hero-cta .btn {
  padding: 18px 40px;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

.hero-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 162, 39, 0.5);
}

/* Carousel Indicators */
.hero .carousel-indicators {
  bottom: 100px;
  z-index: 15;
}

.hero .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.hero .carousel-indicators button.active {
  background-color: var(--color-primary);
  transform: scale(1.3);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-indicator a:hover {
  color: var(--color-primary);
}

.scroll-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.scroll-indicator i {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
#about {
  background-color: var(--bg-dark);
  color: var(--color-light);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.about-logo {
  max-width: 180px;
}

.company-info {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.company-info p {
  margin-bottom: 0;
  line-height: 1.8;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */
#testimonials,
.testimonials {
  background-color: var(--bg-dark);
  color: var(--color-light);
}

.testimonial-item {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin: 20px auto;
  max-width: 800px;
}

.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 25px;
  object-fit: cover;
  border: 4px solid var(--color-primary);
}

.testimonial-quote {
  position: relative;
  margin-bottom: 25px;
  padding: 0 20px;
}

.testimonial-quote .quote-icon {
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.5;
  display: block;
  margin-bottom: 15px;
}

.testimonial-quote p {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 0;
}

.testimonial-author h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-light);
  margin-bottom: 5px;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* Carousel controls for testimonials */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
  left: -60px;
}

#testimonialCarousel .carousel-control-next {
  right: -60px;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
  background-color: var(--color-primary-dark);
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
  filter: brightness(0);
}

#testimonialCarousel .carousel-indicators {
  bottom: -50px;
}

#testimonialCarousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
}

#testimonialCarousel .carousel-indicators button.active {
  background-color: var(--color-primary);
}

@media (max-width: 991px) {
  #testimonialCarousel .carousel-control-prev {
    left: -10px;
  }

  #testimonialCarousel .carousel-control-next {
    right: -10px;
  }
}

@media (max-width: 768px) {
  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    display: none;
  }

  .testimonial-quote p {
    font-size: 1rem;
  }
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  padding: 60px 0;
}

.stat-item {
  padding: 20px 10px;
  text-align: center;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--color-dark);
  margin-bottom: 15px;
  opacity: 0.8;
}

.stat-value {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-dark);
  opacity: 0.8;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
#services {
  background-color: var(--bg-light);
}

.service-card {
  position: relative;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.service-front,
.service-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.service-front {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: var(--color-light);
}

.service-back {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-dark);
  transform: rotateY(180deg);
  overflow-y: auto;
}

.service-card:hover .service-front {
  transform: rotateY(-180deg);
}

.service-card:hover .service-back {
  transform: rotateY(0);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.service-icon-small {
  font-size: 1.5rem;
  margin-bottom: 10px;
  opacity: 0.7;
}

.service-front h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.4;
}

.service-back h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-back p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.service-back .description-en {
  font-style: italic;
  opacity: 0.8;
  font-size: 0.85rem !important;
}

/* =====================================================
   OBJECTIVES SECTION
   ===================================================== */
#arrives {
  background-color: var(--bg-dark);
  color: var(--color-light);
}

.objective-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 35px 30px;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.objective-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
}

.objective-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 25px;
}

.objective-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  border-radius: 50%;
  padding: 25px;
}

.objective-image img {
  width: 100%;
  height: auto;
  filter: brightness(0);
}

.objective-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  text-align: left;
}

.objective-features li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.objective-features li:last-child {
  border-bottom: none;
}

.objective-features i {
  color: var(--color-primary);
  margin-right: 12px;
  font-size: 0.9rem;
}

.objective-features span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.objective-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* =====================================================
   FLEET GALLERY SECTION
   ===================================================== */
#work {
  background-color: var(--bg-white);
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-text);
  padding: 10px 25px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  transition: all 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.btn-unit-info,
.btn-zoom,
.btn-gallery {
  background-color: var(--color-primary);
  color: var(--color-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-unit-info:hover,
.btn-zoom:hover,
.btn-gallery:hover {
  background-color: var(--color-light);
  transform: scale(1.05);
}

.gallery-caption {
  padding: 20px;
  background-color: var(--bg-dark);
  color: var(--color-light);
}

.gallery-caption h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* Modal Styles */
.modal-content {
  background-color: var(--bg-dark);
  color: var(--color-light);
  border: none;
  border-radius: 15px;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
}

.modal-title {
  color: var(--color-primary);
  font-weight: 600;
}

.btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 25px;
}

.unit-details h6 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.unit-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.unit-specs li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.unit-specs li strong {
  color: var(--color-primary);
  margin-right: 10px;
}

.unit-gallery {
  border-radius: 10px;
  overflow: hidden;
}

.unit-gallery .carousel-item img {
  max-height: 400px;
  object-fit: contain;
  background-color: #000;
}

/* Gallery Modal Carousel */
.modal-xl .carousel {
  border-radius: 10px;
  overflow: hidden;
}

.modal-xl .carousel-item img {
  max-height: 70vh;
  object-fit: contain;
  background-color: #000;
}

.modal-xl .carousel-control-prev,
.modal-xl .carousel-control-next {
  width: 10%;
  opacity: 0.8;
}

.modal-xl .carousel-control-prev:hover,
.modal-xl .carousel-control-next:hover {
  opacity: 1;
}

.modal-xl .carousel-control-prev-icon,
.modal-xl .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 1.5rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background:
    linear-gradient(
      135deg,
      rgba(201, 162, 39, 0.95) 0%,
      rgba(168, 134, 32, 0.95) 100%
    ),
    url("../img/background.jpg") center/cover no-repeat;
  padding: 80px 0;
}

.cta-content {
  padding: 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.15rem;
  color: var(--color-dark);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.btn-cta {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: white;
  font-weight: 600;
  padding: 15px 40px;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-cta:hover {
  background-color: white;
  border-color: white;
  color: var(--color-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
#contact {
  background-color: var(--bg-dark);
  color: var(--color-light);
}

.contact-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* Form Styles */
.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.required {
  color: var(--color-primary);
}

#contact .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-light);
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#contact .form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
  color: var(--color-light);
}

#contact .form-control.is-invalid {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

#contact textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  margin-bottom: 15px;
}

.form-message.success {
  color: #28a745;
  padding: 15px;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 8px;
}

.form-message.error {
  color: #dc3545;
  padding: 15px;
  background-color: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
}

/* Contact Info */
.contact-info {
  margin-top: 10px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.3rem;
  color: var(--color-dark);
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 8px;
}

.contact-details p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  line-height: 1.7;
}

.contact-details a {
  color: var(--color-primary);
}

.contact-details a:hover {
  text-decoration: underline;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  background-color: #25d366;
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #1da851;
  transform: translateY(-2px);
  text-decoration: none !important;
}

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-section {
  padding: 0;
}

#map-canvas {
  width: 100%;
  height: 400px;
  background-color: var(--bg-darker);
  display: block;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    var(--bg-darker) 100%
  );
  color: var(--color-light);
  padding: 60px 0 30px;
}

.footer-logo {
  max-width: 250px;
  height: auto;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.developer-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.developer-logo:hover {
  opacity: 1;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--color-primary);
  color: var(--color-dark);
  border-radius: 4px;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

#back-to-top a:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1da851;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-float i {
  animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.whatsapp-tooltip {
  position: absolute;
  left: 70px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.75rem;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

/* Mobile Navigation */
@media (max-width: 991px) {
  .navbar {
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
  }

  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
  }

  .navbar-collapse {
    background-color: rgba(26, 26, 46, 0.98);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }

  .navbar.scrolled .navbar-collapse {
    background-color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.95rem;
    text-shadow: none;
  }

  .navbar.scrolled .nav-link {
    border-bottom-color: rgba(0, 0, 0, 0.05);
  }

  .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .nav-link::after {
    display: none;
  }

  .logo-img {
    height: 38px;
  }

  /* Hero */
  .hero-logo {
    max-width: 350px;
  }

  .hero-tagline {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  .hero-nav-btn {
    padding: 15px 20px;
    min-width: 100px;
  }

  .hero-nav-btn i {
    font-size: 1.5rem;
  }

  .hero-nav-btn span {
    font-size: 0.75rem;
  }

  /* Objectives */
  .objective-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.75rem;
  }

  section {
    padding: var(--section-padding-sm);
  }

  .section-title .section-heading {
    font-size: 2rem;
  }

  .section-title {
    margin-bottom: 40px;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding-top: 60px;
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .hero-nav {
    gap: 10px;
    margin-bottom: 30px;
  }

  .hero-nav-btn {
    padding: 12px 15px;
    min-width: 80px;
    border-radius: 10px;
  }

  .hero-nav-btn i {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }

  .hero-nav-btn span {
    font-size: 0.7rem;
  }

  .hero-cta .btn {
    padding: 15px 30px;
    font-size: 0.9rem;
  }

  .hero .carousel-indicators {
    bottom: 80px;
  }

  .scroll-text {
    display: none;
  }

  /* About */
  .about-logo {
    max-width: 150px;
    margin: 0 auto;
    display: block;
  }

  .company-info {
    text-align: center;
    margin-top: 1rem;
  }

  /* Stats */
  .stat-value {
    font-size: 1.8rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Services */
  .service-card {
    height: 250px;
  }

  .service-front,
  .service-back {
    padding: 20px 15px;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  /* Contact */
  .contact-subtitle {
    font-size: 1.3rem;
  }

  /* Map */
  #map-canvas {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-nav-btn {
    padding: 10px 12px;
    min-width: 70px;
  }

  .hero-nav-btn span {
    font-size: 0.65rem;
  }
}

/* Disable flip on touch devices - show all info */
@media (hover: none) {
  .service-front {
    transform: none !important;
  }

  .service-back {
    transform: none !important;
    position: relative;
    margin-top: 20px;
    height: auto;
  }

  .service-card {
    height: auto;
  }
}
