:root {
  --amber: #E8960C;
  --amber-light: #F5B740;
  --amber-dark: #C47D08;
  --amber-ink: #F2B04A;
  --amber-glow: rgba(232, 150, 12, 0.10);
  --amber-line: rgba(232, 150, 12, 0.28);
  --dark: #0C0C0C;
  --dark-elevated: #121211;
  --dark-card: #171716;
  --dark-card-hover: #1D1C1A;
  --dark-border: #262624;
  --dark-border-hover: #3A3936;
  --gray-100: #F2F1EC;
  --gray-200: #E3E2DC;
  --gray-300: #C9C8C1;
  --gray-400: #A9A8A1;
  --gray-500: #8E8D86;
  --gray-600: #7A7973;
  --white: #FAFAF8;
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --display-weight: 750;
  --display-stretch: 112%;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 10px;
  --nav-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--dark);
  color: var(--gray-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--amber);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--amber); color: var(--dark); }

html { scrollbar-color: #34332f var(--dark); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #2E2D2A; border-radius: 10px; border: 3px solid var(--dark); }
::-webkit-scrollbar-thumb:hover { background: #45443F; }

:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--amber);
  color: var(--dark);
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.9rem max(var(--gutter), calc((100% - 1400px) / 2 + var(--gutter)));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom-color: var(--dark-border);
  background: rgba(12, 12, 12, 0.92);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 50px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}

.nav-logo-icon svg { width: 50px; height: 42px; }

.nav-logo:hover .nav-logo-icon { transform: rotate(-8deg) scale(1.05); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links .nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.nav-links .nav-phone::after,
.nav-links .nav-cta::after { display: none; }

.nav-phone svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-links .nav-cta {
  background: var(--amber);
  color: var(--dark);
  padding: 0.6rem 1.35rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}

.nav-links .nav-cta:hover {
  background: var(--amber-light);
  color: var(--dark);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BOTONES ============ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.9rem 1.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-primary {
  background: var(--amber);
  color: var(--dark);
  border: 1px solid var(--amber);
}

.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(232, 150, 12, 0.55);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--gray-200);
  border: 1px solid var(--dark-border-hover);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--gray-500);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 3.5rem) var(--gutter) 4.5rem;
  overflow: hidden;
  max-width: none;
  margin: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 78% 40%, rgba(232, 150, 12, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(232, 150, 12, 0.035) 0%, transparent 60%);
  pointer-events: none;
}

/* Rejilla sutil, se desvanece hacia abajo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  max-width: calc(1400px - 2 * var(--gutter));
  margin: 0 auto;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--amber-glow);
  border: 1px solid var(--amber-line);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--amber-ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.75rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232, 150, 12, 0.18);
}

.hero h1 {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: clamp(2.2rem, 3.9vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-wrap: balance;
  max-width: 100%;
}

.accent { color: var(--amber); }
.hero h1 .accent { font-style: italic; }

.hero-desc {
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.7;
  color: var(--gray-400);
  max-width: 52ch;
  margin-bottom: 1.75rem;
  font-weight: 300;
  text-wrap: pretty;
}

.hero-quote-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  background: var(--amber-glow);
  border: 1px solid var(--amber-line);
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--amber-light);
}

.hero-quote-pill svg { flex-shrink: 0; }

.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--dark-border);
}

.stat-item { padding-right: clamp(1.25rem, 3vw, 2.5rem); }
.stat-item + .stat-item {
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--dark-border);
}

.stat-value {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  color: var(--amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.45rem;
  font-weight: 500;
}

/* Rueda del hero: flanco rotulado como un neumático real */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tireIn 1.2s var(--ease-out) 0.2s both;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 150, 12, 0.14) 0%, transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.hero-tire {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.65));
}

