/* =============================================
   HAROLD GEREDA — PORTAFOLIO DOCENTE
   Aesthetic: Dark Academic × Digital Scholar
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ─── Variables ─── */
:root {
  --bg:         #0b1120;
  --bg-2:       #111827;
  --bg-card:    #151e30;
  --bg-card-2:  #1c2840;
  --gold:       #c9913d;
  --gold-light: #e8b86d;
  --gold-dim:   #7a5520;
  --cream:      #f2ead8;
  --text:       #ddd8cc;
  --text-muted: #7a7468;
  --text-dim:   #a09890;
  --green:      #3a9e7a;
  --blue:       #3a7abf;
  --red:        #bf4a3a;
  --border:     rgba(201,145,61,0.18);
  --border-dim: rgba(201,145,61,0.08);
  --radius:     12px;
  --shadow:     0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold:0 4px 24px rgba(201,145,61,0.18);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', monospace;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── Custom Cursor ─── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; mix-blend-mode: difference;
}
#cursor-dot {
  width: 8px; height: 8px; background: var(--gold);
  border-radius: 50%; position: absolute;
  transform: translate(-50%,-50%);
  transition: transform .1s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold-light);
  border-radius: 50%; position: absolute;
  transform: translate(-50%,-50%);
  transition: transform .18s ease, width .18s, height .18s;
  opacity: .6;
}
body.hovering #cursor-ring { width: 56px; height: 56px; opacity: .9; }

/* ─── Noise Overlay ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ─── Layout Utilities ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-2); }

.section-label {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '//'; opacity: .5;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-title span { color: var(--gold); font-style: italic; }
.section-desc {
  color: var(--text-dim);
  max-width: 580px;
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ─── Fade-in Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(11,17,32,.92);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border-dim);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--cream); letter-spacing: .01em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; gap: 8px; align-items: center;
}
.nav-links a {
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); padding: 6px 14px; border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--cream); background: var(--border-dim); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--cream); transition: .3s; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 80px;
  position: relative; overflow: hidden;
}
.hero-bg-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--border-dim) 1px, transparent 1px),
    linear-gradient(0deg, var(--border-dim) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,145,61,.12) 0%, transparent 70%);
  top: 50%; left: 60%; transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.hero-text { order: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(201,145,61,.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,145,61,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(201,145,61,0); }
}
.hero-tag span {
  font-family: var(--ff-mono); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-light);
}
.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900; line-height: 1.0;
  color: var(--cream); margin-bottom: 8px;
}
.hero-name em { color: var(--gold); font-style: italic; display: block; }
.hero-title {
  font-family: var(--ff-mono); font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 28px;
}
.hero-desc {
  font-size: 1.12rem; color: var(--text-dim);
  max-width: 480px; margin-bottom: 40px;
  line-height: 1.75;
}
.hero-desc strong { color: var(--cream); font-weight: 500; }
.hero-stats {
  display: flex; gap: 32px; margin-bottom: 40px;
}
.hero-stat { border-left: 2px solid var(--border); padding-left: 16px; }
.hero-stat-num {
  font-family: var(--ff-display); font-size: 2rem;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.hero-stat-label {
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-top: 4px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-family: var(--ff-body); font-size: .9rem;
  font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: .25s; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold); color: var(--bg);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); color: var(--bg); }
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-photo { order: 2; display: flex; justify-content: center; }
.hero-photo-wrap {
  position: relative; width: 400px; height: 500px;
}
.hero-photo-frame {
  width: 340px; height: 440px;
  border-radius: 200px 200px 160px 160px;
  overflow: hidden;
  border: 3px solid var(--border);
  position: relative;
  box-shadow: var(--shadow), inset 0 0 60px rgba(0,0,0,.3);
}
.hero-photo-frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
}
.hero-photo-deco-1 {
  position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%; opacity: .5;
  animation: rotate 20s linear infinite;
}
.hero-photo-deco-2 {
  position: absolute; bottom: 40px; left: -30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}
.hero-photo-deco-2 .deco-label {
  font-family: var(--ff-mono); font-size: .68rem;
  color: var(--gold); letter-spacing: .1em; text-transform: uppercase;
}
.hero-photo-deco-2 .deco-val {
  font-size: 1.1rem; font-weight: 600; color: var(--cream);
}
.hero-photo-deco-3 {
  position: absolute; top: 60px; right: -40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ─── VISION ─── */
