/* ============ TECNI-SERVICIOS S.F.M. — Estilos ============ */
:root {
  --brand: #D32F2F;
  --whatsapp: #25D366;
  --ink: #1a1a1a;
  --ink-foreground: #f5f5f5;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --star: #f59e0b;
  --font: "Montserrat", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; }
img { display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

.container { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.text-brand { color: var(--brand); }
.text-ink { color: var(--ink); }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.logo-title { font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--muted); }
.nav-desktop { display: none; align-items: center; gap: 1rem; font-size: 13px; font-weight: 600; }
.nav-desktop a { transition: color .2s; }
.nav-desktop a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff;
  padding: .625rem 1rem; border-radius: .5rem; font-size: .875rem; font-weight: 700;
  transition: opacity .2s;
}
.btn-cta:hover { opacity: .9; }
.menu-btn { border: 1px solid var(--border); border-radius: .5rem; padding: .5rem; }
.nav-mobile { display: none; flex-direction: column; border-top: 1px solid var(--border); padding: .5rem 1rem; font-size: .875rem; font-weight: 600; }
.nav-mobile a { padding: .5rem 0; }
.nav-mobile.open { display: flex; }

/* ============ SLIDER ============ */
.slider { position: relative; width: 100%; overflow: hidden; background: var(--ink); outline: none; }
.slider:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.slider-track { position: relative; height: 600px; width: 100%; }
.slide {
  position: absolute; inset: 0; z-index: 0; opacity: 0;
  transition: opacity .7s ease-out; pointer-events: none;
}
.slide.is-active { z-index: 10; opacity: 1; pointer-events: auto; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); opacity: 0;
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}
.slide.is-active img { transform: scale(1); opacity: 1; }
.slider .container {
  max-width: 100%;
  margin: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0) 85%);
  pointer-events: none;
}
.slide-content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 5; }
.slide-panel {
  max-width: 42rem; padding: 1rem 0;
  text-align: left;
  transform: translateY(1.5rem); opacity: 0;
  transition: all .7s ease;
}
.slide.is-active .slide-panel { transform: translateY(0); opacity: 1; transition-delay: .2s; }
.kicker {
  display: inline-block; background: var(--brand); color: #fff;
  padding: .25rem .75rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
}
.slide-panel h1 {
  margin-top: .75rem; font-size: 1.875rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.85), 0 0 20px rgba(0,0,0,.7);
}
.slide-panel h1 .text-brand { color: #ff5252; }
.slide-panel p {
  margin-top: .75rem; font-size: 1rem; font-weight: 600; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.85), 0 0 18px rgba(0,0,0,.7);
}
.slide-buttons { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff; padding: .875rem 1.5rem;
  border-radius: .5rem; font-size: .875rem; font-weight: 700;
  transition: transform .2s, opacity .2s;
}
.btn-brand:hover { transform: translateY(-2px); opacity: .9; }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 2px solid #fff; background: rgba(26,26,26,.3); color: #fff;
  padding: .75rem 1.5rem; border-radius: .5rem; font-size: .875rem; font-weight: 700;
  backdrop-filter: blur(4px); transition: background .2s, color .2s;
}
.btn-outline:hover { background: #fff; color: var(--ink); }

/* Controles */
.slider-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; }
.controls-pill {
  display: flex; align-items: center; gap: .75rem; width: max-content;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 9999px;
  padding: .5rem 1rem; margin-bottom: 1.5rem;
}
.dots { display: flex; align-items: center; gap: .625rem; }
.dot {
  height: .5rem; width: .5rem; border-radius: 9999px;
  background: rgba(26,26,26,.25); transition: all .3s;
}
.dot:hover { background: rgba(26,26,26,.5); }
.dot.is-active { width: 2.5rem; background: var(--brand); }
.counter { font-size: .875rem; font-weight: 600; letter-spacing: .15em; color: var(--ink); }
.counter-total { color: var(--muted); }
.arrows { display: flex; gap: .375rem; }
.arrows button {
  border: 1px solid var(--border); border-radius: 9999px; padding: .375rem;
  color: var(--ink); display: grid; place-items: center; transition: background .2s;
}
.arrows button:hover { background: rgba(26,26,26,.1); }
.progress-track { height: 4px; width: 100%; background: rgba(26,26,26,.1); }
.progress-bar { height: 100%; background: var(--brand); width: 0; }
.progress-bar.running { animation: progress 6s linear forwards; }
.progress-bar.paused { animation-play-state: paused; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

/* ============ MARQUEE ============ */
.marquee-section { padding: 3rem 0; }
.marquee-title { display: flex; align-items: center; gap: 1rem; max-width: 56rem; margin: 0 auto 2rem; padding: 0 1rem; }
.marquee-title .line { flex: 1; height: 1px; background: var(--border); }
.marquee-title h2 { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-align: center; color: var(--ink); }
.marquee { width: 100%; overflow: hidden; padding: 1.5rem 0; }
.marquee-track { display: flex; align-items: center; width: max-content; gap: 9rem; animation: marquee 40s linear infinite; padding: .5rem 0; }
.marquee-track img {
  height: 85px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform .3s, opacity .3s;
}
.marquee-track img:hover {
  transform: scale(1.08);
}
.marquee-track img.logo-lg {
  height: 110px;
  max-width: 270px;
}
.marquee-track img.logo-lg:hover {
  transform: scale(1.08);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECCIONES ============ */
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section-title { text-align: center; font-size: 1.875rem; font-weight: 800; color: var(--ink); }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); max-width: 36rem; margin: .75rem auto 0; }

