/*
    Paleta: Naranja (primary), Negro (dark), Blanco (light)
*/

/* ===== VARIABLES CSS GLOBALES ===== */
:root {
  --header-height: 3.5rem;

  /* Colores */
  --primary-color: #F97316; /* Naranja (Tailwind Orange 600) */
  --primary-color-alt: #EA580C; /* Naranja más oscuro (hover) */
  --dark-color: #0c0c0c; /* Negro profundo */
  --dark-color-alt: #1a1a1a; /* Negro más suave (para tarjetas) */
  --light-color: #F8F9FA; /* Blanco */
  --text-color: #D1D5DB; /* Gris claro (para texto) */
  --overlay-color: rgba(12, 12, 12, 0.85); /* Overlay oscuro para fondos */

  /* Tipografía */
  --body-font: 'Roboto', sans-serif;
  --title-font: 'Poppins', sans-serif;
  
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /* Z-index (control de capas) */
  --z-header: 100;
  --z-menu: 101;
  --z-tooltip: 10;
  --z-fixed: 1000; /* Scroll-up */
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--dark-color);
  color: var(--text-color);
  position: relative; /* Para el overlay de fondo */
}

/* Overlay y Fondo Global Fijo
  Se usa ::before para el overlay, permitiendo que el body tenga la imagen
  y el overlay se aplique sobre ella, pero debajo del contenido.
*/
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Imagen de fondo */
  background-image: url('img/fondoBody2.webp'); 
  background-size: cover;
  background-position: top center;
  background-attachment: fixed; /* Efecto Parallax Simple */
}
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--overlay-color); /* Overlay oscuro */
}

/* Estilos para pantallas chicas (celulares) */
@media (max-width: 768px) {
 body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), /* capa semitransparente */
    url('img/fondo-body-celulares.webp') center/cover no-repeat; /* tu imagen */
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* overlay extra, opcional */
  z-index: -1;
}

}
h1, h2, h3 {
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--light-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 768px) {
  body::after {
    background-color: rgba(12, 12, 12, 0.45); /* Menos oscuro en pantallas grandes */
  }
}

/* ===== LAYOUT REUTILIZABLE ===== */
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
  font-weight: 900;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Título alineado a la izquierda (usado en "Nosotros") */
.section__title-left {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* ===== BOTONES (CTA) ===== */
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.9rem 1.75rem;
  border-radius: 4px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: var(--normal-font-size);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s;
  min-height: 44px; /* Accesibilidad táctil */
  min-width: 44px; /* Accesibilidad táctil */
  text-align: center;
}

.button:hover {
  background-color: var(--primary-color-alt);
  border-color: var(--primary-color-alt);
  transform: translateY(-3px); /* Efecto hover */
}

.button--flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button--lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Botón secundario (borde naranja) */
.button--secondary {
  background-color: transparent;
  color: var(--primary-color);
}
.button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.button--full {
  width: 100%;
}


/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  background-color: transparent; /* Se hará sólido con JS */
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-header);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Estilo del header al hacer scroll (Añadido por JS) */
.header.scrolled {
  background-color: var(--dark-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--light-color);
}
.nav__logo span {
  color: var(--primary-color);
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--light-color);
  cursor: pointer;
}

/* Logo dentro del nav */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre logo y texto */
}

.nav__logo-img {
  width: 40px; /* tamaño del logo, ajustá según lo que te guste */
  height: auto;
  border-radius: 6px; /* opcional, para bordes suaves */
}


/* Menú móvil (Mobile-First) */
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto fuera de pantalla */
    background-color: var(--dark-color-alt);
    width: 80%;
    height: 100%;
    padding: 6rem 2rem 3rem;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }
}

/* Clase para mostrar menú (Añadida por JS) */
.show-menu {
  right: 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
}

.nav__link {
  font-family: var(--title-font);
  font-weight: 700;
  color: var(--light-color);
  transition: color 0.3s;
}
.nav__link:hover {
  color: var(--primary-color);
}

/* Botón "Reservar" en el menú */
.nav__link.button {
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}
.nav__link.button:hover {
    background-color: var(--primary-color-alt);
    color: var(--light-color);
}

.nav__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
}

@media screen and (min-width: 768px) {
    .nav__item .button--primary {
        margin-top: 0.5rem;
    }
}


/* ===== SECCIÓN HERO ===== */
.hero {
  height: 100vh; /* Alto completo */
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  /* Imagen de fondo (Reemplazar 'images/hero-motos.jpg') */
  background-image: url('images/hero-motos.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto Parallax */
}

/* Overlay solo para el Hero (más oscuro que el global) */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay más oscuro para el hero */
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
}

