﻿/* ══════════════════════════════════════
   Portfolio — Eli Santiago López
   Paleta: oscuro + amarillo dorado + claro
   ══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

:root {
  --bg:      #0a0c0d;
  --bg2:     #111416;
  --bg3:     #1c2024;
  --bg4:     #252a2e;
  --bg-light:  #f5f4f0;
  --bg-light2: #eceae4;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --border-light: rgba(0,0,0,0.08);
  --text:    #e8e5dc;
  --text2:   #8a8780;
  --text3:   #555250;
  --text-dark:  #1a1a1a;
  --text-dark2: #4a4845;
  --accent:      #f0c040;
  --accent2:     #d4a830;
  --accent-dim:  rgba(240,192,64,0.08);
  --accent-border: rgba(240,192,64,0.25);
  --serif: 'DM Serif Display', serif;
  --mono:  'DM Mono', monospace;
  --sans:  'DM Sans', sans-serif;
  --radius: 4px;
  --container: 1100px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

html { scroll-behavior: smooth; font-size: 16px; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }

/* ── UTILITIES ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg2); }
.section-header { margin-bottom: 3.5rem; }
.section-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.75rem; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; border: none; border-radius: var(--radius); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #0c0e0f; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--text); }
.btn-full { width: 100%; justify-content: center; }

/* ── TAGS ── */
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 2px; background: var(--accent-dim); color: var(--accent); }
.tag-sm { font-size: 9px; padding: 2px 7px; }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 clamp(1.25rem, 5vw, 3rem); background: rgba(12,14,15,0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: background 0.3s; }
.nav.scrolled { background: rgba(12,14,15,0.97); }
.nav-home-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: var(--text2); text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; }
.nav-home-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }
.nav-links { display: flex; gap: 0.5rem; list-style: none; }
.nav-links .nav-link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; }
.nav-links .nav-link:hover, .nav-links .nav-link.active { color: var(--accent); background: var(--accent-dim); }
.nav-links .nav-link svg { flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text2); transition: all 0.25s; }
.nav-links.open { display: flex; flex-direction: column; position: fixed; top: 58px; left: 0; right: 0; background: rgba(12,14,15,0.97); border-bottom: 1px solid var(--border); padding: 1.5rem clamp(1.25rem, 5vw, 3rem); gap: 1rem; }

