/* =========================================================
   VÉRTICE AUTOMOTRIZ — STYLES
   Paleta: Negro carbón / Rojo / Verde WhatsApp / Gris oscuro / Gris claro / Blanco
   Tipografía: Montserrat
   ========================================================= */

:root {
  --c-black: #111111;
  --c-red: #E53935;
  --c-red-dark: #C62828;
  --c-whatsapp: #25D366;
  --c-whatsapp-dark: #1FAE55;
  --c-charcoal: #2B2B2B;
  --c-light: #F2F2F2;
  --c-white: #FFFFFF;

  --c-text-muted: #B9B9B9;
  --c-border-dark: rgba(255, 255, 255, 0.1);
  --c-border-light: rgba(17, 17, 17, 0.1);

  --font: 'Montserrat', sans-serif;

  --container-w: 1240px;
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-black);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}

/* ============ LAYOUT UTILITIES ============ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow { max-width: 860px; }

.section {
  padding: 110px 0;
  text-align: center;
}

.section--dark {
  background: var(--c-black);
  color: var(--c-white);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 26px 26px;
}

.section--light { background: var(--c-light); }

.section-head {
  max-width: 700px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  padding-bottom: 10px;
  margin-bottom: 14px;
  position: relative;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  background: var(--c-red);
  border-radius: 2px;
}

.eyebrow--light { color: var(--c-red); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-title--light { color: var(--c-white); }

.section-subtitle {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section--light .section-subtitle,
.section:not(.section--dark):not(.section--light) .section-subtitle {
  color: #5c5c5c;
}

.section-text {
  color: #4a4a4a;
  font-size: 16px;
  margin-bottom: 18px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-lg { padding: 19px 40px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: var(--c-whatsapp);
  color: var(--c-white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: var(--c-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.38);
}

.btn-whatsapp--header {
  padding: 11px 20px;
  font-size: 13px;
}

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  border-color: var(--c-white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--c-black);
  border: 1.5px solid var(--c-black);
}
.btn-outline:hover {
  background: var(--c-black);
  color: var(--c-white);
  transform: translateY(-2px);
}

.pricing-card--featured .btn-outline {
  border-color: var(--c-white);
  color: var(--c-white);
}

.icon-whatsapp { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(17, 17, 17, 0.0);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 6px 0;
}

.header.is-scrolled {
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.scroll-progress {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-red), #ff7961);
  transition: width 0.1s linear;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-red);
  color: var(--c-white);
  font-weight: 800;
  font-size: 19px;
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--c-white);
}
.logo-subtitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--c-red);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-white);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--c-red);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.nav-whatsapp { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-close {
  display: none;
  position: absolute;
  top: 26px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-border-dark);
  color: var(--c-white);
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease), color 0.3s var(--ease);
}
.nav-close svg { width: 16px; height: 16px; }
.nav-close:hover {
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
  transform: rotate(90deg);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease);
  display: flex;
  align-items: center;
}

.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.55) 48%, rgba(17,17,17,0.35) 100%),
    linear-gradient(0deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.1) 40%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin: 0 auto;
  color: var(--c-white);
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-red);
  border: 1px solid var(--c-red);
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 34px;
}

.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: rgba(255,255,255,0.15); border-color: var(--c-white); }
.hero-arrow--prev { left: 32px; }
.hero-arrow--next { right: 32px; }

.hero-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.hero-dot.is-active { background: var(--c-red); }

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.hero-scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--c-white);
  border-radius: 3px;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 7px; }
}

/* ============ SCROLL REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-slide.is-active [data-reveal] { transition-delay: 0.15s; }

/* ============ NOSOTROS ============ */
.nosotros-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
  align-items: center;
  text-align: center;
}

.nosotros-media { position: relative; }
.nosotros-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.nosotros-content .section-text { max-width: 540px; margin-left: auto; margin-right: auto; }
.nosotros-content .btn { display: inline-flex; margin-top: 14px; }

/* ============ SERVICIOS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--c-charcoal);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-red);
  background: #313131;
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--c-red);
  margin: 0 auto 22px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 12px;
}

.service-text {
  font-size: 14.5px;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.service-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid var(--c-red);
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.service-link:hover { gap: 12px; color: var(--c-red); }

/* ============ PAQUETES ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pricing-card {
  background: var(--c-white);
  border: 1px solid #e4e4e4;
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.pricing-card--featured {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
  transform: scale(1.045);
  box-shadow: var(--shadow-soft);
}
.pricing-card--featured:hover { transform: scale(1.045) translateY(-8px); }

.pricing-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-red);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
}

.pricing-name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.pricing-desc { font-size: 14px; color: #767676; margin-bottom: 22px; min-height: 40px; }
.pricing-card--featured .pricing-desc { color: rgba(255,255,255,0.65); }

.pricing-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--c-red);
  margin-bottom: 6px;
}
.pricing-currency { font-size: 20px; vertical-align: top; margin-right: 2px; }
.pricing-cop { font-size: 14px; font-weight: 600; color: #9a9a9a; margin-left: 6px; }

.pricing-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px dashed #d8d8d8;
}
.pricing-card--featured .pricing-duration { color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.18); }

.pricing-features { flex-grow: 1; margin-bottom: 30px; width: 100%; }
.pricing-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 14.5px;
  text-align: left;
}
.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* ============ BENEFICIOS ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.benefit-card { text-align: center; padding: 10px; }
.benefit-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--c-red);
}
.benefit-icon svg { width: 100%; height: 100%; }
.benefit-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.benefit-card p { font-size: 14px; color: #666; max-width: 280px; margin: 0 auto; }

/* ============ FLOW (AGENDAR) ============ */
.flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 54px;
}

.flow-step {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 14px;
}

