/* ─── RESET ─────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ─── TOKENS DARK (default) ─────────────── */
:root {
  --bg0: #110f0d; /*Fondo*/
  --bg1: #1613106f; /*Nav*/
  --bg2: #1a1612; /*Cards*/
  --bg3: #1e1a16; /*Footer*/
  --border: #463624;
  --border2: #1e1a16;
  --text1: #f2ede6;
  --text2: #c8bfb4;
  --text3: #7a7268;
  --text4: #5a5248;
  --green: #4a7a5c;
  --green2: #3d6b4f;
  --green-bg: #4a7a5c1f; /*Icon*/
  --orange: #c4723a;
  --gold: #d4962a;
}

/* ─── TOKENS LIGHT ──────────────────────── */
body.light {
  --bg0: #f5f2ed; /*Fondo*/
  --bg1: #edeae479; /*Nav*/
  --bg2: #e6e2db; /*Icon/Cards*/
  --bg3: #ffffff; /*Footer*/
  --border: #d0ccc5;
  --border2: #dedad3;
  --text1: #1a1612;
  --text2: #3d3830;
  --text3: #7a7268;
  --text4: #a09890;
  --green: #2d6644;
  --green2: #245538;
  --green-bg: #2d664414;
  --orange: #a84f28;
  --gold: #8a6010;

}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text1);
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
  background-color: var(--bg0); /* ← negro cálido exacto de la imagen */
  padding-top: 78px; /* altura nav (54px) + top (12px) + margen extra (12px) */
}

/* ─── GRID LINES — ocupa toda la página ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(#4a7a5c09 1px, transparent 1px),
    linear-gradient(90deg, #4a7a5c09 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ─── GLOW VERDE — encima del grid
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, var(--bg0) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, var(--bg0) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
} ─── */ 

.nav, .hero, .stats,
.section, .divider,
footer, .toast,
#back-to-top {
  position: relative;
  z-index: 1;
}

 
/* ─── NAVBAR ────────────────────────────── */
.nav {
  position: fixed;
  top: 12px;                    /* ← separación del borde superior */
  left: 20px;                   /* ← separación izquierda */
  right: 20px;                  /* ← separación derecha */
  z-index: 100;
  
  background: var(--bg1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
border: 0.5px solid rgba(74, 122, 92, 0.25);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
   transition: background 0.3s;
}

.nav-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text1);
  text-decoration: none;
}

.nav-logo span {
  color: var(--orange);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;          /* ← fijo como el nav */
  top: 78px;                /* ← justo debajo del nav (top: 12px + height: 54px + margen) */
  left: 20px;               /* ← mismo margen que el nav */
  right: 20px;              /* ← mismo margen que el nav */
  background: --bg1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(74, 122, 92, 0.25);
  border-radius: 16px;
  padding: 16px 24px;
  gap: 4px;
  z-index: 99;              /* ← debajo del nav pero sobre todo lo demás */
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 14px;
  color: var(--text3);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border2);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover      { color: var(--green); }

/* modo claro */
body.light .mobile-menu {
  background: rgba(248, 250, 248, 0.95);
  border-color: rgba(45, 102, 68, 0.2);
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ─── HERO ──────────────────────────────── */
.hero {
   padding: 60px 40px 64px; /* ← el padding-top del body ya compensó el nav */
  text-align: center;
  border-bottom: 0.5px solid var(--border2);
  position: relative;
  overflow: hidden;
  

}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--green-bg);
  color: var(--green);
  border: 0.5px solid var(--green-bg);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text1);
  font-family: "Satoshi", sans-serif;
  font-weight: 900;
}

.hero-role {
  font-size: clamp(13px, 2vw, 15px);
  color: var(--text3);
  font-weight: 300;
  margin-bottom: 24px;
}

.hero-bio {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 14px;
  color: var(--text3);
  line-height: 1.85;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0.5px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text3);
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-bg);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cv-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--green);
  color: #f2ede6;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
  text-decoration: none;
}

.cv-btn:hover {
  background: var(--orange);
}

.cv-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── STATS ─────────────────────────────── 
.stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 0.5px solid var(--border2);
}
.stat {
  padding: 22px; text-align: center;
  border-right: 0.5px solid var(--border2);
}
.stat:last-child { border-right: none; }
.stat-n { font-size: 24px; font-weight: 500; color: var(--orange); }
.stat-l { font-size: 11px; color: var(--text3); margin-top: 3px; }*/

/* ─── SECTION BASE ──────────────────────── */
.section {
  padding: 56px 40px;
  
}

.section-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border2);
}

.divider {
  height: 0.5px;
  background: var(--border2);
  margin: 0 40px;
}

/* ─── SKILLS ────────────────────────────── */
.skills-block {
  margin-bottom: 36px;
}

