/* ==========================================================================
   Auxilio Mecánico Taty — hoja de estilos principal
   Mobile-first. CSS puro, sin frameworks.
   ========================================================================== */

:root {
  --navy: #0b1220;
  --navy-soft: #131c30;
  --navy-card: #16213a;
  --orange: #f2650e;
  --orange-dark: #d8560a;
  --green: #1fae59;
  --green-dark: #178a47;
  --amber: #f5a623;
  --bg-light: #eef1f7;
  --bg-light-2: #f6f8fb;
  --white: #ffffff;
  --text: #101623;
  --text-muted: #5b6472;
  --text-muted-2: #8891a0;
  --border-soft: #e3e7ef;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 14px 34px -18px rgba(16, 22, 35, 0.28);
  --shadow-btn: 0 10px 22px -10px rgba(16, 22, 35, 0.35);

  --container: 1180px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

/* ---- Reset básico ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-light-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* Salto de línea accesible para lectores de pantalla, se mantiene visible */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 174, 89, 0.18);
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-whatsapp:hover {
  background: var(--green-dark);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-orange:hover {
  background: var(--orange-dark);
}

.btn-dark {
  background: var(--navy-card);
  color: var(--white);
}

.btn-dark:hover {
  background: #1e2b48;
}

.btn-lg {
  padding: 16px 26px;
  font-size: 1rem;
  width: 100%;
}

.btn-block {
  width: 100%;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.eyebrow.eyebrow-green {
  color: var(--green-dark);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.main-nav {
  display: none;
}

.header-actions-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--navy-card);
  color: var(--white);
  flex-shrink: 0;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn-whatsapp {
  background: var(--green);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 14px 14px 0;
}

.hero-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  padding: 30px 20px 34px;
  min-height: 78svh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(9, 14, 26, 0.82) 0%,
    rgba(9, 14, 26, 0.78) 45%,
    rgba(9, 14, 26, 0.92) 100%
  );
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

.hero-badge svg {
  width: 13px;
  height: 13px;
  color: var(--amber);
}

.hero h1 {
  font-size: clamp(1.7rem, 6vw, 2.9rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 20ch;
}

.hero-lead {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  line-height: 1.5;
}

.hero-actions {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.hero-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Servicios
   ========================================================================== */

.services {
  padding: 52px 0 44px;
  background: var(--bg-light);
  text-align: center;
}

.services h2,
.testimonials h2,
.coverage-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: left;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-photo--todo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    #e7ebf2,
    #e7ebf2 10px,
    #eef1f7 10px,
    #eef1f7 20px
  );
  color: var(--text-muted-2);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #ffe9d6;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Opiniones
   ========================================================================== */

.testimonials {
  padding: 52px 0 56px;
  text-align: center;
}

.reviews-cta {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.reviews-cta-icon {
  width: 52px;
  height: 52px;
}

.reviews-cta-icon svg {
  width: 100%;
  height: 100%;
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.reviews-rating-value {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--amber);
}

.stars svg {
  width: 16px;
  height: 16px;
}

.reviews-rating-count {
  font-size: 0.82rem;
  color: var(--text-muted-2);
}

.reviews-cta h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.reviews-cta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 42ch;
}

.reviews-cta-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
  max-width: 1180px;
  margin: 28px auto 0;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.testimonial-name {
  font-weight: 800;
  font-size: 0.88rem;
}

.testimonial-detail {
  font-size: 0.78rem;
  color: var(--text-muted-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-soft);
  color: var(--white);
  padding: 44px 0 118px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.site-footer h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 56ch;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Barra fija móvil / botón flotante desktop
   ========================================================================== */

.sticky-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -10px 24px -16px rgba(16, 22, 35, 0.3);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.sticky-mobile-bar.is-visible {
  transform: translateY(0);
}

.sticky-mobile-bar .btn {
  flex: 1;
  padding: 13px 10px;
  font-size: 0.85rem;
}

.sticky-fab {
  display: none;
}

/* ==========================================================================
   Tablet / Desktop (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .main-nav {
    display: block;
  }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .main-nav a {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
  }

  .main-nav a:hover {
    color: var(--orange);
  }

  .header-actions-mobile {
    display: none;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .hero {
    padding: 0;
  }

  .hero-card {
    border-radius: 0;
    min-height: 640px;
    padding: 80px 32px;
  }

  .hero-content {
    gap: 20px;
  }

  .hero-actions {
    flex-direction: row;
    max-width: none;
    width: auto;
    justify-content: center;
  }

  .btn-lg {
    width: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .reviews-cta-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-actions {
    flex-direction: row;
    flex-shrink: 0;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer {
    padding-bottom: 44px;
  }

  .sticky-mobile-bar {
    display: none;
  }

  .sticky-fab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 40;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    box-shadow: 0 14px 30px -12px rgba(31, 174, 89, 0.55);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .sticky-fab svg {
    width: 18px;
    height: 18px;
  }

  .sticky-fab.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    max-width: 18ch;
  }
}

/* ---- Accesibilidad: reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sticky-mobile-bar,
  .sticky-fab,
  .btn {
    transition: none;
  }
}
