:root {
  color-scheme: light;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  background: #f7f9fb;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --primary: #1e40af;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --border: #e2e8f0;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.page-wrapper {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.custom-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.logo-gears {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.1));
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #7ca310;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #091217;
  font-weight: 700;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button-white {
  background: #ffffff;
  color: #0f172a;
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  color: var(--text);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  gap: 18px;
  flex-direction: column;
  z-index: 19;
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mobile-quote {
  margin-top: 12px;
}

.main-content {
  margin-top: 20px;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%), url('src/media/hero_bg_gauges.jpg') center/cover no-repeat;
  color: #fff;
  margin: 0 auto;
  padding: 120px 24px 64px;
  text-align: center;
}

.hero-label {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fcd34d;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  will-change: transform, opacity;
}

.hero-copy h1 {
  font-size: clamp(2rem, 8vw, 4.8rem);
  line-height: 1.02;
  margin: 0;
  font-weight: 800;
  overflow-wrap: break-word;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  will-change: transform, opacity;
}

.hero-copy h1 span {
  color: #f59e0b;
}

.hero-description {
  max-width: 700px;
  margin: 28px auto 32px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  will-change: transform, opacity;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
  will-change: transform, opacity;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
  will-change: transform, opacity;
}

.hero-trust span {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.trust-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.trust-list span:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

.trust-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.section {
  padding: 80px 24px;
}

.section-light {
  background: var(--surface);
}

.section-white {
  background: #ffffff;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 5.5vw, 3.2rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-heading h2 span {
  color: var(--accent);
}

.section-heading p {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.about-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px 32px 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.about-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--accent);
}

.about-text {
  margin: 0 0 26px;
  color: #1e293b;
  line-height: 1.9;
  font-size: 1rem;
}

.about-info {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.about-info .material-icons {
  color: var(--accent);
  font-size: 1.65rem;
}

.info-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.info-value {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.about-highlight {
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  background: #fff7d6;
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #0f172a;
  line-height: 1.9;
  font-weight: 700;
}

.about-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-small {
  min-height: 220px;
}

.products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(148, 163, 184, 0.15), 0 2px 10px rgba(148, 163, 184, 0.08);
}

/* Viñeta grisácea sutil sobre el margen de la tarjeta para definir los bordes de las imágenes */
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), inset 0 0 12px rgba(15, 23, 42, 0.05);
  pointer-events: none;
  z-index: 2;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.product-card-head .material-icons {
  color: var(--accent);
  font-size: 1.75rem;
}

.product-card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ── CTA Banner en Grid de Productos ── */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 10px 35px rgba(148, 163, 184, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
  border: 1px solid var(--border);
}

.cta-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(148, 163, 184, 0.25);
}

.cta-banner a {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 980px) {
  .cta-banner {
    grid-column: span 2; /* Ocupa exactamente la sección vacía generada por los 6 cards en grid de 4 */
  }
}

/* ── Sección Experiencia (Nosotros) ── */
.experiencia-section {
  margin: 52px 0 0;
  padding: 36px 32px;
  background: var(--surface);
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

.experiencia-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.experiencia-icon {
  font-size: 2.6rem;
  color: var(--primary);
  flex-shrink: 0;
  background: #eff6ff;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(30, 64, 175, 0.18);
}

.experiencia-label {
  margin: 0 0 4px;
  font-size: 0.73rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.experiencia-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.experiencia-title span {
  color: var(--accent);
}

.experiencia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.experiencia-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 16px;
  padding: 18px 16px;
  transition: border-left-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.experiencia-card:hover {
  border-left-color: var(--accent);
  background: #fffdf7;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.1);
}

.experiencia-card > .material-icons {
  font-size: 1.55rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.experiencia-card:hover > .material-icons {
  color: var(--accent);
  transform: scale(1.1);
}

.experiencia-card strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.35;
}

.experiencia-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.mecanica-section {
  margin: 56px 0 0;
  padding: 40px 36px;
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.07), 0 2px 8px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}

.mecanica-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, #f59e0b80 100%);
  border-radius: 32px 0 0 32px;
}

.mecanica-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.mecanica-icon {
  font-size: 3rem;
  color: var(--accent);
  flex-shrink: 0;
  background: #fffbeb;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.mecanica-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
}

.mecanica-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.mecanica-title span {
  color: var(--accent);
}

.mecanica-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mecanica-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 20px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Shimmer sweep en hover */
.mecanica-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(245, 158, 11, 0.09) 50%,
    transparent 80%
  );
  transition: left 0.55s ease;
  pointer-events: none;
}

.mecanica-card:hover::after {
  left: 160%;
}

.mecanica-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.12), 0 1px 4px rgba(15, 23, 42, 0.06);
}

/* Spring bounce en el ícono */
.mecanica-card > .material-icons {
  font-size: 1.75rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.mecanica-card:hover > .material-icons {
  transform: scale(1.28) rotate(-10deg);
  color: var(--accent-dark);
}

.mecanica-card strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.mecanica-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 48px 0 28px;
}

