/* "Hablemos" section: who you're writing to (left) + the contact form as step 01 of the process (right).
   It always sits on the black topographic background, so colors are fixed instead of following the theme. */
.contact-hub{
  --hub-ink:#f2efe8;
  --hub-muted:#a9a69e;
  --hub-line:#34332f;
  --hub-surface:rgba(20,20,19,.92);
  --hub-field:#0f0f0e;
  --hub-accent:#ffd000;
  --hub-accent-text:#f8cc45;
  --hub-soft-gold:#393222;
  position:relative;
  z-index:1;
  padding:85px 0;
  color:var(--hub-ink);
}
.contact-hub-grid{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:24px;
  align-items:stretch;
}
.contact-hub-person,
.contact-hub-panel{
  position:relative;
  border:1px solid var(--hub-line);
  border-radius:26px;
  background:var(--hub-surface);
  box-shadow:0 18px 50px -36px rgba(0,0,0,.8);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}

/* ---- Left column: the person ---- */
.contact-hub-person{padding:36px;display:flex;flex-direction:column}
.hub-id{display:flex;align-items:center;gap:16px}
.hub-shield{width:47px;height:53px;flex-shrink:0}
.hub-name{margin:0;font-size:26px;font-weight:700;letter-spacing:-.04em;line-height:1.1;color:var(--hub-ink)}
.hub-role{margin:6px 0 0;font-size:13px;color:var(--hub-muted)}
.hub-bio{margin:24px 0 0;font-size:15px;line-height:1.65;color:var(--hub-muted);max-width:46ch}
.hub-label{margin:32px 0 18px;font:11px var(--mono,'Courier New',monospace);letter-spacing:.08em;text-transform:uppercase;color:var(--hub-accent-text)}

.hub-timeline{list-style:none;margin:0;padding:0;position:relative}
.hub-timeline::before{
  content:"";position:absolute;left:66px;top:6px;bottom:6px;width:1px;
  background:linear-gradient(to bottom,rgba(242,239,232,.55),rgba(242,239,232,.08));
}
.hub-timeline li{position:relative;display:grid;grid-template-columns:52px 1fr;column-gap:30px;padding-bottom:20px}
.hub-timeline li:last-child{padding-bottom:0}
.hub-timeline li::before{
  content:"";position:absolute;left:62px;top:5px;width:9px;height:9px;border-radius:50%;
  background:var(--hub-ink);box-shadow:0 0 0 3px #141413;
}
.hub-year{grid-row:1 / span 2;font:12px/1.5 var(--mono,'Courier New',monospace);color:var(--hub-muted);text-align:right}
.hub-timeline strong{display:block;font-size:15px;font-weight:600;line-height:1.4;color:var(--hub-ink)}
.hub-detail{display:block;font-size:13px;line-height:1.5;color:var(--hub-muted)}

