/* ===== Tactic Nofear — estilos base ===== */
:root {
  --accent: #c2413a;
  --accent-hover: #e0655e;
  --dark: #0f1113;
  --darker: #0b0d0f;
  --panel: #16191c;
  --ink: #16191c;
  --body: #4d545a;
  --muted: #9aa1a7;
  --light: #f4f5f6;
  --border-light: #e0e2e4;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  font-family: var(--font-body);
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

.page { display: none; }
.page.activa { display: block; }

#app { min-height: 100vh; display: flex; flex-direction: column; }
#app > main { flex: 1; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--dark);
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap {
  padding-top: 12px; padding-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: 2.5px;
}
.brand-name .b1 { color: #ffffff; }
.brand-name .b2 { color: var(--accent); }
.brand-tag {
  font-size: 10px; color: #8b9298; letter-spacing: 3px; margin-top: 5px; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav .nav-link {
  font-family: var(--font-head); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #d7dadd; cursor: pointer; border-bottom: 2px solid transparent; padding-bottom: 3px;
}
.site-nav .nav-link:hover { color: #ffffff; }
.site-nav .nav-link.activo { color: #ffffff; border-bottom-color: var(--accent); }
.btn-tel {
  font-family: var(--font-head); font-size: 14px; letter-spacing: 1.2px;
  background: var(--accent); color: #fff !important; padding: 11px 20px; white-space: nowrap;
}
.btn-tel:hover { background: var(--accent-hover); }

/* ===== Botones ===== */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--font-head); font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 16px 30px; border: none;
}
.btn-solido { background: var(--accent); color: #fff !important; }
.btn-solido:hover { background: var(--accent-hover); }
.btn-borde { border: 1px solid #4a5157; color: #e4e7e9 !important; padding: 15px 29px; }
.btn-borde:hover { border-color: #6a7177; color: #fff !important; }

/* ===== Etiquetas de sección ===== */
.kicker {
  font-family: var(--font-head); font-size: 12.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); display: inline-block;
}
.chip {
  border: 1px solid #dcdfe1; background: #fafbfb; font-size: 14px; color: #353c42; padding: 9px 15px;
}

/* ===== Hero (inicio) ===== */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.hero-textura {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, #16191c 0 22px, #12151800 22px 44px);
  opacity: 0.9;
}
.hero-grid {
  position: relative;
  padding-top: 96px; padding-bottom: 104px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero-pill {
  display: inline-block; border: 1px solid #3a4046; color: #a9b0b6;
  font-size: 11.5px; letter-spacing: 2.6px; text-transform: uppercase;
  padding: 7px 13px; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 600; font-size: 60px; line-height: 1.05;
  color: #fff; margin: 0 0 22px; letter-spacing: 0.5px; text-wrap: balance;
}
.hero-sub {
  font-size: 18.5px; line-height: 1.6; color: #b5bbc0; margin: 0 0 34px; max-width: 560px; text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-foto {
  aspect-ratio: 4 / 5; border: 1px solid #2e3338; overflow: hidden; background: #1c2024;
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }

.tiras { position: relative; border-top: 1px solid #23282c; background: var(--darker); }
.tiras .wrap {
  padding-top: 22px; padding-bottom: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.tira { display: flex; flex-direction: column; gap: 5px; }
.tira .k {
  font-family: var(--font-head); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
}
.tira .v { font-size: 14.5px; color: #9aa1a7; }

/* ===== Servicios (cards en inicio) ===== */
.sec-servicios { padding-top: 84px; padding-bottom: 20px; }
.sec-servicios h2, .titulo-seccion {
  font-family: var(--font-head); font-weight: 600; font-size: 38px; color: var(--ink);
  margin: 12px 0 44px; letter-spacing: 0.4px;
}
.cards-servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-servicio { border: 1px solid var(--border-light); display: flex; flex-direction: column; }
.card-servicio .foto { height: 170px; overflow: hidden; background: #eceef0; }
.card-servicio .foto img { width: 100%; height: 100%; object-fit: cover; }
.card-servicio .cuerpo {
  padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.num-servicio {
  font-family: var(--font-head); font-size: 11.5px; letter-spacing: 2.2px; color: var(--muted);
}
.card-servicio h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--ink);
  margin: 0; letter-spacing: 0.4px;
}
.card-servicio p { font-size: 15.5px; line-height: 1.6; color: var(--body); margin: 0; flex: 1; text-wrap: pretty; }
.link-detalle {
  cursor: pointer; font-family: var(--font-head); font-size: 13px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--accent);
}

/* ===== Por qué / bloque gris ===== */
.sec-porque { margin-top: 84px; background: var(--light); border-top: 1px solid #e4e6e8; border-bottom: 1px solid #e4e6e8; }
.sec-porque .wrap {
  padding-top: 80px; padding-bottom: 80px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.porque-foto { aspect-ratio: 1 / 1; border: 1px solid #d5d8da; overflow: hidden; background: #e6e8ea; }
.porque-foto img { width: 100%; height: 100%; object-fit: cover; }
.sec-porque h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 36px; color: var(--ink);
  margin: 12px 0 20px; letter-spacing: 0.4px;
}
.sec-porque .intro { font-size: 17px; line-height: 1.65; color: var(--body); margin: 0 0 30px; text-wrap: pretty; }
.grid-ventajas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ventaja { border-top: 2px solid var(--accent); padding-top: 14px; }
.ventaja h4 {
  font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink);
  margin: 0 0 7px; letter-spacing: 0.3px;
}
.ventaja p { font-size: 14.5px; line-height: 1.55; color: #545b61; margin: 0; }

/* ===== Cobertura ===== */
.sec-cobertura { padding-top: 76px; padding-bottom: 76px; }
.sec-cobertura .grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.sec-cobertura h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 32px; color: var(--ink);
  margin: 12px 0 0; letter-spacing: 0.4px;
}
.sec-cobertura p { font-size: 17px; line-height: 1.65; color: var(--body); margin: 0 0 22px; }
.zonas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== CTA oscuro ===== */
.sec-cta { background: var(--dark); }
.sec-cta .wrap {
  padding-top: 56px; padding-bottom: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.sec-cta h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 30px; color: #fff;
  margin: 0; letter-spacing: 0.4px;
}

/* ===== Encabezados de página (oscuros) ===== */
.page-hero { background: var(--dark); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 {
  font-family: var(--font-head); font-weight: 600; font-size: 46px; color: #fff;
  margin: 12px 0 14px; letter-spacing: 0.5px;
}
.page-hero p { font-size: 18px; line-height: 1.6; color: #b5bbc0; margin: 0; max-width: 640px; text-wrap: pretty; }

/* ===== Página servicios ===== */
.lista-servicios {
  padding-top: 64px; padding-bottom: 64px;
  display: flex; flex-direction: column; gap: 28px;
}
.fila-servicio { border: 1px solid var(--border-light); display: grid; grid-template-columns: 340px 1fr; }
.fila-servicio .foto { min-height: 220px; overflow: hidden; background: #eceef0; }
.fila-servicio .foto img { width: 100%; height: 100%; object-fit: cover; }
.fila-servicio .cuerpo { padding: 32px 34px; display: flex; flex-direction: column; gap: 12px; }
.fila-servicio h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--ink);
  margin: 0; letter-spacing: 0.4px;
}
.fila-servicio .texto { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0; text-wrap: pretty; }
.fila-servicio .puntos { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.fila-servicio .puntos .chip { font-size: 13.5px; padding: 7px 13px; }
.fila-servicio .link-detalle { margin-top: 10px; }

/* ===== Página detalle ===== */
.detalle-hero .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
}
.link-volver {
  cursor: pointer; font-family: var(--font-head); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: #8b9298;
}
.link-volver:hover { color: #d7dadd; }
.detalle-hero h1 { margin: 16px 0 14px; }
.detalle-hero .intro { margin-bottom: 28px; }
.detalle-hero .btn { padding: 15px 28px; }
.detalle-foto { aspect-ratio: 4 / 3; border: 1px solid #2e3338; overflow: hidden; background: #1c2024; }
.detalle-foto img { width: 100%; height: 100%; object-fit: cover; }

.detalle-cuerpo {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.detalle-cuerpo h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--ink);
  margin: 0 0 22px; letter-spacing: 0.4px;
}
.lista-incluye { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.lista-incluye li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; color: #353c42; line-height: 1.5; }
.lista-incluye li::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }
.detalle-para { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.detalle-proceso { display: flex; flex-direction: column; gap: 16px; }
.paso-proceso { display: flex; gap: 16px; align-items: baseline; }
.paso-proceso .n {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--accent);
  flex: none; width: 26px;
}
.paso-proceso .t { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.paso-proceso .d { font-size: 15.5px; color: var(--body); }

.banda-cta { background: var(--light); border-top: 1px solid #e4e6e8; }
.banda-cta .wrap {
  padding-top: 48px; padding-bottom: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.banda-cta p { font-size: 17px; color: #353c42; margin: 0; }
.banda-cta .btn { font-size: 14px; padding: 14px 26px; }

/* ===== Página nosotros ===== */
.nosotros-cuerpo {
  padding-top: 72px; padding-bottom: 72px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.nosotros-cuerpo h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 30px; color: var(--ink);
  margin: 0 0 18px; letter-spacing: 0.4px;
}
.nosotros-cuerpo .parrafo { font-size: 16.5px; line-height: 1.65; color: var(--body); margin: 0 0 16px; text-wrap: pretty; }
.nosotros-cuerpo .parrafo.ultimo { margin-bottom: 30px; }
.nosotros-fotos { display: flex; flex-direction: column; gap: 18px; }
.nosotros-fotos .foto { aspect-ratio: 4 / 3; border: 1px solid #dcdfe1; overflow: hidden; background: #eceef0; }
.nosotros-fotos .foto img { width: 100%; height: 100%; object-fit: cover; }

.sec-seleccion { background: var(--light); border-top: 1px solid #e4e6e8; }
.sec-seleccion .wrap { padding-top: 64px; padding-bottom: 64px; }
.sec-seleccion h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 28px; color: var(--ink);
  margin: 0 0 34px; letter-spacing: 0.4px;
}
.grid-seleccion { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.paso-seleccion { background: #fff; border: 1px solid var(--border-light); padding: 24px; }
.paso-seleccion .paso {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--accent); letter-spacing: 1.5px;
}
.paso-seleccion h4 {
  font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink);
  margin: 10px 0 7px; letter-spacing: 0.3px;
}
.paso-seleccion p { font-size: 14.5px; line-height: 1.55; color: #545b61; margin: 0; }

/* ===== Página contacto ===== */
.contacto-hero .wrap {
  padding-bottom: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
.contacto-hero h1 { font-size: 44px; margin: 12px 0 18px; }
.contacto-hero .intro { font-size: 17px; line-height: 1.65; color: #b5bbc0; margin: 0 0 30px; max-width: 460px; }
.datos-contacto { display: flex; flex-direction: column; gap: 18px; }
.dato { display: flex; flex-direction: column; gap: 4px; }
.dato .etiqueta {
  font-family: var(--font-head); font-size: 11.5px; letter-spacing: 2.2px;
  text-transform: uppercase; color: #82898f;
}
.dato .tel-grande { font-family: var(--font-head); font-size: 26px; color: #fff; letter-spacing: 0.6px; }
.dato .tel-grande:hover { color: var(--accent-hover); }
.dato .valor { font-size: 17px; color: #e4e7e9; }
a.valor:hover { color: var(--accent-hover); }
.mapa {
  margin-top: 8px; aspect-ratio: 16 / 7; border: 1px solid #2e3338; overflow: hidden; background: #1c2024;
}
.mapa img { width: 100%; height: 100%; object-fit: cover; }

.form-contacto {
  background: var(--panel); border: 1px solid #262b2f; padding: 30px;
  display: flex; flex-direction: column; gap: 16px; align-self: start;
}
.form-contacto label { display: flex; flex-direction: column; gap: 7px; }
.form-contacto .etiqueta {
  font-family: var(--font-head); font-size: 11.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}
.form-contacto input, .form-contacto textarea {
  background: var(--dark); border: 1px solid #2e3338; color: #fff;
  font-family: var(--font-body); font-size: 16px; padding: 12px 14px; outline: none;
}
.form-contacto input:focus, .form-contacto textarea:focus { border-color: var(--accent); }
.form-contacto textarea { resize: vertical; }
.form-contacto button {
  font-family: var(--font-head); font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase;
  background: var(--accent); color: #fff; border: none; padding: 15px; cursor: pointer;
}
.form-contacto button:hover { background: var(--accent-hover); }
.msj-enviado { font-size: 14.5px; color: #8fd39a; display: none; }
.msj-enviado.visible { display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--darker); border-top: 1px solid #1e2225; margin-top: auto; }
.site-footer .wrap {
  padding-top: 36px; padding-bottom: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .nombre { font-family: var(--font-head); font-size: 15px; letter-spacing: 2px; }
.footer-brand .b1 { color: #d7dadd; }
.footer-brand .b2 { color: var(--accent); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.footer-nav a:hover { color: #d7dadd; }
.footer-copy { font-size: 13.5px; color: #6f767c; }

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: 46px; }
  .hero-foto { max-width: 420px; }
  .tiras .wrap { grid-template-columns: repeat(2, 1fr); }
  .cards-servicios { grid-template-columns: 1fr; }
  .sec-porque .wrap { grid-template-columns: 1fr; }
  .porque-foto { max-width: 480px; }
  .sec-cobertura .grid { grid-template-columns: 1fr; gap: 20px; }
  .fila-servicio { grid-template-columns: 1fr; }
  .fila-servicio .foto { min-height: 0; height: 200px; }
  .detalle-hero .wrap { grid-template-columns: 1fr; }
  .detalle-cuerpo { grid-template-columns: 1fr; }
  .nosotros-cuerpo { grid-template-columns: 1fr; }
  .grid-seleccion { grid-template-columns: repeat(2, 1fr); }
  .contacto-hero .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-header .wrap { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .brand { flex-direction: column; text-align: center; }
  .brand-text { align-items: center; }
  .site-nav { width: 100%; min-width: 0; justify-content: center; gap: 14px 16px; }
  .site-nav .nav-link { font-size: 13px; }
  .btn-tel { padding: 9px 16px; }
  .hero h1 { font-size: 36px; }
  .page-hero h1, .contacto-hero h1 { font-size: 34px; }
  .titulo-seccion, .sec-servicios h2 { font-size: 30px; }
  .sec-porque h2 { font-size: 28px; }
  .tiras .wrap { grid-template-columns: 1fr; }
  .grid-ventajas { grid-template-columns: 1fr; }
  .grid-seleccion { grid-template-columns: 1fr; }
  .sec-cta h2 { font-size: 24px; }
}
