* { box-sizing: border-box; }

:root {
  --bg: #02080c;
  --text: #f3f7f8;
  --muted: #9aadb7;
  --cyan: #18d9ff;
  --green: #18e4a1;
  --line: rgba(24, 217, 255, .25);
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body { overflow-x: hidden; }

.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/cybersecurity-background.png") center / cover no-repeat;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2,8,12,.93) 0%, rgba(2,8,12,.72) 37%, rgba(2,8,12,.12) 77%),
    linear-gradient(0deg, rgba(2,8,12,.48), transparent 35%, rgba(2,8,12,.16));
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image:
    linear-gradient(rgba(24,217,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,217,255,.16) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, black, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 88vw);
  margin-left: clamp(6vw, 10.5vw, 165px);
  margin-top: -2vh;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--cyan);
  font: 700 .78rem "Space Mono", monospace;
  letter-spacing: .24em;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 800;
}

h1 span {
  color: var(--cyan);
  text-shadow: 0 0 32px rgba(24,217,255,.22);
}

.actions {
  display: flex;
  gap: 20px;
  margin-top: 48px;
}

.social-button {
  width: 290px;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font: 700 .95rem "Space Mono", monospace;
  letter-spacing: .1em;
  background: rgba(2,13,18,.65);
  backdrop-filter: blur(9px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.social-button:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 15px 42px rgba(0,190,255,.16);
}

.social-button.linkedin {
  background: linear-gradient(135deg, rgba(0,115,181,.78), rgba(5,44,76,.72));
  border-color: rgba(32,167,255,.7);
}

.github-icon, .github-icon svg {
  width: 35px;
  height: 35px;
}

.linkedin-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #fff;
  color: #0a66c2;
  font: 800 25px/1 Arial, sans-serif;
}

.arrow {
  margin-left: auto;
  color: var(--cyan);
  font-size: 1.2rem;
}

.linkedin .arrow { color: #fff; }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 25px;
}

.page-links a {
  color: #bdcdd4;
  text-decoration: none;
  font: 700 .69rem "Space Mono", monospace;
  letter-spacing: .08em;
  transition: color .2s ease;
}

.page-links a:hover { color: var(--green); }
.page-links span { color: var(--green); }

/* -------------------------
   SUBPÁGINA
------------------------- */

.about-page {
  background:
    radial-gradient(circle at 78% 10%, rgba(0,210,170,.07), transparent 27%),
    linear-gradient(rgba(2,8,12,.86), rgba(2,8,12,.94)),
    url("assets/cybersecurity-background.png") center / cover no-repeat fixed,
    #02080c;
}

.about-wrapper {
  width: min(1100px, 88vw);
  margin: 0 auto;
  padding: 8vh 0 10vh;
}

.back-link {
  display: inline-block;
  margin-bottom: 62px;
  color: var(--green);
  text-decoration: none;
  font: 700 .76rem "Space Mono", monospace;
  letter-spacing: .1em;
}

.about-header h1 {
  font-size: clamp(3.4rem, 6vw, 6rem);
}

.about-header h1 span { color: var(--green); }

.about-intro {
  max-width: 760px;
  margin: 30px 0 48px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.profile-link {
  margin-top: 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.info-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(24,217,255,.2);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(5,20,27,.8), rgba(2,10,14,.55));
  transition: transform .2s ease, border-color .2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24,228,161,.42);
}

.card-symbol {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24,228,161,.42);
  border-radius: 8px;
  color: var(--green);
  font: 700 .75rem "Space Mono", monospace;
}

.info-card h2 {
  margin: 2px 0 8px;
  font-size: .95rem;
}

.info-card strong {
  display: block;
  color: #e1f7fa;
  font-size: .92rem;
}

.info-card p {
  margin: 9px 0 0;
  color: #8498a3;
  font-size: .8rem;
  line-height: 1.55;
}

code { color: var(--cyan); }

.process {
  margin-top: 52px;
  padding-top: 35px;
  border-top: 1px solid rgba(24,217,255,.16);
}

.section-label {
  margin: 0 0 23px;
  color: var(--green);
  font: 700 .72rem "Space Mono", monospace;
  letter-spacing: .18em;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.045);
}

.timeline span {
  color: var(--cyan);
  font: 700 .72rem "Space Mono", monospace;
}

.timeline p {
  margin: 0;
  color: #b6c5cb;
  font-size: .9rem;
}

.credits {
  margin-top: 52px;
  padding: 30px 0 0;
  border-top: 1px solid rgba(24,217,255,.16);
  color: #8296a1;
  font-size: .84rem;
  line-height: 1.8;
}

.credits strong { color: #dce9ee; }
.credits a { color: var(--cyan); }

.hosting-note {
  margin: 24px 0 0;
  color: #8498a3;
  font-size: .82rem;
  line-height: 1.65;
}

.guide-callout {
  margin: 8px 0 38px;
  padding: 24px 26px;
  border: 1px solid rgba(24,217,255,.24);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  background: linear-gradient(130deg, rgba(5,24,32,.8), rgba(2,10,14,.68));
  color: #c4d4da;
  font-size: .94rem;
  line-height: 1.75;
}

.guide-callout strong { color: #effbff; }

.guide-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--cyan);
  font: 700 .68rem "Space Mono", monospace;
  letter-spacing: .04em;
}

