/* =====================================================================
   CampoSistemas · MARCA (lockup del encabezado, login y landing)
   Isotipo vectorial (terreno: campo · tierra · agua · arena) + palabra.
   Efectos: sombra suave, barrido de sol cada 8 s, agua que "respira",
   relieve 3D al pasar el mouse. Sin JS. Respeta prefers-reduced-motion.
   ===================================================================== */
.cs-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; line-height: 1; color: inherit; -webkit-user-select: none; user-select: none; }
.cs-brand:hover, .cs-brand:focus { text-decoration: none; }

/* ---- isotipo */
.cs-iso { position: relative; display: block; width: 66px; height: 36px; flex: 0 0 auto; filter: drop-shadow(0 3px 5px rgba(47, 94, 26, .25)); }
.cs-iso svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.cs-iso .cs-p { transition: filter .4s ease, transform .4s ease; }
/* agua: respira muy suave */
.cs-iso .cs-p-aqua { animation: cs-agua 5.5s ease-in-out infinite; }
/* barrido de sol: una franja de luz cruza SOLO el terreno (máscara con el mismo SVG) */
.cs-iso::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.78) 50%, rgba(255,255,255,0) 62%);
  background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: url(../img/isotipo.svg) no-repeat center / contain; mask: url(../img/isotipo.svg) no-repeat center / contain;
  animation: cs-sol 8s ease-in-out infinite; mix-blend-mode: soft-light; opacity: .95; }
/* relieve al pasar el mouse: el terreno se inclina como una maqueta y las parcelas se iluminan */
.cs-brand:hover .cs-iso svg, .cs-brand:focus-visible .cs-iso svg { transform: perspective(320px) rotateX(18deg) translateY(-2px) scale(1.04); }
.cs-brand:hover .cs-iso { filter: drop-shadow(0 7px 9px rgba(47, 94, 26, .3)); }
.cs-brand:hover .cs-p-olive { filter: brightness(1.07); }
.cs-brand:hover .cs-p-sand  { filter: brightness(1.05); }
.cs-brand:hover .cs-p-aqua  { filter: brightness(1.12) saturate(1.15); }
.cs-brand:hover .cs-p-red   { filter: brightness(1.08); }

/* ---- palabra: "campo" (oliva, muy espaciada) sobre "sistemas.com" (bordó + oliva), como la marca original */
.cs-word { display: flex; flex-direction: column; justify-content: center; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-weight: 800; white-space: nowrap; }
.cs-w1 { font-size: 20px; letter-spacing: .36em; color: #8a9a3c; line-height: 1; margin-left: .08em; margin-right: -.36em; }
.cs-w2 { font-size: 14px; letter-spacing: .005em; color: #8b2e2e; line-height: 1; margin-top: 4px; }
.cs-w2 i { font-style: normal; color: #8a9a3c; }
.cs-w1, .cs-w2 { transition: letter-spacing .4s ease, color .3s; }
.cs-brand:hover .cs-w1 { letter-spacing: .42em; }

/* ---- tamaño grande (login / landing) */
.cs-brand-lg { gap: 16px; }
.cs-brand-lg .cs-iso { width: 110px; height: 60px; }
.cs-brand-lg .cs-w1 { font-size: 34px; }
.cs-brand-lg .cs-w2 { font-size: 23px; margin-top: 6px; }

@keyframes cs-sol  { 0%, 62% { background-position: 130% 0; } 92%, 100% { background-position: -30% 0; } }
@keyframes cs-agua { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.09) saturate(1.12); } }

@media (max-width: 420px) { .cs-header .cs-word { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cs-iso::after, .cs-iso .cs-p-aqua { animation: none; }
  .cs-iso svg, .cs-iso .cs-p, .cs-w1 { transition: none; }
}
@media print { .cs-iso::after { display: none; } }