.service-tab-btn {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.service-tab-btn:hover,
.service-tab-btn.active {
  border-color: rgba(30, 64, 175, 0.2);
  background: #eff6ff;
  color: #183b7a;
}

.service-details {
  display: grid;
  gap: 24px;
}

.service-detail {
  display: none;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1.2fr 1fr;
}

.service-detail.active {
  display: grid;
}

.service-detail-image {
  border-radius: 28px;
  overflow: hidden;
  min-height: 260px;
  max-height: 320px;
  display: grid;
  place-items: center;
  background: #f8fafc;
}

.service-detail-image img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.service-detail-copy p {
  margin: 16px 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.service-detail-copy ul {
  margin: 0 0 28px;
  padding-left: 1.2rem;
  color: #334155;
  line-height: 1.8;
}

.service-detail-copy li {
  margin-bottom: 12px;
}

.success-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.success-card {
  border-radius: 28px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.06);
}

.success-card img,
.success-image-placeholder {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}

.success-image-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}

.success-card div {
  padding: 20px;
}

.success-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
}

.success-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.process-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.05);
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.process-card p {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-card {
  border-radius: 24px;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.faq-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.contact-card .material-icons {
  font-size: 2rem;
  color: var(--primary);
  margin-top: 4px;
}

.contact-card strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 28px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.06);
}

.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.75rem;
}

.contact-form-card label {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
  color: #475569;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 8px;
  background: #f8fafc;
  color: #0f172a;
  min-height: 48px;
}

.contact-form-card textarea {
  resize: vertical;
}

.site-footer {
  background: #0f172a;
  color: #dbeafe;
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.footer-slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-slogan p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

.footer-slogan .rif {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  width: 100%;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.3);
  z-index: 30;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .mecanica-grid {
    grid-template-columns: 1fr;
  }

  .mecanica-section {
    padding: 32px 24px;
  }

  .experiencia-grid {
    grid-template-columns: 1fr;
  }

  .experiencia-section {
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  .hero-copy {
    padding: 90px 18px 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .custom-logo {
    gap: 10px;
  }

  .logo-gears {
    width: 44px;
    height: 44px;
  }

  .logo-name {
    font-size: clamp(0.85rem, 3.4vw, 1.1rem);
    letter-spacing: 0.12em;
  }

  .hero-section {
    padding: 96px 16px 48px;
  }

  .hero-description {
    font-size: 0.98rem;
    margin: 22px auto 28px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    gap: 12px;
  }

  .trust-list a {
    min-height: 44px;
    padding: 8px 12px;
  }

  .trust-icon {
    width: 18px;
    height: 18px;
  }

  .section {
    padding: 56px 16px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  section[id] {
    scroll-margin-top: 80px;
  }

  .about-grid {
    gap: 24px;
  }

  .about-card {
    padding: 24px 20px;
  }

  .about-info {
    padding: 16px;
  }

  .about-highlight {
    padding: 20px;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-row: auto;
  }

  .gallery-large,
  .gallery-small,
  .product-card img,
  .service-detail-image,
  .success-card img {
    min-height: 200px;
  }

  .experiencia-section,
  .mecanica-section {
    margin-top: 40px;
    padding: 26px 18px;
    border-radius: 24px;
  }

  .mecanica-section::before {
    border-radius: 24px 0 0 24px;
  }

  .experiencia-header,
  .mecanica-header {
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .experiencia-icon {
    width: 56px;
    height: 56px;
    font-size: 2rem;
  }

  .mecanica-icon {
    width: 60px;
    height: 60px;
    font-size: 2.3rem;
  }

  .experiencia-card,
  .mecanica-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .product-card img {
    height: 200px;
  }

  .service-tabs {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 36px 0 24px;
  }

  .service-tab-btn {
    padding: 12px 10px;
  }

  .service-detail {
    gap: 20px;
  }

  .service-detail-image {
    min-height: 200px;
    max-height: none;
  }

  .service-detail-copy .button {
    width: 100%;
  }

  .success-card img,
  .success-image-placeholder {
    height: 200px;
  }

  .process-card {
    padding: 22px 16px;
  }

  .faq-card {
    padding: 22px 18px;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-card {
    padding: 18px 16px;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .contact-form-card input,
  .contact-form-card textarea {
    font-size: 16px;
  }

  .site-footer {
    padding: 40px 16px 28px;
  }

  .footer-slogan p {
    font-size: 0.85rem;
  }

  .whatsapp-fab {
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 16px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 400px) {
  .hero-copy h1 {
    font-size: clamp(1.7rem, 8.2vw, 2rem);
  }

  .hero-label {
    letter-spacing: 0.18em;
  }

  .header-inner {
    gap: 8px;
  }

  .custom-logo {
    gap: 8px;
  }

  .logo-gears {
    width: 40px;
    height: 40px;
  }

  .logo-name {
    font-size: clamp(0.72rem, 3.1vw, 0.95rem);
    letter-spacing: 0.08em;
  }
}

/* ── Responsive Móvil (máx. 768px): no afecta el diseño de escritorio ── */
@media (max-width: 768px) {
  /* Protección de raíz: la página NUNCA genera scroll horizontal en móviles.
     overflow-x: clip no crea scroll container (no rompe el header sticky);
     hidden es el fallback para navegadores antiguos. */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* 1. Eliminar desbordamiento horizontal: cuerpo y contenedores al 100% */
  html,
  body,
  .page-wrapper,
  .main-content,
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  /* 2. Títulos principales ajustados para no salirse ni encimarse */
  .hero-copy h1 {
    font-size: clamp(1.8rem, 7.5vw, 3rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .section-heading h2 {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
    line-height: 1.15;
  }

  .experiencia-title,
  .mecanica-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    line-height: 1.25;
  }

  .product-card-head h3 {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .contact-form-card h3 {
    font-size: 1.4rem;
  }

  /* 3. Imágenes y botones adaptados al ancho del teléfono */
  img {
    max-width: 100%;
    height: auto;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }
}