.flow-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--c-charcoal);
  border: 1px solid var(--c-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-red);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.flow-step:hover .flow-icon { border-color: var(--c-red); background: #313131; }
.flow-icon svg { width: 32px; height: 32px; }

.flow-step h3 { font-size: 16.5px; font-weight: 700; color: var(--c-white); margin-bottom: 10px; }
.flow-step p { font-size: 13.5px; color: var(--c-text-muted); }

.flow-connector {
  flex: 0 0 auto;
  width: 60px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--c-red), var(--c-red) 6px, transparent 6px, transparent 12px);
  margin-top: 36px;
}

.flow-cta { display: flex; justify-content: center; }

/* ============ RESEÑAS ============ */
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}
.reviews-stars { color: #FBBC05; font-size: 18px; letter-spacing: 2px; }
.reviews-score { font-weight: 800; color: var(--c-black); font-size: 16px; }

.reviews-marquee {
  width: 100%;
  overflow: hidden;
  padding: 50px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.reviews-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.reviews-marquee:hover .reviews-track,
.reviews-track.is-paused { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--c-white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  border-color: var(--c-red);
}

.review-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; width: 100%; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.review-top > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.review-name { font-size: 14px; font-weight: 700; }
.review-stars { color: #FBBC05; font-size: 12px; letter-spacing: 1px; }
.review-google { width: 20px; height: 20px; flex-shrink: 0; }
.review-text { font-size: 14px; color: #4c4c4c; line-height: 1.55; text-align: center; }

/* ============ UBICACIÓN / MAPA ============ */
.map-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #e2e2e2;
  filter: grayscale(15%);
}
.map-wrapper iframe { display: block; width: 100%; height: 440px; }

.map-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============ FAQ / ACCORDION ============ */
.accordion-item {
  border-bottom: 1px solid #e2e2e2;
}

.accordion-trigger {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 46px;
  text-align: center;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--c-black);
}

.accordion-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.accordion-item.is-open .accordion-icon {
  transform: translateY(-50%) rotate(135deg);
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  text-align: center;
}

.accordion-panel p {
  padding: 0 46px 26px;
  font-size: 14.5px;
  color: #5c5c5c;
  max-width: 700px;
  margin: 0 auto;
}

/* ============ CTA FINAL ============ */
.cta-final {
  background-image:url(recursos/taller.png);
  padding: 90px 0;
  text-align: center;
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  filter: blur(10px) brightness(50%);
  background-size: 26px 26px;
}
.cta-final-content { position: relative; z-index: 1; max-width: 620px; }

.cta-final h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 14px; color: var(--c-white); }
.cta-final p { font-size: 16.5px; color: rgba(255,255,255,0.75); margin-bottom: 32px; }

/* ============ FOOTER ============ */
.footer { background: var(--c-black); color: var(--c-white); padding-top: 80px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  text-align: center;
  padding-bottom: 60px;
}

.footer-col { display: flex; flex-direction: column; align-items: center; }

.footer-brand p { font-size: 14px; color: var(--c-text-muted); margin: 18px 0 22px; max-width: 300px; }

.logo--footer { margin-bottom: 0; justify-content: center; }

.footer-social { display: flex; justify-content: center; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--c-border-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-social a:hover { background: var(--c-red); border-color: var(--c-red); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 22px;
}

.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a { font-size: 14px; color: var(--c-text-muted); transition: color 0.25s var(--ease); }
.footer-col ul li a:hover { color: var(--c-white); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--c-text-muted);
  text-align: left;
}
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--c-red); }

.footer-bottom { border-top: 1px solid var(--c-border-dark); padding: 24px 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-bottom p { font-size: 12.5px; color: #8a8a8a; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal-link { font-size: 12.5px; color: #8a8a8a; transition: color 0.25s var(--ease); }
.footer-legal-link:hover { color: var(--c-white); }

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 400;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--c-whatsapp);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  animation: pulseWa 2.6s infinite;
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon-whatsapp { width: 40px; height: 40px; }

@keyframes pulseWa {
  0% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ MODAL PRIVACIDAD ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(17,17,17,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 24px;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
  text-align: left;
}
.modal-overlay.is-open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-light);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--c-red); color: var(--c-white); }

.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; padding-right: 30px; }
.modal-body p { font-size: 14px; color: #4a4a4a; margin-bottom: 14px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav-list { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .header-inner { justify-content: space-between; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--c-black);
    padding: 110px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 400;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-close { display: flex; }
  .nav-list { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .nav-link { font-size: 16px; }
  .hamburger { display: flex; }
  .btn-whatsapp--header { display: none; }
  .nav-whatsapp { display: inline-flex; margin-top: 106px; width: 100%; justify-content: center; }

  .nosotros-grid { grid-template-columns: 1fr; gap: 50px; }
  .nosotros-media img { height: 380px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pricing-card--featured { transform: none; order: -1; }
  .pricing-card--featured:hover { transform: translateY(-8px); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }

  .flow { flex-direction: column; align-items: center; gap: 30px; }
  .flow-connector { width: 1px; height: 40px; background: repeating-linear-gradient(180deg, var(--c-red), var(--c-red) 6px, transparent 6px, transparent 12px); margin: 0; }
  .flow-step { max-width: 320px; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .container { padding: 0 22px; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 70px; }

  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .whatsapp-float {
     bottom: 10px; 
     right: 10px; 
  }

  .review-card { width: 270px; }
  .map-wrapper iframe { height: 300px; }
  .map-actions { flex-direction: column; }
  .map-actions .btn { width: 100%; }


}


@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-text { font-size: 15.5px; }
  .btn { padding: 13px 22px; font-size: 12.5px; }
  .btn-lg { padding: 16px 28px; }
}
