/* =========================================
   PORTFOLIO - Marco Hurtado
   Custom Styles
   ========================================= */

/* --- Variables & Theming --- */
:root {
  --primary:       #0ea5e9;
  --primary-dark:  #0284c7;
  --accent:        #38bdf8;
  --success:       #22c55e;

  /* Light mode */
  --bg:            #f8fafc;
  --bg-alt:        #f1f5f9;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --heading:       #0f172a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --radius:   .75rem;
  --radius-lg: 1.25rem;
  --transition: .25s ease;
}

[data-theme="dark"] {
  --bg:         #0b1120;
  --bg-alt:     #111827;
  --surface:    #1e293b;
  --border:     #334155;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --heading:    #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.4);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

/* Transición suave en todos los elementos al cambiar tema */
*, *::before, *::after {
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* --- Bootstrap overrides: forzar variables del tema --- */
.text-muted        { color: var(--text-muted) !important; }
.text-body         { color: var(--text)        !important; }
.bg-body           { background: var(--bg)     !important; }
.border            { border-color: var(--border) !important; }
.card              { background: var(--surface); border-color: var(--border); color: var(--text); }
.navbar-toggler    { color: var(--text); border-color: var(--border); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); }
p                  { color: var(--text); }
label              { color: var(--text); }
strong             { color: var(--text); }

/* --- Utility --- */
.section-gap { padding: 6rem 0; }
.bg-alt      { background: var(--bg-alt); }
.surface     { background: var(--surface); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.divider {
  width: 3.5rem;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: .75rem 0 1.25rem;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* =========================================
   NAVBAR
   ========================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: .85rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: .55rem 0;
}
#navbar .nav-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}
#navbar .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .75rem;
  border-radius: .4rem;
  transition: color var(--transition), background var(--transition);
}
#navbar .nav-link:hover,
#navbar .nav-link.active {
  color: var(--primary);
  background: rgba(14,165,233,.08);
}
#navbar .navbar-toggler { border: none; padding: .25rem .5rem; }
#navbar .navbar-toggler:focus { box-shadow: none; }
#navbar .navbar-toggler-icon {
  background-image: none;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 22px; height: 17px;
}
#navbar .navbar-toggler-icon::before,
#navbar .navbar-toggler-icon::after,
#navbar .navbar-toggler-icon span {
  content: '';
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Theme toggle button */
#theme-toggle {
  width: 2.25rem; height: 2.25rem;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
#theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* =========================================
   HERO
   ========================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.18) 0%, transparent 70%);
  top: -10%; left: 55%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.3);
  color: var(--primary);
  border-radius: 2rem;
  padding: .35rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typed-wrapper {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  min-height: 1.8em;
}
.hero-typed-wrapper .typed-cursor { color: var(--primary); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 4px 14px rgba(14,165,233,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,233,.5);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-socials { display: flex; gap: .75rem; }
.hero-socials a {
  width: 2.5rem; height: 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}
.hero-socials a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* Hero avatar */
.hero-avatar-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-avatar-ring {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
  padding: 4px;
  animation: spin-slow 8s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  color: var(--primary);
}
.hero-floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
}
.hero-floating-badge i { color: var(--primary); }
.hero-floating-badge.badge-tl { top: 10%;  left: -5%; }
.hero-floating-badge.badge-br { bottom: 10%; right: -5%; }
.hero-floating-badge.badge-tr { top: 55%;  right: -8%; }

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* =========================================
   ABOUT
   ========================================= */