.tire-halo { fill: none; stroke: rgba(232, 150, 12, 0.18); stroke-width: 1; }
.tire-tread { fill: #22211F; }

.tire-spin {
  transform-origin: 250px 250px;
  animation: rotateSlow 48s linear infinite;
}

.hero-visual:hover .tire-spin { animation-duration: 12s; }

.tire-type {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 6px;
  fill: #34332F;
  stroke: #0E0E0D;
  stroke-width: 0.6px;
  paint-order: stroke;
}

.tire-num {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: 42px;
  fill: var(--amber);
}

.tire-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  fill: #A9A8A1;
}

@keyframes rotateSlow { to { transform: rotate(360deg); } }
@keyframes tireIn {
  from { opacity: 0; transform: translateX(40px) rotate(18deg); }
  to { opacity: 1; transform: none; }
}

/* ============ SECCIONES ============ */
main > section:not(.marcas-section):not(.hero) {
  padding: var(--section-y) var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber-ink);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber);
}

.section-title {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
  text-wrap: balance;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 54ch;
  line-height: 1.7;
  font-weight: 300;
  text-wrap: pretty;
}

/* ============ SERVICIOS ============ */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem 4rem;
}

.services-header .section-desc { max-width: 40ch; }

/* Rejilla de bordes compartidos: una ficha técnica, no tarjetas sueltas */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  overflow: hidden;
}

.service-card {
  background: var(--dark);
  padding: clamp(1.9rem, 3vw, 2.6rem) clamp(1.5rem, 2.5vw, 2.25rem);
  position: relative;
  transition: background 0.35s var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.service-card:hover { background: var(--dark-card); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--amber-line);
  background: var(--amber-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem;
  color: var(--amber);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.service-card:hover .service-icon {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--dark);
}

.service-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-card h3 {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--gray-400);
  line-height: 1.65;
  font-weight: 300;
  max-width: 38ch;
}

/* ============ HISTORIA ============ */
.historia-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-top: 3rem;
}

.historia-content > p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--gray-300);
  margin-bottom: 1.4rem;
  font-weight: 300;
  max-width: 60ch;
  text-wrap: pretty;
}

.historia-content > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: 3.6rem;
  float: left;
  line-height: 0.9;
  margin: 0.35rem 0.6rem 0 0;
  color: var(--amber);
}

.historia-quote {
  position: relative;
  margin-top: 2.25rem;
  padding: 2rem 2rem 1.75rem 2rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
}

.historia-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.55rem;
  left: 1.35rem;
  font-family: var(--font-display); font-weight: 500; font-stretch: 100%;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--amber);
}

.historia-quote p {
  font-family: var(--font-display); font-weight: 500; font-stretch: 100%;
  font-size: 1.22rem;
  color: var(--white);
  font-style: italic;
  line-height: 1.5;
}

.historia-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.9rem;
  letter-spacing: 0.04em;
}

.historia-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  aspect-ratio: 910 / 792;
  background: var(--dark-card);
}

.historia-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ MARCAS ============ */
.marcas-section {
  text-align: center;
  padding: clamp(3.5rem, 6vw, 5rem) var(--gutter);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  background: var(--dark-elevated);
}

.marcas-section .section-label { justify-content: center; }
.marcas-section .section-label::before { display: none; }

.marcas-track {
  list-style: none;
  display: flex;
  gap: 1rem clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.25rem auto 0;
  max-width: 1100px;
}

.marca-item {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color 0.25s;
  white-space: nowrap;
}

.marca-item:hover { color: var(--amber-ink); }

/* ============ GALERÍA ============ */
.galeria-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  height: clamp(420px, 46vw, 620px);
}

.galeria-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  margin: 0;
}

.galeria-item:first-child { grid-row: 1 / 3; }

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s;
  filter: saturate(0.92);
}

.galeria-item:hover img { transform: scale(1.035); filter: saturate(1.05); }

/* ============ TESTIMONIOS ============ */
.testimonios-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.google-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.google-rating-score {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}

.google-rating-details { display: flex; flex-direction: column; gap: 0.3rem; }

