/* tallerapps.com — hoja de estilos única.
   Identidad «Sello con globo» (webmaster/marca/tallerapps/entrega/hoja-de-marca.html).
   Plan de diseño: webmaster/BITACORA.md, 05-nov-2026. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url(fonts/schibsted-grotesk-latin.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(fonts/source-serif-4-latin.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --tinta: #4E2A84;
  --tinta-honda: #3A1F63;
  --hoja: #FBFBFA;
  --papel: #F1F0F3;
  --acero: #59616B;
  --rojo: #C22B3A;
  --texto: #2B2730;
  --regla: #DAD8DE;
  --wa: #25D366;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --ancho: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hoja);
  color: var(--texto);
  font: 400 1.125rem/1.62 var(--serif);
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--tinta); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 2px; }
.oscuro :focus-visible { outline-color: var(--hoja); }

h1, h2, h3 { font-family: var(--sans); color: var(--tinta); margin: 0; letter-spacing: -.02em; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-weight: 800; font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.05; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: .9em; }

.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.salto { position: absolute; left: -999px; }
.salto:focus { left: 16px; top: 16px; z-index: 10; background: var(--hoja); padding: 8px 12px; }

/* ---------- cabecera ---------- */
.cabecera { border-bottom: 1px solid var(--regla); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta);
  font: 800 1.35rem/1 var(--sans); letter-spacing: -.03em; }
.marca img { width: 34px; height: 34px; }
.menu { display: flex; gap: clamp(14px, 3vw, 32px); font: 600 .98rem/1 var(--sans); }
.menu a { color: var(--texto); text-decoration: none; padding: 8px 0; }
.menu a:hover, .menu a[aria-current] { color: var(--tinta); box-shadow: inset 0 -2px 0 var(--tinta); }
@media (max-width: 640px) { .menu .opcional { display: none; } }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--tinta); color: var(--hoja); font: 700 1.05rem/1 var(--sans);
  text-decoration: none; border-radius: 4px; transition: background .15s; }
