/* =========================================================
   Repuestos Leo — Landing institucional
   Paleta: negro + amarillo (colores del logo)
   ========================================================= */

:root {
  --black: #0a0a0a;
  --black-soft: #16161a;
  --gray-900: #1c1c22;
  --gray-700: #3a3a42;
  --gray-400: #9a9aa4;
  --white: #f7f7f8;
  --yellow: #f5c518;
  --yellow-dark: #d9a900;
  --radius: 14px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --transition: 0.3s ease;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black-soft);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--black);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

.text-accent {
  color: var(--yellow);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}
.btn--primary {
  background: var(--yellow);
  color: var(--black);
}
.btn--primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 197, 24, 0.35);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn--whatsapp {
  background: #25d366;
  color: #fff;
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn--whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.icon-wsp {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.12);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
}
.logo__img {
  height: 44px;
  width: auto;
}
.nav__list {
  display: flex;
  gap: 28px;
}
.nav__link {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}
.nav__link:hover {
  color: var(--yellow);
}
.nav__link:hover::after {
  width: 100%;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__phone {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245, 197, 24, 0.15), transparent 45%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.95) 85%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 60px;
}
.hero__content {
  max-width: 720px;
}
.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero__subtitle {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
}
.hero__stat strong {
  font-family: var(--font-heading);
  color: var(--yellow);
  font-size: 1.8rem;
  font-weight: 800;
}
.hero__stat span {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* ---------- Section generic ---------- */
.section {
  padding: 110px 0;
}
.section--dark {
  background: var(--black);
}
.section--dark .section__title,
.section--dark h3 {
  color: var(--white);
}
.section--dark .card p,
.section--dark .faq-item__q {
  color: var(--gray-400);
}
.section--accent {
  background: linear-gradient(180deg, #fff8e1 0%, #ffffff 100%);
}
.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--yellow-dark);
  background: rgba(245, 197, 24, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section--dark .eyebrow {
  background: rgba(245, 197, 24, 0.12);
  color: var(--yellow);
}
.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section__text {
  color: var(--gray-700);
  font-size: 1.02rem;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__media {
  position: relative;
}
.about__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__media .about__media-inset {
  position: absolute;
  top: -22px;
  left: -22px;
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  border: 4px solid var(--white);
  z-index: 2;
}
.about__media-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--black);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
  text-align: center;
  box-shadow: var(--shadow);
}
.about__media-badge strong {
  display: block;
  color: var(--yellow);
  font-size: 1.6rem;
  font-family: var(--font-heading);
}
.about__media-badge span {
  font-size: 0.78rem;
  color: var(--gray-400);
}
.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 34px;
}
.about__values li {
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
}
.about__values strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.about__values span {
  font-size: 0.88rem;
  color: var(--gray-700);
}
.about__diff h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.about__diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diff-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #faf8f2;
  padding: 16px;
  border-radius: 10px;
}
.diff-item__icon {
  font-size: 1.3rem;
}
.diff-item p {
  font-size: 0.88rem;
  color: var(--gray-700);
}

/* ---------- Cards / Servicios ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--gray-900);
  border: 1px solid rgba(245, 197, 24, 0.1);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: var(--shadow);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: 18px;
}
.card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.92rem;
}

/* ---------- Beneficios ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.benefit__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 14px;
}
.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.benefit p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ---------- Testimonios ---------- */
.testimonials {
  position: relative;
}
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(245, 197, 24, 0.15);
}
.testimonial__stars {
  color: var(--yellow);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.testimonial p {
  font-size: 0.95rem;
  color: var(--gray-400);
  margin-bottom: 22px;
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.testimonial__author strong {
  display: block;
  font-size: 0.92rem;
}
.testimonial__author span {
  font-size: 0.8rem;
  color: var(--gray-400);
}
.testimonial-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.testimonial-dots button.is-active {
  background: var(--yellow-dark);
  width: 22px;
  border-radius: 999px;
}
.testimonials__cta {
  text-align: center;
  margin-top: 40px;
}
.testimonials__cta a {
  color: var(--yellow-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}
.testimonials__cta a:hover {
  border-color: var(--yellow-dark);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--gray-900);
  border: 1px solid rgba(245, 197, 24, 0.12);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.faq-item__icon {
  color: var(--yellow);
  font-size: 1.4rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--transition);
  padding: 0 24px;
}
.faq-item__a p {
  color: var(--gray-400);
  font-size: 0.92rem;
  padding-bottom: 20px;
}
.faq-item.is-open .faq-item__a {
  max-height: 240px;
}

/* ---------- Ubicación ---------- */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.location__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 32px;
}
.location__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.location__icon {
  font-size: 1.3rem;
}
.location__list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
}
.location__list span {
  font-size: 0.9rem;
  color: var(--gray-700);
}
.location__map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hours {
  background: var(--gray-900);
  border: 1px solid rgba(245, 197, 24, 0.15);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 28px;
}
.hours__title {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.hours__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hours__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hours__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hours__list li span:first-child {
  color: var(--gray-400);
  font-weight: 600;
}
.hours__list li span:last-child {
  color: var(--white);
  text-align: right;
}
.hours__list li span.hours__closed {
  color: var(--yellow);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 70px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand p {
  font-size: 0.9rem;
  margin: 16px 0 20px;
  max-width: 320px;
}
.footer__social a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--yellow);
  transition: background var(--transition), color var(--transition);
}
.footer__social a:hover {
  background: var(--yellow);
  color: var(--black);
}
.footer__col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}
.footer__col a:hover {
  color: var(--yellow);
}
.footer__bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.82rem;
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 999;
  animation: pulse 2.4s infinite;
}
.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 720px) {
  .header__phone { display: inline-block; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav__toggle { display: flex; }

  .header.nav-open .nav {
    display: block;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 20px 24px 30px;
    border-bottom: 1px solid rgba(245, 197, 24, 0.15);
  }
  .header.nav-open .nav__list {
    flex-direction: column;
    gap: 18px;
  }

  .about,
  .location {
    grid-template-columns: 1fr;
  }
  .about__media-badge {
    right: 10px;
  }
  .about__media .about__media-inset {
    left: 10px;
    top: -16px;
    width: 110px;
    height: 110px;
  }
  .cards-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero__stats { gap: 26px; }
  .about__values,
  .about__diff-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .testimonials {
    overflow: hidden;
  }
  .testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
  }
  .testimonial {
    flex: 0 0 100%;
    width: 100%;
  }
  .testimonial-dots { display: flex; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}
