/* Valles360 Consultora de Permisos */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16202a;
  --ink-2: #2a3743;
  --ink-deep: #10171d;
  --copper: #b4572e;
  --copper-text: #9a4522; /* cobre para texto chico sobre blanco (contraste AA) */
  --copper-hover: #6e2f15;
  --copper-light: #e39a73;
  --chip-bg: #f8ece5;
  --chip-text: #8a3e1e;
  --bg-soft: #f4f5f3;
  --border: #e3e6e1;
  --text-2: #3d4a55;
  --muted: #5a6772;
  --wa: #1f7a4d;
  --white: #ffffff;
  --on-dark: #eef0ec;
  --on-dark-2: #c9d1d7;
  --on-dark-3: #b9c2c9;

  --font-title: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0;
}

p,
ul {
  margin: 0;
}

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

a {
  color: var(--copper-text);
}
a:hover {
  color: var(--copper-hover);
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 4px;
}
.skip-link:focus {
  top: 8px;
  color: var(--white);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover {
  background: #9a4522;
  color: var(--white);
}
.btn-outline-wa {
  border-color: var(--wa);
  color: var(--wa);
  background: var(--white);
}
.btn-outline-wa:hover {
  background: #eef6f1;
  color: var(--wa);
}
.btn-wa {
  background: var(--wa);
  color: var(--white);
}
.btn-wa:hover {
  background: #186340;
  color: var(--white);
}
.btn svg {
  flex: none;
}

/* Encabezado */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand img {
  width: 210px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.main-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
}
.main-nav a:not(.btn):hover {
  color: var(--copper-text);
}
.main-nav .btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}

@media (max-width: 860px) {
  .main-nav a:not(.btn) {
    display: none;
  }
}
@media (max-width: 420px) {
  .brand img {
    width: 160px;
  }
  .main-nav .btn {
    padding: 10px 14px;
  }
}

