/* Variables y tema claro */
/* Los componentes usan estas variables para compartir colores y superficies. */

:root {
  color-scheme: light;
  --bg: #eef3f4;
  --surface: #ffffff;
  --soft: #f5f8f8;
  --text: #142a35;
  --muted: #60747e;
  --border: #d8e3e5;
  --accent: #087d70;
  --on-accent: #ffffff;
  --tint: #e1f4ee;
  --danger: #ac343c;
  --danger-bg: #fff1f2;
  --success: #24704e;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(17, 46, 57, 0.08);
  font:
    14px/1.6 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

/* Tema oscuro */
/* script.js alterna esta clase en el body. Se sobrescriben los mismos tokens
   para que los componentes cambien de tema sin duplicar sus reglas. */

body.dark {
  color-scheme: dark;
  --bg: #0d151b;
  --surface: #15232c;
  --soft: #1b2c36;
  --text: #edf6f7;
  --muted: #a6bac2;
  --border: #304750;
  --accent: #73dfc3;
  --on-accent: #0b2924;
  --tint: #1b4039;
  --danger: #ff9ca3;
  --danger-bg: #38252b;
  --success: #8ad3af;
}

/* Estilos base y accesibilidad */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -10%, #d8f4ee 0, transparent 36%), var(--bg);
}

body.dark {
  background:
    radial-gradient(circle at 88% -10%, #1a3b3a 0, transparent 36%), var(--bg);
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.page {
  width: min(1180px, 100%);
  margin-inline: auto;
}

/* Cabecera y navegación */
/* La cabecera permanece visible al desplazarse; z-index la sitúa sobre el contenido. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--on-accent);
  background: linear-gradient(145deg, var(--accent), #35b79b);
  box-shadow: 0 7px 16px rgba(8, 125, 112, 0.22);
  font-size: 20px;
  font-weight: 700;
}

.brand-name {
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--accent);
}

.brand small {
  align-self: end;
  margin: 0 0 2px 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.6px;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
  background: var(--tint);
  transform: translateY(-1px);
}

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

.theme-toggle,
.menu-toggle {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--accent);
  background: var(--soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
}

/* Botones */

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(17, 46, 57, 0.07);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--text));
}

.button-secondary {
  color: var(--accent);
  background: var(--surface);
}

.button span {
  opacity: 0.75;
}

/* Presentación principal */

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 56px;
  padding: 74px 32px 65px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 9.25px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--tint);
}

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

h1,
h2 {
  margin-bottom: 0;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

h1 {
  max-width: 600px;
  font-size: clamp(38px, 5.2vw, 68px);
}

h2 {
  font-size: clamp(30px, 4vw, 49px);
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero-text {
  max-width: 54ch;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.trust-row div {
  display: grid;
  gap: 1px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

.trust-row strong {
  font-size: 12px;
  font-weight: 700;
}

.trust-row span {
  color: var(--muted);
  font-size: 10px;
}

/* Ilustración de dispositivos */
/* El teléfono, la computadora y las órbitas se dibujan con CSS dentro de
   un contenedor relativo; sus posiciones absolutas se ajustan en móviles. */

.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface), var(--soft));
  box-shadow: var(--shadow);
}

.visual-orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  top: 22px;
  left: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  transform: translateX(-50%);
}

.visual-orbit::before,
.visual-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--tint);
}

.visual-orbit::before {
  width: 180px;
  height: 180px;
  top: 94px;
  left: 105px;
}

.visual-orbit::after {
  width: 8px;
  height: 8px;
  top: 62px;
  right: 28px;
  background: var(--accent);
  box-shadow: -280px 230px 0 var(--accent);
}

.device-card {
  position: absolute;
  z-index: 1;
  filter: drop-shadow(0 20px 14px rgba(17, 46, 57, 0.18));
}

.phone {
  width: 156px;
  height: 288px;
  top: 57px;
  right: 23%;
  padding: 7px;
  border: 1px solid #102d36;
  border-radius: 25px;
  background: #102d36;
  transform: rotate(8deg);
}