.skills-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border2);
}

.skill-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.skill-cat {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.skill-cat:hover {
  border-color: var(--green);
}

.cat-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 0.5px solid var(--border);
  justify-content: center;
}

/* .cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}*/

.cat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
}

.cat-body {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 0.5px solid var(--green2);
  color: var(--green2);
  background: var(--bg2);
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/*
.cat-fe .cat-header { border-top: 2px solid var(--orange);}

.cat-fe .cat-icon {
  background: rgba(196, 114, 58, 0.12);
  color: var(--orange);
}

.cat-be .cat-header { border-top: 2px solid var(--green); }

.cat-db .cat-header { border-top: 2px solid var(--gold); }

.cat-dv .cat-header { border-top: 2px solid var(--green);}

.cat-inf .cat-header { border-top: 2px solid var(--gold); }

.cat-sec .cat-header { border-top: 2px solid var(--green) ;  }

*/

/* soft skills */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.soft-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
 
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.soft-card:hover {
  border-color: var(--green);
}

.soft-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 5px;
  text-align: center;
}

.soft-desc {
  font-size: 11px;
  color: var(--text4);
  line-height: 1.55;
}

/* ─── TIMELINE ──────────────────────────────────── */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 0;
}

/* línea vertical — ahora fija a la izquierda */
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--green) 5%,
    var(--green) 95%,
    transparent
  );
}

/* cada item ocupa las 2 columnas del grid padre */
.tl-item {
  display: contents;
}

/* columna izquierda — solo el punto */
.tl-center {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  position: relative;
  z-index: 1;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg0);
  border: 2px solid var(--green);
  flex-shrink: 0;
  transition: background 0.3s, transform 0.2s;
}

.tl-item:hover .tl-dot {
  background: var(--green);
  transform: scale(1.15);
}

/* columna derecha — el recuadro */
.tl-right {
  padding-left: 28px;
  padding-bottom: 32px;
  text-align: left;
}

/* ocultar columna izquierda vacía — ya no existe */
.tl-left { display: none; }

/* card */
.tl-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.25s, transform 0.25s;
  width: 80%;
}

.tl-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.tl-period {
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.tl-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 4px;
}

.tl-role {
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 12px;
  font-weight: 400;
}

.tl-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.7;
  margin-bottom: 14px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 100px;
  background: transparent;
  color: var(--green);
  border: 0.5px solid var(--green);
}


/* ─── SPLIT FORMACIÓN + CERTIFICACIONES ─── */
.cert-split {
  display: grid;
  grid-template-columns: 1fr 0.5px 1fr;
  gap: 0;
  align-items: start;
}
.cert-col:first-child {
  padding-right: 40px;  /* ← separa la columna izquierda del divisor */
}

.cert-col:last-child {
  padding-left: 40px;   /* ← separa la columna derecha del divisor */
}
/* separador vertical */
.cert-col-divider {
  background: var(--border2);
  width: 0.5px;
  min-height: 100%;
  margin: 0;
  
}

/* título de cada columna */
.cert-col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border2);
}

/* ─── FORMACIÓN ACADÉMICA ─── */
.formacion-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.formacion-item {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s;
  
}
.formacion-item:hover { border-color: var(--green); }
.formacion-period {
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.formacion-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  margin-bottom: 3px;
}
.formacion-place {
  font-size: 11px;
  color: var(--orange);
  margin-bottom: 10px;
}

/* ─── CERTIFICACIONES (sin modal, con link) ─── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.cert-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.cert-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}
.cert-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  object-position: center;
  background: var(--bg1);
  padding: 10px;
  display: block;
}
.cert-info { padding: 10px 12px; }
.cert-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text1);
  margin-bottom: 3px;
  line-height: 1.4;
}
.cert-issuer { font-size: 11px; color: var(--text3); }
.cert-year   { font-size: 10px; color: var(--text4); margin-top: 3px; }



/* ─── PROJECTS ──────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.proj-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.proj-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.proj-card.or {
  border-top: 2px solid var(--orange);
}

.proj-card.gr {
  border-top: 2px solid var(--green);
}

.proj-card.go {
  border-top: 2px solid var(--gold);
}

.proj-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text1);
  margin-bottom: 6px;
}

.proj-desc {
  font-size: 12px;
  color: var(--text4);
  line-height: 1.6;
  margin-bottom: 14px;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.proj-tag {
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--green-bg);
  color: var(--green);
  border: 0.5px solid var(--green);
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--orange);
  text-decoration: none;
  margin-top: 12px;
  transition: color 0.2s;
}

.proj-link:hover {
  color: var(--green);
}

.proj-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── CONTACTO ──── */
.contact-wrap {
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg1) 100%);
  border: 0.5px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.contact-info {
  text-align: left;
}

