/* ==========================================================================
   CRISTIAN - Visual Artist & Photographer Portfolio
   Subcarpeta para nifty-einstein | Cloudflare Pages
   ========================================================================== */

:root {
  --bg-dark: #090d0b;
  --bg-surface: #111714;
  --bg-surface-elevated: #18221d;
  --bg-card: rgba(17, 23, 20, 0.85);
  --bg-glass: rgba(17, 23, 20, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: #10b981;

  --text-main: #f0f6f2;
  --text-muted: #9eb5a6;
  --text-subtle: #6c8375;

  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header & Nav
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-back:hover {
  color: var(--accent-emerald);
}

.artist-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   Hero Section & Profile
   -------------------------------------------------------------------------- */
.hero-cristian {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(320px, 80vw, 800px);
  height: clamp(320px, 60vw, 550px);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-cristian-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

/* Contenedor de la Foto de Perfil con Efecto Glitch / Easter Egg */
.pfp-wrapper {
  position: relative;
  width: clamp(160px, 25vw, 240px);
  height: clamp(160px, 25vw, 240px);
  border-radius: var(--radius-full);
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-amber));
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
  margin-inline: auto;
}

.pfp-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.pfp-img.glitching {
  animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  filter: hue-rotate(90deg) contrast(1.5);
}

@keyframes glitch-anim {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(3px, 1px); }
  80% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}

.pfp-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-bio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.artist-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.artist-name {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.artist-name .gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.artist-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.6;
}

.artist-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meta-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   Destacado: Fotografía de Paisaje (image_2026)
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.featured-landscape-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.featured-landscape-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}

.landscape-img-box {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  cursor: pointer;
}

.landscape-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.landscape-img-box:hover img {
  transform: scale(1.03);
}

.landscape-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 13, 11, 0.85) 0%, transparent 40%);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.landscape-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landscape-caption h3 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
}

.landscape-caption p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 50ch;
}

.landscape-meta-bar {
  padding: 1.25rem clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.meta-spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-spec strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Galería de Retrato & Trabajo en Terreno
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 2rem;
}

.gallery-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-emerald);
}

.gallery-item-img {
  width: 100%;
  height: 380px;
  position: relative;
  overflow: hidden;
}

.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-img img {
  transform: scale(1.04);
}

.gallery-item-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-item-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
}

.gallery-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.gallery-item-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   EASTER EGG // CONSOLA NIFTY: CASUALTIES UNKNOWN
   -------------------------------------------------------------------------- */
.easter-egg-section {
  background: #050807;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.terminal-card {
  max-width: 780px;
  margin-inline: auto;
  background: #0c110e;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
  background: #141c18;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terminal-log {
  background: #060907;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.85rem;
  color: #a7f3d0;
  min-height: 140px;
  max-height: 240px;
  overflow-y: auto;
  line-height: 1.5;
  white-space: pre-wrap;
}

.terminal-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.terminal-input-row {
  display: flex;
  gap: 0.5rem;
}

.terminal-prompt {
  color: var(--accent-emerald);
  font-weight: 700;
  align-self: center;
  font-size: 1rem;
}

.terminal-input {
  flex-grow: 1;
  background: #060907;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
}

.terminal-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-terminal {
  background: var(--accent-emerald);
  color: #050807;
  font-weight: 700;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.btn-terminal:hover {
  background: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.terminal-actions-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-quick-code {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.btn-quick-code:hover {
  background: rgba(16, 185, 129, 0.2);
}

.btn-reset-pfp {
  background: transparent;
  color: var(--text-subtle);
  border: 1px dashed var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  margin-left: auto;
  font-family: inherit;
}

.btn-reset-pfp:hover {
  color: #ef4444;
  border-color: #ef4444;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-cristian {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-cristian a {
  color: var(--accent-emerald);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsividad Móvil
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-cristian-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-bio {
    align-items: center;
  }
  .artist-meta-chips {
    justify-content: center;
  }
  .terminal-input-row {
    flex-direction: column;
  }
  .btn-terminal {
    width: 100%;
  }
  .landscape-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