/* ── HERO ── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; padding: 80px clamp(1.25rem, 5vw, 3rem) 4rem; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 55% at 68% 50%, rgba(240,192,64,0.05) 0%, transparent 70%); }
.hero-grid-line { position: absolute; top: 0; bottom: 0; right: 50%; width: 1px; background: var(--border); }
.hero-inner { max-width: 520px; position: relative; z-index: 1; padding-right: 40px; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--accent-border); padding: 6px 14px; border-radius: 2px; margin-bottom: 2rem; animation: fadeUp 0.55s ease both; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); }
.hero-dot.active { background: var(--accent); animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.25; } }
h1.hero-title { font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 6rem); line-height: 1.0; letter-spacing: -0.025em; color: var(--text); margin-bottom: 0.5rem; animation: fadeUp 0.55s 0.08s ease both; }
h1.hero-title em { font-style: italic; color: var(--accent); }
.hero-role { font-family: var(--mono); font-size: 13px; color: var(--text3); letter-spacing: 0.08em; margin-bottom: 1.5rem; animation: fadeUp 0.55s 0.14s ease both; }
.hero-sub { font-size: clamp(0.95rem, 2vw, 1.05rem); color: var(--text2); font-weight: 300; max-width: 480px; line-height: 1.75; margin-bottom: 2.5rem; animation: fadeUp 0.55s 0.2s ease both; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; animation: fadeUp 0.55s 0.28s ease both; }
.hero-socials { display: flex; gap: 0.75rem; flex-wrap: wrap; animation: fadeUp 0.55s 0.36s ease both; }
.hero-scroll { position: absolute; bottom: 2rem; left: clamp(1.25rem, 5vw, 3rem); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--text3); display: flex; align-items: center; gap: 10px; animation: fadeUp 0.55s 0.5s ease both; }
.hero-scroll::after { content: ''; width: 36px; height: 1px; background: var(--text3); }

/* ── HERO PHOTO ── */
.hero-photo-wrap { display: flex; align-items: flex-end; justify-content: center; height: 100%; position: relative; z-index: 1; padding-top: 58px; margin-left: -60px; }
.hero-photo { width: clamp(320px, 44vw, 580px); object-fit: contain; filter: drop-shadow(0 0 50px rgba(240,192,64,0.2)); animation: fadeUp 0.6s 0.4s ease both; transform-origin: bottom center; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── SOCIAL BUTTONS ── */
.social-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text2); background: rgba(255,255,255,0.04); border: 1px solid var(--border2); padding: 8px 16px; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: all 0.2s; }
.social-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--text2); font-weight: 300; font-size: 1rem; line-height: 1.8; margin-bottom: 1.2rem; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.75rem 0 2rem; }
.languages { display: flex; flex-direction: column; gap: 1rem; }
.lang-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.lang-name { font-size: 13px; font-weight: 500; }
.lang-level { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.lang-bar { height: 2px; background: var(--border2); border-radius: 1px; overflow: hidden; }
.lang-fill { height: 100%; background: var(--accent); border-radius: 1px; }
.about-right { display: flex; flex-direction: column; gap: 1.25rem; }
.about-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.about-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); font-family: var(--mono); font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.about-card-name { font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.about-card-role { font-size: 12px; color: var(--accent); font-family: var(--mono); margin-bottom: 1.25rem; }
.about-card-info { text-align: left; display: flex; flex-direction: column; gap: 0.6rem; }
.info-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.info-row svg { color: var(--text3); flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-item { background: var(--bg3); padding: 1.25rem; }
.stat-num { font-family: var(--serif); font-size: 2.25rem; color: var(--accent); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text3); margin-top: 5px; letter-spacing: 0.04em; }

/* ── STACK ── */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stack-item { background: var(--bg); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 14px; transition: background 0.2s; }
.stack-item:hover { background: var(--bg4); }
.stack-icon { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--accent); border: 1px solid var(--accent-border); border-radius: 3px; background: var(--accent-dim); }
.stack-icon-svg { min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; background: var(--bg2); flex-shrink: 0; }
.stack-name { font-size: 14px; font-weight: 500; }
.stack-type { font-size: 11px; color: var(--text3); margin-top: 2px; }
.stack-combo { margin-top: 2.5rem; border: 1px solid var(--accent-border); border-radius: var(--radius); background: var(--accent-dim); padding: 1.5rem 2rem; }
.stack-combo-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.combo-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; }
.combo-plus { font-size: 1.5rem; color: var(--accent); font-family: var(--mono); }
.combo-text { flex: 1; min-width: 200px; }
.combo-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.combo-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.25s; }
.project-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.project-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.project-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.project-card:hover .project-img { transform: scale(1.04); }
.project-img-placeholder { width: 100%; height: 100%; background: var(--bg4); display: flex; align-items: flex-end; padding: 1rem; font-family: var(--mono); font-size: 11px; color: var(--text3); background-image: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(255,255,255,0.015) 24px, rgba(255,255,255,0.015) 25px); }
.project-overlay { position: absolute; inset: 0; background: rgba(12,14,15,0.75); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); text-decoration: none; border: 1px solid var(--accent-border); padding: 8px 20px; border-radius: 2px; transition: background 0.2s; }
.overlay-btn:hover { background: var(--accent-dim); }
.project-body { padding: 1.5rem; }
.project-meta { margin-bottom: 0.75rem; }
.project-company { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--text3); }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.85rem; }
.project-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.6rem; }
.project-desc { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 1.25rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; }
.project-link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text2); text-decoration: none; padding: 6px 13px; border: 1px solid var(--border); border-radius: 2px; transition: all 0.2s; }
.project-link:hover { color: var(--accent); border-color: var(--accent-border); }
.project-link.featured { color: var(--accent); border-color: var(--accent-border); }