#vision {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.vision-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic; font-weight: 400;
  color: var(--cream); line-height: 1.55;
  max-width: 900px; margin: 0 auto 64px;
  text-align: center; position: relative;
  padding: 0 48px;
}
.vision-quote::before, .vision-quote::after {
  content: '"';
  font-family: var(--ff-display); font-size: 6rem;
  color: var(--gold-dim); position: absolute;
  line-height: 1;
}
.vision-quote::before { top: -20px; left: 0; }
.vision-quote::after  { content: '"'; bottom: -50px; right: 0; }
.vision-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vision-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.vision-pillar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.vision-pillar:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.vision-pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 52px; height: 52px;
  background: rgba(201,145,61,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.pillar-title {
  font-family: var(--ff-display); font-size: 1.2rem;
  font-weight: 600; color: var(--cream);
  margin-bottom: 10px;
}
.pillar-text { font-size: .9rem; color: var(--text-dim); line-height: 1.65; }

/* ─── ENFOQUE/METODOLOGÍA TABS ─── */
#metodologia { background: var(--bg-2); }
.method-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px; border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0;
}
.method-tab {
  padding: 12px 24px; border-radius: 8px 8px 0 0;
  font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: .2s;
  color: var(--text-muted); background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  position: relative; bottom: -1px;
}
.method-tab.active {
  color: var(--cream);
  background: var(--bg-card);
  border-color: var(--border-dim);
  border-bottom-color: var(--bg-card);
}
.method-tab:hover:not(.active) { color: var(--text); }
.method-panel { display: none; }
.method-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.method-panel-text h3 {
  font-family: var(--ff-display);
  font-size: 1.6rem; color: var(--cream);
  margin-bottom: 16px;
}
.method-panel-text p { color: var(--text-dim); font-size: .97rem; margin-bottom: 16px; line-height: 1.75; }
.method-tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(201,145,61,.1);
  border: 1px solid var(--border);
  border-radius: 100px; font-size: .75rem;
  color: var(--gold); margin: 4px 4px 0 0;
}
.method-panel-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden;
}
.method-steps { display: flex; flex-direction: column; gap: 16px; }
.method-step {
  display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(201,145,61,.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: .75rem;
  color: var(--gold); flex-shrink: 0;
}
.step-text strong { color: var(--cream); display: block; font-size: .9rem; }
.step-text span { color: var(--text-dim); font-size: .83rem; }

/* ─── HERRAMIENTAS ─── */
#herramientas { background: var(--bg); }
.tools-search-wrap {
  position: relative; max-width: 480px; margin-bottom: 48px;
}
.tools-search {
  width: 100%; padding: 14px 20px 14px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 50px; color: var(--text);
  font-family: var(--ff-body); font-size: .95rem;
  outline: none; transition: border-color .2s;
}
.tools-search:focus { border-color: var(--border); }
.tools-search::placeholder { color: var(--text-muted); }
.tools-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.1rem; color: var(--text-muted); pointer-events: none;
}
.tools-categories {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.tools-cat {
  padding: 6px 16px; border-radius: 100px;
  font-size: .8rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  color: var(--text-muted); cursor: pointer; transition: .2s;
}
.tools-cat.active, .tools-cat:hover {
  background: rgba(201,145,61,.12); border-color: var(--border);
  color: var(--gold);
}
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer; position: relative; overflow: hidden;
}
.tool-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s;
  transform-origin: left;
}
.tool-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-card[data-hidden="true"] { display: none; }
.tool-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(201,145,61,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.tool-name { font-weight: 600; color: var(--cream); font-size: .92rem; }
.tool-cat-tag {
  font-size: .7rem; color: var(--gold); font-family: var(--ff-mono);
  text-transform: uppercase; letter-spacing: .08em;
}
.tool-arrow {
  font-size: .8rem; color: var(--text-muted);
  transition: color .2s, transform .2s;
}
.tool-card:hover .tool-arrow { color: var(--gold); transform: translateX(3px); }

/* ─── RETOS ─── */
#retos { background: var(--bg-2); }
.retos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 24px;
}
.reto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 32px;
  transition: .3s;
  position: relative; overflow: hidden;
}
.reto-card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-3px); }
.reto-level {
  display: inline-block; padding: 3px 12px; border-radius: 100px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 16px;
}
.reto-level.basico { background: rgba(58,158,122,.15); color: #3a9e7a; border: 1px solid rgba(58,158,122,.3); }
.reto-level.intermedio { background: rgba(201,145,61,.15); color: var(--gold); border: 1px solid var(--border); }
.reto-level.avanzado { background: rgba(191,74,58,.15); color: #bf4a3a; border: 1px solid rgba(191,74,58,.3); }
.reto-title { font-family: var(--ff-display); font-size: 1.15rem; color: var(--cream); margin-bottom: 10px; font-weight: 600; }
.reto-desc { font-size: .88rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 16px; }
.reto-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.reto-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--text-muted);
  font-family: var(--ff-mono);
}

/* ─── EXPERIENCIA ─── */
#experiencia { background: var(--bg); }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim) 60%, transparent);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-dot {
  position: absolute; left: -38px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.timeline-date {
  font-family: var(--ff-mono); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.timeline-role {
  font-family: var(--ff-display); font-size: 1.25rem;
  font-weight: 600; color: var(--cream); margin-bottom: 4px;
}
.timeline-org {
  font-size: .9rem; color: var(--text-muted); margin-bottom: 14px;
}
.timeline-list { display: flex; flex-direction: column; gap: 6px; }
.timeline-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--text-dim);
}
.timeline-list li::before { content: '→'; color: var(--gold-dim); flex-shrink: 0; }

