/* =========================================================
   ALEXTOLL · Página "Conoce a Alextoll" (sobre-mi.html)
   Usa tokens.css, base.css y layout.css.
   ========================================================= */

/* =========================================================
   1. CABECERA: texto + diagrama de patillas
   ========================================================= */
.about-in{display:grid;gap:clamp(28px,4vw,56px);align-items:center;padding-block:clamp(40px,6vw,80px) clamp(48px,7vw,96px)}
@media (min-width: 1000px){ .about-in{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)} }
.about-copy{display:grid;gap:22px}
.about-copy h1{font-size:var(--fs-hero);font-weight:800;letter-spacing:-.035em;line-height:1}
.about-copy .lede{font-size:clamp(1.1rem,1.7vw,1.25rem);max-width:40ch;color:var(--muted);line-height:1.5}
.about-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
.about-links{display:flex;flex-wrap:wrap;gap:6px 20px;list-style:none;margin:0;padding:0}
.about-links a{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:600}
.about-links a:hover{color:var(--accent)}

/* Titular como en la portada: segunda línea en plata */
.about-copy h1 span{display:block}
.about-copy .eyebrow{margin-bottom:-4px}

/* Tarjeta de perfil (cristal sobre el escritorio animado) */
.profile{justify-self:end;width:100%;max-width:400px;display:grid;gap:20px;padding:26px;border-radius:var(--r-lg);background:rgba(14,14,17,.55);-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);border:1px solid rgba(255,255,255,.1);box-shadow:0 1px 0 rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(0,0,0,.95);position:relative;overflow:hidden;animation:profile-float 9s ease-in-out infinite}
.profile::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg, transparent 35%, rgba(255,255,255,.06) 50%, transparent 65%);transform:translateX(-120%);animation:profile-sheen 10s ease-in-out infinite}
@keyframes profile-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes profile-sheen{0%,70%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
.profile-top{display:flex;align-items:center;gap:16px}
.profile-avatar{position:relative;flex:none;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--silver);color:#0A0A0C;font-weight:700;font-size:1.25rem;letter-spacing:-.02em;box-shadow:0 0 0 1px rgba(255,255,255,.25), 0 10px 30px -10px rgba(255,255,255,.35)}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-name{font-size:1.18rem;font-weight:650;letter-spacing:-.02em}
.profile-role{color:var(--muted);font-size:.9rem}
.profile-status{display:inline-flex;align-items:center;gap:10px;justify-self:start;padding:7px 14px 7px 12px;border-radius:var(--pill);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:.84rem;color:color-mix(in srgb, var(--ink) 85%, transparent)}
.profile-status .dot{width:8px;height:8px;border-radius:50%;background:#FFFFFF;box-shadow:0 0 0 0 rgba(255,255,255,.6);animation:profile-dot 2.4s ease-out infinite}
@keyframes profile-dot{0%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}100%{box-shadow:0 0 0 10px rgba(255,255,255,0)}}
.profile-list{list-style:none;margin:0;padding:18px 0 0;border-top:1px solid var(--line);display:grid;gap:16px}
.profile-list li{display:flex;align-items:center;gap:14px}
.profile-list .ico-l{width:24px;height:24px;flex:none;color:var(--ink)}
.profile-list strong{display:block;font-size:.95rem;font-weight:600}
.profile-list span{display:block;color:var(--muted);font-size:.84rem}
.profile-tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.profile-tags li{padding:5px 11px;border-radius:var(--pill);border:1px solid rgba(255,255,255,.12);font-size:.78rem;color:color-mix(in srgb, var(--ink) 80%, transparent)}

/* Saltos a cada parte de la página */
.about-jump{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:clamp(28px,4vw,48px);position:relative}
.about-jump a{padding:9px 16px;border-radius:var(--pill);border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.35);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:color-mix(in srgb, var(--ink) 85%, transparent);text-decoration:none;font-size:.88rem;transition:background-color .2s, border-color .2s, color .2s}
.about-jump a:hover{background:#FFFFFF;color:#000000;border-color:#FFFFFF}
.hero--desk{align-content:end}
@media (max-width: 999px){ .profile{justify-self:start;max-width:none} }
@media (prefers-reduced-motion: reduce){ .profile,.profile::before,.profile-status .dot{animation:none} }

/* =========================================================
   2. QUIÉN SOY + HOJA DE DATOS
   ========================================================= */
.story{display:grid;gap:clamp(32px,5vw,64px);grid-template-columns:1fr}
@media (min-width: 900px){ .story{grid-template-columns:1.1fr .9fr;align-items:start} }
.story-text{display:grid;gap:18px;max-width:62ch}
.story-text h2{font-size:var(--fs-xl);margin-bottom:4px}
.story-text p{font-size:1.12rem;line-height:1.7}
.datasheet{border:1px solid var(--rule);border-radius:var(--r);background:var(--surface)}
@media (min-width: 900px){ .datasheet{position:sticky;top:calc(var(--nav-h) + 24px)} }
.datasheet header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 18px;border-bottom:1px solid var(--rule)}
.datasheet header h2{font-size:1rem}
.datasheet header span{color:var(--muted)}
.datasheet dl{margin:0;display:grid;grid-template-columns:auto 1fr}
.datasheet dt,.datasheet dd{padding:12px 18px;border-bottom:1px solid var(--line);margin:0}
.datasheet dt{font-size:var(--fs-sm);color:var(--muted);padding-right:6px}
.datasheet dd{font-weight:500}
.datasheet dl > :nth-last-child(-n+2){border-bottom:0}

