:root {
  --bg: #06110d;
  --bg-deep: #020806;
  --panel: #091711;
  --panel-2: #0d1e17;
  --green: #00ff85;
  --green-2: #29ff9d;
  --green-soft: rgba(0, 255, 133, .12);
  --green-line: rgba(0, 255, 133, .28);
  --text: #f3f7f5;
  --muted: #a8b9b1;
  --muted-2: #6f877b;
  --pink: #ff72d2;
  --purple: #b992ff;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 18px;
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(0,255,133,.055),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #06100c,
      #030906 68%,
      #020705
    );

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.55;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}


/* =========================
   TEXTURA
========================= */

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;

  opacity: .04;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}


/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;
  min-height: 72px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;

  padding:
    0 max(24px, calc((100vw - var(--max)) / 2));

  border-bottom:
    1px solid rgba(0,255,133,.12);

  background:
    rgba(3, 10, 7, .82);

  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.05rem;
}

.brand span,
.brand b {
  color: var(--green);
}

.brand b {
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;

  color: #d7e2dd;

  font-size: .88rem;

  transition: .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a.active::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -25px;

  width: 26px;
  height: 2px;

  background: var(--green);

  transform: translateX(-50%);

  box-shadow:
    0 0 10px var(--green);
}

.cv-header {
  justify-self: end;
}

.menu-toggle {
  display: none;

  border: 0;

  background: transparent;

  padding: 8px;
}

.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  margin: 5px 0;

  background: var(--green);
}


/* =========================
   GENERAL
========================= */

.section {
  width:
    min(var(--max), calc(100% - 48px));

  margin: 0 auto;

  padding: 84px 0;
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;

  min-height:
    calc(100vh - 72px);

  display: grid;

  grid-template-columns:
    1.05fr .95fr;

  align-items: center;

  gap: 70px;
}

.hero-grid {
  position: absolute;

  inset: 0 -60vw;

  z-index: -1;

  background-image:
    linear-gradient(
      rgba(0,255,133,.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0,255,133,.045) 1px,
      transparent 1px
    );

  background-size:
    42px 42px;

  mask-image:
    radial-gradient(
      circle at 70% 30%,
      black,
      transparent 72%
    );
}

.hero::after {
  content: "";

  position: absolute;

  inset:
    auto -80vw 0;

  border-bottom:
    1px solid rgba(0,255,133,.18);
}

.eyebrow,
.section-kicker {
  margin:
    0 0 18px;

  color:
    var(--green);

  font-family:
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size:
    .8rem;

  font-weight:
    700;

  letter-spacing:
    .075em;
}

.hero-title-wrap {
  display: flex;

  align-items: flex-start;

  gap: 17px;
}

.terminal-arrow {
  color:
    var(--green);

  font-family:
    monospace;

  font-size:
    5rem;

  line-height:
    .9;

  text-shadow:
    0 0 26px rgba(0,255,133,.35);
}

.hero h1 {
  margin: 0;

  font-size:
    clamp(3.8rem, 7vw, 6.8rem);

  line-height:
    .84;

  letter-spacing:
    -.065em;
}

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

.hero h2 {
  max-width:
    650px;

  margin:
    28px 0 15px 58px;

  font-size:
    clamp(1.25rem, 2vw, 1.7rem);

  line-height:
    1.28;
}

.hero-description {
  max-width:
    640px;

  margin:
    0 0 0 58px;

  color:
    var(--muted);

  font-size:
    1rem;
}

.hero-actions,
.socials {
  margin-left:
    58px;
}

.hero-actions {
  display: flex;

  gap: 14px;

  margin-top:
    30px;

  flex-wrap: wrap;
}


/* =========================
   BOTONES
========================= */

.btn {
  min-height:
    46px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    10px;

  padding:
    0 22px;

  border:
    1px solid var(--green);

  border-radius:
    10px;

  cursor:
    pointer;

  font-weight:
    700;

  font-size:
    .88rem;

  transition:
    transform .2s,
    box-shadow .2s,
    background .2s;
}

.btn:hover {
  transform:
    translateY(-2px);
}

.btn-primary {
  color:
    #021008;

  background:
    linear-gradient(
      135deg,
      #00f77f,
      #2aff9f
    );

  box-shadow:
    0 10px 35px rgba(0,255,133,.2);
}