.phone-camera {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: calc(50% - 17px);
  width: 34px;
  height: 5px;
  border-radius: 8px;
  background: #102d36;
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 47px 16px 18px;
  border-radius: 19px;
  color: #102d36;
  background: linear-gradient(145deg, #a8eadb, #e1f4ee);
}

.screen-label {
  margin-bottom: 45px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.phone-screen strong {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.screen-check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: auto;
  border-radius: 10px;
  color: #fff;
  background: #087d70;
  font-size: 18px;
}

.phone-screen small {
  margin-top: 8px;
  font-size: 9px;
}

.laptop {
  width: 286px;
  bottom: 43px;
  left: 10%;
  transform: rotate(-7deg);
}

.laptop-screen {
  height: 164px;
  display: grid;
  place-items: center;
  border: 7px solid #102d36;
  border-radius: 12px 12px 4px 4px;
  color: #fff;
  background: linear-gradient(145deg, #163b43, #087d70);
  text-align: center;
}

.laptop-screen span {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.laptop-screen b {
  color: #a8eadb;
}

.laptop-screen i {
  position: absolute;
  width: 5px;
  height: 5px;
  margin-top: -145px;
  margin-left: 140px;
  border-radius: 50%;
  background: #a8eadb;
}

.laptop-base {
  height: 13px;
  background: #102d36;
  border-radius: 3px 3px 45% 45%;
  box-shadow: 0 4px 0 #0b2028;
}

.repair-status {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 24px rgba(17, 46, 57, 0.09);
}

.repair-status .status-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.repair-status div {
  display: grid;
  gap: 1px;
}

.repair-status small {
  color: var(--muted);
  font-size: 9px;
}

.repair-status strong {
  font-size: 11px;
}

.visual-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Secciones y encabezados */

.section {
  padding: 82px 32px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-intro {
  max-width: 42ch;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Servicios */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 258px;
  position: relative;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(17, 46, 57, 0.055);
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  color: var(--on-accent);
  border-color: var(--accent);
  background: var(--accent);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.featured .card-number {
  color: #b9eee2;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 4px 0 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--accent);
  background: var(--tint);
  font-size: 20px;
}

.featured .service-icon {
  color: var(--on-accent);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.service-card h3,
.benefit-grid h3,
.step h3 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.service-card p {
  min-height: 42px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.featured p {
  color: #d0f0e9;
}

.service-card a,
.contact-whatsapp {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.featured a {
  color: #c1f0e4;
}

.service-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--border);
}

.service-details article {
  display: flex;
  gap: 16px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
}

.service-details article:nth-child(odd) {
  padding-left: 0;
}

.service-details article:nth-child(even) {
  padding-left: 26px;
  border-left: 1px solid var(--border);
}

.service-details article > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.service-details h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.service-details p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Beneficios */

.benefits {
  padding-top: 26px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit-grid article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--soft);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 27px;
  border-radius: 12px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  background: var(--tint);
  font-size: 18px;
}

.benefit-grid p {
  max-width: 35ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Marcas */

.brands {
  padding-top: 0;
  padding-bottom: 82px;
}

.brands-inner {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.brands-inner p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 30px;
  color: var(--muted);
}

.brand-list span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-list span:nth-child(2),
.brand-list span:nth-child(5),
.brand-list span:nth-child(8) {
  letter-spacing: 0.08em;
}

.brands-inner small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

/* Proceso de reparación */

.process {
  padding-top: 0;
}

.process-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 70px;
  padding: 54px;
  border-radius: var(--radius);
  color: #edf6f7;
  background: #142a35;
  box-shadow: var(--shadow);
}

.process h2 {
  color: #edf6f7;
}

.eyebrow.light {
  color: #73dfc3;
}

.process-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 285px;
  margin-top: 28px;
  padding: 11px 12px;
  border: 1px solid rgba(115, 223, 195, 0.28);
  border-radius: 10px;
  background: rgba(115, 223, 195, 0.09);
}

.process-note strong {
  color: #73dfc3;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.process-note span {
  color: #a6bac2;
  font-size: 10px;
  line-height: 1.35;
}

.steps {
  display: grid;
  gap: 0;
}

.step {
  display: flex;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(237, 246, 247, 0.16);
}

.step:first-child {
  padding-top: 0;
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step > span {
  color: #73dfc3;
  font-size: 11px;
  font-weight: 700;
}

.step h3 {
  margin-top: -3px;
  color: #edf6f7;
}

.step p {
  margin: 0;
  color: #a6bac2;
  font-size: 12px;
}

/* Contacto y formulario */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 46ch;
  margin: 22px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: var(--accent);
  background: var(--tint);
}

.contact-detail small,
.contact-detail strong {
  display: block;
}

.contact-detail small {
  color: var(--muted);
  font-size: 10px;
}

.contact-detail strong {
  font-size: 13px;
}

.contact-form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form input:not([type='checkbox']),
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.contact-form .button {
  width: 100%;
  min-height: 44px;
}

.form-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.form-note.success {
  color: var(--success);
}

/* Pie de página */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

footer .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 16px;
}

footer .brand-name {
  font-size: 14px;
}

footer p {
  margin: 0;
}

/* Adaptación a tabletas */
/* Apila la presentación y reduce la cuadrícula de servicios a dos columnas. */

@media (max-width: 900px) {
  .site-header {
    gap: 18px;
    padding-inline: 20px;
  }

  nav {
    gap: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 50px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-panel {
    gap: 42px;
  }

  .contact {
    gap: 45px;
  }
}

/* Adaptación a móviles */
/* Activa el menú desplegable y organiza servicios y formulario en una columna. */

@media (max-width: 680px) {
  .site-header {
    min-height: 60px;
    padding: 10px 16px;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .header-actions {
    margin-left: 0;
  }

  .theme-toggle span {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 31px;
  }

  .trust-row {
    gap: 14px;
    margin-top: 34px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .visual-orbit {
    width: 300px;
    height: 300px;
  }

  .phone {
    width: 124px;
    height: 230px;
    top: 40px;
    right: 15%;
  }

  .phone-screen {
    padding: 35px 12px 12px;
  }

  .screen-label {
    margin-bottom: 30px;
    font-size: 7px;
  }

  .phone-screen strong {
    font-size: 16px;
  }

  .laptop {
    width: 225px;
    bottom: 30px;
    left: 4%;
  }

  .laptop-screen {
    height: 130px;
  }

  .laptop-screen span {
    font-size: 15px;
  }

  .repair-status {
    right: 4%;
    bottom: 22px;
    padding: 9px 10px;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-heading,
  .contact {
    display: block;
  }

  .section-intro {
    margin-top: 18px;
  }

  .service-grid,
  .benefit-grid,
  .service-details {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }

  .service-details article:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .process-panel {
    display: block;
    padding: 30px 22px;
  }

  .steps {
    margin-top: 34px;
  }

  .contact-form {
    margin-top: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brands {
    padding-bottom: 62px;
  }

  footer {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-inline: 16px;
  }

  footer p {
    width: 100%;
    order: 3;
  }
}

/* Preferencia de movimiento reducido */
/* Respeta la preferencia del sistema reduciendo transiciones y animaciones. */

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