/* =========================================================
   DIMMER — estilos minimalistas
   Dirección: el logo es el único elemento visualmente "ruidoso";
   todo lo demás queda tipográfico, con aire y un único acento.
   Paleta: blanco + negro + coral #E63946 (acento único).
   ========================================================= */

:root {
  /* Neutros */
  --ink:         #0A0A0A;
  --ink-soft:    #2A2A2A;
  --muted:       #6B6B6B;
  --line:        #EAEAEA;
  --line-soft:   #F2F2F2;
  --bg:          #FFFFFF;
  --bg-alt:      #FAFAFA;

  /* Único acento */
  --accent:      #E63946;
  --accent-dim:  #C2283B;

  /* WhatsApp (universal) */
  --wa-green:    #25D366;
  --wa-green-d:  #1FB557;

  /* Tipografía */
  --font-display: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --container-w: 1120px;
}

/* --- Reset ligero --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --- Tipografía --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }

p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0; }

/* --- Utilidades --- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.grid { display: grid; gap: 1.5rem; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo__iso {
  height: 34px;
  width: auto;
  display: block;
}
.site-logo__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
  display: inline-block;
}
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  padding: .25rem 0;
  transition: color .15s ease;
}
.nav a:hover { color: var(--accent); }
.nav a.cta {
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.nav a.cta:hover { color: var(--accent-dim); border-color: var(--accent-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: .5rem;
  color: var(--ink);
}

/* --- Carrusel portada --- */
.cover {
  position: relative;
  width: 100%;
  height: clamp(440px, 72vh, 720px);
  overflow: hidden;
  background: #0A0A0A;
}
.cover__track {
  position: absolute;
  inset: 0;
}
.cover__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 10vh, 7rem);
  margin: 0;
}
.cover__slide.is-active {
  opacity: 1;
  z-index: 2;
}
.cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.82) 100%);
  z-index: 1;
}
.cover__content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 720px;
}
.cover__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.cover__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: white;
}
.cover__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  max-width: 56ch;
  opacity: .92;
  margin: 0 0 1.75rem;
}
.btn--invert {
  background: white;
  color: var(--ink);
  border-color: white;
}
.btn--invert:hover {
  background: transparent;
  color: white;
}
.cover__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: white;
  border: 1px solid rgba(255,255,255,.35);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}
.cover__nav:hover { background: rgba(255,255,255,.35); }
.cover__nav:active { transform: translateY(-50%) scale(.94); }
.cover__nav--prev { left: 1.25rem; }
.cover__nav--next { right: 1.25rem; }
.cover__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: .6rem;
}
.cover__dot {
  width: 34px;
  height: 3px;
  background: rgba(255,255,255,.35);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.cover__dot:hover { background: rgba(255,255,255,.6); }
.cover__dot.is-active { background: white; width: 54px; }

@media (max-width: 720px) {
  .cover__nav { display: none; }
  .cover__slide { align-items: flex-end; padding-bottom: 5rem; }
}

/* --- Hero --- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  background: var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__copy h1 {
  margin-top: 0;
  max-width: 14ch;
}
.hero__copy h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__copy .lead {
  margin-top: 1.25rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn--primary:hover { background: transparent; color: var(--ink); }
.btn--wa {
  background: var(--wa-green);
  color: white;
  border-color: var(--wa-green);
}
.btn--wa:hover { background: var(--wa-green-d); border-color: var(--wa-green-d); color: white; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: white; }
.btn--link {
  color: var(--ink);
  padding: 0;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn--link:hover { color: var(--accent); border-color: var(--accent); }

.hero__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}
.hero__isotipo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}
.hero__wordmark {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

/* --- Alcance (3 verbos) --- */
.scope {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.scope__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.scope__item {
  padding: 0 2rem;
  border-right: 1px solid var(--line);
}
.scope__item:last-child { border-right: none; }
.scope__item:first-child { padding-left: 0; }
.scope__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .5rem;
}
.scope__item span {
  display: block;
  color: var(--muted);
  font-size: .98rem;
}

/* --- Secciones --- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }
.section-head {
  max-width: 56ch;
  margin-bottom: 4rem;
}
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 1rem; }

/* --- Servicios (lista tipográfica, cero íconos) --- */
.services {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .15s ease;
}
.service-card:hover { background: var(--bg); }
.section--alt .service-card:hover { background: white; }
.service-card__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: 1.5rem;
  display: block;
}
.service-card h3 {
  margin: 0 0 .75rem;
}
.service-card p {
  color: var(--muted);
  font-size: .98rem;
  margin: 0 0 1.25rem;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .92rem;
}
.service-card li {
  padding: .35rem 0;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
}
.service-card li:first-child { border-top: none; padding-top: 0; }