/* =========================================================
   3. LO QUE HAGO: rejilla 2x2 con filetes
   ========================================================= */
.areas{display:grid;grid-template-columns:1fr;border-top:1px solid var(--rule)}
@media (min-width: 820px){ .areas{grid-template-columns:1fr 1fr} }
.area{display:grid;gap:8px;align-content:start;padding:26px 0;border-bottom:1px solid var(--line);scroll-margin-top:calc(var(--nav-h) + 24px)}
@media (min-width: 820px){
  .area:nth-child(odd){padding-right:32px}
  .area:nth-child(even){padding-left:32px;border-left:1px solid var(--line)}
}
.area h3{display:flex;align-items:center;gap:12px;font-size:1.2rem}
.area h3 .ico{width:26px;height:26px;color:var(--accent)}
.area p{color:var(--muted);max-width:52ch}
.area .tools{font-size:var(--fs-sm);margin-top:4px}
.area .tools b{font-weight:600}
.area:target{background:var(--accent-soft)}

/* =========================================================
   4. PROYECTOS
   ========================================================= */
.filters{display:inline-flex;flex-wrap:wrap;margin-bottom:28px;border:1px solid var(--rule);border-radius:var(--r);overflow:hidden}
.filters button{min-height:40px;padding:0 16px;border:0;background:transparent;color:var(--ink);font-weight:500;cursor:pointer}
.filters button + button{border-left:1px solid var(--rule)}
.filters button:hover{background:var(--surface-2)}
.filters button[aria-pressed="true"]{background:var(--ink);color:var(--bg);font-weight:600}
.filters .count{opacity:.6;margin-left:6px;font-size:.85em}
.projects{display:grid;gap:36px 24px;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}
.proj{display:grid;grid-template-rows:auto 1fr;gap:14px;text-align:left;background:none;border:0;padding:0;cursor:pointer;color:var(--ink);font:inherit}
.proj-img{aspect-ratio:16/10;overflow:hidden;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2);transition:border-color .2s}
.proj-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease-out)}
.proj:hover .proj-img{border-color:var(--ink)}
.proj:hover .proj-img img{transform:scale(1.025)}
.proj-body{display:grid;gap:8px;align-content:start}
.proj-meta{font-size:var(--fs-sm);color:var(--muted)}
.proj-meta .st{color:var(--accent);font-weight:600}
.proj-body h3{font-size:1.15rem}
.proj:hover h3{text-decoration:underline;text-underline-offset:.2em}
.proj-body p{color:var(--muted);font-size:var(--fs-sm)}
.proj-tech{font-size:.875rem}
.projects-empty{color:var(--muted);padding:24px 0}
@media (min-width: 1000px){
  .projects{grid-template-columns:repeat(3,1fr)}
  .projects.has-featured .proj:first-child{grid-column:span 2;grid-template-rows:none;grid-template-columns:1.4fr 1fr;align-items:center;gap:28px}
  .projects.has-featured .proj:first-child .proj-img{aspect-ratio:16/10}
  .projects.has-featured .proj:first-child h3{font-size:1.5rem}
}

