/* ================================================================
   styles.css — Luis A. Montero | Portfolio Personal
   Tema: Oscuro premium con acentos en naranja
   ================================================================ */

/* -------- Custom Properties -------- */
:root {
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #111111;
  --bg-card:       #161616;
  --bg-card-hover: #1c1c1c;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(255,140,0,0.3);

  --orange:        #ff8c00;
  --orange-light:  #ffaa33;
  --orange-dim:    rgba(255,140,0,0.12);
  --orange-glow:   rgba(255,140,0,0.25);

  --text-primary:  #f0f0f0;
  --text-secondary:#a0a0a0;
  --text-muted:    #666;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  30px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); }

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

img { max-width: 100%; }

/* -------- Scrollbar -------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }

/* -------- Selection -------- */
::selection { background: var(--orange); color: #000; }

/* -------- Utility -------- */
.text-accent { color: var(--orange); }
.section-pad { padding: 100px 0; }
.section-alt  { background: var(--bg-secondary); }

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(13,13,13,0.97);
  padding: 10px 0;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.navbar-brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.brand-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--orange);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}
.nav-link:hover::after,
.nav-link.active::after { width: 50%; }

.btn-contacto {
  background: var(--orange);
  color: #000 !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-contacto:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--orange-glow);
}

.navbar-toggler { border: none; box-shadow: none !important; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }

/* ================================================================
   HERO
   ================================================================ */
.hero-section {
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

/* Background grid */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,140,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glow blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,140,0,0.10) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,140,0,0.06) 0%, transparent 70%);
  bottom: 0; left: -50px;
}

