@font-face {
  font-family: 'Phrasa Heavy Italic';
  src: url(fonts/Phrasa-HeavyItalic.ttf) format('truetype');
  font-weight: normal;
  font-style: italic
}

:root {
  --primary-color: #0D2B4E;
  --secondary-color: #FCA311;
  --text-light: #FDFDFD;
  --text-dark: #212529;
  --bg-light: #F8F9FA;
  --white: #FFF;
  --font-family: 'Poppins', sans-serif;
  --font-footer: 'Phrasa Heavy Italic', sans-serif;
  --transition-speed: 0.4s;
  --transition-curve: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 10px 30px rgba(0, 0, 0, .07);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, .1)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-family);
  line-height: 1.7;
  background-color: var(--primary-color);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  transition: padding-right .3s ease
}

body.menu-is-open,
body.lightbox-open {
  overflow: hidden
}

.spinner-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity .75s ease;
  pointer-events: none
}

.spinner-wrapper.hidden {
  opacity: 0
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(252, 163, 17, .3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: auto;
  padding: 0 20px
}

img {
  max-width: 100%;
  height: auto
}

a {
  text-decoration: none;
  transition: color var(--transition-speed) ease
}

ul {
  list-style: none
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #CED4DA;
  max-width: 600px;
  margin: 0 auto 4rem
}

.section-bg {
  background-color: #1a3a5e;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-curve);
  border: 2px solid transparent
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(252, 163, 17, .4)
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: #ffb742;
  box-shadow: 0 7px 20px rgba(252, 163, 17, .5)
}

.btn-primary i {
  margin-right: 8px
}

.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 20px 0;
  background-color: transparent;
  transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, padding-right .3s ease
}

body.menu-is-open .main-header {
  z-index: 1002
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.header-logo img {
  max-height: 120px;
  transition: max-height var(--transition-speed) ease, filter var(--transition-speed) ease
}

body.scrolled .main-header {
  background-color: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow)
}

body.scrolled .header-logo img {
  max-height: 80px
}

body.menu-is-open.scrolled .main-header {
  background-color: transparent;
  box-shadow: none
}

.main-nav {
  display: none
}

@media (min-width:769px) {
  .main-nav {
    display: block
  }

  .main-nav ul {
    display: flex;
    gap: 40px
  }

  .main-nav a {
    color: var(--text-light);
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed) ease
  }

  body.scrolled .main-nav a {
    color: var(--primary-color)
  }

  .main-nav a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color)
  }
}

.mobile-menu-toggle {
  display: block;
  width: 30px;
  height: 24px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002
}

.mobile-menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  position: absolute;
  left: 0;
  border-radius: 3px;
  transition: transform var(--transition-speed) var(--transition-curve), top var(--transition-speed) var(--transition-curve), background-color var(--transition-speed) ease
}

body.scrolled .mobile-menu-toggle .bar {
  background-color: var(--primary-color)
}

body.menu-is-open .mobile-menu-toggle .bar {
  background-color: var(--text-light)
}

body.scrolled.menu-is-open .mobile-menu-toggle .bar {
  background-color: var(--primary-color)
}

.mobile-menu-toggle .bar:nth-child(1) {
  top: 0
}

.mobile-menu-toggle .bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%)
}

.mobile-menu-toggle .bar:nth-child(3) {
  bottom: 0
}

body.menu-is-open .mobile-menu-toggle .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg)
}

body.menu-is-open .mobile-menu-toggle .bar:nth-child(2) {
  transform: scaleX(0)
}

body.menu-is-open .mobile-menu-toggle .bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg)
}

@media (min-width:769px) {
  .mobile-menu-toggle {
    display: none
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 43, 78, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, background-color var(--transition-speed) ease
}

.mobile-nav.mobile-nav--light {
  background: rgba(255, 255, 255, .7)
}

body.menu-is-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.mobile-nav ul {
  text-align: center
}

.mobile-nav li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--transition-curve), transform .5s var(--transition-curve)
}

.mobile-nav a {
  display: inline-block;
  color: var(--text-light);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  padding: 15px;
  transition: color var(--transition-speed) ease
}

.mobile-nav a:hover {
  color: var(--secondary-color)
}

.mobile-nav.mobile-nav--light a {
  color: var(--primary-color)
}

.mobile-nav.mobile-nav--light a:hover {
  color: var(--secondary-color)
}

body.menu-is-open .mobile-nav li {
  opacity: 1;
  transform: translateY(0)
}

body.menu-is-open .mobile-nav li:nth-child(1) {
  transition-delay: .1s
}

