/* ==========================================================================
   SOMASTER SERVICIOS  |  Gestión de Habilitación Minera
   Hoja de estilos única. Paleta extraída del brochure corporativo 2026.
   ========================================================================== */

:root {
  /* --- Cobre: el acento de la marca --- */
  --cobre:       #c07b4d;   /* cobre medio, acento principal */
  --cobre-osc:   #995f39;   /* cobre oscuro, hover y texto sobre claro */
  --cobre-prof:  #59361c;   /* cobre profundo */
  --cobre-luz:   #dc8b56;   /* brillo del degradado, solo sobre fondos oscuros */
  --cobre-velo:  #f6ece3;   /* fondo suave de iconos y realces */

  /* --- Tinta y grises --- */
  --tinta:       #15191c;   /* titulares */
  --tinta-2:     #2e373f;   /* texto fuerte */
  --gris:        #5e6a75;   /* texto corrido */
  --gris-claro:  #8b96a1;   /* etiquetas */

  /* --- Papel --- */
  --papel:       #faf7f2;   /* fondo general, crema del brochure */
  --crema:       #f3eee6;   /* secciones alternas */
  --blanco:      #ffffff;   /* tarjetas */
  --linea:       #e7dfd4;   /* hairlines cálidas */
  --linea-sutil: #f0e9df;

  /* --- Semáforo del panel --- */
  --verde: #1e9e5a;
  --ambar: #e8a317;
  --rojo:  #d9442e;
  --wa:    #16a34a;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cond: "Barlow Condensed", "Inter", var(--sans);

  --wrap: 1160px;
  --r: 12px;
  --sombra: 0 1px 2px rgba(89,54,28,.05), 0 10px 30px rgba(89,54,28,.07);
  --sombra-alta: 0 4px 14px rgba(89,54,28,.09), 0 24px 56px rgba(89,54,28,.12);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65;
  color: var(--gris); background: var(--papel); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobre-osc); text-decoration: none; }
a:hover { color: var(--cobre-prof); }
h1, h2, h3, h4 { color: var(--tinta); line-height: 1.16; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--cobre); outline-offset: 3px; border-radius: 3px; }

/* El punto final en cobre, firma visual del brochure */
.pt { color: var(--cobre); }

