/* josedomes.com.ar — colores y tipografía tomados de la propuesta de Agustina
   (documentos/dr_pplui/diseno_agustina/, PDF del 02/10/2026).
   Perpetua Bold -> Crimson Pro Bold; Mont -> Poppins (las dos de Google Fonts, OFL, servidas desde /fuentes/). */

@font-face { font-family: "Crimson Pro"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fuentes/crimson-700.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fuentes/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fuentes/poppins-600.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fuentes/poppins-700.woff") format("woff"); }

:root {
  --negro: #09090c;      /* fondo de tarjetas y slides (relleno dominante del PDF) */
  --tinta: #1e1a16;      /* texto oscuro sobre placas claras */
  --hueso: #f5f2ed;      /* placa clara de las portadas */
  --papel: #f1f1ed;      /* placa clara del slide de título */
  --blanco: #ffffff;
  --gris: #5f5a54;       /* derivado: tinta aclarada para texto secundario */
  --linea: #d9d4cc;      /* derivado: hueso oscurecido para filetes */
  --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ancho: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.interior { max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }

/* Cabecera: la tarjeta personal (nombre en serif, «ABOGADO» espaciado, filete vertical) */
.cabecera { background: var(--negro); color: var(--blanco); }
.cabecera-interior {
  max-width: 68rem; margin: 0 auto; padding: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
}
.firma {
  display: flex; flex-direction: column; text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.55); padding-left: 0.85rem;
}
.firma-nombre { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.2; }
.firma-rol { font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.85; margin-top: 0.2rem; }
.cabecera nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.cabecera nav a { font-size: 0.875rem; text-decoration: none; padding: 0.25rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.cabecera nav a:hover, .cabecera nav a[aria-current="page"] { border-bottom-color: var(--blanco); }

/* Portada oscura: H1 y la entrada, como el slide de tapa */
.portada { background: var(--negro); color: var(--blanco); padding: 2.75rem 0 3rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.portada h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12; margin: 0 0 1.25rem; letter-spacing: 0.005em;
}
.portada p { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.88); }
.portada .marca { font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); margin-bottom: 1rem; }
.portada a:not(.boton) { color: var(--blanco); }

/* Cuerpo */
.cuerpo { padding: 1rem 0 3.5rem; }
.seccion { padding-top: 2.25rem; }
h2 {
  font-family: var(--sans); font-weight: 700; font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  line-height: 1.3; margin: 0 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--linea);
  scroll-margin-top: 1rem;
}
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; line-height: 1.35; margin: 1.75rem 0 0.6rem; scroll-margin-top: 1rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.6rem; }
li::marker { color: var(--gris); }

/* Pasos numerados («Cómo empezamos», etc.) */
ol { list-style: none; padding-left: 0; counter-reset: paso; }
ol > li { counter-increment: paso; position: relative; padding-left: 2.75rem; min-height: 2rem; }
ol > li::before {
  content: counter(paso); position: absolute; left: 0; top: 0.1rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--negro); color: var(--blanco);
  font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; line-height: 1;
}

.leer-mas { font-size: 0.95rem; padding: 0.75rem 1rem; background: var(--papel); border-left: 3px solid var(--negro); }
.colegas { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); font-size: 0.95rem; color: var(--gris); }
.marcador { background: #fff4c2; color: var(--tinta); padding: 0.5rem 0.75rem; font-weight: 600; }

/* Botones */
.accion { margin: 1.5rem 0; }
.boton {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.4rem; border-radius: 2px; background: var(--negro); color: var(--blanco);
  border: 1px solid var(--negro); transition: background-color 0.15s ease, color 0.15s ease;
}
.boton:hover { background: var(--tinta); }
.portada .boton { background: var(--blanco); color: var(--negro); border-color: var(--blanco); }
.portada .boton:hover { background: var(--papel); }

/* Inicio: las dos puertas como placas claras de las portadas */
.puertas .bloque {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px;
  padding: 1.25rem 1.25rem 0.25rem; margin-bottom: 1.25rem;
}
.puertas .bloque h3 { margin-top: 0; font-size: 1.3rem; }

/* Índice de artículos */
.pagina-articulos .cuerpo ul { list-style: none; padding-left: 0; }
.pagina-articulos .cuerpo li { background: var(--blanco); border: 1px solid var(--linea); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 0.9rem; }
.pagina-articulos .cuerpo li > a { font-weight: 600; text-decoration: none; display: block; line-height: 1.4; }
.pagina-articulos .cuerpo li > a:hover { text-decoration: underline; }
.desc { display: block; color: var(--gris); font-size: 0.95rem; margin-top: 0.35rem; }

/* Texto corrido justificado (pedido de Jose, 04/10/2026). Con guionado: a 375 px,
   justificar sin cortar palabras abre huecos entre ellas. Títulos, menú, botones y
   los títulos del índice de artículos quedan alineados a la izquierda. */
.portada p:not(.marca), .cuerpo p, .cuerpo li {
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
.pagina-articulos .cuerpo li > a, .boton { text-align: left; -webkit-hyphens: manual; hyphens: manual; }

/* Pie */
.pie { background: var(--negro); color: rgba(255, 255, 255, 0.82); font-size: 0.85rem; padding: 1.75rem 0; }
.pie p { margin: 0; }

/* Botón flotante de WhatsApp (pedido de Jose, 04/10/2026), con las medidas del de
   marinuslegales.com.ar: 52 px en el celular, 60 px desde tablet, cartel solo al pasar el
   mouse. El pie deja libre la franja de abajo para que el botón no tape su texto. */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: var(--blanco); text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: scale(1.06); }
.fab:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
.fab-etiqueta { display: none; }
.pie { padding-bottom: calc(1.75rem + 70px); }

@media (min-width: 48rem) {
  .fab { right: 24px; bottom: 24px; width: 60px; height: 60px; }
  .fab svg { width: 28px; height: 28px; }
  .fab-etiqueta {
    display: block; position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
    background: var(--negro); color: var(--blanco); font-family: var(--sans); font-size: 13px; font-weight: 500;
    padding: 10px 14px; border-radius: 2px; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .fab-etiqueta::after {
    content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px;
    transform: translateY(-50%) rotate(45deg); background: var(--negro);
  }
  .fab:hover .fab-etiqueta, .fab:focus-visible .fab-etiqueta { opacity: 1; }
  .pie { padding-bottom: 1.75rem; }
  .portada { padding: 4rem 0 4.25rem; }
  .puertas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; align-items: start; }
  .puertas > h2 { grid-column: 1 / -1; }
  .puertas > :not(h2):not(.bloque) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { .boton, .fab, .fab-etiqueta { transition: none; } .fab:hover { transform: none; } }

.foto { margin: 1.5rem 0; }
.foto img { display: block; width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