.contact-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 122, 92, 0.10) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-glow-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 114, 58, 0.05) 0%, transparent 70%);
  top: 20%;
  left: 10%;
  pointer-events: none;
}

.contact-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--green-bg);
  color: var(--green);
  border: 0.5px solid var(--green-bg);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.contact-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.contact-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  color: var(--text1);
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.contact-sub {
  font-size: 14px;
  color: var(--text3);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 1;
}

.contact-sub {
  margin-bottom: 36px;
}

.contact-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.c-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text3);
  text-decoration: none;
  padding: 0;
}

.c-icon-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 122, 92, 0.2);
}

.c-icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-cta-btn {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--green);
  color: #f2ede6;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.c-cta-btn:hover {
  background: var(--green2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 122, 92, 0.3);
}

.c-cta-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* tooltips en iconos de contacto */
.c-icon-wrap {
  position: relative;
}

.c-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateX(-50%) translateY(4px);
}

.c-icon-wrap:hover .c-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* separador de íconos */
.c-sep {
  width: 0.5px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg1);
  color: var(--text1);
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text4);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  background: var(--bg2);
  box-shadow: 0 0 0 3px var(--green-bg);
}

.form-submit {
  min-height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #f2ede6;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.form-submit:hover {
  background: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 122, 92, 0.24);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-submit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--text3);
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--orange);
}

.form-honey {
  position: absolute;
  left: -9999px;
}

/* ─── FOOTER ────────────────────────────── */
footer {
  background: var(--bg1);
  border-top: 0.5px solid var(--border);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
}

.footer-logo span {
  color: var(--orange);
  animation: blink 1s step-end infinite;
}

.footer-copy {
  font-size: 11px;
  color: var(--text4);
}

/* ─── TOAST ─────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg3);
  border: 0.5px solid var(--green);
  border-radius: 100px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 0.5px solid var(--green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 11px;
}

/* ─── SCROLL REVEAL ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── BACK TO TOP ───────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #f2ede6;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(74, 122, 92, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .section {
    padding: 40px 20px;
  }

  .divider {
    margin: 0 20px;
  }

  footer {
    padding: 20px;
  }

  .contact-wrap {
    padding: 40px 20px;
  }

  /* ─── RESPONSIVE MÓVIL ───────────────────────── */
@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 20px 1fr;
  }

  .timeline::before { left: 9px; }

  .tl-center { padding-top: 22px; }

  .tl-dot {
    width: 12px;
    height: 12px;
  }

  .tl-right {
    padding-left: 18px;
    padding-bottom: 24px;
  }

  .tl-card { padding: 16px 18px; }
  .tl-company { font-size: 14px; }
  .tl-desc    { font-size: 12px; }
}

  .skill-cats {
    grid-template-columns: 1fr 1fr;
  }

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

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

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .cert-split {
    grid-template-columns: 1fr;
  }
  .cert-col:first-child {
    padding-right: 0;
    padding-bottom: 28px;
  }
  .cert-col:last-child {
    padding-left: 0;
    padding-top: 28px;
  }
  .cert-col-divider {
    width: 100%;
    height: 0.5px;
  }
}

@media (max-width: 420px) {
  .skill-cats {
    grid-template-columns: 1fr;
  }

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

  .stat {
    border-right: none;
    border-bottom: 0.5px solid var(--border2);
  }

  .stat:last-child {
    border-bottom: none;
  }
}

/* ─── CONTACTO RESPONSIVO ─── */
@media (max-width: 768px) {

  .contact-wrap {
    padding: 24px 20px;
    border-radius: 16px;
  }

  /* apila las dos columnas en vertical */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info {
    text-align: center;
  }

  /* centra los iconos */
  .contact-icons {
    justify-content: center;
  }

  /* centra el badge de disponible */
  .contact-available {
    margin-left: auto;
    margin-right: auto;
  }

  /* oculta los separadores verticales en móvil */
  .c-sep {
    display: none;
  }

  /* el botón de correo ocupa todo el ancho */
  .c-cta-btn {
    width: 100%;
    justify-content: center;
  }

  /* el formulario sin padding extra */
  .contact-form {
    padding: 18px 16px;
  }

  /* título más pequeño */
  .contact-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  /* texto más compacto */
  .contact-sub {
    font-size: 13px;
    margin-bottom: 24px;
  }
}

@media (max-width: 420px) {

  .contact-wrap {
    padding: 20px 14px;
  }

  /* iconos más pequeños */
  .c-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .c-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  /* inputs más cómodos en pantalla pequeña */
  .form-field input,
  .form-field textarea {
    font-size: 16px; /* ← evita que iOS haga zoom al enfocar */
    padding: 11px 12px;
  }

  .form-submit {
    font-size: 14px;
  }
}