/* ---------- utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--crema { background: var(--crema); border-block: 1px solid var(--linea); }
.section--blanco { background: var(--blanco); border-block: 1px solid var(--linea); }
.section--oscura { background: var(--tinta); color: #c5ccd3; }
.section--oscura h2, .section--oscura h3 { color: #fff; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--tinta); color: #fff; padding: 12px 20px; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

.eyebrow {
  font-family: var(--cond); font-size: .85rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--cobre-osc);
  margin: 0 0 14px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::after { content: ""; flex: 0 0 46px; height: 1px; background: var(--cobre); opacity: .55; }
.eyebrow--centro { justify-content: center; }
.eyebrow--centro::before { content: ""; flex: 0 0 46px; height: 1px; background: var(--cobre); opacity: .55; }
.section--oscura .eyebrow { color: var(--cobre-luz); }

.lead { font-size: 1.14rem; color: var(--gris); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sec-head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.sec-head .lead { margin-inline: auto; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 54px; }
.mb-md { margin-bottom: 38px; }
.btn-row--center { justify-content: center; margin-top: 28px; }
.pantalla { min-height: 54vh; display: grid; place-items: center; }
.angosto { max-width: 640px; }
.titulo-med { font-size: clamp(1.8rem, 4vw, 2.3rem); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 9px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .97rem; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--cobre-osc); color: #fff; }
.btn--primary:hover { background: var(--cobre-prof); color: #fff; }
.btn--ghost { background: transparent; color: var(--tinta); border-color: var(--linea); }
.btn--ghost:hover { background: var(--crema); color: var(--tinta); border-color: var(--cobre); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #15803d; color: #fff; }
.btn--claro { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); }
.btn--claro:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- encabezado ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.hdr__in { display: flex; align-items: center; gap: 24px; height: 80px; }
.logo { margin-right: auto; display: block; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 9px 13px; border-radius: 7px; color: var(--tinta-2); font-size: .93rem; font-weight: 500; }
.nav a:hover { background: var(--crema); color: var(--tinta); }
.nav a[aria-current="page"] { color: var(--cobre-osc); font-weight: 600; }
.hdr .btn { padding: 11px 20px; font-size: .91rem; }
.burger { display: none; background: none; border: 1.5px solid var(--linea); border-radius: 8px; padding: 9px; cursor: pointer; }
.burger svg { width: 22px; height: 22px; stroke: var(--tinta); }

@media (max-width: 1040px) {
  .burger { display: block; }
  .hdr__in { height: 68px; gap: 12px; }
  .logo img { height: 38px; }
  .nav {
    display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--papel); border-bottom: 1px solid var(--linea);
    padding: 8px 16px 18px; box-shadow: var(--sombra);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--linea-sutil); border-radius: 0; }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--papel); padding: 92px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 56%, rgba(192,123,77,.10) 56.4%, rgba(192,123,77,.10) 63%, transparent 63.4%),
    linear-gradient(118deg, transparent 66%, rgba(89,54,28,.07) 66.3%, rgba(89,54,28,.07) 70%, transparent 70.3%),
    radial-gradient(900px 520px at 88% 8%, rgba(220,139,86,.16), transparent 62%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: .36em; }
.hero p { font-size: 1.18rem; max-width: 56ch; color: var(--gris); }
.hero .btn-row { margin-top: 34px; }
.hero__tags {
  position: relative; z-index: 1; margin-top: 64px; padding: 22px 0 0;
  border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: .86rem; color: var(--gris-claro); letter-spacing: .04em;
}
.hero__tags span { display: flex; align-items: center; gap: 10px; }
.hero__tags span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cobre); }

.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); margin-top: 56px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; position: relative; z-index: 1; }
.stat { background: var(--blanco); padding: 28px 22px; }
.stat b { display: block; font-family: var(--cond); font-size: 2.6rem; font-weight: 700; color: var(--tinta); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .84rem; color: var(--gris); }
@media (max-width: 780px) {
  .hero { padding-top: 58px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .stat b { font-size: 2.1rem; }
}

/* ---------- grillas y tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
/* esquina de cobre, recurso gráfico del brochure */
.card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px;
  background: linear-gradient(225deg, rgba(192,123,77,.26) 0%, rgba(192,123,77,0) 72%);
}
a.card:hover { border-color: var(--cobre); box-shadow: var(--sombra-alta); transform: translateY(-3px); }
.card__ico { width: 48px; height: 48px; border-radius: 10px; background: var(--cobre-velo); display: grid; place-items: center; margin-bottom: 20px; flex: none; }
.card__ico svg { width: 25px; height: 25px; stroke: var(--cobre-osc); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--gris); font-size: .95rem; margin-bottom: 1em; }
.card ul { list-style: none; padding: 0; margin: 0 0 1em; }
.card ul li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--gris); margin-bottom: .5em; line-height: 1.45; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: 9px; height: 1px; background: var(--cobre); }
.card__more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--cobre-osc); display: inline-flex; align-items: center; gap: 7px; }
.card__more svg { flex: none; }
.card__num { font-family: var(--cond); font-size: 1.5rem; font-weight: 700; color: var(--cobre); line-height: 1; margin-bottom: 10px; }

