/* ============================================================
   Moto a Punto — hoja de estilos
   Identidad: negro + rojo + blanco (estilo racing)
   ============================================================ */

:root {
  --black: #111111;
  --dark: #1a1a1a;
  --gray: #555555;
  --muted: #777777;
  --red: #e10600;
  --red-dark: #b00500;
  --white: #ffffff;
  --light: #f4f4f4;
  --border: #e5e5e5;
  --maxw: 1180px;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  color: var(--black);
}
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 8px 14px; z-index: 2000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 600;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  font-size: .95rem; border: 0; cursor: pointer; transition: background .15s ease, transform .1s ease, color .15s ease;
  text-align: center;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand img { height: 52px; width: auto; background: #fff; padding: 4px 8px; border-radius: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 15px; color: #fff; font-weight: 600; font-size: .95rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; border-radius: 6px;
}
.main-nav a:hover { color: var(--red); }
.header-cta { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.3) 100%); }
.hero-content { position: relative; z-index: 2; padding: 120px 20px; max-width: var(--maxw); }
.hero-kicker {
  display: inline-block; color: #ffd200; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .12em; font-weight: 600; font-size: .95rem; margin-bottom: 14px;
}
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 620px; color: rgba(255,255,255,.92); margin: 0 0 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* franja de cuadros (racing) */
.checker-strip {
  height: 14px;
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%),
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-color: #fff;
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

/* ---------- Secciones ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--light); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.kicker {
  display: block; color: var(--red); font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin-bottom: 8px;
}
.section-head p { color: var(--muted); margin: .4em 0 0; }

/* ---------- Servicios ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-service {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 28px 24px;
  border-top: 4px solid var(--red); transition: transform .18s ease, box-shadow .18s ease;
}
.card-service:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.svc-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card-service h3 { margin-bottom: .4em; }
.card-service p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Sobre ---------- */
.sobre-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.sobre-text p { color: var(--gray); }
.sobre-list { list-style: none; padding: 0; margin: 1.2em 0 0; }
.sobre-list li { padding: 6px 0 6px 28px; position: relative; color: var(--gray); }
.sobre-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.sobre-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sobre-media img { border-radius: 10px; height: 260px; width: 100%; object-fit: cover; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .2s ease; }
.gallery img:hover { transform: scale(1.03); }

/* ---------- Dónde estamos ---------- */
.donde-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.map-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.donde-info h3 { margin: 1.4em 0 .4em; font-size: 1.05rem; }
.donde-info h3:first-child { margin-top: 0; }
.donde-info p { color: var(--gray); margin: 0 0 .2em; }
.hours { list-style: none; padding: 0; margin: 0 0 1.4em; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--gray); }
.hours li span:first-child { font-weight: 600; color: var(--dark); }
.hours li span:last-child { text-align: right; }

/* ---------- Contacto ---------- */
.contacto-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.contacto-card {
  display: block; text-align: center; background: var(--black); color: #fff;
  padding: 32px 20px; border-radius: 10px; border-bottom: 4px solid var(--red); transition: transform .18s ease;
}
.contacto-card:hover { transform: translateY(-4px); }
.contacto-card .cc-icon { font-size: 1.9rem; margin-bottom: 10px; }
.contacto-card h3 { color: #fff; margin-bottom: .3em; }
.contacto-card p { margin: 0; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.social-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social-row a {
  padding: 9px 20px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--dark); font-weight: 600; font-size: .9rem; transition: all .15s ease;
}
.social-row a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.8); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 52px 20px 32px;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 14px; background: #fff; padding: 4px 8px; border-radius: 6px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .contacto-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid, .donde-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; position: relative; z-index: 1005; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: min(84vw, 320px); height: 100vh;
    background: var(--black); padding: 88px 22px 22px; transition: right .25s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,.4);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .header-cta { display: none; }
  .nav-toggle.nav-close span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.nav-close span:nth-child(2) { opacity: 0; }
  .nav-toggle.nav-close span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .sobre-media { grid-template-columns: 1fr; }
  .hero-content { padding: 80px 20px; }
  .hours li { flex-direction: column; gap: 2px; }
  .hours li span:last-child { text-align: left; }
}
