/* ===========================================
   PORTFOLIO - styles.css
   Autor: Facu Ferreyra
   =========================================== */

/* --- VARIABLES MODO OSCURO --- */
:root {
  --bg:      #0d1117;
  --bg2:     #161b22;
  --bg3:     #21262d;
  --border:  #30363d;
  --text:    #e6edf3;
  --text2:   #adbac7;   /* ratio 7.1:1 sobre --bg  */
  --text3:   #768390;   /* ratio 4.6:1 sobre --bg  */
  --accent:  #58a6ff;
  --accent2: #3fb950;
  --accent3: #f78166;
  --accent4: #d2a8ff;
  --yellow:  #e3b341;
  --mono:    'JetBrains Mono', monospace;
  --sans:    'Space Grotesk', sans-serif;
}

/* --- VARIABLES MODO CLARO - nivel AAA --- */
body.light {
  --bg:      #ffffff;
  --bg2:     #f6f8fa;
  --bg3:     #eaeef2;
  --border:  #c9d1d9;
  --text:    #0d1117;   /* ratio 21:1 sobre blanco            */
  --text2:   #1f2328;   /* ratio 17:1 — títulos y texto principal */
  --text3:   #3d444d;   /* ratio 9.7:1 — labels, handles      */
  --accent:  #0550ae;   /* azul oscuro, ratio 8.6:1 sobre blanco */
  --accent2: #1a7f37;   /* verde oscuro, ratio 7.2:1           */
  --accent3: #c4210e;   /* rojo, ratio 7.5:1                   */
  --accent4: #6e40c9;   /* violeta, ratio 7.4:1                */
  --yellow:  #7d4e00;   /* dorado, ratio 9.2:1                 */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- FOCUS VISIBLE global (reemplaza focus-ring) --- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── CANVAS BG ─── */
#canvas-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

/* --- CURSOR PERSONALIZADO --- */
.cursor-dot {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  /* empieza invisible hasta que el mouse se mueve */
  opacity: 0;
  transition: transform 0.1s, opacity 0.3s;
  mix-blend-mode: screen;
  /* quitar display:none / hidden — se controla con opacity */
}
/* JS agrega .cursor-active al body cuando el mouse entra */
body.cursor-active .cursor-dot { opacity: 1; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 58px;
}

body.light nav { background: rgba(255,255,255,0.92); }

.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent2);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--text3); }

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

.nav-links a {
  display: block;
  padding: 0.4rem 1rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); background: rgba(88,166,255,0.08); }

/* p contenedor de los botones del nav — reemplaza el div */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  padding: 0.35rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(63,185,80,0.12); }

/* --- THEME TOGGLE --- */
.theme-toggle {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text2);
  font-family: var(--mono);
  font-size: 11px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--yellow); border-color: var(--yellow); }

/* --- MAIN --- */
main { position: relative; z-index: 1; }

/* --- SECCIÓN: INICIO / HERO --- */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 10% 4rem;
  gap: 4rem;
}

/* <header> dentro del hero */
.hero-text { flex: 1; }

.hero-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
}
.hero-name .line2 { color: var(--accent); }

/* <pre> bloque de código decorativo */
.hero-desc {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  white-space: pre-wrap;
  background: none;
}
.hero-desc .comment { color: var(--text3); }
.hero-desc .string  { color: var(--yellow); }
.hero-desc .keyword { color: var(--accent4); }
.hero-desc .fn      { color: var(--accent); }

/* <p> con los botones CTA */
.hero-btns {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--mono);
  font-size: 13px;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* <figure> foto — reemplaza .hero-photo + .photo-frame */
.photo-frame {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 12px;
  border: 2px solid var(--border);
  overflow: visible;          /* visible para que el badge no se corte */
  background: var(--bg2);
  opacity: 0;
  animation: fadeIn 0.8s 0.4s forwards;
  flex-shrink: 0;
}

.photo-frame img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;        /* hereda el redondeo del figure */
  display: block;
}

/* overlay de gradiente sobre la foto */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(88,166,255,0.15), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* <figcaption> badge de disponibilidad */
.photo-badge {
  position: absolute;
  bottom: -14px;
  right: -14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent2);
  white-space: nowrap;
  z-index: 2;
}

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  margin-right: 5px;
  animation: pulse 2s infinite;
}