.btn-primary:hover {
  box-shadow:
    0 12px 45px rgba(0,255,133,.3);
}

.btn-outline {
  background:
    rgba(0,255,133,.02);

  color:
    #ecfff6;
}

.btn-outline:hover {
  background:
    rgba(0,255,133,.08);
}


/* =========================
   REDES
========================= */

.socials {
  display: flex;

  gap:
    12px;

  margin-top:
    24px;
}

.socials a {
  width:
    37px;

  height:
    37px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid rgba(255,255,255,.16);

  border-radius:
    50%;

  font-weight:
    800;

  font-size:
    .8rem;

  transition:
    .2s;
}

.socials a:hover {
  color:
    var(--green);

  border-color:
    var(--green);

  transform:
    translateY(-2px);
}


/* =========================
   FOTO / HERO DERECHO
========================= */

.hero-visual {
  position: relative;

  min-height:
    590px;
}

.portrait-frame {
  position:
    absolute;

  right:
    18px;

  top:
    22px;

  width:
    min(360px, 72%);

  aspect-ratio:
    4 / 4.65;

  overflow:
    hidden;

  border:
    1px solid rgba(0,255,133,.25);

  background:
    #091611;

  box-shadow:
    var(--shadow);
}

.portrait-glow {
  position:
    absolute;

  inset:
    0;

  z-index:
    1;

  background:
    radial-gradient(
      circle at 55% 45%,
      transparent 30%,
      rgba(0,0,0,.24) 78%
    ),
    linear-gradient(
      180deg,
      rgba(0,255,133,.03),
      rgba(0,0,0,.15)
    );

  pointer-events:
    none;
}

.portrait {
  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

  object-position:
    center 30%;

  filter:
    grayscale(1)
    contrast(1.12)
    brightness(.78);

  transform:
    translateY(-35px)
    scale(1.08);
}

.portrait-scan {
  position:
    absolute;

  inset:
    0;

  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 4px,
      rgba(0,255,133,.03) 4px 5px
    );

  mix-blend-mode:
    screen;

  pointer-events:
    none;
}

.hero-comments {
  position:
    absolute;

  right:
    -5px;

  top:
    110px;

  z-index:
    3;

  color:
    var(--green);

  font-family:
    "Cascadia Code",
    Consolas,
    monospace;

  font-size:
    1rem;

  line-height:
    1.6;
}


/* =========================
   TARJETA DE CÓDIGO
========================= */

.code-card {
  position:
    absolute;

  right:
    18px;

  bottom:
    5px;

  width:
    min(520px, 96%);

  padding:
    20px 22px;

  border:
    1px solid var(--green-line);

  border-radius:
    12px;

  background:
    rgba(4, 15, 10, .91);

  box-shadow:
    0 20px 80px rgba(0,0,0,.42);

  backdrop-filter:
    blur(12px);
}

.code-dots {
  display:
    flex;

  gap:
    7px;

  margin-bottom:
    13px;
}

.code-dots i {
  width:
    9px;

  height:
    9px;

  border-radius:
    50%;

  background:
    #ff5f57;
}

.code-dots i:nth-child(2) {
  background:
    #ffbd2e;
}

.code-dots i:nth-child(3) {
  background:
    #28c840;
}

.code-card pre,
.code-placeholder pre {
  margin:
    0;

  overflow:
    auto;

  color:
    #dce7e1;

  font-family:
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size:
    .82rem;

  line-height:
    1.65;
}

.pink {
  color:
    var(--pink);
}

.purple {
  color:
    var(--purple);
}

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

.comment {
  color:
    #2dbd77;
}


/* =========================
   PROYECTOS
========================= */

.projects-section {
  border-top:
    1px solid rgba(0,255,133,.12);
}

.section-heading {
  display:
    flex;

  align-items:
    end;

  justify-content:
    space-between;

  gap:
    20px;

  margin-bottom:
    30px;
}

.section-heading h2,
.about h2,
.technologies h2,
.contact h2 {
  margin:
    0;

  font-size:
    clamp(2rem, 4vw, 3rem);

  letter-spacing:
    -.04em;
}