.hero__title {
  font-size: var(--h1-font-size);
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--light-color);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero__subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-family: var(--body-font);
}

.hero__description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  color: var(--light-color);
}

.hero__data {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__overlay {
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.1)
  );
}

.button--primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.button--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.button--primary:hover::after {
  left: 125%;
}

.hero__icon {
  position: absolute;
  bottom: 120px; /* sube la moto al nivel del botón */
  right: 60px;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.9;
  animation: floatMoto 3s ease-in-out infinite;
}

@media screen and (max-width: 768px) {
  .hero__icon {
    display: none;
  }
}



@keyframes floatMoto {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-15px); }
}



/* ===== SECCIÓN PLANES ===== */
.planes__container {
  grid-template-columns: 1fr; /* 1 columna en móvil */
  gap: 2rem;
}

.plan__card {
  background-color: var(--dark-color-alt);
  border: 1px solid #333;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Asegura que la lista no empuje el botón fuera de lugar */
.plan__list {
  flex-grow: 1;
}


.plan__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Tarjeta destacada */
.plan__card--highlight {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}


.plan__badge {
    position: absolute;
    top: 20px; /* Ajustá según tu diseño */
    right: -40px; /* Ajustá según tu diseño */
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.3rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    transform: rotate(45deg);
    
    text-align: center;

    /* ✅ Asegura que el texto esté perfectamente centrado */
    display: flex;
    justify-content: center;
    align-items: center;

    /* ✅ Evita que el texto se mueva por el ángulo */
    transform-origin: center;
}


.plan__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.plan__icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.plan__title {
  font-size: var(--h3-font-size);
  color: var(--light-color);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.plan__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
  position: relative;
}

.plan__item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px; /* Alineación */
}

.button i {
  margin-right: 0.5rem;
  font-size: 1rem;
}


/* Estilos generales del ícono */
.tooltip-icon {
  margin-left: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--primary-color); /* mantiene coherencia de color */
  transition: transform 0.2s;
}

.tooltip-icon:hover {
  transform: scale(1.1);
}

/* Tooltip */
.tooltip-box {
  position: absolute;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.85rem;
  padding: 15px 12px 12px 12px; /* más espacio arriba */
  border-radius: 8px;
  max-width: 250px; /* lo agrandamos un poco */
  top: 100%;
  left: 0;
  transform: translateY(10px);
  display: none;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 1px solid var(--primary-color); /* contorno naranja */
}

/* Mostrar tooltip */
.plan__item.show-tooltip .tooltip-box {
  display: block;
}

/* Botón de cierre del tooltip */
.tooltip-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  position: absolute;
  top: 6px;  /* mejor separación */
  right: 8px;
}





/* ===== SECCIÓN SOBRE NOSOTROS ===== */
.about__container {
  grid-template-columns: 1fr; /* 1 columna en móvil */
  align-items: center;
  gap: 3rem;
}

.about__image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about__img {
  transition: transform 0.4s ease;
}
.about__image-wrapper:hover .about__img {
  transform: scale(1.05);
}

.about__data {
  text-align: left;
}

.about__description {
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-color);
}
.about__description strong {
    color: var(--primary-color);
}


/* ===== SECCIÓN FOTOS (Placeholder) ===== */
/* Por defecto, mostrar solo el de escritorio */
.carousel--mobile {
  display: none;
}

/* 📱 En pantallas chicas, mostrar el carrusel móvil y ocultar el de escritorio */
@media (max-width: 768px) {
  .carousel--desktop {
    display: none;
  }
  .carousel--mobile {
    display: block;
  }
}
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-width: 900px;
  margin: auto;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel__track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  max-height: 500px;
  border-radius: 12px;
}

/* Botones anterior / siguiente */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 45px;     /* ✅ ancho fijo */
  height: 45px;    /* ✅ alto fijo */
  display: flex;   /* ✅ centra el ícono */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%; /* ✅ círculo perfecto */
  z-index: 10;
}

.carousel__btn:hover {
  background: rgba(0, 0, 0, 0.7);
}


.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }

.carousel__btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Indicadores */
.carousel__indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel__indicators span {
  width: 12px;
  height: 12px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.carousel__indicators .active {
  background-color: var(--primary-color);
}


/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color-alt);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-color);
}

.footer__container {
  grid-template-columns: 1fr; /* 1 columna en móvil */
  gap: 2.5rem;
}

.footer__logo {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--light-color);
  margin-bottom: 1rem;
  display: inline-block;
}
.footer__logo span {
  color: var(--primary-color);
}

.footer__description {
  font-size: var(--small-font-size);
  line-height: 1.6;
}

