/* ========================================
   MOTOSPEEDY - Main Stylesheet
   Modular CSS Structure
   ======================================== */

/* Import all modules (order matters!) */
@import '_variables.css';
@import '_reset.css';
@import '_layout.css';
@import '_components.css';
@import '_nav.css';
@import '_sections.css';
@import '_servicios.css';
@import '_blog.css';
@import '_slider-modal.css';
@import '_button-flotante.css';
@import '_preloader.css';



/* Page-specific styles that didn't fit in modules */
/* These can be moved to separate files as needed */


body {
  padding-top: 0px;
}



/* ===== ESTIMATOR (Wizard) ===== */
.estimator-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(12, 16, 22, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.estimator-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.estimator-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-logo {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 1.1rem;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .4);
  color: #9be8ff;
  transition: all .2s ease;
}

.header-back:hover {
  background: rgba(34, 211, 238, .2);
  transform: translateY(-1px);
}

.estimator-hero {
  padding: clamp(32px, 6vw, 72px) 0;
  background: radial-gradient(1200px 600px at 15% -30%, rgba(226, 58, 58, .18), transparent 60%);
}

.estimator-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
}

.hero-copy p {
  margin: 0 0 18px;
  color: rgba(235, 239, 245, .85);
  max-width: 40ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .28);
  color: #9be8ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
}

.hero-visual {
  flex: 0 0 clamp(220px, 35vw, 360px);
  display: flex;
  justify-content: center;
}

.hero-illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65)),
    url('assets/img/logo-ride-baires.webp');
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: auto 8% 8% auto;
  max-width: 55%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  transform: translateZ(0);
}

.hero-image--float {
  animation: hero-float var(--float-dur, 5000ms) ease-in-out infinite;
}

@keyframes hero-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(calc(var(--float-amp, 8px) * -1));
  }

  100% {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero-illustration {
    aspect-ratio: 16/10;
    border-radius: 22px;
  }
}

.hero-gear {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  animation: gear-spin 12s linear infinite;
}

.hero-gear--sm {
  width: 38%;
  height: 38%;
  top: 18%;
  left: 16%;
}

.hero-gear--lg {
  width: 58%;
  height: 58%;
  bottom: 12%;
  right: 10%;
  animation-direction: reverse;
  animation-duration: 18s;
}

.hero-speedline {
  position: absolute;
  height: 2px;
  width: 65%;
  background: linear-gradient(90deg, transparent, rgba(226, 58, 58, .6), transparent);
  opacity: .4;
}

.hero-speedline--one {
  top: 42%;
  left: -10%;
  transform: rotate(6deg);
}

.hero-speedline--two {
  bottom: 28%;
  right: -10%;
  transform: rotate(-8deg);
}

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

.estimator-main {
  display: block;
}

.wizard-container {
  padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 92px);
}

.wizard-card {
  background: rgba(13, 17, 24, .82);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: clamp(28px, 4.5vw, 44px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.wizard-progress {
  margin-bottom: 16px;
  height: 10px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  overflow: hidden;
}

.wizard-progress>div {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #22d3ee);
  transition: width .35s ease;
}

.wizard-step {
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .85rem;
}

.wizard-error {
  background: rgba(226, 58, 58, .18);
  border: 1px solid rgba(226, 58, 58, .45);
  color: #ffdcdc;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.wizard-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
}

.subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  color: var(--muted);
}

.subhead__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .28);
  color: #9be8ff;
}

.subhead p {
  margin: 0;
}

.wizard-card p.muted {
  margin: 0 0 14px;
}

.wizard-card .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px) {
  .wizard-card .grid2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.wizard-card select,
.wizard-card input {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #eaf2ff;
}

.wizard-card input::placeholder {
  color: #9aa6b2;
}

.wizard-nav {
  margin-top: clamp(22px, 3.2vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.wizard-nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .04);
  color: #e6f3ff;
  transition: all .2s ease;
}

.wizard-nav .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, .45);
  color: #baf1ff;
}

.wizard-nav .btn.primary {
  background: linear-gradient(120deg, #ef4444, #f97316);
  border-color: rgba(239, 68, 68, .6);
  color: #fff;
}

.wizard-nav .btn.primary:hover {
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 68, 68, .28);
}

.rb-stage-preview {
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  padding: 6px;
}

.rb-stage-preview .rb-card {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  transition: all .2s ease;
  padding: 12px;
}

.rb-stage-preview .rb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, .4);
}

.rb-stage-preview .rb-card.is-active {
  border-color: rgba(34, 211, 238, .6);
  box-shadow: 0 12px 24px rgba(34, 211, 238, .18);
}

.estimator-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(9, 12, 18, .9);
  padding: clamp(32px, 5vw, 64px) 0;
}

.estimator-footer__inner {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
}

.estimator-footer a {
  color: rgba(155, 232, 255, .85);
}

.estimator-footer a:hover {
  color: #22d3ee;
}

.hero-copy,
.hero-visual,
.wizard-card,
.estimator-footer__inner {
  animation: fade-up .4s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .estimator-hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
  }

  .estimator-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wizard-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-nav .btn {
    justify-content: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}