.section-heading .section-kicker {
  margin-bottom:
    8px;
}

.text-link,
.project-links a {
  color:
    var(--green);

  font-weight:
    750;
}

.text-link:hover,
.project-links a:hover {
  text-decoration:
    underline;
}


/* 4 PROYECTOS = 2 x 2 */

.projects-grid {
  display:
    grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap:
    22px;
}

.project-card {
  display:
    flex;

  flex-direction:
    column;

  min-width:
    0;

  overflow:
    hidden;

  border:
    1px solid rgba(0,255,133,.25);

  border-radius:
    12px;

  background:
    linear-gradient(
      180deg,
      rgba(11,27,19,.96),
      rgba(4,14,9,.98)
    );

  box-shadow:
    0 18px 50px rgba(0,0,0,.16);

  transition:
    transform .25s,
    border-color .25s,
    box-shadow .25s;
}

.project-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(0,255,133,.58);

  box-shadow:
    0 22px 65px rgba(0,0,0,.28);
}


/* =========================
   IMÁGENES PROYECTO LUGARES
========================= */

.project-media {
  position:
    relative;

  width:
    100%;

  aspect-ratio:
    16 / 10;

  border:
    0;

  overflow:
    hidden;

  background:
    #020705;
}

.project-media-image {
  cursor:
    zoom-in;

  padding:
    0;
}

.project-media-image img {
  width:
    100%;

  height:
    100%;

  object-fit:
    cover;

  object-position:
    top;

  transition:
    transform .35s;
}

.project-media-image:hover img {
  transform:
    scale(1.035);
}

.media-overlay {
  position:
    absolute;

  inset:
    0;

  display:
    grid;

  place-items:
    center;

  opacity:
    0;

  background:
    rgba(0,15,8,.68);

  color:
    var(--green);

  font-weight:
    800;

  transition:
    .25s;
}

.project-media-image:hover .media-overlay {
  opacity:
    1;
}

.gallery-badge {
  position:
    absolute;

  top:
    12px;

  right:
    12px;

  z-index:
    2;

  padding:
    6px 9px;

  border:
    1px solid rgba(0,255,133,.5);

  border-radius:
    999px;

  color:
    var(--green);

  background:
    rgba(2,10,6,.78);

  font-size:
    .72rem;

  font-weight:
    800;
}


/* =========================
   PROYECTOS SIN IMAGEN
========================= */

.code-placeholder {
  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  padding:
    24px;

  background:
    linear-gradient(
      rgba(0,255,133,.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0,255,133,.04) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0,255,133,.13),
      transparent 28%
    ),
    #06110d;

  background-size:
    28px 28px,
    28px 28px,
    auto,
    auto;
}

.java-card {
  background:
    radial-gradient(
      circle at 10% 90%,
      rgba(80,255,170,.11),
      transparent 28%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(0,255,133,.025) 0 1px,
      transparent 1px 18px
    ),
    #06110d;
}

.no-image-label {
  margin-top:
    14px;

  color:
    var(--muted-2);

  font-size:
    .72rem;

  text-transform:
    uppercase;

  letter-spacing:
    .1em;
}


/* =========================
   GALERÍA DENTRO DEL
   PROYECTO DE VUELOS
========================= */

.project-gallery {
  position:
    relative;

  width:
    100%;

  aspect-ratio:
    16 / 10;

  overflow:
    hidden;

  background:
    #020705;

  border-bottom:
    1px solid rgba(0,255,133,.18);
}

.project-gallery img {
  width:
    100%;

  height:
    100%;

  display:
    block;

  object-fit:
    cover;

  object-position:
    top;

  transition:
    transform .35s ease;
}

.project-gallery:hover img {
  transform:
    scale(1.035);
}

.gallery-count {
  position:
    absolute;

  top:
    12px;

  right:
    12px;

  z-index:
    3;

  padding:
    6px 10px;

  border:
    1px solid rgba(0,255,133,.5);

  border-radius:
    999px;

  background:
    rgba(2,10,6,.82);

  color:
    var(--green);

  font-size:
    .72rem;

  font-weight:
    800;

  backdrop-filter:
    blur(8px);
}

