/* ---- FONDO Y BASE ---- */
body {
  background: linear-gradient(rgba(10,10,15,0.85), rgba(10,10,15,0.80)), url('../img/fondo-racing.jpg') center center/cover no-repeat fixed;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
}

a, a:visited { color: #fbb034; }
a:hover { color: #ff4632; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #181d27 !important;
}

/* ---- HERO ---- */
.hero {
  min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-content {
  background: rgba(0,0,0,0.7); 
  padding: 2.5rem 3rem; 
  border-radius: 2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  animation: fadeInDown 1.1s cubic-bezier(.28,1.55,.68,1) 0.4s both;
  text-align: center;
  max-width: 510px;
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-40px);}
  100% { opacity: 1; transform: none;}
}
h1, h2, .hero-content h1 {
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif !important;
  letter-spacing: 2px;
}

/* ---- SOCIAL ICONS ---- */
.social-icons a {
  transition: transform 0.2s, color 0.2s;
  margin-left: 0.6rem;
  font-size: 1.25rem;
}
.social-icons a:hover {
  transform: scale(1.18) rotate(-6deg);
  color: #fff600;
}

/* ---- CARDS ---- */
.card {
  background: #232b38;
  border: none;
  border-radius: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.3rem;
  transition: transform 0.22s cubic-bezier(.22,.68,.43,1.19), box-shadow 0.2s;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  text-align: center;
}
.card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 12px 36px rgba(0,0,0,0.24);
}
.card-title {
  color: #fbb034 !important;
  font-weight: bold;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.card .svg-icon {
  width: 40px; height: 40px; margin-bottom: 0.7rem;
  color: #fbb034;
  transition: filter 0.2s;
}
.card:hover .svg-icon {
  filter: brightness(1.2);
}
.card-text {
  color: #fff !important;
  opacity: 0.88;
}

/* ---- BOTONES ---- */
.btn-warning, .btn-outline-warning {
  transition: filter 0.2s, box-shadow 0.2s;
  color: #181d27 !important;
  font-weight: bold;
}
.btn-warning:hover, .btn-outline-warning:hover {
  filter: brightness(1.15) drop-shadow(0 4px 18px #fbb03444);
  color: #000 !important;
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: rgba(24,29,39,0.88);
  border-radius: 1.2rem;
  box-shadow: 0 2px 14px #0002;
  max-width: 650px;
  margin: 3rem auto 0 auto;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
}

/* ---- FOOTER ---- */
.footer {
  background: #181d27;
  color: #fff;
  padding: 2rem 0 1rem 0;
  text-align: center;
  margin-top: 3rem;
}
.footer a { color: #fbb034; }

/* ---- WHATSAPP FLOTANTE ---- */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
}
.whatsapp-float a {
  background: #25d366; color: #fff; padding: 15px 18px; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ---- SCROLL TO TOP ---- */
#scrollTopBtn {
  display:none;position:fixed;bottom:40px;right:40px;z-index:999;background:#fbb034;border:none;border-radius:50%;padding:14px;
  box-shadow: 0 3px 16px #0006;
}
#scrollTopBtn i {font-size:1.5rem;color:#181d27;}

/* ---- IMAGENES GENERALES ---- */
img { border-radius: 0.7rem; max-width: 100%; height: auto; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .hero-content {padding: 1.2rem;}
  .card {margin-bottom: 1.2rem;}
  .footer {font-size: 0.98rem;}
}

.card .svg-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.7rem auto;  /* Centrado horizontal y separación inferior */
  display: block;              /* Esto centra el SVG como un bloque */
}

.btn-outline-warning {
  color: #fff !important;
  border-color: #fbb034 !important;
}
.btn-outline-warning:hover, .btn-outline-warning:focus {
  color: #181d27 !important;
  background-color: #fbb034 !important;
  border-color: #fbb034 !important;
}

/* Haz el botón del newsletter más ancho y grande */
.newsletter-section .btn {
  min-width: 150px;
  padding: 0.6rem 2.1rem;
  font-weight: bold;
  font-size: 1.07rem;
}
@media (max-width: 768px) {
  .newsletter-section .btn {
    width: 100%;
    margin-top: 0.8rem;
  }
  .newsletter-section .form-control {
    width: 100%;
    margin-bottom: 0.8rem;
  }
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 5px;
  background: linear-gradient(90deg, #fbb034 60%, #fff200 100%);
  box-shadow: 0 2px 10px #fbb03499;
  z-index: 2000;
  transition: width 0.5s cubic-bezier(.55,.09,.68,.53);
}

/*
.enlaces-interes a {
  color: #ffe566;
  text-decoration: none;
  transition: color .2s;
}
.enlaces-interes a:hover {
  color: #fff222;
  text-decoration: underline;
}
.enlaces-interes h5 {
  font-weight: 700;
}*/

/* ---- MENÚ DE NAVEGACIÓN ---- */
.navbar-nav .nav-link {
  font-size: 1.13rem;      /* Tamaño igual al resto del sitio, ajusta si deseas */
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-left: 1rem;
  padding-right: 1rem;
}



.gallery-thumb {
  width: 100%;
  aspect-ratio: 1/1; /* Hace el contenedor cuadrado */
  overflow: hidden;
  border-radius: 1.2rem;
  background: #232b38;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Rellena el cuadrado, recorta si es necesario */
  border-radius: 1.2rem;
  transition: transform 0.18s;
}
.gallery-thumb img:hover {
  transform: scale(1.07);
}