.stars { display: flex; gap: 2px; }

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--amber);
}

.stars svg.partial { fill: url(#star-partial); }

.google-rating-count {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-decoration: underline;
  text-decoration-color: var(--dark-border-hover);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.google-rating-count:hover { color: var(--amber-ink); text-decoration-color: currentColor; }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  align-items: stretch;
}

.testimonio-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 2rem 1.85rem 1.75rem;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
  margin: 0;
}

.testimonio-card:hover {
  border-color: var(--dark-border-hover);
  transform: translateY(-3px);
}

.testimonio-card .stars { margin-bottom: 1.15rem; }
.testimonio-card .stars svg { width: 15px; height: 15px; }

.testimonio-card blockquote {
  font-size: 0.96rem;
  color: var(--gray-200);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.6rem;
  flex: 1;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dark-border);
}

.testimonio-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber-glow);
  border: 1px solid var(--amber-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: 1.05rem;
  color: var(--amber);
}

.testimonio-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  font-style: normal;
}

.testimonio-role { font-size: 0.76rem; color: var(--gray-500); }

/* ============ FAQ ============ */
#faqs .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq-intro { position: sticky; top: calc(var(--nav-h) + 2rem); }

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--dark-border);
}

.faq-item { border-bottom: 1px solid var(--dark-border); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0.25rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: color 0.2s;
}

.faq-item summary h3 { font: inherit; color: inherit; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber-light); }

.faq-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--dark-border-hover);
  border-radius: 50%;
  transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.5px;
  background: var(--amber-light);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-icon { border-color: var(--amber); background: var(--amber-glow); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer {
  padding: 0 3.5rem 1.6rem 0.25rem;
  color: var(--gray-300);
  line-height: 1.75;
  font-weight: 300;
  max-width: 68ch;
}

.faq-answer a {
  color: var(--amber-light);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 3px;
  font-variant-numeric: tabular-nums;
}
.faq-answer a:hover { text-decoration-color: currentColor; }

.faq-cta {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--amber-line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 150, 12, 0.08), rgba(232, 150, 12, 0.02));
}

.faq-cta p { margin: 0 0 1.15rem; color: var(--gray-200); line-height: 1.6; }
.faq-cta strong { color: var(--white); font-weight: 600; }

.faq-cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============ CONTACTO ============ */
.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}

.contacto-info { display: flex; flex-direction: column; gap: 1.6rem; font-style: normal; }

.contacto-item { display: flex; gap: 1.1rem; align-items: flex-start; }

.contacto-item-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--amber-glow);
  border: 1px solid var(--amber-line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
}

.contacto-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.contacto-item h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contacto-item p,
.contacto-item a {
  font-size: 1rem;
  color: var(--gray-100);
  line-height: 1.55;
  font-weight: 400;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.contacto-item a { transition: color 0.2s; }
.contacto-item a:hover { color: var(--amber-light); }

.contacto-map {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
  margin-top: 2rem;
}

.contacto-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1) contrast(0.85) brightness(0.6);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.contacto-map:hover iframe { opacity: 1; }

.contacto-form {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  align-self: start;
}

.contacto-form h3 {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.contacto-form > p {
  font-size: 0.92rem;
  color: var(--gray-400);
  margin-bottom: 1.85rem;
  font-weight: 300;
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  background: var(--dark);
  border: 1px solid var(--dark-border-hover);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-600); }

.form-group select {
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B740' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
}

.form-group select option { background: var(--dark-card); }

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: #4A4944; }

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 150, 12, 0.18);
  outline: none;
}

.form-group input:user-invalid { border-color: #E5534B; }

.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.55; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.form-submit {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem;
  background: var(--amber);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(232, 150, 12, 0.6);
}

.form-submit:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--dark-border);
  padding: 4.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--dark-elevated);
}