.gallery-controls {
  position:
    absolute;

  right:
    12px;

  bottom:
    12px;

  display:
    flex;

  gap:
    7px;

  opacity:
    0;

  transform:
    translateY(5px);

  transition:
    .2s ease;
}

.project-gallery:hover .gallery-controls {
  opacity:
    1;

  transform:
    translateY(0);
}

.gallery-btn {
  width:
    38px;

  height:
    38px;

  display:
    grid;

  place-items:
    center;

  padding:
    0;

  border:
    1px solid rgba(0,255,133,.45);

  border-radius:
    50%;

  background:
    rgba(3,18,12,.9);

  color:
    var(--green);

  cursor:
    pointer;

  font-size:
    1rem;

  font-weight:
    800;

  transition:
    .2s ease;
}

.gallery-btn:hover {
  background:
    var(--green);

  color:
    #021008;
}


/* =========================
   CONTENIDO TARJETAS
========================= */

.project-body {
  display:
    flex;

  flex-direction:
    column;

  flex:
    1;

  padding:
    20px;
}

.project-topline {
  display:
    flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap:
    10px;
}

.project-index {
  color:
    var(--muted-2);

  font-family:
    monospace;
}

.status-dot {
  color:
    var(--green);

  font-size:
    .72rem;
}

.project-body h3 {
  margin:
    10px 0 8px;

  font-size:
    1.25rem;
}

.project-body p {
  margin:
    0;

  color:
    var(--muted);

  font-size:
    .9rem;
}

.tags {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    7px;

  margin:
    18px 0;
}

.tags span,
.tech-grid span {
  border:
    1px solid rgba(0,255,133,.2);

  background:
    rgba(0,255,133,.035);
}

.tags span {
  padding:
    5px 9px;

  border-radius:
    7px;

  color:
    #dffbef;

  font-size:
    .72rem;
}

.project-links {
  display:
    flex;

  gap:
    18px;

  margin-top:
    auto;

  padding-top:
    4px;

  font-size:
    .83rem;
}


/* =========================
   SOBRE MÍ / EXPERIENCIA
========================= */

.two-column {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    72px;

  border-top:
    1px solid rgba(0,255,133,.12);
}

.about p {
  color:
    var(--muted);

  max-width:
    620px;
}

.about strong {
  color:
    #fff;
}

.values-grid {
  display:
    grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap:
    14px;

  margin-top:
    40px;
}

.values-grid div {
  text-align:
    center;
}

.values-grid b {
  display:
    block;

  margin-bottom:
    8px;

  color:
    var(--green);

  font-size:
    1.8rem;
}

.values-grid span {
  color:
    var(--muted);

  font-size:
    .78rem;
}


/* =========================
   EXPERIENCIA
========================= */

.info-block {
  margin-bottom:
    38px;
}

.timeline {
  position:
    relative;

  margin-left:
    8px;

  padding-left:
    24px;

  border-left:
    1px solid rgba(0,255,133,.35);
}

.timeline-item {
  position:
    relative;

  padding:
    0 0 30px;
}

.timeline-item:last-child {
  padding-bottom:
    0;
}

.timeline-dot {
  position:
    absolute;

  left:
    -31px;

  top:
    5px;

  width:
    13px;

  height:
    13px;

  border:
    2px solid var(--green);

  border-radius:
    50%;

  background:
    var(--bg);

  box-shadow:
    0 0 0 3px rgba(0,255,133,.08);
}

.timeline-head {
  display:
    flex;

  justify-content:
    space-between;

  gap:
    15px;
}

.timeline-head h3 {
  margin:
    0;

  font-size:
    1rem;
}

.timeline-head time {
  color:
    var(--muted-2);

  font-size:
    .75rem;
}

.timeline p {
  margin:
    4px 0 0;

  color:
    var(--muted);

  font-size:
    .82rem;
}

.timeline .company {
  color:
    var(--green);
}


/* =========================
   EDUCACIÓN VIEJA
   (SE MANTIENE POR SI
   TODAVÍA ESTÁ EN EL HTML)
========================= */

.education-card {
  padding-top:
    6px;
}

