:root {
  --bg: #080a0f;
  --bg-soft: #111722;
  --panel: #ffffff;
  --ink: #121722;
  --muted: #606977;
  --line: #d8dee8;
  --red: #d71920;
  --red-dark: #961014;
  --steel: #eef2f7;
  --gold: #c9a25a;
  --blue: #23364d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .24);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 82px; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f6f7f9;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}
.section-pad { padding: 72px 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(16px, calc((100vw - 1140px) / 2));
  color: #fff;
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 10, 15, .94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .74);
}
.main-nav {
  display: none;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}
.main-nav a:hover { color: #fff; }
.header-cta {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 790px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: 116px 0 72px;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero-overlay {
  background:
    radial-gradient(circle at 78% 48%, rgba(215, 25, 32, .24), transparent 26%),
    linear-gradient(90deg, rgba(7, 9, 14, .98) 0%, rgba(7, 9, 14, .84) 46%, rgba(7, 9, 14, .42) 100%),
    linear-gradient(180deg, rgba(7, 9, 14, .28), rgba(7, 9, 14, .96));
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 28px;
}
.hero-logo {
  width: 208px;
  height: 208px;
  margin-bottom: 22px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ff5258; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.65rem, 5.2vw, 3.67rem);
  line-height: .96;
  letter-spacing: 0;
}
h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}
h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}
.hero-subtitle {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 18px 36px rgba(215, 25, 32, .32);
}
.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.hero-proof span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .84);
  background: rgba(255, 255, 255, .07);
  font-size: .86rem;
  font-weight: 800;
}
.hero-panel {
  max-width: 390px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 23, 34, .92), rgba(8, 10, 15, .82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-panel strong {
  display: block;
  font-size: 1.55rem;
}
.hero-panel p {
  color: rgba(255, 255, 255, .74);
}
.mini-location {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 10, 15, .86), rgba(8, 10, 15, .64)),
    url("assets/mapa-referencia.jpg") center/cover;
}
.mini-location.map-active {
  padding: 0;
  height: 180px;
  display: block;
  overflow: hidden;
  background: transparent;
}
.mini-location.map-active iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}
.mini-location span {
  color: #fff;
  font-weight: 900;
}
.mini-location small {
  color: rgba(255, 255, 255, .68);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}
.section-heading p:not(.eyebrow),
.method-copy > p,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
}
.compact-heading {
  display: grid;
  gap: 10px;
}

.services {
  background: linear-gradient(180deg, #f7f8fa, #eef2f7);
}
.service-grid {
  display: grid;
  gap: 14px;
}
.service-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(18, 23, 34, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 243, 248, .92));
  box-shadow: 0 12px 36px rgba(17, 23, 34, .08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px rgba(17, 23, 34, .25);
  border-color: rgba(215, 25, 32, 0.4);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 14px -76px auto;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(215, 25, 32, .16);
  border-radius: 50%;
}
.service-card.featured {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 10, 15, .9), rgba(17, 23, 34, .88)),
    url("assets/mecanico-servicio.jpg") center/cover;
  box-shadow: var(--shadow);
}
.service-card.featured p { color: rgba(255, 255, 255, .74); }
.service-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-size: .78rem;
  font-weight: 900;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.conversion-band {
  color: #fff;
  background: var(--bg);
}
.conversion-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}
.image-frame {
  min-height: 370px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
}
.method-copy > p {
  color: rgba(255, 255, 255, .72);
}
.method-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.method-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.method-list span {
  grid-row: span 2;
  color: var(--gold);
  font-weight: 900;
}
.method-list strong {
  color: #fff;
}
.method-list p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
}

.trust-strip {
  padding: 22px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #202b3b);
}
.trust-grid {
  display: grid;
  gap: 14px;
}
.trust-grid div {
  display: grid;
  gap: 3px;
}
.trust-grid strong {
  font-size: 1rem;
}
.trust-grid span {
  color: rgba(255, 255, 255, .78);
}