/* Ajustes de bordes para que cierre prolijo en grid */
@media (min-width: 820px) {
  .services .service-card:nth-child(3n) { border-right: none; }
}
@media (min-width: 560px) and (max-width: 819px) {
  .services .service-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 559px) {
  .services .service-card { border-right: none; }
}

/* --- Cobertura --- */
.coverage__zones {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.coverage__zones span {
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--ink-soft);
  background: transparent;
}
.coverage__zones span:hover { border-color: var(--ink); }

/* --- Nosotros --- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.about__inner h2 { margin: 0; max-width: 12ch; }
.about p { font-size: 1.05rem; color: var(--ink-soft); max-width: 60ch; }

/* --- CTA final --- */
.cta-final {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.cta-final h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-final p {
  max-width: 46ch;
  margin: 1rem auto 2.5rem;
  color: var(--muted);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  font-size: .92rem;
  color: var(--muted);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.site-footer__brand .site-logo__iso { height: 30px; }
.site-footer__brand .site-logo__wordmark {
  font-size: 2rem;
  color: white;
}
.site-footer__brand p { margin: 0; max-width: 36ch; color: var(--muted); font-size: .92rem; }
.site-footer h4 {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 1rem;
}
.site-footer a { color: var(--muted); transition: color .15s ease; }
.site-footer a:hover { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .3rem 0; }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .84rem;
  color: var(--muted);
}

/* --- Stack de botones flotantes (estilo Chaty) --- */
.floating-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: center;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.float-btn svg { width: 26px; height: 26px; }

.float-btn--wa { background: var(--wa-green); color: white; }
.float-btn--wa:hover { color: white; }

.float-btn--ig {
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 35%, #8134AF 65%, #515BD4 100%);
  color: white;
}
.float-btn--ig:hover { color: white; }

.float-btn--google {
  background: white;
  color: inherit;
  border: 1px solid var(--line);
}

.float-btn--fb {
  background: #1877F2;
  color: white;
}
.float-btn--fb:hover { color: white; }

/* Tooltip con el nombre al hacer hover (opcional, puro CSS) */
.float-btn::after {
  content: attr(aria-label);
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: var(--ink);
  color: white;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 500;
  padding: .35rem .65rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.float-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 560px) {
  .float-btn::after { display: none; }
}

/* --- Service cards clickeables --- */
.service-card--link { position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.service-card--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.18);
}
.service-card__stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}
.service-card--link > *:not(.service-card__stretch) { position: relative; z-index: 2; pointer-events: none; }
.service-card__more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--accent);
  letter-spacing: .02em;
  transition: color .12s ease, transform .12s ease;
}
.service-card--link:hover .service-card__more {
  color: var(--accent-dim);
  transform: translateX(4px);
}

/* --- Page hero (landings por pilar) --- */
.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: white;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.72));
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  color: white;
  max-width: 20ch;
  margin-bottom: 1rem;
}
.page-hero__lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,.92);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.page-hero__back {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: .15rem;
}
.page-hero__back:hover { color: white; border-bottom-color: white; }

/* --- Listado de trabajos típicos (landings por pilar) --- */
.jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.job-item {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 2px;
  transition: border-color .15s ease, transform .15s ease;
}
.job-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.job-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: .4rem;
  color: var(--ink);
}
.job-item span {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; gap: 2.5rem; }
  .hero__media img { max-width: 200px; }
  .about__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .scope__grid { grid-template-columns: 1fr; }
  .scope__item { padding: 1.5rem 0; border-right: none; border-bottom: 1px solid var(--line); }
  .scope__item:last-child { border-bottom: none; }
  .scope__item:first-child { padding-top: 0; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Accesibilidad --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