.education-inner {
  position:
    relative;

  display:
    grid;

  grid-template-columns:
    auto 1fr auto;

  align-items:
    center;

  gap:
    16px;

  padding:
    18px;

  border:
    1px solid rgba(0,255,133,.26);

  border-radius:
    11px;

  background:
    rgba(0,255,133,.025);
}

.ort-logo {
  width:
    52px;

  height:
    52px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    8px;

  background:
    #8a0029;

  font-weight:
    900;

  font-size:
    .8rem;
}

.education-inner h3 {
  margin:
    0 0 3px;

  font-size:
    .95rem;
}

.education-inner p {
  margin:
    0;

  color:
    #fff;

  font-size:
    .82rem;
}

.education-inner small {
  color:
    var(--muted);
}

.average {
  align-self:
    start;

  padding:
    6px 9px;

  border:
    1px solid var(--green);

  border-radius:
    7px;

  color:
    var(--green);

  font-size:
    .72rem;

  white-space:
    nowrap;
}


/* =========================
   TECNOLOGÍAS
========================= */

.technologies {
  border-top:
    1px solid rgba(0,255,133,.12);
}

.tech-grid {
  display:
    grid;

  grid-template-columns:
    repeat(8, 1fr);

  gap:
    10px;

  margin-top:
    28px;
}

.tech-grid span {
  min-height:
    50px;

  display:
    grid;

  place-items:
    center;

  padding:
    9px;

  border-radius:
    8px;

  color:
    #eefbf4;

  font-size:
    .78rem;

  transition:
    .2s;
}

.tech-grid span:hover {
  border-color:
    var(--green);

  color:
    var(--green);

  transform:
    translateY(-2px);
}


/* =========================
   FORMACIÓN / RECORRIDO ORT
========================= */

.education-progress {
  border-top:
    1px solid rgba(0,255,133,.12);
}

.education-progress h2 {
  margin:
    0 0 38px;

  font-size:
    clamp(2rem, 4vw, 3rem);

  letter-spacing:
    -.04em;
}

.education-stats {
  display:
    grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap:
    18px;

  margin-bottom:
    34px;
}

.education-stat-card {
  display:
    flex;

  align-items:
    center;

  gap:
    28px;

  min-height:
    130px;

  padding:
    24px 30px;

  border:
    1px solid rgba(0,255,133,.34);

  border-radius:
    12px;

  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(0,255,133,.08),
      transparent 35%
    ),
    rgba(0,255,133,.018);
}

.education-stat-icon {
  width:
    72px;

  height:
    72px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    10px;

  background:
    rgba(0,255,133,.05);

  color:
    var(--green);

  font-size:
    2rem;
}

.education-stat-card strong {
  display:
    block;

  color:
    var(--green);

  font-size:
    clamp(2.3rem, 4vw, 3.5rem);

  line-height:
    1;
}

.education-stat-card span {
  display:
    block;

  margin-top:
    9px;

  color:
    var(--muted);

  font-size:
    1rem;
}

.subjects h3 {
  margin:
    0 0 24px;

  font-size:
    1.1rem;
}

.subjects-grid {
  display:
    grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap:
    15px 34px;
}

.subject {
  display:
    flex;

  align-items:
    center;

  gap:
    12px;

  color:
    var(--muted);

  font-size:
    .94rem;
}

.subject span {
  width:
    22px;

  height:
    22px;

  flex:
    0 0 22px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    50%;

  background:
    var(--green);

  color:
    #021008;

  font-size:
    .75rem;

  font-weight:
    900;
}


/* =========================
   CONTACTO
========================= */

.contact {
  display:
    grid;

  grid-template-columns:
    .9fr 1.1fr .7fr;

  align-items:
    center;

  gap:
    46px;

  border-top:
    1px solid rgba(0,255,133,.12);
}

.contact-copy > p {
  color:
    var(--muted);
}

.contact-list {
  display:
    grid;

  gap:
    10px;

  padding:
    0;

  margin:
    26px 0 0;

  list-style:
    none;

  color:
    var(--muted);

  font-size:
    .88rem;
}

.contact-list li {
  display:
    grid;

  grid-template-columns:
    34px 1fr;

  align-items:
    center;
}

.contact-list span {
  color:
    var(--green);

  font-weight:
    800;
}

.contact-form {
  display:
    grid;

  gap:
    13px;
}