/* Ventana de detalle del proyecto */
.proj-dialog{width:min(860px, calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--rule);border-radius:var(--r);background:var(--surface);color:var(--ink);overflow:auto}
.proj-dialog::backdrop{background:rgba(0,0,0,.78)}
.dlg-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px 10px 20px;border-bottom:1px solid var(--rule);position:sticky;top:0;background:var(--surface);z-index:2}
.dlg-top .proj-meta{margin:0}
.dlg-close{width:40px;height:40px;border:1px solid var(--line);border-radius:var(--r);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}
.dlg-close:hover{border-color:var(--ink)}
.dlg-close .ico{width:20px;height:20px}
.dlg-img{aspect-ratio:16/10;background:var(--surface-2);border-bottom:1px solid var(--line)}
.dlg-img img{width:100%;height:100%;object-fit:cover}
.dlg-body{padding:clamp(20px,4vw,32px);display:grid;gap:16px}
.dlg-body h2{font-size:var(--fs-lg)}
.dlg-body > p{font-size:1.06rem;color:var(--muted)}
.dlg-body ul.points{display:grid;gap:10px;padding:0;list-style:none;margin:0}
.dlg-body ul.points li{display:grid;grid-template-columns:22px 1fr;gap:10px}
.dlg-body ul.points .ico{width:20px;height:20px;color:var(--accent);margin-top:2px}
.dlg-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;margin-top:6px}

/* =========================================================
   5. LO QUE ME GUSTA: lista en columnas
   ========================================================= */
.likes{display:grid;gap:0 32px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));border-top:1px solid var(--rule)}
.like{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;align-items:start;padding:20px 0;border-bottom:1px solid var(--line)}
.like .ico{grid-row:span 2;width:26px;height:26px;color:var(--accent);margin-top:2px}
.like h3{font-size:1.05rem;font-stretch:108%}
.like p{color:var(--muted);font-size:var(--fs-sm)}

/* =========================================================
   6. RECORRIDO
   ========================================================= */
.tl-grid{display:grid;gap:32px}
@media (min-width: 900px){
  .tl-grid{grid-template-columns:.8fr 1.2fr}
  .tl-grid .section-head{position:sticky;top:calc(var(--nav-h) + 24px);align-self:start}
}
.timeline{list-style:none;margin:0;padding:0;display:grid;max-width:640px}
.timeline li{position:relative;padding:0 0 30px 40px;display:grid;gap:4px}
.timeline li::before{content:"";position:absolute;left:4px;top:6px;width:13px;height:13px;background:var(--section-bg, var(--bg));border:1px solid var(--rule);z-index:1}
.timeline li::after{content:"";position:absolute;left:10px;top:20px;bottom:-4px;width:1.5px;background:var(--ink)}
.timeline li:last-child::after{display:none}
.timeline li:last-child::before{background:var(--accent);border-color:var(--accent)}
.timeline .date{font-size:var(--fs-sm);color:var(--muted)}
.timeline h3{font-size:1.08rem}
.timeline p{color:var(--muted)}

/* =========================================================
   7. LLAMADA FINAL
   ========================================================= */
.about-end .wrap{display:grid;gap:24px;justify-items:start}
@media (min-width: 860px){ .about-end .wrap{grid-template-columns:1fr auto;align-items:end} }
.about-end h2{font-size:var(--fs-xl);max-width:22ch}
.about-end p{color:var(--muted);margin-top:10px;max-width:48ch}
