/* ============ Tokens ============ */
:root {
  --bg: #0d0d0d;
  --bg-alt: #161616;
  --bg-card: #1c1c1c;
  --line: #2a2a2a;

  --gold: #d4af37;
  --gold-light: #f0d588;
  --bronze: #6b4f1d;

  --text: #f5f3ee;
  --text-muted: #a8a8a8;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 4px;
  --wrap: 1180px;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p { margin: 0 0 1em; color: var(--text-muted); }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Botones ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--bronze));
  color: #100c02;
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-outline {
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.1); }
.btn-small { padding: 8px 16px; font-size: 0.8rem; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 13, 13, 0.97);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.brand-lovers {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  font-weight: 300;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-carcare {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-logo {
  height: 44px;
  width: auto;
}
.footer-brand .brand-logo { height: 52px; margin-bottom: 12px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.site-nav a:not(.btn):hover { color: var(--gold-light); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
}

/* ============ Aviso temporal ============ */
.aviso-temporal {
  background: var(--bronze);
  color: var(--gold-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 0;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(107, 79, 29, 0.18), transparent 60%),
    linear-gradient(180deg, #0d0d0d, #050505);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 90px
  );
  pointer-events: none;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0.85)),
    linear-gradient(90deg, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.3) 65%);
}
.hero-mobile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  color: var(--gold-light);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--text);
  margin-bottom: 0.4em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 2em;
  flex-wrap: wrap;
}

/* ============ Secciones genéricas ============ */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.6em;
  display: block;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ============ Por qué elegirnos ============ */
/* Flexbox en vez de grid auto-fit: con un número fijo de tarjetas
   (4), auto-fit puede dejar la última fila incompleta pegada a la
   izquierda. Con flex-wrap + justify-content:center, cualquier fila
   sobrante queda centrada y se ve intencional a cualquier ancho. */
.valores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.valor {
  flex: 0 1 240px;
  max-width: 260px;
  text-align: center;
  padding: 32px 20px;
}
.valor .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  margin-bottom: 0.3em;
}
.valor h3 { font-size: 1rem; color: var(--text); }
.valor p { font-size: 0.92rem; margin: 0; }

/* ============ Servicios ============ */
/* 7 tarjetas: 7 no reparte limpio en 2, 3 ni 4 columnas. Con un
   ancho base de ~260px caben 4 por fila en escritorio (patrón 4+3),
   y flexbox centra la segunda fila incompleta en vez de dejarla
   pegada a la izquierda. */
.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.servicio-card {
  flex: 0 1 260px;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.servicio-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.servicio-foto {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.servicio-card .icono,
.servicio-card h3,
.servicio-card p.claim,
.servicio-card .detalle {
  padding-left: 28px;
  padding-right: 28px;
}
.servicio-card .icono {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-top: 0.8em;
  margin-bottom: 0.6em;
}
.servicio-card h3 { font-size: 1.05rem; color: var(--text); }
.servicio-card p.claim {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.servicio-card .detalle {
  font-size: 0.88rem;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

/* ============ Trabajos realizados (teaser + galería) ============ */
.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.trabajo-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trabajo-card .imagen {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1c1c1c, #262626);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.trabajo-card .imagen img { width: 100%; height: 100%; object-fit: cover; }
.trabajo-card .info { padding: 20px; }
.trabajo-card h3 { font-size: 1rem; margin-bottom: 0.2em; }
.trabajo-card time { font-size: 0.78rem; color: var(--gold-light); letter-spacing: 0.05em; }
.trabajo-card p { font-size: 0.9rem; margin-top: 0.6em; }

.galeria-grid {
  columns: 3 260px;
  column-gap: 16px;
}
.galeria-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}
.galeria-item img {
  width: 100%;
  display: block;
}
@media (max-width: 860px) {
  .galeria-grid { columns: 2 160px; }
}

/* ============ Páginas legales ============ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h3 {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-top: 2.2em;
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p,
.legal-content li { font-size: 0.96rem; }
.legal-content ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  color: var(--text-muted);
}
.legal-content li { margin-bottom: 0.4em; }
.legal-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--gold-light); }
.legal-content strong { color: var(--text); }

.trabajos-vacio {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.ver-todos { text-align: center; margin-top: 48px; }

/* ============ Marcas ============ */
/* Placa gris: los logos vienen en cualquier color/contraste posible
   (muchos con trazo oscuro sobre fondo transparente), así que se
   apoyan siempre sobre un gris medio en vez de sobre el fondo
   oscuro de la web. Es lo único que garantiza que se lean bien. */
.marcas-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.marca-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 168px;
  height: 96px;
  background: #696969;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
}
.marca-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.carousel-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--gold-light);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }

.marcas-categoria { margin-bottom: 56px; }
.marcas-categoria:last-child { margin-bottom: 0; }
.marcas-categoria h3 {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.3em;
}
.marcas-intro {
  max-width: 640px;
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  justify-items: center;
}
.marca-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 160px;
  text-align: center;
}
.marca-card:hover .marca-card-logo {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.marca-card .marca-card-logo {
  width: 160px;
  height: 160px;
  background: #696969;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.marca-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.marca-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ============ Franja de foto ============ */
.banner-foto {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
}
.banner-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-foto-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  background: linear-gradient(0deg, rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0) 60%);
}
.banner-foto-overlay span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--gold-light);
  max-width: 640px;
}

/* ============ Contacto ============ */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contacto-info h3 {
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}
.contacto-info p { margin-bottom: 1.4em; }
.horario-cerrado {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}
.mapa-embed {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-top: 1.4em;
}
.mapa-embed iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
.mapa-embed-cta {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: var(--gold-light);
  color: #1a1a1a;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.mapa-embed:hover .mapa-embed-cta,
.mapa-embed:focus-visible .mapa-embed-cta { transform: translateX(-50%) translateY(-3px); }

.form-contacto {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
}
.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
.form-contacto .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-contacto .btn { width: 100%; border: none; }

.form-alert {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}
.form-alert-ok {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.form-alert-error {
  background: rgba(178, 58, 58, 0.12);
  border: 1px solid #b23a3a;
  color: #e08a8a;
}

/* ============ Footer ============ */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; }
.footer-col h3 {
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 1em;
}
.footer-col p { font-size: 0.9rem; margin-bottom: 0.6em; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--gold-light); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-credit::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}
.footer-credit a {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.footer-credit a:hover,
.footer-credit a:focus-visible { color: var(--gold-light); }
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
  .footer-legal { justify-content: flex-start; }
  .footer-meta { justify-content: flex-end; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