/* Servicios */
.services-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: .75rem; padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(211,47,47,.4); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.card-icon {
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  background: rgba(211,47,47,.1); color: var(--brand); border-radius: .75rem;
  margin-bottom: 1rem; transition: background .2s, color .2s;
}
.card:hover .card-icon { background: var(--brand); color: #fff; }
.card h3 { font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.card p { margin-top: .25rem; font-size: .875rem; color: var(--muted); }

/* Nosotros */
.why-box {
  display: grid; gap: 2.5rem; align-items: center;
  border: 1px solid var(--border); border-radius: 1rem; padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}
.why-title { font-size: 1.875rem; font-weight: 800; color: var(--ink); }
.why-item { display: flex; align-items: flex-start; gap: 1rem; }
.why-name { font-weight: 700; color: var(--ink); }
.why-desc { font-size: .875rem; color: var(--muted); }

/* Testimonios + mapa */
.testimonials-map { display: grid; gap: 2rem; }
.testimonials { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.stars { display: flex; gap: .25rem; color: var(--star); }
.quote { margin-top: .75rem; font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.author { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--whatsapp); color: var(--ink); font-weight: 700;
  padding: 1rem 1.5rem; border-radius: .75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
  transition: transform .2s;
}
.btn-whatsapp:hover { transform: translateY(-2px); }
.map-box {
  position: relative; min-height: 420px; overflow: hidden;
  border: 1px solid var(--border); border-radius: .75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: #fff; border-radius: .75rem; padding: 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.map-row { display: flex; align-items: flex-start; gap: .5rem; font-weight: 600; color: var(--ink); }
.map-row + .map-row { margin-top: .5rem; }
.map-row.muted { font-size: .875rem; font-weight: 400; color: var(--muted); }

/* Proceso */
.scroll-mt { scroll-margin-top: 5rem; }
.step-num { font-size: 1.875rem; font-weight: 800; color: rgba(211,47,47,.3); transition: color .2s; }
.card:hover .step-num { color: var(--brand); }
.step-num + h3 { margin-top: .5rem; }

/* Preguntas frecuentes */
.faq-section { max-width: 56rem; }
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.faq { padding: 1.25rem; }
.faq:hover { transform: none; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus {
  width: 1.75rem; height: 1.75rem; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(211,47,47,.1); color: var(--brand); border-radius: 9999px;
  transition: transform .2s, background .2s, color .2s;
}
.faq[open] .faq-plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.icon-sm { width: 1rem; height: 1rem; }
.faq p { margin-top: .75rem; font-size: .875rem; color: var(--muted); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--ink-foreground); }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.footer-title { font-weight: 700; letter-spacing: .05em; }
.footer-links { margin-top: .75rem; list-style: none; font-size: .875rem; }
.footer-links li { margin-top: .375rem; }
.footer-links a { opacity: .7; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; }
.footer-text { margin-top: .75rem; font-size: .875rem; opacity: .7; line-height: 1.6; }
.social { margin-top: .75rem; display: flex; gap: .75rem; }
.social a {
  border: 1px solid rgba(245,245,245,.2); border-radius: 9999px; padding: .5rem;
  display: grid; place-items: center; transition: color .2s;
}
.social a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(245,245,245,.1);
  padding: 1rem; text-align: center; font-size: .75rem; opacity: .6;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .slider .container { padding-left: 2.5rem; padding-right: 2.5rem; }
  .logo-title { font-size: 1.25rem; }
  .slider-track { height: 620px; }
  .slide-panel { padding: 2rem 0; }
  .slide-panel h1 { margin-top: 1rem; font-size: 3rem; }
  .slide-panel p { margin-top: 1rem; font-size: 1.125rem; }
  .slide-buttons { margin-top: 1.75rem; }
  .controls-pill { gap: 1rem; }
  .marquee-title h2 { font-size: .875rem; }
  .marquee-track span { font-size: 1.875rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2.25rem; }
  .map-card { right: auto; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .slider-track { height: 640px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-box { grid-template-columns: repeat(4, 1fr); }
  .testimonials-map { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .hide-mobile { display: none; }
}
