/* =============================================
   TCH Casa del Repuesto Chino — styles.css
   Paleta: Rojo #CC1111 | Negro #1A1A1A | Dorado #F5A800
   ============================================= */

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

:root {
  --red:       #e65616;
  --red-dark:  #d1310a;
  --red-light: #f06a2a;
  --black:     #1f1f1f;
  --black-soft:#292929;
  --black-deep:#0f0e17;
  --gold:      #e65616;
  --gold-dark: #d1310a;
  --white:     #FFFFFF;
  --gray-50:   #1a1a1a;
  --gray-100:  #232323;
  --gray-300:  #898989;
  --gray-600:  #b0b0b0;
  --wa-green:  #25D366;
  --wa-dark:   #1EB955;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  --transition: .25s ease;
  --font: 'Inter', sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--black-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: min(var(--max-w), 100% - 2rem);
  margin-inline: auto;
}

/* ── SECTION BASE ── */
.section { padding: 80px 0; }

.section__tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}

.section__title--center { text-align: center; }

.section__subtitle {
  text-align: center;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}
.btn--whatsapp:hover { background: var(--wa-dark); box-shadow: 0 6px 20px rgba(37,211,102,.45); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,.1); }

.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black-deep);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.6); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.header__logo { flex-shrink: 0; }
.header__logo img { height: 52px; width: auto; object-fit: contain; }

.header__nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.header__nav a {
  color: var(--gray-300);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color var(--transition);
  position: relative;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.header__nav a:hover { color: var(--white); }
.header__nav a:hover::after { transform: scaleX(1); }

.header__cta { flex-shrink: 0; font-size: .85rem; padding: .6rem 1.2rem; }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.header__burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger--active span:nth-child(2) { opacity: 0; }
.header__burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15,14,23,.96) 0%, rgba(209,49,10,.55) 100%),
    url('assets/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(230,86,22,.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Diagonal accent */
.hero::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--black-deep);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(230,86,22,.15);
  border: 1px solid var(--red);
  color: var(--red-light);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__highlight { color: var(--red-light); }

.hero__subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   NOSOTROS
   ============================================= */
.nosotros { background: var(--black-deep); }

.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nosotros__text p {
  color: var(--gray-300);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.nosotros__features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.nosotros__features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--white);
}
.nosotros__features li i { color: var(--red); }

.nosotros__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--red); }

.stat-card__icon {
  font-size: 1.6rem;
  color: var(--red);
  margin-bottom: .6rem;
  display: block;
}
.stat-card strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-card span { font-size: .85rem; color: var(--gray-300); font-weight: 500; }

/* =============================================
   CATEGORÍAS
   ============================================= */
.categorias { background: var(--black); }

.categorias__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cat-card {
  background: var(--black-soft);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: default;
}
.cat-card:hover {
  box-shadow: 0 8px 40px rgba(230,86,22,.2);
  transform: translateY(-6px);
  border-color: var(--red);
}

.cat-card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.cat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--white); }
.cat-card p  { font-size: .88rem; color: var(--gray-300); line-height: 1.5; }

.categorias__cta {
  text-align: center;
  margin-top: 3rem;
}
.categorias__cta p {
  color: var(--gray-300);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* =============================================
   MARCAS
   ============================================= */
.marcas { background: var(--black); padding: 60px 0; }
.marcas .section__title { color: var(--white); }

.marcas__grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2rem;
}

.marca-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  padding: .55rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.marca-badge:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* =============================================
   UBICACIÓN
   ============================================= */
.ubicacion { background: var(--black-deep); }

.ubicacion__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.ubicacion__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-item > i {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.info-item strong { display: block; font-weight: 700; margin-bottom: .2rem; }
.info-item p { color: var(--gray-600); font-size: .95rem; line-height: 1.6; }
.info-item a { color: var(--red); font-weight: 600; }
.info-item a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .3rem;
}
.social-links a {
  color: var(--gray-600);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--transition);
}
.social-links a:hover { color: var(--red); }

.ubicacion__map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* =============================================
   CONTACTO CTA
   ============================================= */
.contacto {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #E62020 100%);
  padding: 80px 0;
}
.contacto__inner {
  text-align: center;
  color: var(--white);
}
.contacto__inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: .75rem;
}
.contacto__inner p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 2rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--black); color: rgba(255,255,255,.75); }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding: 60px 0 40px;
}

.footer__brand img { margin-bottom: .75rem; }
.footer__brand p { font-size: .9rem; line-height: 1.6; opacity: .6; }

.footer__info strong,
.footer__hours strong,
.footer__social strong {
  display: block;
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.footer__info p,
.footer__hours p {
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .4rem;
}
.footer__info i { color: var(--gold); }
.footer__info a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.footer__info a:hover { color: var(--gold); }

.footer__social-links {
  display: flex;
  gap: .75rem;
}
.footer__social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.footer__social-links a:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer__bottom a { color: var(--gold); }

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: pulse-wa 3s infinite;
}
.whatsapp-float:hover {
  background: var(--wa-dark);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.6);
  animation: none;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 6px 34px rgba(37,211,102,.75); }
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .categorias__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nosotros__grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .ubicacion__grid  { grid-template-columns: 1fr; }
  .ubicacion__map   { order: -1; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {
  /* Header */
  .header__nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--black-soft);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .header__nav--open { max-height: 300px; }
  .header__nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .header__nav a::after { display: none; }
  .header__burger { display: flex; }
  .header__cta    { display: none; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero__content { padding: 3rem 0 5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: 60px 0; }
  .categorias__grid { grid-template-columns: 1fr; }
  .nosotros__stats  { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; padding: 40px 0 30px; }
}