.footer-content {
  max-width: calc(1400px - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1.1rem; display: inline-flex; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  font-weight: 300;
  max-width: 300px;
}

.footer-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1.15rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color 0.2s;
  font-weight: 300;
}

.footer-col a:hover { color: var(--amber-ink); }

.footer-schedule p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.footer-schedule strong { color: var(--gray-300); font-weight: 500; }

.footer-bottom {
  max-width: calc(1400px - 2 * var(--gutter));
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ============ BOTONES FLOTANTES ============ */
.whatsapp-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 14px 34px -6px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

.call-float { display: none; }

/* ============ ANIMACIONES ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeInUp 0.8s var(--ease-out) both; }
.hero-content > :nth-child(2) { animation-delay: 0.06s; }
.hero-content > :nth-child(3) { animation-delay: 0.12s; }
.hero-content > :nth-child(4) { animation-delay: 0.18s; }
.hero-content > :nth-child(5) { animation-delay: 0.24s; }
.hero-content > :nth-child(6) { animation-delay: 0.3s; }


/* Solo se oculta si hay JS: sin JS todo el contenido es visible */
.js .animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .animate-on-scroll.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .animate-on-scroll { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav-links { gap: 1.4rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonio-card:last-child { grid-column: 1 / -1; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--dark-border);
    padding: 0.75rem var(--gutter) 1.5rem;
    gap: 0;
  }

  .nav-links.active li a {
    display: flex;
    padding: 0.95rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--dark-border);
  }

  .nav-links.active li a::after { display: none; }
  .nav-links.active .nav-cta { justify-content: center; margin-top: 1rem; border-bottom: 0; padding: 0.95rem; }

  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .historia-grid { grid-template-columns: 1fr; }
  #faqs .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .faq-intro { position: static; }
  .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 3.25rem); padding-bottom: 3.5rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-item, .stat-item + .stat-item { padding-left: 0.9rem; padding-right: 0.5rem; }
  .stat-item:first-child { padding-left: 0; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0.06em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-quote-pill { font-size: 0.86rem; }

  .services-header { flex-direction: column; align-items: flex-start; margin-bottom: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .testimonios-header { flex-direction: column; align-items: flex-start; }

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .galeria-item { aspect-ratio: 4 / 3; }
  .galeria-item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 11; }

  .faq-item summary { font-size: 1rem; padding: 1.15rem 0; }
  .faq-answer { padding: 0 0 1.25rem; font-size: 0.97rem; }
  .faq-cta-actions { flex-direction: column; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-content { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-schedule { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; padding-bottom: 5rem; }

  .whatsapp-float { bottom: calc(18px + env(safe-area-inset-bottom)); right: 18px; width: 56px; height: 56px; }
  .whatsapp-float svg { width: 28px; height: 28px; }

  .call-float {
    display: flex;
    position: fixed;
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: 86px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: var(--amber);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px -6px rgba(232, 150, 12, 0.55);
    text-decoration: none;
    transition: transform 0.25s var(--ease-out);
  }
  .call-float:hover { transform: scale(1.06); }
  .call-float svg { width: 24px; height: 24px; fill: none; stroke: var(--dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
}

/* ============ TARJETAS ENLAZADAS ============ */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.service-card:has(.card-link:focus-visible) { outline: 2px solid var(--amber-light); outline-offset: -2px; }
.service-card:has(.card-link) { cursor: pointer; }
.service-card:has(.card-link) h3::before {
  content: '→';
  position: absolute;
  top: clamp(1.9rem, 3vw, 2.6rem);
  right: clamp(1.5rem, 2.5vw, 2.25rem);
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--gray-600);
  transition: color 0.25s, transform 0.35s var(--ease-out);
}
.service-card:hover h3::before { color: var(--amber); transform: translateX(4px); }

/* ============ PÁGINAS DE SERVICIO ============ */
main > section.svc-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) var(--gutter) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 85% 30%, rgba(232, 150, 12, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.svc-grid {
  position: relative;
  max-width: calc(1400px - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
}
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: var(--dark-border-hover); }
.breadcrumb a { color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--amber-ink); }
.breadcrumb [aria-current] { color: var(--gray-200); }

.svc-content h1 {
  font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-wrap: balance;
  max-width: 100%;
}
.svc-content h1 .accent { font-style: italic; }

.svc-intro {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--gray-300);
  font-weight: 300;
  max-width: 46ch;
  margin-bottom: 2rem;
  text-wrap: pretty;
}

.svc-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}
.svc-points li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--gray-100);
  line-height: 1.5;
}
.svc-points svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--amber-glow);
  border: 1px solid var(--amber-line);
  color: var(--amber);
}
.svc-points strong { color: var(--white); font-weight: 600; }

