/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e8202a;
  --red-dark: #c0151e;
  --dark: #0f0f0f;
  --dark2: #1a1a1a;
  --dark3: #242424;
  --gray: #6b7280;
  --gray-light: #f4f4f5;
  --white: #ffffff;
  --text: #1f2937;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-primary.full { width: 100%; text-align: center; font-size: 1rem; padding: .9rem; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nav-brand {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav-icon { color: var(--red); font-size: 1.4rem; }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--gray);
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }

.btn-nav {
  background: var(--red);
  color: var(--white);
  padding: .5rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
}
.btn-nav:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1e2e 100%);
  color: var(--white);
  padding: 6rem 5% 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,32,42,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 580px; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(232,32,42,.2);
  color: #ff6b72;
  border: 1px solid rgba(232,32,42,.4);
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--red); }

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

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

/* Hero visual */
.hero-visual {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}
.car-icon {
  font-size: clamp(7rem, 15vw, 12rem);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.badge-float {
  position: absolute;
  background: var(--white);
  color: var(--text);
  padding: .5rem 1rem;
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  white-space: nowrap;
}
.badge-float.top { top: 10%; right: -20px; }
.badge-float.bottom { bottom: 10%; left: -20px; }

/* ===== STATS ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--red);
  color: var(--white);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 3rem;
  flex: 1;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stat:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; }
.stat-label { font-size: .85rem; opacity: .85; margin-top: .2rem; }

/* ===== SECTION SHARED ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin: .5rem 0 .8rem;
}
.section-header p { color: var(--gray); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,.7); }
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== SERVICIOS ===== */
.servicios {
  padding: 6rem 5%;
  background: var(--gray-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }

.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.card p { color: var(--gray); font-size: .92rem; line-height: 1.55; }
.card-price {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(232,32,42,.1);
  color: var(--red);
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
}

/* ===== NOSOTROS ===== */
.nosotros {
  padding: 6rem 5%;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.nosotros-text { flex: 1; }
.nosotros-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin: .5rem 0 1rem;
}
.nosotros-text > p { color: var(--gray); font-size: .98rem; margin-bottom: 1.5rem; }

.benefits { display: flex; flex-direction: column; gap: .75rem; }
.benefits li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 500;
}
.benefits li span {
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
}

.nosotros-img { flex: 0 0 360px; }
.img-box {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1e2e 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: var(--white);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.img-icon { font-size: 5rem; margin-bottom: 1.2rem; }
.img-box p { font-size: 1.05rem; font-weight: 600; opacity: .9; }

/* ===== TESTIMONIOS ===== */
.testimonios {
  padding: 6rem 5%;
  background: var(--gray-light);
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonio {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: .8rem; }
.testimonio > p { color: var(--gray); font-size: .94rem; font-style: italic; margin-bottom: 1.3rem; }
.autor { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 42px; height: 42px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.autor strong { display: block; font-size: .9rem; }
.autor span { font-size: .8rem; color: var(--gray); }

/* ===== CONTACTO ===== */
.contacto {
  padding: 6rem 5%;
  background: linear-gradient(135deg, var(--dark) 0%, #1e1e2e 100%);
  color: var(--white);
}
.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

/* Form */
.form-cita { background: var(--white); border-radius: 16px; padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .65rem .9rem;
  font-size: .93rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232,32,42,.12);
}

/* Contact info */
.contacto-info { display: flex; flex-direction: column; gap: 1.4rem; padding-top: .5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.info-item strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.info-item p { color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.4; margin: 0; }

/* ===== FOOTER ===== */
.footer { background: #080808; color: rgba(255,255,255,.7); }
.footer-top {
  display: flex;
  gap: 3rem;
  padding: 3rem 5%;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { flex: 1; }
.footer-brand .nav-icon { color: var(--red); font-size: 1.5rem; }
.footer-brand > span, .footer-brand {
  font-size: 1.3rem; font-weight: 900; color: var(--white);
  display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem;
}
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); }
.footer-links h4 { color: var(--white); font-size: .9rem; margin-bottom: .9rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  text-align: center;
  padding: 1.3rem 5%;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #1a1a1a;
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: 40px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 999;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 5%;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 5% 3rem;
    min-height: auto;
  }
  .hero-btns { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .badge-float.top { right: 0; }
  .badge-float.bottom { left: 0; }

  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.2); }

  .nosotros { flex-direction: column; padding: 4rem 5%; }
  .nosotros-img { flex: none; width: 100%; }

  .contacto-wrapper { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 2rem; }
}

@media (max-width: 480px) {
  .stat { flex: 1 1 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
}