/* ─── SECTION BASE ─── */
section {
  padding: 6rem 10%;
  border-top: 1px solid var(--border);
}

/* <header> dentro de cada sección */
.section-header { margin-bottom: 0; }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text);
}

/* <hr> reemplaza el div.accent-line */
.accent-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  margin: 0 0 2.5rem 0;
}

/* ─── SECCIÓN: SOBRE MÍ ─── */
#sobre-mi .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 0;
}

/* <section> interior con los párrafos */
.info-text p {
  color: var(--text2);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.location {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 12px;
}

/* <dl> reemplaza la grilla de info-cards */
dl.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;                /* gap entre celdas lo maneja el border */
  align-items: start;
}

/* Cada par dt+dd se comporta como una tarjeta */
dt.info-card-label,
dd.info-card-value {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  margin: 0 0 -1px 0;    /* bordes colapsados */
  transition: border-color 0.2s;
}

dt.info-card-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 8px 0 0 8px;
  border-right: none;
  display: flex;
  align-items: center;
}

dd.info-card-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-radius: 0 8px 8px 0;
  margin-left: 0;
}

/* fila que ocupa las dos columnas */
dd.info-card-value.wide,
dt.info-card-label:has(+ dd.wide) {
  border-radius: 0;
}

dd.wide {
  grid-column: span 1;
}

/* Grupo de fila (dt+dd) hover */
dl.info-cards dt:hover,
dl.info-cards dt:hover + dd {
  border-color: var(--accent);
}

/* --- SECCIÓN: CONOCIMIENTOS --- */

/* <ul> reemplaza el div.skills-grid */
ul.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

/* <li> reemplaza div.skill-group */
li.skill-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.2s;
}
li.skill-group:hover { border-color: var(--accent); transform: translateY(-2px); }

/* <h3> dentro del skill-group */
.skill-group-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent4);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  font-weight: 400;
}

/* --- BARRAS DE SKILLS con <meter> nativo --- */
ul.skill-bars {
  list-style: none;
  padding: 0;
}

li.skill-bar-item { margin-bottom: 0.9rem; }

p.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 0.35rem;
}

/* Estilizar el elemento <meter> nativo con colores del tema */
meter.skill-meter {
  width: 100%;
  height: 6px;
  display: block;
  border: none;
  border-radius: 3px;
  background: var(--bg3);
  /* reset de estilos del navegador */
  -webkit-appearance: none;
  appearance: none;
}

/* Chrome / Edge / Safari */
/* Me da errores en estos*/
meter.skill-meter::-webkit-meter-bar {
  background: var(--bg3);
  border-radius: 3px;
  border: none;
  height: 6px;
}
meter.skill-meter::-webkit-meter-optimum-value {
  background: var(--accent);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
meter.skill-meter.green::-webkit-meter-optimum-value  { background: var(--accent2); }
meter.skill-meter.purple::-webkit-meter-optimum-value { background: var(--accent4); }

/* Firefox */
meter.skill-meter::-moz-meter-bar {
  background: var(--accent);
  border-radius: 3px;
}
meter.skill-meter.green::-moz-meter-bar  { background: var(--accent2); }
meter.skill-meter.purple::-moz-meter-bar { background: var(--accent4); }

/* ── TAGS ── */
ul.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}

li.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text2);
  background: var(--bg3);
  transition: border-color 0.15s, color 0.15s;
}
li.tag:hover    { border-color: var(--accent); color: var(--accent); }
li.tag.featured { border-color: rgba(88,166,255,0.4); color: var(--accent); }

/* --- SECCIÓN: PROYECTOS --- */
ul.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

li.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
li.project-card:hover { border-color: var(--accent); transform: translateY(-3px); }

/* <figure> preview de código */
figure.project-preview {
  height: 180px;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
}

figure.project-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg2));
  pointer-events: none;
}

/* <pre> dentro del figure */
pre.mock-code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  padding: 1rem 1.5rem;
  line-height: 1.8;
  width: 100%;
  white-space: pre;
  overflow: hidden;
  background: none;
}

.mock-code .c-green  { color: var(--accent2); }
.mock-code .c-blue   { color: var(--accent); }
.mock-code .c-purple { color: var(--accent4); }
.mock-code .c-yellow { color: var(--yellow); }
.mock-code .c-red    { color: var(--accent3); }