.boton:hover { background: var(--tinta-honda); }
.boton.claro { background: var(--hoja); color: var(--tinta); }
.boton.claro:hover { background: #fff; }
/* el verde de WhatsApp va solo en su botón (hoja de marca) */
.boton.wa { background: var(--wa); color: #0B3D21; }
.boton.wa:hover { background: #1EBE5A; }
.boton.wa svg { flex: none; }
.enlace-fuerte { font: 700 1.05rem/1.3 var(--sans); }

/* ---------- portada: el pedido que termina sellado ---------- */
.portada { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 112px); }
.portada .envoltura { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portada h1 { max-width: 12ch; font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.bajada { margin-top: 24px; max-width: 38ch; font-size: clamp(1.18rem, 1.8vw, 1.35rem); line-height: 1.55; }
.acciones { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.orden { position: relative; margin: 0; background: #fff; border: 1px solid var(--regla); padding: 24px 28px 96px;
  box-shadow: 0 1px 0 var(--regla), 0 18px 40px -28px rgba(78, 42, 132, .45); }
.orden-cab { display: flex; justify-content: space-between; gap: 12px; font: 600 .9rem/1.3 var(--sans); color: var(--acero);
  padding-bottom: 14px; border-bottom: 1px dashed var(--regla); }
.globo { margin: 18px 0 18px; max-width: 30ch; background: var(--papel); padding: 14px 16px; border-radius: 4px 14px 14px 14px;
  font: 400 1.05rem/1.5 var(--serif); position: relative; }
.globo small { display: block; margin-bottom: 4px; font: 600 .82rem/1.2 var(--sans); color: var(--acero); }
.criterios-tit { font: 700 .98rem/1.3 var(--sans); color: var(--texto); }
.criterios { list-style: none; margin: 10px 0 0; padding: 0; }
.criterios li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid #ECEAEF;
  font-size: 1rem; line-height: 1.45; }
.criterios li::before { content: ""; width: 20px; height: 20px; margin-top: 2px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.5 4.5L17 4.5' fill='none' stroke='%23C22B3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.criterios .prueba { display: block; font: 500 .84rem/1.3 var(--sans); color: var(--acero); }
.sello { position: absolute; right: -22px; bottom: -26px; width: min(66%, 270px); pointer-events: none;
  mix-blend-mode: multiply; animation: sellar .55s cubic-bezier(.2, .9, .3, 1.3) .9s both; }
@keyframes sellar {
  from { opacity: 0; transform: scale(1.5) rotate(6deg); }
  60% { opacity: .95; }
  to { opacity: .92; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .sello { animation: none; opacity: .92; } html { scroll-behavior: auto; } }

@media (max-width: 880px) {
  .portada .envoltura { grid-template-columns: 1fr; }
  .orden { margin-right: 10px; }
  .sello { right: -6px; }
}

/* ---------- secciones ---------- */
.seccion { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--regla); }
.seccion > .envoltura > h2 { max-width: 20ch; }
.intro { margin-top: 18px; max-width: 60ch; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 36px; }
.dos p { max-width: 58ch; }
.lista-simple { margin: 0; padding: 0; list-style: none; }
.lista-simple li { padding: 12px 0; border-top: 1px solid var(--regla); }
.lista-simple li:last-child { border-bottom: 1px solid var(--regla); }
.lista-simple b { font: 700 1.05rem/1.3 var(--sans); color: var(--tinta); display: block; }
@media (max-width: 760px) { .dos { grid-template-columns: 1fr; } }

/* el proceso sí es una secuencia: lleva números */
.pasos { list-style: none; margin: 44px 0 0; padding: 0; counter-reset: paso;
  display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--tinta); }
.pasos li { counter-increment: paso; padding: 20px 20px 4px 0; position: relative; }
.pasos li + li { padding-left: 20px; border-left: 1px solid var(--regla); }
.pasos li::before { content: counter(paso); display: block; font: 800 2.6rem/1 var(--sans); color: var(--tinta);
  letter-spacing: -.04em; margin-bottom: 14px; }
.pasos h3 { font-size: 1.12rem; }
.pasos p { margin-top: 8px; font-size: 1rem; line-height: 1.5; }
@media (max-width: 980px) {
  .pasos { grid-template-columns: 1fr; border-top: 0; }
  .pasos li, .pasos li + li { padding: 18px 0 18px 64px; border-left: 0; border-top: 1px solid var(--regla); }
  .pasos li::before { position: absolute; left: 0; top: 18px; font-size: 2.2rem; }
}

/* carrusel de servicios: desplazamiento con scroll-snap, sin rotación automática */
.carrusel-cab { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.flechas { display: flex; gap: 8px; }
.flechas button { width: 48px; height: 48px; border: 1px solid var(--tinta); background: transparent; color: var(--tinta);
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.flechas button:hover { background: var(--tinta); color: var(--hoja); }
.flechas button:disabled { opacity: .3; cursor: default; background: transparent; color: var(--tinta); }
.carrusel { margin: 36px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 18px; list-style: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 360px); gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; }
.carrusel li { scroll-snap-align: start; padding: 4px 28px 8px 0; margin-right: 28px; border-right: 1px solid var(--regla); }
.carrusel li:last-child { border-right: 0; }
.carrusel h3 { margin-top: 16px; }
.carrusel p { margin-top: 10px; font-size: 1.02rem; line-height: 1.55; }
.carrusel .icono-serv { width: 44px; height: 44px; color: var(--tinta); }

/* banda de licitaciones */
.banda-lic { background: var(--papel); }
.banda-lic .envoltura { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: center; }
.banda-lic p { max-width: 56ch; margin-top: 14px; }
@media (max-width: 760px) { .banda-lic .envoltura { grid-template-columns: 1fr; } }

/* portafolio: registro del taller, no tarjetas */
.registro { width: 100%; margin-top: 36px; border-collapse: collapse; font-size: 1.02rem; }
.registro th { text-align: left; font: 600 .9rem/1.3 var(--sans); color: var(--acero); padding: 0 16px 10px 0; border-bottom: 2px solid var(--tinta); }
.registro td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--regla); vertical-align: top; line-height: 1.5; }
.registro td:first-child { font: 700 1.1rem/1.3 var(--sans); color: var(--tinta); width: 26%; }
.registro td:first-child small { display: block; font: 500 .88rem/1.3 var(--sans); color: var(--acero); margin-top: 4px; }
.registro td:last-child { color: var(--acero); width: 24%; }
@media (max-width: 700px) {
  .registro thead { display: none; }
  .registro, .registro tbody, .registro tr, .registro td { display: block; width: auto !important; }
  .registro tr { padding: 16px 0; border-bottom: 1px solid var(--regla); }
  .registro td { border: 0; padding: 3px 0; }
}
.nota { margin-top: 18px; font: 500 .92rem/1.45 var(--sans); color: var(--acero); max-width: 70ch; }

/* cierre en tinta: la única banda de color */
.oscuro { background: var(--tinta); color: var(--hoja); }
.oscuro h2 { color: var(--hoja); }
.cierre { padding: clamp(64px, 9vw, 120px) 0; }
.cierre .envoltura { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.cierre p { margin-top: 18px; max-width: 46ch; color: #E6E0EF; }
.cierre .acciones { justify-content: flex-start; }
.cierre .correo { color: var(--hoja); font: 600 1rem/1.4 var(--sans); }
.cierre img { width: min(100%, 300px); justify-self: end; opacity: .95; }
@media (max-width: 760px) { .cierre .envoltura { grid-template-columns: 1fr; } .cierre img { justify-self: start; width: 220px; } }

/* pie */
.pie { padding: 32px 0 40px; font: 500 .92rem/1.5 var(--sans); color: var(--acero); }
.pie .envoltura { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.pie a { color: var(--acero); }

/* ---------- páginas de texto (licitaciones, privacidad) ---------- */
.cab-pagina { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(36px, 5vw, 56px); }
.cab-pagina h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); max-width: 15ch; }
.cab-pagina .bajada { max-width: 46ch; }
.texto { display: grid; grid-template-columns: minmax(0, 68ch) 1fr; gap: 56px; padding-bottom: clamp(56px, 8vw, 96px); }
.texto h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 56px 0 16px; }
.texto h2:first-child { margin-top: 0; }
.texto h3 { margin: 30px 0 8px; }
.texto ul, .texto ol { padding-left: 1.2em; margin: 14px 0 0; }
.texto li + li { margin-top: 8px; }
.texto p + ul, .texto ul + p, .texto ol + p { margin-top: 14px; }
.al-margen { position: sticky; top: 24px; align-self: start; border-top: 3px solid var(--tinta); padding-top: 18px; }
.al-margen p { font-size: 1rem; }
.al-margen .boton { margin-top: 20px; }
.tachado { list-style: none; padding: 0 !important; }
.tachado li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.tachado li::before { content: ""; width: 18px; height: 18px; margin-top: 5px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 4l12 12M16 4L4 16' fill='none' stroke='%23C22B3A' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.palomas { list-style: none; padding: 0 !important; }
.palomas li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.palomas li::before { content: ""; width: 20px; height: 20px; margin-top: 4px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.5 4.5L17 4.5' fill='none' stroke='%23C22B3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.recuadro { margin-top: 22px; padding: 20px 22px; background: var(--papel); border-left: 3px solid var(--rojo); }
.preguntas details { border-top: 1px solid var(--regla); padding: 16px 0; }
.preguntas details:last-child { border-bottom: 1px solid var(--regla); }
.preguntas summary { cursor: pointer; font: 700 1.1rem/1.35 var(--sans); color: var(--tinta); list-style-position: outside; }
.preguntas details p { margin-top: 10px; }
@media (max-width: 900px) { .texto { grid-template-columns: 1fr; gap: 0; } .al-margen { position: static; margin-top: 48px; } }