.form-row {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    13px;
}

.contact-form label {
  display:
    grid;

  gap:
    7px;
}

.contact-form label > span {
  color:
    var(--muted-2);

  font-size:
    .74rem;
}

.contact-form input,
.contact-form textarea {
  width:
    100%;

  border:
    1px solid rgba(130,171,151,.25);

  border-radius:
    8px;

  outline:
    none;

  color:
    #fff;

  background:
    rgba(12,31,23,.75);

  padding:
    13px 14px;

  resize:
    vertical;

  transition:
    .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color:
    var(--green);

  box-shadow:
    0 0 0 3px rgba(0,255,133,.07);
}

.contact-form .btn {
  justify-self:
    start;
}

.contact-form small {
  color:
    var(--muted-2);
}

.quote {
  margin:
    0;

  padding-left:
    24px;

  border-left:
    2px solid var(--green);

  color:
    #bccdc4;

  font-family:
    Georgia,
    serif;

  font-style:
    italic;

  font-size:
    1.15rem;
}


/* =========================
   FOOTER
========================= */

footer {
  width:
    min(var(--max), calc(100% - 48px));

  margin:
    0 auto;

  min-height:
    88px;

  display:
    grid;

  grid-template-columns:
    1fr auto auto;

  align-items:
    center;

  gap:
    28px;

  border-top:
    1px solid rgba(0,255,133,.12);

  color:
    var(--muted-2);

  font-size:
    .76rem;
}

footer nav {
  display:
    flex;

  gap:
    20px;
}

footer a:hover {
  color:
    var(--green);
}

.back-top {
  width:
    40px;

  height:
    40px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid rgba(0,255,133,.3);

  border-radius:
    50%;

  color:
    var(--green);
}


/* =========================
   MODAL GALERÍA LUGARES
========================= */

.gallery-modal {
  position:
    fixed;

  inset:
    0;

  z-index:
    1000;

  display:
    grid;

  grid-template-columns:
    auto minmax(0, 1100px) auto;

  align-items:
    center;

  justify-content:
    center;

  gap:
    18px;

  padding:
    70px 24px 30px;

  opacity:
    0;

  visibility:
    hidden;

  background:
    rgba(0,5,3,.94);

  backdrop-filter:
    blur(16px);

  transition:
    .25s;
}

.gallery-modal.open {
  opacity:
    1;

  visibility:
    visible;
}

.gallery-content {
  width:
    100%;

  max-height:
    calc(100vh - 100px);

  margin:
    0;

  display:
    grid;

  justify-items:
    center;

  gap:
    12px;
}

.gallery-content img {
  max-width:
    100%;

  max-height:
    calc(100vh - 150px);

  object-fit:
    contain;

  border:
    1px solid rgba(0,255,133,.25);

  border-radius:
    10px;

  box-shadow:
    0 30px 100px rgba(0,0,0,.65);
}

.gallery-content figcaption {
  width:
    min(100%, 800px);

  display:
    flex;

  justify-content:
    space-between;

  gap:
    20px;

  color:
    #eafff4;

  font-size:
    .86rem;
}

.gallery-content figcaption small {
  color:
    var(--green);
}

.gallery-close {
  position:
    absolute;

  top:
    18px;

  right:
    24px;

  width:
    44px;

  height:
    44px;

  border:
    1px solid rgba(0,255,133,.35);

  border-radius:
    50%;

  color:
    var(--green);

  background:
    #07130e;

  cursor:
    pointer;

  font-size:
    1.6rem;
}

.gallery-arrow {
  width:
    50px;

  height:
    70px;

  border:
    1px solid rgba(0,255,133,.28);

  border-radius:
    10px;

  color:
    var(--green);

  background:
    #07130e;

  cursor:
    pointer;

  font-size:
    2.2rem;
}


/* =========================
   ANIMACIONES
========================= */

.reveal {
  opacity:
    0;

  transform:
    translateY(18px);

  transition:
    opacity .6s ease,
    transform .6s ease;
}