/* "Tu proyecto": the next chapter, in the brand yellow with a soft pulse */
.hub-timeline li.is-next::before{background:var(--hub-accent);animation:hub-next-pulse 2s ease-out infinite}
@keyframes hub-next-pulse{
  0%{box-shadow:0 0 0 3px #141413,0 0 0 3px rgba(255,208,0,.6)}
  70%,100%{box-shadow:0 0 0 3px #141413,0 0 0 12px rgba(255,208,0,0)}
}
.hub-timeline .is-next .hub-year{color:var(--hub-accent-text)}
.hub-timeline .is-next a{display:block;color:inherit;text-decoration:none;border-radius:6px}
.hub-timeline .is-next strong{color:var(--hub-accent-text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.hub-timeline .is-next a:hover strong{color:var(--hub-accent)}
.hub-timeline .is-next a:focus-visible{outline:2px solid var(--hub-accent-text);outline-offset:4px}

.hub-links{list-style:none;margin:auto 0 0;padding:30px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.hub-links a{
  display:inline-flex;align-items:center;min-height:36px;padding:7px 13px;border:1px solid var(--hub-line);border-radius:999px;
  font-size:12px;color:var(--hub-ink);text-decoration:none;background:rgba(255,255,255,.03);transition:border-color .2s,color .2s;
}
.hub-links a:hover{border-color:var(--hub-accent-text);color:var(--hub-accent-text)}
.hub-links a:focus-visible{outline:2px solid var(--hub-accent-text);outline-offset:3px}

/* ---- Right column: step 01 + form (mirrors the process panels) ---- */
.contact-hub-panel{
  padding:38px;overflow:hidden;
  background:radial-gradient(ellipse at 100% 0%,var(--hub-soft-gold),transparent 60%),var(--hub-surface);
}
.hub-watermark{
  position:absolute;right:20px;top:0;font:120px/1 var(--mono,'Courier New',monospace);letter-spacing:-.12em;
  color:var(--hub-ink);opacity:.1;pointer-events:none;
}
.hub-badge{display:inline-flex;align-items:center;gap:9px;font:13px var(--mono,'Courier New',monospace);color:var(--hub-accent-text);line-height:1.6}
.hub-badge i{width:6px;height:6px;background:currentColor;border-radius:50%;box-shadow:0 0 0 4px var(--hub-soft-gold)}
.contact-hub-panel h2{
  position:relative;margin:18px 0 14px;font-size:clamp(34px,4vw,52px);font-weight:700;letter-spacing:-.055em;line-height:1.04;color:var(--hub-ink);
}
.hub-intro{position:relative;margin:0;font-size:15px;line-height:1.65;color:var(--hub-muted);max-width:56ch}
.hub-checks{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:20px 0 28px}
.hub-checks li{font-size:11px;color:var(--hub-ink);border:1px solid var(--hub-line);border-radius:8px;padding:8px 10px;background:rgba(255,255,255,.045)}
.hub-checks li span{color:var(--hub-accent-text);margin-right:6px}

/* ---- Form ---- */
.contact-hub .contact-form{position:relative;margin:0;padding:0;border:0;border-radius:0;background:none;min-width:0}
.contact-hub .contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.contact-hub .contact-form label{display:block;margin:0 0 16px;font-size:13px;line-height:1.4;color:var(--hub-ink)}
.contact-hub .contact-form input:not([type=checkbox]),
.contact-hub .contact-form textarea{
  display:block;width:100%;margin-top:7px;padding:12px 14px;box-sizing:border-box;
  background:var(--hub-field);border:1px solid var(--hub-line);border-radius:12px;color:var(--hub-ink);
  font:16px var(--sans,Arial,sans-serif);transition:border-color .25s,box-shadow .25s;
}
.contact-hub .contact-form textarea{min-height:130px;resize:vertical}
/* Focus: light border with a pulsing halo (black wouldn't be visible on this dark surface) */
.contact-hub .contact-form input:not([type=checkbox]):focus,
.contact-hub .contact-form textarea:focus{
  outline:none;border-color:var(--hub-ink);
  box-shadow:0 0 0 3px rgba(242,239,232,.35);
  animation:hub-field-pulse 1.5s ease-out infinite;
}
@keyframes hub-field-pulse{
  0%{box-shadow:0 0 0 2px rgba(242,239,232,.45)}
  70%,100%{box-shadow:0 0 0 10px rgba(242,239,232,0)}
}
.contact-hub .contact-form .contact-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:var(--hub-muted)}
.contact-hub .contact-consent input{width:18px;height:18px;flex-shrink:0;margin:1px 0 0;accent-color:var(--hub-accent)}
.contact-hub .contact-privacy{margin:0 0 22px;font-size:12px;line-height:1.6;color:#8a877f;max-width:none}
.contact-hub .contact-status{min-height:0;margin:12px 0 0;font-size:14px;line-height:1.6;color:var(--hub-ink)}
.contact-hub .contact-status:empty{margin:0}
.contact-hub .contact-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* ---- Responsive ---- */
@media(max-width:900px){
  .contact-hub{padding:60px 0}
  .contact-hub-grid{grid-template-columns:1fr}
  .hub-links{margin-top:0}
}
@media(max-width:560px){
  .contact-hub-person,.contact-hub-panel{padding:26px 22px;border-radius:22px}
  .contact-hub .contact-fields{grid-template-columns:1fr}
  .hub-watermark{font-size:90px}
  .hub-timeline::before{left:58px}
  .hub-timeline li{grid-template-columns:44px 1fr;column-gap:28px}
  .hub-timeline li::before{left:54px}
}
@media(prefers-reduced-motion:reduce){
  .hub-timeline li.is-next::before,
  .contact-hub .contact-form input:not([type=checkbox]):focus,
  .contact-hub .contact-form textarea:focus{animation:none}
}

/* ---- Links row: LinkedIn logo + email + full profile, always on one line ---- */
.hub-links{flex-wrap:nowrap}
.hub-links li{flex:0 0 auto;min-width:0}
.hub-links a{gap:8px;white-space:nowrap}
.hub-links a.hub-link-icon{width:36px;padding:0;justify-content:center}
.hub-links svg{display:block;flex-shrink:0}
.hub-mail-short{display:none}
/* Title sits at the top of the panel now that the step badge is gone */
.contact-hub-panel h2{margin-top:0}
/* Narrow columns: the address doesn't fit on one line, show "Correo" instead */
@media(max-width:1100px) and (min-width:901px),(max-width:480px){
  .hub-mail-full{display:none}
  .hub-mail-short{display:inline}
}
.hub-intro{margin-bottom:28px}

/* ---- Timeline with branches (git-style) ----
   Main line = own business (G7, which becomes WhiteDeveloper). Jobs held at the same time
   branch out to the right and merge back into the main line. */
.hub-branches li{column-gap:30px}
.hub-branches .hub-branch{padding-bottom:22px}
.hub-branches .hub-branch>strong,
.hub-branches .hub-branch>.hub-detail,
.hub-branches .hub-branch>.hub-tag{margin-left:30px}
.hub-branches .hub-branch .hub-year{opacity:.7}
/* the branch: a bracket leaving the main line and coming back */
.hub-branches .hub-branch::after{
  content:"";position:absolute;left:66px;top:-6px;bottom:4px;width:28px;
  border:1px solid rgba(242,239,232,.38);border-left:0;border-radius:0 14px 14px 0;
}
/* branch dot sits on the bracket */
.hub-branches .hub-branch::before{
  left:89px;top:5px;width:9px;height:9px;z-index:1;
  background:#141413;border:1px solid var(--hub-ink);box-shadow:0 0 0 3px #141413;
}
.hub-tag{
  display:inline-block;margin-top:6px;padding:2px 8px;border:1px solid var(--hub-line);border-radius:999px;
  font:10px/1.6 var(--mono,'Courier New',monospace);letter-spacing:.04em;color:var(--hub-muted);
}
/* the move: G7 becomes WhiteDeveloper (diamond marker in the brand yellow) */
.hub-branches .hub-shift::before{
  left:61px;top:4px;width:11px;height:11px;border-radius:2px;transform:rotate(45deg);
  background:var(--hub-accent);box-shadow:0 0 0 3px #141413;
}
.hub-branches .hub-shift strong{color:var(--hub-accent-text)}
@media(max-width:560px){
  .hub-branches li{column-gap:28px}
  .hub-branches .hub-branch::after{left:58px;width:26px}
  .hub-branches .hub-branch::before{left:79px}
  .hub-branches .hub-shift::before{left:53px}
  .hub-branches .hub-branch>strong,
  .hub-branches .hub-branch>.hub-detail,
  .hub-branches .hub-branch>.hub-tag{margin-left:26px}
}
.hub-branches .hub-tag{grid-column:2;justify-self:start}