/* ---------- proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r); padding: 28px 26px; position: relative; }
.step__n { font-family: var(--cond); font-size: 2.3rem; font-weight: 700; color: var(--cobre); line-height: 1; margin-bottom: 6px; }
.step__n::after { content: ""; display: block; width: 28px; height: 2px; background: var(--cobre); margin-top: 10px; opacity: .5; }
.step h3 { font-size: 1.05rem; margin: 14px 0 .4em; }
.step p { font-size: .9rem; color: var(--gris); margin: 0; }

/* ---------- panel (plataforma) ---------- */
.panel { background: var(--tinta); border-radius: var(--r); overflow: hidden; border: 1px solid #262e36; box-shadow: var(--sombra-alta); }
.panel__bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: #1b2126; border-bottom: 1px solid #262e36; }
.panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: #39424b; display: block; }
.panel__bar span { margin-left: 10px; font-size: .78rem; color: #76818c; letter-spacing: .1em; text-transform: uppercase; font-family: var(--cond); font-weight: 600; }
.panel__body { display: grid; grid-template-columns: 200px 1fr; }
@media (max-width: 760px) { .panel__body { grid-template-columns: 1fr; } .panel__side { display: none; } }
.panel__side { background: #11161a; border-right: 1px solid #262e36; padding: 18px 0; }
.panel__side a { display: flex; align-items: center; gap: 11px; padding: 11px 20px; font-size: .88rem; color: #8b959f; }
.panel__side a.on { background: linear-gradient(90deg, rgba(192,123,77,.22), transparent); color: #fff; border-left: 2px solid var(--cobre); }
.panel__side svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.panel__main { padding: 26px; }
.panel__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.panel__h h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.panel__h em { font-style: normal; font-size: .74rem; color: #6c7681; letter-spacing: .08em; text-transform: uppercase; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: #1b2126; border: 1px solid #262e36; border-radius: 9px; padding: 16px 18px; }
.kpi span { display: block; font-size: .78rem; color: #8b959f; }
.kpi b { display: block; font-family: var(--cond); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; margin-top: 2px; }
.kpi ul { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid #262e36; padding-top: 10px; }
.kpi li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #9aa4ae; margin-bottom: 6px; }
.kpi li b { font-family: var(--sans); font-size: .8rem; margin: 0 0 0 auto; color: #cdd5dd; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--v { background: var(--verde); } .dot--a { background: var(--ambar); } .dot--r { background: var(--rojo); }

/* ---------- razones ---------- */
.razon { display: flex; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--linea); }
.razon:last-child { border-bottom: 0; }
.razon__ico { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--cobre); display: grid; place-items: center; flex: none; }
.razon__ico svg { width: 24px; height: 24px; stroke: var(--cobre-osc); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.razon h3 { margin-bottom: .4em; font-size: 1.22rem; }
.razon p { margin: 0; max-width: 64ch; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; }
.info-list li { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.info-list svg { width: 21px; height: 21px; stroke: var(--cobre-osc); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 3px; }
.info-list b { display: block; font-family: var(--cond); font-size: .79rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gris-claro); font-weight: 600; }
.info-list span, .info-list a { font-size: 1.02rem; color: var(--tinta); font-weight: 500; }

/* ---------- formulario ---------- */
.form { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r); padding: 36px; box-shadow: var(--sombra); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .87rem; font-weight: 600; color: var(--tinta); margin-bottom: 6px; }
.field .req { color: var(--cobre); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--tinta);
  background: var(--papel); border: 1.5px solid var(--linea); border-radius: 8px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--cobre); box-shadow: 0 0 0 3px rgba(192,123,77,.16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--rojo); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--cobre-osc); }
.consent label { font-size: .84rem; color: var(--gris); line-height: 1.5; font-weight: 400; }
.form .btn { width: 100%; }
.form-note { font-size: .8rem; color: var(--gris-claro); margin: 15px 0 0; text-align: center; }

/* ---------- franja CTA ---------- */
.cta { background: var(--tinta); color: #b7c0c9; padding: 74px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 58%, rgba(192,123,77,.17) 58.4%, rgba(192,123,77,.17) 66%, transparent 66.4%); }
.cta > .wrap { position: relative; }
.cta h2 { color: #fff; }
.cta p { max-width: 58ch; margin-inline: auto; color: #a6b0ba; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- pie ---------- */
.ftr { background: #0f1317; color: #8792a0; padding: 66px 0 0; font-size: .92rem; }
.ftr a { color: #b7c0c9; }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 42px; }
@media (max-width: 940px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 580px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h4 { font-family: var(--cond); font-size: .84rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 600; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr ul li { margin-bottom: 10px; }
.ftr__logo img { height: 46px; width: auto; margin-bottom: 18px; }
.ftr__bottom { margin-top: 52px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.09); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; color: #67727f; }

/* ---------- whatsapp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px rgba(22,163,74,.4); transition: transform .16s ease; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 29px; height: 29px; fill: currentColor; }

/* ---------- páginas de texto ---------- */
.page-head { background: var(--crema); border-bottom: 1px solid var(--linea); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 70%, rgba(192,123,77,.10) 70.4%, rgba(192,123,77,.10) 77%, transparent 77.4%); }
.page-head > .wrap { position: relative; }
.page-head h1 { font-size: clamp(1.95rem, 4.2vw, 2.95rem); margin-bottom: .3em; }
.crumbs { font-size: .85rem; color: var(--gris-claro); margin-bottom: 16px; }
.crumbs a { color: var(--gris); }
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .93rem; }
.prose th { background: var(--crema); text-align: left; padding: 11px 13px; border: 1px solid var(--linea); color: var(--tinta); }
.prose td { padding: 11px 13px; border: 1px solid var(--linea); vertical-align: top; }
.updated { font-size: .85rem; color: var(--gris-claro); font-style: italic; }

/* ---------- movimiento ---------- */
.reveal { transform: translateY(10px); transition: transform .45s ease; }
.reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, a.card:hover, .wa-float:hover { transform: none; }
}

@media print {
  .hdr, .wa-float, .cta, .form { display: none; }
  body { color: #000; background: #fff; }
}

/* ---------- utilidades extra (evitan todo atributo style en el HTML) ---------- */
.prose--ancho { max-width: none; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.lead--claro { color: #a6b0ba; }
.fuerte { color: var(--tinta); font-weight: 600; }
.marca-sello { height: 74px; width: auto; margin: 0 auto 26px; }