.svc-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-top: 3.25rem;
}
.svc-card-title { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.35rem; color: var(--white); margin-bottom: 0.75rem; }
.svc-card address { font-style: normal; color: var(--gray-100); line-height: 1.55; }
.svc-card-sub { font-size: 0.88rem; color: var(--gray-400); line-height: 1.55; margin: 0.6rem 0 1.25rem; font-weight: 300; }
.svc-hours { border-top: 1px solid var(--dark-border); padding-top: 1rem; display: grid; gap: 0.55rem; font-size: 0.88rem; }
.svc-hours div { display: flex; justify-content: space-between; gap: 1rem; }
.svc-hours dt { color: var(--gray-400); }
.svc-hours dd { color: var(--gray-100); font-variant-numeric: tabular-nums; text-align: right; }
.svc-map-link {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--amber-light);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 3px;
}
.svc-map-link:hover { text-decoration-color: currentColor; }

main > section.svc-more {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-y);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.svc-more > :only-child { grid-column: 1 / -1; }

.svc-note {
  border-top: 1px solid var(--dark-border);
  padding-top: 2rem;
  margin: 0;
}
.svc-note h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.5rem; color: var(--white); margin-bottom: 0.6rem; }
.svc-note p { color: var(--gray-300); line-height: 1.7; font-weight: 300; max-width: 60ch; }
.svc-quote blockquote p { font-family: var(--font-display); font-weight: 500; font-stretch: 100%; font-style: italic; font-size: 1.3rem; color: var(--white); line-height: 1.45; }
.svc-quote figcaption { margin-top: 0.75rem; font-size: 0.82rem; color: var(--gray-500); }

.svc-related { border-top: 1px solid var(--dark-border); padding-top: 2rem; }
.svc-related h2 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray-400); font-weight: 600; margin-bottom: 0.75rem; }
.svc-related ul { list-style: none; }
.svc-related a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--dark-border);
  color: var(--gray-100);
  text-decoration: none;
  transition: color 0.2s;
}
.svc-related a span { color: var(--gray-600); transition: transform 0.3s var(--ease-out), color 0.2s; }
.svc-related a:hover { color: var(--amber-light); }
.svc-related a:hover span { color: var(--amber); transform: translateX(4px); }

.svc-content > * { animation: fadeInUp 0.8s var(--ease-out) both; }
.svc-content > :nth-child(2) { animation-delay: 0.06s; }
.svc-content > :nth-child(3) { animation-delay: 0.12s; }
.svc-content > :nth-child(4) { animation-delay: 0.18s; }
.svc-content > :nth-child(5) { animation-delay: 0.24s; }
.svc-card { animation: fadeInUp 0.8s var(--ease-out) 0.3s both; }

@media (max-width: 900px) {
  .svc-grid, .svc-more { grid-template-columns: 1fr; }
  .svc-card { margin-top: 0; }
}

@media (max-width: 640px) {
  .svc-hero { padding-top: calc(var(--nav-h) + 2.5rem); }
  .svc-hours div { flex-direction: column; gap: 0.1rem; }
  .svc-hours dd { text-align: left; }
}