.guide-route span { color: var(--green); }

.guide-section { margin-top: 44px; }

.guide-section > h2 {
  margin: 0 0 18px;
  color: #e8f4f7;
  font-size: 1.25rem;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.guide-step {
  align-content: start;
  min-height: 0;
}

.guide-step h3 {
  margin: 2px 0 10px;
  color: #e1f7fa;
  font-size: .98rem;
}

.guide-step p,
.guide-step li {
  color: #a9bbc3;
  font-size: .83rem;
  line-height: 1.7;
}

.guide-step p { margin: 8px 0; }
.guide-step ul,
.guide-step ol { margin: 8px 0 0; padding-left: 19px; }
.guide-step li + li { margin-top: 5px; }

.guide-command {
  overflow-x: auto;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(24,217,255,.13);
  border-radius: 5px;
  background: rgba(0,0,0,.35);
  color: #d6f6fb;
  font: 400 .76rem/1.65 "Space Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-warning {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255,185,82,.25);
  border-left: 3px solid #f5b347;
  border-radius: 7px;
  background: rgba(50,32,8,.28);
  color: #cbbda7;
  font-size: .83rem;
  line-height: 1.7;
}

.guide-warning strong { color: #ffe1ae; }

.guide-table-wrap { overflow-x: auto; margin-top: 22px; }

.guide-table {
  width: 100%;
  border-collapse: collapse;
  color: #b8c9cf;
  font-size: .78rem;
  line-height: 1.55;
}

.guide-table th,
.guide-table td {
  padding: 12px 14px;
  border: 1px solid rgba(24,217,255,.14);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: #e5f5f8;
  background: rgba(24,217,255,.07);
  font: 700 .67rem "Space Mono", monospace;
}

.guide-sources a { margin-right: 18px; }

.prompt-library {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.prompt-entry {
  overflow: hidden;
  border: 1px solid rgba(24,217,255,.23);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(5,20,27,.88), rgba(2,10,14,.72));
  transition: border-color .2s ease;
}

.prompt-entry:hover,
.prompt-entry[open] {
  border-color: rgba(24,228,161,.5);
}

.prompt-entry summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 23px 25px;
  cursor: pointer;
  list-style: none;
}

.prompt-entry summary::-webkit-details-marker { display: none; }

.prompt-entry summary::after {
  content: "+";
  color: var(--cyan);
  font: 400 1.6rem "Space Mono", monospace;
}

.prompt-entry[open] summary::after { content: "−"; }

.prompt-category {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font: 700 .65rem "Space Mono", monospace;
  letter-spacing: .14em;
}

.prompt-entry h2 {
  margin: 0;
  color: #eef8fa;
  font-size: 1.08rem;
}

.prompt-preview {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.prompt-content {
  padding: 0 25px 25px;
}

.prompt-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.prompt-content-head p {
  margin: 0;
  color: #8fa4ad;
  font: 700 .68rem "Space Mono", monospace;
  letter-spacing: .1em;
}

.copy-prompt {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(24,217,255,.4);
  border-radius: 5px;
  background: rgba(24,217,255,.08);
  color: #e9fbff;
  cursor: pointer;
  font: 700 .66rem "Space Mono", monospace;
  letter-spacing: .07em;
  transition: background .2s ease, border-color .2s ease;
}

.copy-prompt:hover,
.copy-prompt.is-copied {
  border-color: var(--green);
  background: rgba(24,228,161,.12);
}

.prompt-text {
  max-height: 68vh;
  overflow: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(0,0,0,.24);
  color: #c6d4da;
  font: 400 .82rem/1.75 "Inter", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.signature {
  margin-top: 26px;
  color: #b8cbd3;
  font: 700 .7rem "Space Mono", monospace;
  letter-spacing: .12em;
}

.signature span { color: var(--green); }

@media (max-width: 900px) {
  .hero {
    align-items: flex-end;
    padding: 14vh 0 9vh;
  }

  .hero-background {
    background-position: 42% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(2,8,12,.94), rgba(2,8,12,.58)),
      linear-gradient(0deg, rgba(2,8,12,.78), transparent 55%);
  }

  .hero-content {
    margin: auto;
  }

  .actions {
    flex-wrap: wrap;
  }

  .social-button {
    flex: 1 1 250px;
  }
}

@media (max-width: 650px) {
  .hero {
    padding-bottom: 10vh;
  }

  .hero-content {
    width: 86vw;
  }

  .eyebrow {
    font-size: .67rem;
    letter-spacing: .15em;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .actions {
    display: grid;
    gap: 12px;
    margin-top: 35px;
  }

  .social-button {
    width: 100%;
    height: 72px;
  }

  .about-wrapper {
    width: 86vw;
    padding-top: 6vh;
  }

  .back-link {
    margin-bottom: 45px;
  }

  .about-header h1 {
    font-size: 3.25rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .guide-steps { grid-template-columns: 1fr; }
  .guide-callout { padding: 19px 20px; }

  .prompt-entry summary { padding: 20px; }
  .prompt-content { padding: 0 20px 20px; }
  .prompt-content-head { align-items: flex-start; flex-direction: column; }

  .info-card {
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