.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
}
.about-photo-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.about-photo-placeholder i { font-size: 4rem; color: var(--primary); opacity: .5; }
.about-accent-box {
  position: absolute;
  bottom: -1rem; right: -1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-accent-box .years { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-accent-box .years-label { font-size: .8rem; opacity: .9; }

.soft-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.soft-skill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.soft-skill i { color: var(--primary); font-size: .9rem; }
.soft-skill:hover { border-color: var(--primary); color: var(--primary); }

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 1.5rem 0;
}
.info-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.info-item i { color: var(--primary); width: 1rem; flex-shrink: 0; }
.info-item span { color: var(--text); font-weight: 500; }

/* =========================================
   SKILLS
   ========================================= */
.skill-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.skill-category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.skill-cat-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: rgba(14,165,233,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.skill-cat-title {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 2rem;
  padding: .3rem .85rem;
  word-break: break-word;
  font-size: .82rem;
  font-weight: 500;
  margin: .2rem;
  transition: all var(--transition);
}
.skill-tag:hover { background: rgba(14,165,233,.1); border-color: var(--primary); color: var(--primary); }

/* =========================================
   PROJECTS
   ========================================= */
.project-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-btn {
  padding: .4rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  background: transparent;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary);
}
.project-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: .7;
  position: relative;
  overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.project-img-overlay {
  position: absolute; inset: 0;
  background: rgba(14,165,233,.85);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-img-overlay { opacity: 1; }
.project-img-overlay a {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.project-img-overlay a:hover { background: rgba(255,255,255,.35); color: #fff; }

.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.project-tag {
  background: rgba(14,165,233,.1);
  color: var(--primary);
  border-radius: 2rem;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.project-desc {
  font-size: .9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}
.project-links {
  display: flex; gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.project-link:hover { color: var(--primary); }

/* =========================================
   EXPERIENCE - Timeline
   ========================================= */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: .65rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--border));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: .3rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 3px rgba(14,165,233,.25);
  z-index: 1;
}
.timeline-item.current .timeline-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,.1); }
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.timeline-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.timeline-head {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
  gap: .5rem; margin-bottom: .75rem;
}
.timeline-role { font-size: 1.05rem; font-weight: 700; color: var(--heading); }
.timeline-company { font-size: .9rem; color: var(--primary); font-weight: 600; }
.timeline-date {
  font-size: .8rem;
  background: rgba(14,165,233,.1);
  color: var(--primary);
  border-radius: 2rem;
  padding: .25rem .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.timeline-desc { font-size: .9rem; color: var(--text-muted); margin-bottom: .85rem; }
.timeline-achievements { list-style: none; }
.timeline-achievements li {
  font-size: .88rem;
  color: var(--text);
  padding: .2rem 0;
  display: flex; align-items: flex-start; gap: .5rem;
}
.timeline-achievements li::before {
  content: '▸';
  color: var(--primary);
  flex-shrink: 0;
  margin-top: .05rem;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius);
  background: rgba(14,165,233,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: .8rem; color: var(--text-muted); }
.contact-info-value { font-size: .95rem; font-weight: 600; color: var(--heading); }

.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

/* Alert messages */
.form-alert {
  display: none;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 500;
}
.form-alert.success { background: rgba(34,197,94,.1); color: #16a34a; border: 1px solid rgba(34,197,94,.3); display: block; }
.form-alert.error   { background: rgba(239,68,68,.1);  color: #dc2626; border: 1px solid rgba(239,68,68,.3);  display: block; }

/* Social links */
.social-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.social-link i { font-size: 1rem; }

/* =========================================
   EDUCATION
   ========================================= */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  display: flex; flex-direction: column; gap: .5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.edu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.edu-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius);
  background: rgba(14,165,233,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: .25rem;
}
.edu-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(14,165,233,.1);
  color: var(--primary);
  border-radius: 2rem;
  padding: .2rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  width: fit-content;
}
.edu-degree {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}
.edu-school {
  font-size: .82rem;
  color: var(--text-muted);
}
.edu-date {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}

.courses-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.courses-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; gap: .6rem;
}
.courses-list {
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
  display: flex; flex-direction: column; gap: .6rem;
}
.courses-list li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem;
  color: var(--text);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.courses-list li:last-child { border-bottom: none; }
.courses-list li i { color: var(--success); flex-shrink: 0; font-size: 1rem; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
footer p { color: var(--text-muted); font-size: .88rem; }
footer a { color: var(--primary); }

/* WhatsApp flotante */
#whatsapp-btn {
  position: fixed;
  bottom: 5.5rem; right: 2rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(37,211,102,.45);
  z-index: 999;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.5s ease infinite;
}
#whatsapp-btn:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(37,211,102,.6);
  animation: none;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 22px rgba(37,211,102,.7), 0 0 0 6px rgba(37,211,102,.12); }
}
.wa-tooltip {
  position: absolute;
  right: 3.25rem;
  background: #25d366;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 2rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity var(--transition), transform var(--transition);
}
#whatsapp-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Back-to-top */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  #hero .hero-avatar-wrap { display: none; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .about-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section-gap { padding: 4rem 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-floating-badge { display: none; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.5rem; }
  .stats-bar .col-6.col-md-3 + .col-6.col-md-3 { margin-top: 0; }
}

@media (max-width: 480px) {
  .contact-card { padding: 1.25rem; }
  .project-body { padding: 1.1rem; }
}