.reveal.visible {
  opacity:
    1;

  transform:
    none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

  .site-header {
    grid-template-columns:
      1fr auto auto;
  }

  .main-nav {
    position:
      fixed;

    top:
      72px;

    right:
      0;

    width:
      min(360px, 86vw);

    height:
      calc(100vh - 72px);

    display:
      flex;

    flex-direction:
      column;

    align-items:
      stretch;

    gap:
      0;

    padding:
      28px;

    border-left:
      1px solid var(--green-line);

    background:
      rgba(3,10,7,.98);

    transform:
      translateX(100%);

    transition:
      .25s;
  }

  .main-nav.open {
    transform:
      translateX(0);
  }

  .main-nav a {
    padding:
      17px 0;
  }

  .main-nav a.active::after {
    display:
      none;
  }

  .menu-toggle {
    display:
      block;
  }

  .cv-header {
    justify-self:
      end;
  }

  .hero {
    grid-template-columns:
      1fr;

    padding-top:
      70px;
  }

  .hero-visual {
    min-height:
      550px;
  }

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

  .two-column {
    grid-template-columns:
      1fr;

    gap:
      52px;
  }

  .tech-grid {
    grid-template-columns:
      repeat(5, 1fr);
  }

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

  .quote {
    grid-column:
      1 / -1;
  }
}


/* =========================
   CELULAR
========================= */

@media (max-width: 720px) {

  .site-header {
    min-height:
      64px;

    grid-template-columns:
      1fr auto;

    padding-inline:
      20px;
  }

  .main-nav {
    top:
      64px;

    height:
      calc(100vh - 64px);
  }

  .cv-header {
    display:
      none;
  }

  .section {
    width:
      min(100% - 32px, var(--max));

    padding:
      62px 0;
  }

  .hero {
    min-height:
      auto;

    gap:
      30px;
  }

  .terminal-arrow {
    font-size:
      3.4rem;
  }

  .hero h1 {
    font-size:
      clamp(3rem, 16vw, 5.2rem);
  }

  .hero h2,
  .hero-description,
  .hero-actions,
  .socials {
    margin-left:
      0;
  }

  .hero-visual {
    min-height:
      500px;
  }

  .portrait-frame {
    width:
      78%;

    right:
      0;
  }

  .hero-comments {
    right:
      5px;

    top:
      102px;

    font-size:
      .82rem;
  }

  .code-card {
    right:
      0;

    left:
      0;

    width:
      100%;
  }

  .code-card pre {
    font-size:
      .7rem;
  }

  .section-heading {
    align-items:
      flex-start;
  }

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

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

  .timeline-head {
    display:
      block;
  }

  .education-inner {
    grid-template-columns:
      auto 1fr;
  }

  .average {
    grid-column:
      1 / -1;

    justify-self:
      start;
  }

  .tech-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .education-stats {
    grid-template-columns:
      1fr;
  }

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

  .education-stat-card {
    min-height:
      110px;

    padding:
      22px;
  }

  .contact {
    grid-template-columns:
      1fr;

    gap:
      34px;
  }

  .form-row {
    grid-template-columns:
      1fr;
  }

  footer {
    grid-template-columns:
      1fr auto;

    padding:
      24px 0;
  }

  footer nav {
    display:
      none;
  }

  .gallery-modal {
    grid-template-columns:
      1fr;

    padding:
      70px 14px 20px;
  }

  .gallery-arrow {
    position:
      absolute;

    bottom:
      20px;

    width:
      46px;

    height:
      46px;
  }

  .gallery-prev {
    left:
      20px;
  }

  .gallery-next {
    right:
      20px;
  }

  .gallery-content figcaption {
    padding-bottom:
      55px;
  }

  /* En celular siempre mostramos
     las flechas del proyecto de vuelos */

  .gallery-controls {
    opacity:
      1;

    transform:
      none;
  }
}


/* =========================
   CELULAR PEQUEÑO
========================= */

@media (max-width: 440px) {

  .tech-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .hero-actions .btn {
    width:
      100%;
  }
}
@media (min-width: 1600px) {
  :root {
    --max: 1450px;
  }

  .hero {
    min-height: calc(100vh - 80px);
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-title-wrap h1 {
    font-size: clamp(5rem, 5vw, 7rem);
  }

  .hero-description {
    max-width: 650px;
    font-size: 1.05rem;
  }

  .hero-visual {
    transform: scale(1.08);
  }
}