/* <article> cuerpo del proyecto */
article.project-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.project-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

/* <footer> dentro del article del proyecto */
footer.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  /* resetear estilos del footer global */
  background: none;
  font-size: inherit;
  color: inherit;
}

/* <ul> de tecnologías */
ul.project-techs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

/* <nav> de links del proyecto */
nav.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(88,166,255,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.project-link:hover { background: rgba(88,166,255,0.1); }

/* --- SECCIÓN: REDES --- */
ul.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

ul.social-grid > li { display: block; }

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.social-card:hover              { transform: translateY(-2px); }
.social-card.github:hover    { border-color: var(--text); }
.social-card.linkedin:hover  { border-color: #0a66c2; }
.social-card.twitter:hover   { border-color: #1d9bf0; }
.social-card.instagram:hover { border-color: #e1306c; }

/* <figure> ícono de la red social */
figure.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}
figure.social-icon svg {
  width: 20px;
  height: 20px;
  /* color se controla por clase en el SVG */
  fill: currentColor;
}

/* color específico por red */
.social-card.github   figure.social-icon { color: var(--text); }
.social-card.linkedin figure.social-icon { color: #0a66c2; }
.social-card.twitter  figure.social-icon { color: #1d9bf0; }
.social-card.instagram figure.social-icon { color: #e1306c; }

/* En modo claro, LinkedIn/Twitter/Instagram mantienen sus colores de marca
   siempre que superen contraste sobre bg3 */
body.light .social-card.github figure.social-icon { color: var(--text); }

/* <p> info dentro de la tarjeta social */
p.social-info {
  display: flex;
  flex-direction: column;
}

.social-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.social-handle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
}

/* --- SECCIÓN: CONTACTO --- */
article.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

/* <address> datos de contacto */
address.contact-info {
  font-style: normal;
}

address.contact-info > p {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

p.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 0.75rem;
}
p.contact-detail svg { color: var(--accent); flex-shrink: 0; }
p.contact-detail a   { color: var(--accent); text-decoration: none; }
p.contact-detail a:hover { text-decoration: underline; }

p.contact-response {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

/* <form> */
form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* <fieldset> reemplaza div.form-row */
fieldset.form-row {
  border: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* <p> reemplaza div.form-group */
p.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.06em;
}

input, textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  /* focus visible extra para alto contraste */
  box-shadow: 0 0 0 2px rgba(88,166,255,0.25);
}
::placeholder { color: var(--text3); }

.btn-submit {
  background: var(--accent);
  color: #0d1117;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  align-self: flex-start;
}
.btn-submit:hover { opacity: 0.85; transform: translateY(-1px); }

/* <output> reemplaza div.form-success */
output#form-success {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  text-align: center;
  padding: 1rem;
  display: block;
}
output#form-success[hidden] { display: none; }

/* ─── FOOTER GLOBAL ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

/* resetear el footer dentro de project-card para que no tome estos estilos */
footer.project-footer {
  padding: 0;
  border-top: 1px solid var(--border);
  background: none;
  color: inherit;
}

.footer-name { color: var(--accent2); }
.heart       { color: var(--accent3); }
.footer-tool { color: var(--accent); }

footer > p > a { color: var(--text3); text-decoration: none; }
footer > p > a:hover { color: var(--accent); }

/* ─── ANIMACIONES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Typing cursor */
.typing::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--accent);
}

/* Clase utilitaria para ocultar visualmente pero mantener accesible */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }

  #inicio {
    flex-direction: column-reverse;
    padding: 5rem 6% 3rem;
    gap: 2rem;
  }
  .photo-frame { width: 180px; height: 180px; }
  .photo-frame img { height: 180px; }

  section { padding: 4rem 6%; }

  #sobre-mi .content { grid-template-columns: 1fr; }
  dl.info-cards { grid-template-columns: 1fr; }
  dt.info-card-label { border-radius: 8px 8px 0 0; border-right: 1px solid var(--border); border-bottom: none; }
  dd.info-card-value { border-radius: 0 0 8px 8px; }

  article.contact-wrapper { grid-template-columns: 1fr; }
  fieldset.form-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* --- REDUCE MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .status-dot {
    animation: pulse 2s infinite !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-label, .hero-name, .hero-desc, .hero-btns, .photo-frame { opacity: 1; animation: none; }
}