.contact-section {
  background: #fff;
}
.contact-grid {
  display: grid;
  gap: 34px;
}
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.contact-card {
  display: grid;
  gap: 5px;
  max-width: 360px;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--bg);
}
.contact-card a {
  color: #ff535a;
  font-size: 1.25rem;
  font-weight: 900;
}
.contact-card span {
  color: rgba(255, 255, 255, .7);
}
.lead-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 247, 251, .98));
  box-shadow: 0 16px 44px rgba(17, 23, 34, .1);
}
.lead-form label {
  display: grid;
  gap: 7px;
  color: #323844;
  font-size: .92rem;
  font-weight: 800;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #cfd5df;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  color: var(--ink);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(215, 25, 32, .16);
  border-color: var(--red);
}
.lead-form textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.site-footer {
  padding: 36px 0;
  color: #fff;
  background: #07090d;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.site-footer img {
  border-radius: var(--radius);
  object-fit: cover;
}
.site-footer p,
.site-footer span {
  color: rgba(255, 255, 255, .68);
}
.site-footer h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}
.site-footer a {
  display: block;
  color: #ff535a;
  font-weight: 900;
}
.hdh-credit {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hdh-credit img {
  width: 54px;
  height: 54px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1fb85c;
  box-shadow: 0 16px 35px rgba(31, 184, 92, .36);
  font-weight: 900;
  animation: pulse-wa 2.2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(31, 184, 92, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(31, 184, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 184, 92, 0); }
}

/* ---- ANIMACIONES Y ESTADOS VISUALES ---- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.lead-form input.is-valid,
.lead-form select.is-valid,
.lead-form textarea.is-valid {
  border-color: #1fb85c;
  background: #f4fdf7;
}
.lead-form input.is-invalid,
.lead-form select.is-invalid,
.lead-form textarea.is-invalid {
  border-color: var(--red);
  background: #fffafa;
}
/* -------------------------------------- */

/* ---- NUEVAS SECCIONES MEDIA ---- */
.hero-fachada {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.gallery-section {
  background: var(--bg);
  color: #fff;
}
.gallery-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  aspect-ratio: 4/3;
  background: #111722;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 10px;
  background: linear-gradient(0deg, rgba(8,10,15,0.9) 0%, transparent 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  pointer-events: none;
}
/* ---- MODULO DE RESEÑAS ---- */
.reviews-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.review-card {
  background: #fff;
  color: #222;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.review-stars {
  color: #f5b301;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.review-name {
  color: #222;
  font-weight: 800;
  font-size: 1.1rem;
}
.review-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 12px;
}
.review-comment {
  font-style: italic;
  color: #444;
  line-height: 1.5;
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #fff;
  color: #222;
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 500px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none; border: none;
  font-size: 2rem; cursor: pointer;
  color: #777;
  line-height: 1;
}
.loading-reviews {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.5);
}
/* -------------------------------------- */

@media (min-width: 680px) {
  .main-nav { display: flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { gap: 16px; grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-caption { font-size: 0.95rem; padding: 24px 14px 14px; }
  .lead-form {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px;
  }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
  }
}

@media (min-width: 920px) {
  .section-pad { padding: 88px 0; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: end;
  }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card.featured { grid-column: span 2; }
  .conversion-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 679px) {
  .site-header { padding-inline: 14px; }
  .brand span { display: none; }
  .brand img {
    width: 48px;
    height: 48px;
  }
  .header-cta { padding: 8px 11px; }
  .hero {
    min-height: 760px;
    padding-top: 108px;
  }
  .hero-media img {
    object-position: 64% center;
  }
  .hero-actions .btn { width: 100%; }
  .hero-panel strong { font-size: 1.32rem; }
  .section-pad { padding: 58px 0; }
  .service-card { min-height: 190px; }
  .floating-whatsapp {
    width: 54px;
    height: 54px;
  }
}