/* Hero Tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid var(--border-accent);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,0,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(255,140,0,0); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}

/* Hero Buttons */
.btn-primary-custom {
  background: var(--orange);
  color: #000;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary-custom:hover {
  background: var(--orange-light);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

.btn-ghost-custom {
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost-custom:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

/* Code Card */
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.code-header {
  background: #1a1a1a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.code-filename {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: 'Courier New', monospace;
}
.code-body {
  padding: 20px;
  font-size: 0.82rem;
  line-height: 2;
  font-family: 'Courier New', monospace;
  margin: 0;
  overflow: hidden;
}
.c-keyword { color: #c792ea; }
.c-var     { color: #82aaff; }
.c-key     { color: #f07178; }
.c-str     { color: var(--orange); }
.c-bool    { color: #89ddff; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ================================================================
   SERVICIOS
   ================================================================ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px var(--orange-dim);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap {
  width: 52px; height: 52px;
  background: var(--orange-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--orange);
}
.service-card:hover .service-icon { color: #000; }
.service-icon { font-size: 1.5rem; color: var(--orange); transition: var(--transition); }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.service-desc { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li i { color: var(--orange); font-size: 0.9rem; }

/* ================================================================
   PORTAFOLIO
   ================================================================ */
/* Filter buttons */
.portfolio-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
  font-weight: 600;
}

/* Portfolio Card */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}
.portfolio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Mockup area */
.portfolio-img-wrap {
  position: relative;
  padding: 28px;
  background: #111;
  overflow: hidden;
}

/* Browser mockup */
.portfolio-mockup { width: 100%; }
.mockup-browser {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.mockup-bar {
  background: #222;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.mockup-bar span {
  width: 8px; height: 8px; border-radius: 50%; background: #444;
  display: inline-block;
}
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }
.mockup-screen {
  padding: 12px;
  min-height: 130px;
}
.mock-header {
  height: 20px; background: linear-gradient(90deg, var(--orange) 40%, #222 40%);
  border-radius: 4px; margin-bottom: 10px; opacity: 0.6;
}
.mock-hero {
  height: 45px; background: linear-gradient(135deg, #2a2a2a, var(--orange-dim));
  border-radius: 4px; margin-bottom: 10px;
}
.mock-body { display: flex; flex-direction: column; gap: 8px; }
.mock-block {
  background: #2a2a2a;
  border-radius: 4px;
}
.mock-block.wide  { height: 14px; width: 80%; }
.mock-block.medium { height: 10px; width: 60%; }
.mock-block.full  { height: 16px; width: 100%; }
.mock-block.half  { height: 14px; flex: 1; }
.mock-block.orange { background: var(--orange-dim); }
.mock-block.small { height: 40px; flex: 1; background: #1e1e1e; border: 1px solid #333; }
.mock-block.card-mock { height: 50px; flex: 1; background: #1e1e1e; border: 1px solid #2a2a2a; }
.mock-row { display: flex; gap: 6px; }
.mock-row.three { gap: 6px; }

/* Dashboard mockup */
.dash-screen {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  padding: 0 !important;
}
.dash-sidebar {
  width: 28px;
  background: #1e1e1e;
  border-right: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.dash-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-img-wrap:hover .portfolio-overlay { opacity: 1; }
.portfolio-links { display: flex; gap: 12px; }
.port-link {
  width: 44px; height: 44px;
  background: var(--orange);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
}
.port-link:hover { background: var(--orange-light); transform: scale(1.1); }
.port-link.disabled { background: #444; color: #666; cursor: default; }
.port-link.disabled:hover { transform: none; }

/* Badge */
.portfolio-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.portfolio-badge.real     { background: var(--orange); color: #000; }
.portfolio-badge.practice { background: rgba(255,255,255,0.1); color: var(--text-secondary); border: 1px solid var(--border); }

.portfolio-info { padding: 22px; }
.portfolio-info h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.portfolio-info p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 14px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-tags span {
  background: var(--orange-dim);
  color: var(--orange);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  font-weight: 500;
}

/* ================================================================
   PORTAFOLIO LIVE — Cards con iframe
   ================================================================ */
.portfolio-card-live {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.portfolio-card-live:hover {
  border-color: var(--border-accent);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px var(--orange-dim);
  transform: translateY(-6px);
}

/* Browser bar */
.live-browser-bar {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-dots { display: flex; gap: 6px; flex-shrink: 0; }
.live-url-bar {
  flex: 1;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.live-url-bar span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-lock { font-size: 0.65rem; color: #28c840; flex-shrink: 0; }
.live-actions { display: flex; gap: 6px; flex-shrink: 0; }
.live-action-btn {
  width: 28px; height: 28px;
  background: #222;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.live-action-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
}

/* iframe wrapper */
.live-iframe-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.live-iframe {
  width: 160%;
  height: 160%;
  border: none;
  transform: scale(0.625);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}

/* Overlay hint */
.live-iframe-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.live-iframe-overlay:hover { background: rgba(0,0,0,0.55); }
.live-overlay-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: scale(0.85);
  transition: var(--transition);
  color: #fff;
}
.live-overlay-hint i { font-size: 1.8rem; color: var(--orange); }
.live-overlay-hint span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }
.live-iframe-overlay:hover .live-overlay-hint {
  opacity: 1;
  transform: scale(1);
}

/* Project info */
.live-info { padding: 22px 24px; }
.live-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.live-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.live-type  { font-size: 0.78rem; color: var(--orange); }
.live-desc  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.live-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.live-visit-btn {
  background: var(--orange-dim);
  border: 1px solid var(--border-accent);
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.live-visit-btn:hover {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

/* ================================================================
   MODAL PREVIEW
   ================================================================ */
.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.preview-modal.open {
  opacity: 1;
  visibility: visible;
}

.preview-modal-inner {
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.preview-modal.open .preview-modal-inner {
  transform: scale(1) translateY(0);
}

.preview-modal-header {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.preview-modal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.preview-modal-controls { display: flex; gap: 8px; }
.modal-ctrl-btn {
  width: 32px; height: 32px;
  background: #222;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.modal-ctrl-btn:hover { background: var(--orange); border-color: var(--orange); color: #000; }
.modal-close:hover { background: #ff4757; border-color: #ff4757; color: #fff; }

.preview-modal-body {
  flex: 1;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.preview-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Loading state iframe */
.preview-modal-body::before {
  content: 'Cargando...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
  z-index: 0;
}
.preview-modal-body iframe { position: relative; z-index: 1; }

/* ================================================================
   SOBRE MÍ
   ================================================================ */
.about-visual-wrap {
  position: relative;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}
.about-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.about-avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #000;
  flex-shrink: 0;
}
.about-name { display: block; font-weight: 700; font-size: 1rem; }
.about-role { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.about-float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.about-float-badge i { color: var(--orange); }
.badge-left  { bottom: 30px; left: 0; }
.badge-right { top: 40px; right: 0; }

.about-decoration {
  position: absolute;
  width: 200px; height: 200px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

.about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 14px;
}

/* Skills bars */
.skills-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.skill-item { margin-bottom: 14px; }
.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.skill-bar {
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 10px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Soft badges */
.soft-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.soft-badge i { color: var(--orange); }
.soft-badge:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* Certification badges */
.cert-badge {
  background: rgba(255,140,0,0.08);
  border: 1px solid rgba(255,140,0,0.25);
  color: var(--orange-light);
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: var(--radius-xl);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.cert-badge i { font-size: 0.85rem; }

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  justify-content: flex-end;
}
.timeline-item:nth-child(even) { justify-content: flex-start; }

.timeline-dot {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 12px var(--orange-glow);
  z-index: 2;
}

.timeline-content {
  width: calc(50% - 40px);
}
.timeline-content.right { padding-left: 20px; }
.timeline-content.left  { padding-right: 20px; }

.tl-date {
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tl-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  border-radius: 0 2px 2px 0;
}
.tl-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.tl-icon {
  width: 36px; height: 36px;
  background: var(--orange-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 12px;
}

.tl-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.tl-company {
  font-size: 0.82rem;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.tl-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

/* ================================================================
   CONTACTO — Cards
   ================================================================ */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
  cursor: default;
}
a.contact-card {
  cursor: pointer;
}
a.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px var(--orange-dim);
}
.contact-card-wa:hover  { border-color: rgba(37,211,102,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(37,211,102,0.12); }
.contact-card-li:hover  { border-color: rgba(10,102,194,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(10,102,194,0.12); }

.contact-card-icon {
  width: 56px; height: 56px;
  background: var(--orange-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 6px;
  transition: var(--transition);
}
.contact-card-wa .contact-card-icon  { background: rgba(37,211,102,0.1);  border-color: rgba(37,211,102,0.3);  color: #25d366; }
.contact-card-li .contact-card-icon  { background: rgba(10,102,194,0.1);  border-color: rgba(10,102,194,0.3);  color: #0a66c2; }

a.contact-card:hover .contact-card-icon { transform: scale(1.1); }

.contact-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-card-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
  line-height: 1.5;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-top { padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }

.footer-nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--orange); }

.footer-socials { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.footer-social-btn {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer-social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-tech { display: flex; align-items: center; gap: 4px; }
.footer-tech i { font-size: 0.8rem; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--orange);
  color: #000;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 6px 20px var(--orange-glow);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--orange-light); transform: translateY(-3px); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) { justify-content: flex-end; }
  .timeline-content { width: calc(100% - 60px); padding-left: 20px !important; padding-right: 0 !important; }
  .timeline-dot { left: 20px; }

  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }

  .about-float-badge { display: none; }
}

@media (max-width: 767px) {
  .section-pad { padding: 70px 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-btns { display: flex; flex-direction: column; gap: 12px; }
  .btn-primary-custom,
  .btn-ghost-custom { text-align: center; justify-content: center; }
  .contact-form { padding: 22px; }
  .footer-socials { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .back-to-top { bottom: 20px; right: 20px; }
  .code-card { width: 100%; max-width: 360px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.5rem; }
}