/* Portada */
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
}
.hero-text {
  flex: 999 1 540px;
  min-width: 0;
}
.chip {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  margin-bottom: 22px;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero h1 span {
  color: var(--copper);
}
.hero-lead {
  margin-bottom: 32px;
  max-width: 600px;
  font-size: 20px;
  color: var(--text-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-side {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.codes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.codes li {
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 18px 20px;
}
.codes b {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--copper-text);
}
.codes span {
  font-size: 15px;
  color: var(--text-2);
}

@media (max-width: 600px) {
  .hero .wrap {
    padding-top: 44px;
    padding-bottom: 48px;
    gap: 36px;
  }
  .hero-lead {
    font-size: 18px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .codes li {
    padding: 14px 16px;
  }
}

/* Franja de clientes */
.trust {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 40px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.trust-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.trust-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-2);
}
.trust-note {
  font-size: 16px;
  color: var(--text-2);
}

/* Franja de urgencia */
.urgent {
  padding-top: 64px;
}
.urgent-box {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.urgent-box div {
  flex: 999 1 480px;
  min-width: 0;
}
.urgent-box h2 {
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 28px;
}
.urgent-box p {
  color: var(--on-dark-2);
  font-size: 18px;
}
.urgent-box .btn {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .urgent-box {
    padding: 28px 22px;
  }
  .urgent-box h2 {
    font-size: 24px;
  }
  .urgent-box .btn {
    flex: 1 1 100%;
  }
}

/* Secciones */
.section {
  padding-top: 88px;
  padding-bottom: 40px;
}
.eyebrow {
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-text);
  font-weight: 600;
}
.section-title {
  margin-bottom: 44px;
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
}
.section-title.has-lead {
  margin-bottom: 14px;
}
.section-lead {
  margin-bottom: 44px;
  max-width: 720px;
  color: var(--text-2);
  font-size: 19px;
}
@media (max-width: 600px) {
  .section {
    padding-top: 64px;
  }
  .section-title,
  .section-lead {
    margin-bottom: 32px;
  }
}

.grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}

/* Servicios */
.services {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(22, 32, 42, 0.05);
}
.icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--chip-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}
.card p {
  color: var(--text-2);
}

/* Planes */
.plans-band {
  background: var(--bg-soft);
  margin-top: 56px;
}
.plans-band .section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.plans {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: stretch;
}
.plan {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-featured {
  border: 2px solid var(--copper);
  box-shadow: 0 8px 24px rgba(180, 87, 46, 0.12);
}
.plan-badge {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--copper);
  color: var(--white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.plan h3 {
  font-size: 22px;
}
.plan-desc {
  color: var(--text-2);
}
.plan ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-price {
  margin-top: auto;
  font-weight: 600;
}
.plans-note {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 600px) {
  .plans-band .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .plan {
    padding: 26px 22px;
  }
}

/* Proceso */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
}
.steps li {
  border-top: 3px solid var(--copper);
  padding-top: 18px;
}
.step-num {
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.2;
  color: var(--copper-text);
}
.steps h3 {
  margin-bottom: 6px;
  font-size: 19px;
}
.steps p:last-child {
  color: var(--text-2);
}

/* Experiencia */
.experience-section {
  padding-top: 72px;
  padding-bottom: 96px;
}
.projects {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.project {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-brand {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.project-brand img {
  width: 220px;
  height: auto;
}
.project-brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-2);
}
.project-body {
  padding: 24px;
}
.project-tag {
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-text);
  font-weight: 600;
}
.project h3 {
  margin-bottom: 6px;
  font-size: 20px;
}
.project-body p:last-child {
  color: var(--text-2);
}
@media (max-width: 600px) {
  .experience-section {
    padding-top: 56px;
    padding-bottom: 72px;
  }
}

/* Contacto */
.contact {
  background: var(--ink);
  color: var(--on-dark);
}
.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.contact-info {
  flex: 1 1 380px;
  min-width: 0;
}
.contact h2 {
  margin-bottom: 16px;
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
}
.contact-lead {
  margin-bottom: 28px;
  color: var(--on-dark-2);
  font-size: 19px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.contact-list a.mail {
  color: var(--copper-light);
  overflow-wrap: anywhere;
}
.contact-list a.mail:hover {
  color: #f2c1a6;
}
.contact-hours {
  color: var(--on-dark-3);
  font-size: 15px;
}

.contact-form {
  flex: 1 1 440px;
  min-width: 0;
  background: #1f2b36;
  border: 1px solid #2f3d4a;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}
.field small {
  color: var(--on-dark-3);
  font-size: 14px;
}
.field input,
.field select,
.field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #5b6b78;
  background: var(--ink);
  color: var(--on-dark);
  font-family: inherit;
  font-size: 16px;
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 1px;
  border-color: var(--copper-light);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.55em;
  color: #9fd3b0;
}
.form-status.is-error {
  color: #f2b8a0;
}
@media (max-width: 600px) {
  .contact .wrap {
    padding-top: 64px;
    padding-bottom: 64px;
    gap: 36px;
  }
  .contact-form {
    padding: 22px 18px;
  }
  .contact-list .btn {
    width: 100%;
  }
}

/* Pie */
.site-footer {
  background: var(--ink-deep);
  color: var(--on-dark-3);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.site-footer img {
  width: 150px;
  height: auto;
}
.footer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 861px) {
  .footer-text {
    text-align: right;
  }
}

/* Botón flotante de WhatsApp (solo celular) */
.wa-float {
  display: none;
}
@media (max-width: 760px) {
  .wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wa);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(16, 23, 29, 0.28);
  }
  .site-footer {
    padding-bottom: 72px;
  }
}

/* Páginas por servicio */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.page-hero .wrap {
  padding-top: 40px;
  padding-bottom: 56px;
}
.breadcrumbs {
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--text-2);
}
.breadcrumbs span[aria-hidden] {
  margin: 0 6px;
}
.page-hero h1 {
  margin-bottom: 18px;
  max-width: 820px;
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.page-hero .hero-lead {
  max-width: 760px;
}
.service-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  padding-top: 56px;
}
.service-block {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.service-block h2 {
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 22px;
}
.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-2);
}
.check-list li {
  position: relative;
  padding-left: 26px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--copper);
  border-bottom: 2.5px solid var(--copper);
  transform: rotate(-45deg);
}
.service-note {
  grid-column: 1 / -1;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
}
.service-cta-wrap {
  padding-top: 48px;
}
.related {
  padding-top: 56px;
  padding-bottom: 88px;
}
.related h2 {
  margin-bottom: 18px;
  font-weight: 800;
  font-size: 24px;
}
.related-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.related-list a:hover {
  border-color: var(--copper);
  color: var(--copper-text);
}
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .page-hero .wrap {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .service-body {
    padding-top: 40px;
  }
  .service-block {
    padding: 22px 18px;
  }
  .related {
    padding-bottom: 72px;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.urgent-link {
  color: var(--copper-light);
  white-space: nowrap;
}
.urgent-link:hover {
  color: #f2c1a6;
}