body.menu-is-open .mobile-nav li:nth-child(2) {
  transition-delay: .2s
}

body.menu-is-open .mobile-nav li:nth-child(3) {
  transition-delay: .3s
}

body.menu-is-open .mobile-nav li:nth-child(4) {
  transition-delay: .4s
}

body.menu-is-open .mobile-nav li:nth-child(5) {
  transition-delay: .5s
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  padding-top: 100px
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  will-change: transform
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: .7;
  z-index: 3
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 800px
}

#hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .3)
}

#hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto
}

#servicios,
#nosotros,
#vehiculos,
#reserva {
  padding: 100px 0
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem
}

.service-card {
  background: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: 1px solid #e9ecef;
  color: var(--text-dark)
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover)
}

.service-card .card-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  background-color: #fff8eb;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: .5rem
}

.feature-grid {
  display: grid;
  gap: 3rem;
  max-width: 900px;
  margin: auto
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 2rem
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse
}

.feature-item i {
  font-size: 3rem;
  color: var(--secondary-color);
  min-width: 60px;
  text-align: center
}

.feature-item h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: .5rem
}

.vehicle-gallery {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  gap: 1.5rem;
  justify-content: center;
  margin: auto
}

.thumbnail-container {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  background-color: #000
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease
}

.thumbnail-container:hover img {
  transform: scale(1.05)
}

.thumbnail-container::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 43, 78, .6);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none
}

.thumbnail-container:hover::after {
  opacity: 1
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto
}

.contact-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  color: var(--secondary-color)
}

.contact-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block
}

.contact-card span {
  display: block;
  color: #6c757d;
  font-size: .9rem
}

.contact-card strong {
  font-size: 1.2rem;
  font-weight: 600
}

footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0 30px
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 3rem
}

.footer-column h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: .5rem
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color)
}

.footer-column.about h4 {
  font-family: var(--font-footer);
  font-size: 2.5rem;
  border: none
}

.footer-column.about h4::after {
  display: none
}

.footer-column p,
.footer-column li {
  color: #CED4DA;
  margin-bottom: .8rem
}

.footer-column ul a,
.footer-column .contact-item span {
  color: #CED4DA;
  transition: color .3s ease, padding-left .3s ease
}

.footer-column ul a:hover {
  color: var(--secondary-color);
  padding-left: 5px
}

.footer-column .contact-item {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 1rem
}

.footer-column .contact-item i {
  color: var(--secondary-color);
  margin-top: 5px;
  width: 20px;
  text-align: center
}

.footer-socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 15px
}

.footer-socials a {
  color: var(--white);
  font-size: 1.5rem;
  transition: transform .3s ease, color .3s ease
}

.footer-socials a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px)
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem;
  color: #CED4DA
}

.footer-bottom p {
  margin: .25rem 0
}

.footer-bottom a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-speed)
}

.footer-bottom a:hover {
  color: var(--secondary-color)
}

.floating-social {
  position: fixed;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, .2);
  z-index: 98;
  transition: transform .3s ease, box-shadow .3s ease, right .3s ease
}

.floating-social:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 2px 6px 16px rgba(0, 0, 0, .3)
}

.floating-whatsapp {
  background-color: #25D366;
  bottom: 25px
}

.floating-facebook {
  background-color: #1877F2;
  bottom: 95px
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform .8s ease-out
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease
}

.lightbox.active {
  display: flex;
  opacity: 1
}

.lightbox-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.lightbox-content {
  position: relative;
  max-width: 700px;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: auto 20px
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 5px
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  z-index: 10001;
  background-color: rgba(0, 0, 0, .5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease
}

.lightbox-close:hover {
  transform: scale(1.1)
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  z-index: 10001;
  background-color: rgba(0, 0, 0, .4);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .3s ease
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, .7)
}

.lightbox-prev {
  left: 20px
}

.lightbox-next {
  right: 20px
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  background-color: rgba(0, 0, 0, .6);
  padding: .5rem 1rem;
  border-radius: 5px;
  z-index: 10001;
  text-align: center
}

.lightbox-counter {
  font-weight: 700;
  margin-bottom: 4px
}

.lightbox-caption {
  font-size: .9rem
}

.lightbox-loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  z-index: 10000;
  display: none
}

@media (max-width:850px) {
  .vehicle-gallery {
    grid-template-columns: repeat(2, 250px)
  }
}

@media (max-width:768px) {

  .feature-item,
  .feature-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 1rem
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%)
  }

  .footer-socials,
  .footer-column .contact-item {
    justify-content: center
  }
}

@media (max-width:580px) {
  .vehicle-gallery {
    grid-template-columns: 250px
  }
}