/* ─── EDUCACIÓN ─── */
#educacion { background: var(--bg-2); }
.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 28px;
  transition: .3s;
  border-left: 3px solid var(--gold-dim);
}
.edu-card:hover { border-left-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.edu-year {
  font-family: var(--ff-mono); font-size: .72rem;
  color: var(--gold); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 8px;
}
.edu-degree { font-family: var(--ff-display); font-size: 1.05rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.edu-institution { font-size: .85rem; color: var(--text-muted); }
.edu-badge {
  display: inline-block; margin-top: 12px;
  padding: 3px 10px; border-radius: 100px;
  font-size: .7rem; background: rgba(201,145,61,.1);
  border: 1px solid var(--border-dim); color: var(--gold);
}

/* ─── HABILIDADES ─── */
#habilidades { background: var(--bg); }
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.skills-bars { display: flex; flex-direction: column; gap: 24px; }
.skill-bar-item {}
.skill-bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.skill-bar-name { font-size: .9rem; color: var(--cream); font-weight: 500; }
.skill-bar-pct { font-family: var(--ff-mono); font-size: .8rem; color: var(--gold); }
.skill-bar-track {
  height: 6px; background: var(--bg-card);
  border-radius: 100px; overflow: hidden;
}
.skill-bar-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skills-tags { }
.skills-tags-group { margin-bottom: 32px; }
.skills-tags-label {
  font-family: var(--ff-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  border-bottom: 1px solid var(--border-dim); padding-bottom: 8px;
}
.skill-tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  padding: 6px 14px; border-radius: 6px;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  font-size: .83rem; color: var(--text-dim);
  transition: .2s; cursor: default;
}
.skill-tag:hover { border-color: var(--border); color: var(--cream); }

/* ─── PUBLICACIONES ─── */
#publicaciones { background: var(--bg-2); }
.pub-feature {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 48px;
  box-shadow: var(--shadow-gold);
  margin-bottom: 40px;
}
.pub-meta { display: flex; flex-direction: column; gap: 12px; }
.pub-type {
  font-family: var(--ff-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold);
}
.pub-year-badge {
  display: inline-block; padding: 4px 16px;
  background: rgba(201,145,61,.12); border: 1px solid var(--border);
  border-radius: 100px; color: var(--gold-light);
  font-family: var(--ff-mono); font-size: .85rem;
}
.pub-title {
  font-family: var(--ff-display); font-size: 1.6rem;
  font-weight: 700; color: var(--cream); line-height: 1.3;
  margin-bottom: 16px;
}
.pub-journal {
  font-size: .9rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 20px;
}
.pub-abstract { font-size: .92rem; color: var(--text-dim); line-height: 1.7; }
.pub-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 100px; margin: 20px 0;
}

/* ─── CONTACTO ─── */
#contacto {
  background: linear-gradient(180deg, var(--bg) 0%, #060a14 100%);
}
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(201,145,61,.1); border: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-label {
  font-family: var(--ff-mono); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 4px;
}
.contact-item-val { color: var(--cream); font-size: .95rem; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-family: var(--ff-mono);
}
.form-input, .form-textarea {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: 8px; padding: 12px 16px;
  color: var(--text); font-family: var(--ff-body); font-size: .93rem;
  outline: none; transition: border-color .2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

/* ─── FOOTER ─── */
footer {
  background: #060a14; padding: 32px 0;
  border-top: 1px solid var(--border-dim);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: .82rem; color: var(--text-muted); }
.footer-copy strong { color: var(--gold); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }

/* ─── Scroll Progress ─── */
#progress-bar {
  position: fixed; top: 0; left: 0; z-index: 9998;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  width: 0; transition: width .1s;
}

/* ─── AI IMAGES ─── */
.ai-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.ai-img-card img { width: 100%; height: 100%; object-fit: cover; }
.ai-img-label {
  position: absolute; bottom: 10px; right: 10px;
  font-family: var(--ff-mono); font-size: .62rem;
  background: rgba(0,0,0,.6); color: var(--gold);
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-text { order: 2; }
  .hero-photo { order: 1; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-desc { margin: 0 auto 40px; }
  .vision-pillars { grid-template-columns: 1fr; }
  .method-panel.active { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .pub-feature { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(11,17,32,.98);
    padding: 20px 32px; gap: 4px;
    border-bottom: 1px solid var(--border-dim);
  }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .hero-photo-wrap { width: 280px; height: 360px; }
  .hero-photo-frame { width: 240px; height: 310px; }
  .edu-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  body { cursor: auto; }
  #cursor { display: none; }
}

/* ─── Divider ─── */
.divider-gold {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 100px;
  margin: 24px 0 40px;
}

/* ─── Toast ─── */
#toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 28px;
  color: var(--cream); font-size: .9rem;
  box-shadow: var(--shadow);
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275);
  z-index: 5000;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(90deg, var(--gold), var(--cream), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}