/* ── TIMELINE ── */
.timeline { max-width: 740px; position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 2.75rem; }
.timeline-dot { position: absolute; left: -2rem; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border2); transform: translateX(-3px); }
.timeline-item.current .timeline-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.timeline-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 0.4rem; }
.timeline-role { font-size: 1rem; font-weight: 500; margin-bottom: 3px; }
.timeline-company { font-size: 13px; color: var(--accent); margin-bottom: 0.85rem; }
.timeline-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.timeline-list li { font-size: 13px; color: var(--text2); padding-left: 1.1rem; position: relative; line-height: 1.55; }
.timeline-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 11px; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── CONTACT ── */
.contact-wrap { max-width: 620px; }
.contact-intro { font-size: 1rem; color: var(--text2); font-weight: 300; line-height: 1.75; margin-bottom: 2.5rem; }
.alert-success { display: flex; align-items: center; gap: 10px; background: rgba(240,192,64,0.08); border: 1px solid var(--accent-border); color: var(--accent); font-size: 13px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text3); }
.form-group input, .form-group textarea { background: var(--bg3); border: 1px solid var(--border); color: var(--text); font-family: var(--sans); font-size: 14px; padding: 11px 15px; border-radius: var(--radius); outline: none; resize: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-border); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text3); }
.form-group.has-error input, .form-group.has-error textarea { border-color: rgba(240,96,80,0.4); }
.form-error { font-size: 11px; color: #f06050; margin-top: 3px; }
.contact-links { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1.5rem; }
.contact-link { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text2); text-decoration: none; transition: color 0.2s; }
.contact-link:hover { color: var(--accent); }