.footer__title {
  font-size: var(--h3-font-size);
  color: var(--light-color);
  margin-bottom: 1.25rem;
}

.footer__links,
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link,
.footer__contact-item a {
  color: var(--text-color);
  transition: color 0.3s, padding-left 0.3s;
}
.footer__link:hover,
.footer__contact-item a:hover {
  color: var(--primary-color);
  padding-left: 5px; /* Efecto hover */
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--small-font-size);
}
.footer__contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px; /* Alineación */
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social-link {
  font-size: 1.75rem;
  color: var(--text-color);
  transition: color 0.3s, transform 0.3s;
}
.footer__social-link:hover {
  color: var(--primary-color);
  transform: translateY(-4px); /* Efecto hover */
}

.footer__copy {
  display: block;
  margin-top: 3.5rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: #888;
}


/* ===== BOTÓN SCROLL TOP ===== */
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -30%; /* Oculto por defecto */
  background-color: var(--primary-color);
  color: var(--light-color);
  font-size: 1.25rem;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  z-index: var(--z-fixed);
  transition: bottom 0.4s ease, transform 0.3s ease;
  min-height: 44px; /* Accesibilidad */
  min-width: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}

.scrollup:hover {
  background-color: var(--primary-color-alt);
  transform: translateY(-4px);
}

/* Clase para mostrar el botón (Añadida por JS) */
.show-scroll {
  bottom: 2rem;
}


/* ===== ANIMACIONES DE SCROLL (Fade-in / Slide-up) ===== */
/* Estas clases serán añadidas por el IntersectionObserver (JS).
  Usan 'opacity' y 'transform' para máximo rendimiento (GPU).
*/
.anim-fade-in,
.anim-slide-up {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    transition-delay: var(--anim-delay, 0s); /* Permite retrasos personalizados */
}

.anim-slide-up {
    transform: translateY(30px);
}

/* Estado visible (cuando entra en pantalla) */
.anim-fade-in.is-visible,
.anim-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ======================================= */
/* ===== MEDIA QUERIES (Responsive) ===== */
/* ======================================= */
/* ✅ Footer optimizado para pantallas chicas */
@media screen and (max-width: 767px) {
  .footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .footer__content {
    width: 100%;
  }

  .footer__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    gap: 0.5rem;
  }

  .footer__logo img {
    width: 70px;
    height: 70px;
    border-radius: 25%;
    object-fit: cover;
  }

  .footer__description {
    margin-top: 0.5rem;
    color: var(--text-color-light);
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .footer__title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
  }

  .footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer__link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer__link:hover {
    color: var(--primary-color);
  }

  .footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
  }

  .footer__contact-item i {
    color: var(--primary-color);
  }

  .footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }



  .footer__copy {
    display: block;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-color-light);
    line-height: 1.4;
  }
}

/* Dispositivos Medianos (Tablets) */
@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  /* Ajustes de Navegación */
  .nav__menu {
    position: static;
    width: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
  .nav__list {
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__link.button {
    margin-left: 1rem; /* Separar botón "Reservar" */
  }

  /* Ajustes Hero */
  .hero {
    text-align: left;
    justify-content: flex-start;
  }
  .hero__container {
    padding-left: 2rem; /* Añade un poco de padding */
  }
  .hero__title {
    font-size: 3rem;
  }
  .hero__subtitle {
    font-size: 1.5rem;
  }
  .hero__description {
      margin-left: 0;
  }

  /* Ajustes Planes (3 columnas) */
  .planes__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .plan__card--highlight {
      transform: scale(1.05); /* Destacar más en tablet/desktop */
  }
  .plan__card--highlight:hover {
      transform: scale(1.05) translateY(-8px);
  }

  /* Ajustes "Nosotros" (2 columnas) */
  .about__container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  /* Invertir orden visual (imagen a la izquierda) */
  .about__image-wrapper {
      order: -1;
  }

  /* Ajustes Footer (Columnas) */
  .footer__container {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 2rem;
  }
}

/* Dispositivos Grandes (Desktop) */
@media screen and (min-width: 1024px) {
  :root {
    --h1-font-size: 3.5rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.35rem;
    --normal-font-size: 1.05rem;
  }

  .section {
    padding: 6rem 0 3rem;
  }

  .hero {
    min-height: 650px;
  }
  .hero__container {
      padding-left: 0; /* Reset en desktop grande */
  }
  
  .hero__data {
      max-width: 700px;
  }

  .planes__container {
      gap: 2.5rem;
  }
  .plan__card {
      padding: 2.5rem 2rem;
  }
  
  .about__container {
      gap: 5rem;
  }
  
  .scrollup {
      right: 3rem;
  }
}