/* Portada — page styles on top of /assets/ds (tokens + base). Colours only through tokens. */

/* hero: name, role and a portrait framed in the brand gold, over the circuit lines of the brand (/assets/ds/circuit.css) */
.hero { position: relative; overflow: hidden; padding: 88px 0 56px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 48px; position: relative; z-index: 1; }
/* the slogan is the title (the name lives in the seal of the bar and in the intro); then a short «Sobre mí» */
.hero-title { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.18; max-width: 24ch; margin: 0 0 30px; }
.about-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.about { max-width: 62ch; color: var(--text-2); margin: 0 0 12px; }
.about a { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(200, 149, 63, .5);
  text-underline-offset: 4px; transition: text-decoration-color .25s ease; }
.about a:hover { text-decoration-color: currentColor; }
/* the portrait is the shared component (/assets/ds/portrait.css) */
.hero-photo { --portrait-size: 208px; }

/* the four doors: CV Online, IsAcademy, IsGame, Kimera Tools (4 columns, 2×2 on tablets, 1 on phones) */
.doors { padding: 8px 0 96px; }
.door-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.door { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); min-height: 260px; overflow: hidden; }
.door h3 { font-size: 24px; }
.door p { color: var(--text-2); margin: 0; flex: 1; }
.door-mark { display: flex; align-items: center; height: 48px; color: var(--gold); transition: transform .5s var(--ease-out); }
.mark-is { font-family: var(--font-script); font-size: 52px; line-height: 1; -webkit-text-stroke: .5px currentColor; }
.mark-isa { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.mark-isa b { font-family: var(--font-script); font-weight: 400; font-size: 38px; color: var(--gold); margin-right: 1px; -webkit-text-stroke: .5px currentColor; }
.mark-k { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--gold); }
.mark-k i { font-style: normal; animation: k-blink 1.1s steps(1) infinite; }
@keyframes k-blink { 50% { opacity: 0; } }
.door:hover .door-mark { transform: translateX(4px) rotate(-2deg); }
.btn-link { color: var(--gold-text); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; }
/* hover: the card lifts a little more, a gold line draws along its top, the light follows the pointer (ds.js) and the
   arrow moves forward; keyboard focus gets the same treatment */
.door::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.door:hover::before, .door:focus-visible::before { transform: scaleX(1); }
.door:focus-visible { border-color: rgba(200, 149, 63, .45); }
.door:focus-visible .btn-arrow::after, .door:hover .btn-arrow::after { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) {
  .door.card:hover { transform: translateY(-4px); }
}

@media (max-width: 1100px) {
  .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door { min-height: 0; }
}
@media (max-width: 640px) {
  .door-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { order: -1; --portrait-size: 120px; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .mark-k i { animation: none; }
}

/* 404 */
.nf { padding: 96px 0; min-height: 60vh; }
.nf h1 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 14px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