/* ── FOOTER ── */
.footer { padding: 2rem clamp(1.25rem, 5vw, 3rem); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-text { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { font-family: var(--mono); font-size: 11px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-top { font-family: var(--mono); font-size: 11px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-top:hover { color: var(--accent); }

/* ── CTA ── */
.cta-wrap { max-width: 600px; padding: 2rem 0; }
.cta-sub { font-size: 1rem; color: var(--text2); font-weight: 300; line-height: 1.75; margin: 1rem 0 2rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── PAGES ── */
.page-section { padding: calc(58px + 4rem) 0 5rem; min-height: 100vh; }
.page-header { margin-bottom: 3.5rem; max-width: 700px; }
.page-intro { font-size: 1rem; color: var(--text2); font-weight: 300; line-height: 1.75; margin-top: 1rem; max-width: 560px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.map-label { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.map-container { width: 100%; height: 420px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* ── LIGHT SECTIONS ── */
.section-light { background: var(--bg-light); color: var(--text-dark); }
.section-light .section-label { color: var(--accent2); }
.section-light .section-title { color: var(--text-dark); }
.section-light .page-intro { color: var(--text-dark2); }
.section-light .stack-grid { background: var(--border-light); border-color: var(--border-light); }
.section-light .stack-item { background: #fff; border-color: var(--border-light); }
.section-light .stack-item:hover { background: var(--bg-light2); }
.section-light .stack-name { color: var(--text-dark); }
.section-light .stack-type { color: var(--text-dark2); }
.section-light .stack-icon-svg { background: #fff; border-color: var(--border-light); }
.section-light .combo-title { color: var(--text-dark); }
.section-light .combo-desc { color: var(--text-dark2); }
.section-light .cta-sub { color: var(--text-dark2); }
.section-light .btn-outline { color: var(--text-dark); border-color: rgba(0,0,0,0.2); }
.section-light .btn-outline:hover { background: rgba(0,0,0,0.05); }
.section-light .form-group label { color: var(--text-dark2); }
.section-light .form-group input, .section-light .form-group textarea { background: #fff; border-color: var(--border-light); color: var(--text-dark); }
.section-light .contact-link { color: var(--text-dark2); }
.section-light .contact-link:hover { color: var(--accent2); }
.section-light .map-label { color: var(--accent2); }
.section-light .map-container { border-color: var(--border-light); }

/* ── EMAIL MODAL ── */
.email-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.email-modal-overlay.open { opacity: 1; pointer-events: all; }
.email-modal { background: var(--bg3); border: 1px solid var(--border2); border-radius: 12px; padding: 2.5rem; max-width: 420px; width: 90%; position: relative; transform: translateY(20px); transition: transform 0.25s; text-align: center; }
.email-modal-overlay.open .email-modal { transform: translateY(0); }
.email-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text3); cursor: pointer; padding: 4px; transition: color 0.2s; }
.email-modal-close:hover { color: var(--text); }
.email-modal-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.email-modal-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.5rem; }
.email-modal-sub { font-size: 13px; color: var(--text2); margin-bottom: 1.75rem; }
.email-modal-btn { margin-bottom: 1rem; }
.email-modal-direct { font-size: 12px; color: var(--text3); }
.email-modal-direct strong { color: var(--accent); }

/* ── CURSOR ── */
.cursor-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: transform 0.1s ease, background 0.2s; }
.cursor-ring { width: 32px; height: 32px; border: 1.5px solid var(--accent); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: left 0.08s ease, top 0.08s ease, width 0.2s, height 0.2s, border-color 0.2s; opacity: 0.6; }
.cursor-ring.hover { width: 48px; height: 48px; border-color: var(--accent2); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-container { height: 300px; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

/* ── CERTS CAROUSEL ── */
.certs-section { margin-top: 3rem; }
.carousel-outer { display: flex; align-items: center; gap: 1rem; }
.carousel-viewport { flex: 1; overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; gap: 20px; transition: transform 0.45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.cert-card { min-width: 220px; max-width: 220px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; transition: border-color 0.2s; }
.cert-card:hover { border-color: var(--accent-border); }
.cert-img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.cert-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-img-placeholder { width: 100%; height: 100%; background: var(--bg4); display: flex; align-items: center; justify-content: center; color: var(--text3); }
.cert-body { padding: 1rem; }
.cert-platform { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 4px; }
.cert-title { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.cert-year { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-bottom: 8px; }
.cert-link { font-family: var(--mono); font-size: 10px; color: var(--accent); text-decoration: none; }
.cert-link:hover { text-decoration: underline; }
.carousel-btn { width: 36px; height: 36px; background: var(--bg3); border: 1px solid var(--border); border-radius: 50%; color: var(--text2); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.2s; }
.carousel-btn:hover { border-color: var(--accent-border); color: var(--accent); }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 1.25rem; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border2); cursor: pointer; transition: background 0.2s; border: none; padding: 0; }
.carousel-dot.active { background: var(--accent); }

/* ══ BOTÓN FLOTANTE CONTACTO ══ */
.float-contact {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  display: flex; align-items: center; gap: 10px;
  background: var(--accent); color: #0c0e0f;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  padding: 12px 20px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(240,192,64,0.35);
  transition: all 0.25s;
  animation: fadeUp 0.6s 1s ease both;
}
.float-contact:hover {
  background: var(--accent2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(240,192,64,0.45);
}
.float-contact span {
  display: inline-block;
  max-width: 0; overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease;
}
.float-contact:hover span { max-width: 120px; }

/* ══ NAV DISPONIBLE ══ */
.nav-available {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text2); text-decoration: none;
  border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 20px;
  transition: all 0.2s;
}
.nav-available:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }
.nav-available-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  animation: blink 2s infinite;
}

/* ══ FLOAT WHATSAPP ══ */
.float-contact {
  background: #25D366;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
}
.float-contact:hover {
  background: #1ebe5d;
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

/* ══ BLOG ══ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.blog-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.25s; }
.blog-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.blog-card-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-placeholder { aspect-ratio: 16/9; background: var(--bg4); display: flex; align-items: center; justify-content: center; color: var(--text3); }
.blog-card-body { padding: 1.5rem; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.blog-date { font-family: var(--mono); font-size: 10px; color: var(--text3); }
.blog-card-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.6rem; }
.blog-card-excerpt { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 1.25rem; }
.blog-card-link { font-family: var(--mono); font-size: 11px; color: var(--accent); text-decoration: none; letter-spacing: 0.04em; }
.blog-card-link:hover { text-decoration: underline; }
.blog-empty { text-align: center; padding: 4rem 0; color: var(--text2); }
.blog-social { margin-top: 2rem; }
.blog-social-links { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }
.blog-pagination { margin-top: 2rem; display: flex; justify-content: center; }

/* ── POST ── */
.blog-post-header { max-width: 760px; margin: 0 auto 3rem; }
.blog-post-meta { display: flex; align-items: center; gap: 10px; margin: 1rem 0; }
.blog-post-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
.blog-post-excerpt { font-size: 1.1rem; color: var(--text2); font-weight: 300; line-height: 1.7; }
.blog-post-cover { max-width: 760px; margin: 0 auto 3rem; border-radius: var(--radius); overflow: hidden; }
.blog-post-cover img { width: 100%; object-fit: cover; }
.blog-post-content { max-width: 760px; margin: 0 auto; font-size: 1rem; line-height: 1.8; color: var(--text2); }
.blog-post-content p { margin-bottom: 1.5rem; }

/* ── SHARE ── */
.blog-share { max-width: 760px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); }
.blog-share-title { font-family: var(--mono); font-size: 11px; color: var(--text3); letter-spacing: 0.1em; margin-bottom: 1rem; }
.blog-share-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; padding: 8px 16px; border-radius: var(--radius); text-decoration: none; transition: all 0.2s; color: #fff; }
.share-linkedin  { background: #0A66C2; }
.share-facebook  { background: #1877F2; }
.share-twitter   { background: #000; }
.share-whatsapp  { background: #25D366; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ── RELATED ── */
.blog-related { max-width: 760px; margin: 3rem auto 0; }
.blog-related-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1.5rem; }
.blog-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.blog-related-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; transition: border-color 0.2s; display: flex; flex-direction: column; gap: 6px; }
.blog-related-card:hover { border-color: var(--accent-border); }
.blog-related-name { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4; }
.blog-related-date { font-family: var(--mono); font-size: 10px; color: var(--text3); }

/* =============================================
   STACK SECTION — css que va en public/css/app.css
   Reemplaza / actualiza el bloque de .stack-*
   ============================================= */

/* ── Sección base ── */
.stack-section {
    position: relative;
    padding: 100px 0 120px;
    background-color: var(--bg-light);          /* #f5f4f0 */
    overflow: hidden;
}

/* ── Cuadrícula decorativa de fondo ── */
.stack-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right,  rgba(193, 154, 58, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(193, 154, 58, 0.18) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    z-index: 0;
}

/* Fade suave en los bordes para que no corte raro */
.stack-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%,
            transparent 40%,
            var(--bg-light) 100%);
}

/* ── Container ── */
.stack-section .container {
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.stack-section .section-header {
    margin-bottom: 60px;
}

/* ── Grid principal — 4 columnas ── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Tarjeta flip ── */
.stack-card {
    perspective: 800px;
    height: 160px;              /* Más alta que antes */
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Ocultas (filas extra) */
.stack-card.stack-hidden {
    display: none;
}

/* Animación de entrada al mostrarse */
.stack-card.stack-reveal {
    animation: stackFadeIn 0.35s ease forwards;
}
@keyframes stackFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Contenedor interno flip ── */
.stack-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}

.stack-card:hover .stack-card-inner,
.stack-card:focus-within .stack-card-inner {
    transform: rotateY(180deg);
}

/* ── Caras de la tarjeta ── */
.stack-card-front,
.stack-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Frente */
.stack-card-front {
    background: #ffffff;
    border: 1.5px solid rgba(193, 154, 58, 0.25);
    box-shadow:
        0 2px 8px rgba(0,0,0,0.06),
        0 0 0 0 rgba(193, 154, 58, 0);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.stack-card:hover .stack-card-front {
    box-shadow:
        0 8px 28px rgba(0,0,0,0.10),
        0 0 0 2px rgba(193, 154, 58, 0.35);
    border-color: rgba(193, 154, 58, 0.5);
}

/* Reverso */
.stack-card-back {
    background: linear-gradient(135deg, #1a1c1e 0%, #2a2d31 100%);
    border: 1.5px solid var(--accent);
    transform: rotateY(180deg);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* ── Ícono en el frente ── */
.stack-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    transition: transform 0.3s ease;
}

.stack-card:hover .stack-icon img {
    transform: scale(1.08);
}

/* ── Nombre ── */
.stack-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1c1e;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

/* ── Badge "Conocimiento" (frente) ── */
.stack-badge {
    font-size: 0.62rem;
    font-weight: 500;
    color: #888;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Reverso: ícono + nombre + nivel ── */
.stack-icon-back img {
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(240,192,64,0.4));
}

.stack-name-back {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.stack-level {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border: 1px solid rgba(240,192,64,0.4);
    border-radius: 20px;
}

/* ── Botón Ver más / Ver menos ── */
.stack-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.stack-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border: 2px solid #1a1c1e;
    border-radius: 50px;
    background: transparent;
    color: #1a1c1e;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.stack-toggle-btn:hover {
    background: #1a1c1e;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stack-toggle-btn:active {
    transform: translateY(0);
}

/* Ícono grid: animación de "pulso" al hover */
.stack-toggle-btn .icon-grid {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stack-toggle-btn:hover .icon-grid {
    transform: rotate(90deg) scale(1.15);
}

/* Ícono collapse (chevron): rebota al hover */
.stack-toggle-btn .icon-collapse {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stack-toggle-btn:hover .icon-collapse {
    transform: translateY(-3px);
}

/* Estado expandido del botón */
.stack-toggle-btn[aria-expanded="true"] {
    background: #1a1c1e;
    color: var(--accent);
    border-color: #1a1c1e;
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .stack-card {
        height: 140px;
    }
}

@media (max-width: 540px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stack-card {
        height: 130px;
    }
    .stack-icon img {
        width: 40px;
        height: 40px;
    }
}
/* =============================================
   CERTIFICADOS — carrusel + modal
   ============================================= */
.certs-section-wrap { position: relative; padding: 100px 0 80px; background-color: var(--bg-light); overflow: hidden; }
.certs-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(193,154,58,0.13) 1px, transparent 1px), linear-gradient(to bottom, rgba(193,154,58,0.13) 1px, transparent 1px); background-size: 52px 52px; pointer-events: none; z-index: 0; }
.certs-grid-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, var(--bg-light) 100%); }
.certs-section-wrap .container { position: relative; z-index: 1; }

.cert-card { min-width: 240px; max-width: 240px; background: #ffffff; border: 1.5px solid rgba(193,154,58,0.2); border-radius: 16px; overflow: hidden; flex-shrink: 0; cursor: pointer; transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.cert-card:hover { border-color: rgba(193,154,58,0.55); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.10); }

.cert-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0ede6; }
.cert-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.cert-card:hover .cert-img { transform: scale(1.04); }
.cert-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #bbb; }

.cert-overlay { position: absolute; inset: 0; background: rgba(10,12,13,0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.25s ease; }
.cert-card:hover .cert-overlay { opacity: 1; }

.cert-body { padding: 14px 16px 16px; border-top: 1px solid rgba(193,154,58,0.15); }
.cert-platform { font-family: var(--mono, monospace); font-size: 10px; color: var(--accent, #f0c040); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.cert-title { font-size: 13px; font-weight: 600; color: #1a1c1e; line-height: 1.4; margin-bottom: 4px; }
.cert-year { font-family: var(--mono, monospace); font-size: 10px; color: #999; }

.carousel-outer { display: flex; align-items: center; gap: 16px; }
.carousel-viewport { flex: 1; overflow: hidden; border-radius: 16px; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.carousel-btn { width: 42px; height: 42px; background: #fff; border: 1.5px solid rgba(193,154,58,0.3); border-radius: 50%; color: #1a1c1e; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.2s ease; }
.carousel-btn:hover { background: #1a1c1e; border-color: #1a1c1e; color: var(--accent, #f0c040); transform: scale(1.05); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(193,154,58,0.25); cursor: pointer; border: none; padding: 0; transition: background 0.2s, transform 0.2s; }
.carousel-dot.active { background: var(--accent, #f0c040); transform: scale(1.3); }

/* Modal */
.cert-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; backdrop-filter: blur(4px); }
.cert-modal-overlay.active { opacity: 1; pointer-events: all; }
.cert-modal-box { background: #1a1c1e; border: 1px solid rgba(240,192,64,0.25); border-radius: 20px; width: 100%; max-width: 860px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; transform: scale(0.95) translateY(10px); transition: transform 0.25s ease; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.cert-modal-overlay.active .cert-modal-box { transform: scale(1) translateY(0); }
.cert-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.cert-modal-title { font-size: 0.9rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.cert-modal-actions { display: flex; align-items: center; gap: 12px; }
.cert-modal-download { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(240,192,64,0.3); color: var(--accent, #f0c040); text-decoration: none; transition: background 0.2s; }
.cert-modal-download:hover { background: rgba(240,192,64,0.1); }
.cert-modal-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s; }
.cert-modal-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cert-modal-body { flex: 1; overflow: hidden; min-height: 0; }
.cert-modal-body iframe { width: 100%; height: 100%; min-height: 65vh; border: none; display: block; }

/* =============================================
   CERTS SPOTLIGHT — carrusel con tarjeta central grande
   ============================================= */

/* ── Filtros ── */
.certs-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.certs-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(193,154,58,0.3);
    background: transparent;
    color: #666;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.certs-filter-btn:hover {
    border-color: var(--accent);
    color: #1a1c1e;
}
.certs-filter-btn.active {
    background: #1a1c1e;
    border-color: #1a1c1e;
    color: var(--accent);
}

/* ── Wrap del spotlight ── */
.certs-spotlight-wrap {
    position: relative;
    padding: 20px 60px 40px;
    overflow: hidden;
}

/* ── Track ── */
.certs-spotlight-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: none;
    min-height: 420px;
}

/* ── Tarjeta base ── */
.certs-spotlight-card {
    flex-shrink: 0;
    width: 220px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.45;
    transform: scale(0.82) translateY(20px);
    filter: blur(1px);
    pointer-events: none;
}
.certs-spotlight-card.hidden-card {
    display: none;
}

/* Tarjeta activa — grande al centro */
.certs-spotlight-card.active {
    width: 320px;
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: none;
    pointer-events: all;
    z-index: 2;
}

/* Tarjetas adyacentes (prev/next) */
.certs-spotlight-card.adjacent {
    opacity: 0.65;
    transform: scale(0.88) translateY(10px);
    filter: blur(0.5px);
    pointer-events: none;
}

/* ── Inner ── */
.csc-inner {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid rgba(193,154,58,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.certs-spotlight-card.active .csc-inner {
    border-color: rgba(193,154,58,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 0 0 2px rgba(193,154,58,0.2);
}

/* ── Imagen ── */
.csc-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0ede6;
}
.csc-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.certs-spotlight-card.active:hover .csc-img-wrap img {
    transform: scale(1.03);
}
.csc-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #ccc;
}

/* Overlay con botón */
.csc-overlay {
    position: absolute; inset: 0;
    background: rgba(10,12,13,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.certs-spotlight-card.active:hover .csc-overlay { opacity: 1; }
.csc-open-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    background: var(--accent); color: #1a1c1e;
    border: none; border-radius: 50px;
    font-size: 0.82rem; font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.csc-open-btn:hover { transform: scale(1.05); }

/* Badge destacado */
.csc-badge-star {
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--accent); color: #1a1c1e;
    font-size: 0.65rem; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    letter-spacing: 0.04em; text-transform: uppercase;
}

/* ── Body ── */
.csc-body {
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(193,154,58,0.12);
}
.csc-platform {
    font-family: var(--mono, monospace);
    font-size: 10px; color: var(--accent);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 4px;
}
.csc-title {
    font-size: 13px; font-weight: 600; color: #1a1c1e;
    line-height: 1.4; margin: 0 0 4px;
}
.certs-spotlight-card.active .csc-title { font-size: 15px; }
.csc-year {
    font-family: var(--mono, monospace);
    font-size: 10px; color: #999;
}

/* ── Navegación ── */
.csc-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px;
    background: #fff; border: 1.5px solid rgba(193,154,58,0.3);
    border-radius: 50%; color: #1a1c1e;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.csc-nav:hover {
    background: #1a1c1e; border-color: #1a1c1e;
    color: var(--accent); transform: translateY(-50%) scale(1.08);
}
.csc-prev { left: 0; }
.csc-next { right: 0; }

/* ── Dots ── */
.csc-dots {
    display: flex; gap: 8px;
    justify-content: center; margin-top: 8px;
}
.csc-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(193,154,58,0.25);
    border: none; padding: 0; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.csc-dot.active {
    background: var(--accent); transform: scale(1.4);
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .certs-spotlight-wrap { padding: 20px 44px 30px; }
    .certs-spotlight-card.active { width: 260px; }
    .certs-spotlight-card { width: 180px; }
}

/* ── Nav Home Dropdown ── */
.nav-home-wrap { position: relative; }
.nav-home-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; color: rgba(255,255,255,0.85);
  padding: 7px 14px; border-radius: 20px;
  transition: all 0.2s ease; font-size: 0.82rem; font-weight: 500;
}
.nav-home-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(240,192,64,0.4);
  color: var(--accent, #f0c040);
}
.nav-home-btn[aria-expanded="true"] {
  background: rgba(240,192,64,0.1);
  border-color: rgba(240,192,64,0.5);
  color: var(--accent, #f0c040);
}
.nav-home-label { letter-spacing: 0.02em; }
.nav-home-caret { transition: transform 0.2s ease; opacity: 0.6; flex-shrink: 0; }
.nav-home-btn[aria-expanded="true"] .nav-home-caret { transform: rotate(180deg); opacity: 1; }

.nav-home-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #1a1c1e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 8px; min-width: 220px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.nav-home-dropdown.open {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-home-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  text-decoration: none; transition: background 0.15s;
  color: #fff;
}
.nav-home-option:hover { background: rgba(255,255,255,0.06); }
.nav-home-option-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-home-option-icon-dcc {
  background: linear-gradient(135deg, rgba(232,112,10,0.2), rgba(0,61,165,0.2));
  border: 1px solid rgba(232,112,10,0.3);
  width: 44px; height: 44px; border-radius: 12px;
}
.nav-home-option-title { font-size: 0.85rem; font-weight: 600; }
.nav-home-option-sub   { font-size: 0.7rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.nav-home-option-dcc .nav-home-option-title { color: #E8700A; }
.nav-home-option-dcc:hover { background: rgba(232,112,10,0.08) !important; }

/* Separador entre opciones del dropdown */
.nav-home-option + .nav-home-option {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px; padding-top: 12px;
}