/* ==========================================
   CERTIFICATES PAGE - FELIPE HEIDE PORTFOLIO
   ========================================== */

/* === VARIABLES === */
:root {
  --bg-a: #03020a;
  --bg-b: #060617;
  --bg-c: #0b0b12;
  --accent1: #6dd3ff;
  --accent2: #b792ff;
  --accent3: #ff91d9;
}

/* === SCROLLBAR ESPACIAL === */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(140,200,255,0.95) rgba(12,14,20,0.6);
}

*::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    radial-gradient(closest-side, rgba(255,255,255,0.02), transparent 40%),
    linear-gradient(180deg, rgba(6,8,15,0.9), rgba(18,20,30,0.85));
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.6);
  margin: 4px;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.95) 1px, transparent 2px),
    radial-gradient(circle at 65% 60%, rgba(255,255,255,0.75) 1px, transparent 3px),
    linear-gradient(120deg, rgba(80,60,200,0.95), rgba(0,180,220,0.92));
  border: 3px solid rgba(8,10,16,0.65);
  box-shadow:
    0 0 12px rgba(0,150,220,0.18),
    inset 0 1px 6px rgba(255,255,255,0.06);
  animation: space-pulse 3.6s ease-in-out infinite;
}

@keyframes space-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0,150,220,0.12);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(0,150,220,0.22);
  }
}

/* === BASE STYLES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(140deg, var(--bg-a) 0%, var(--bg-b) 50%, var(--bg-c) 100%);
  color: #e8e8f0;
  position: relative;
}

/* Overlay de profundidad */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  background:
    radial-gradient(800px 500px at 10% 20%, rgba(109,211,255,0.03), transparent 10%),
    radial-gradient(700px 500px at 90% 80%, rgba(183,146,255,0.02), transparent 12%);
  animation: bgShift 20s linear infinite;
}

@keyframes bgShift {
  0%, 100% {
    transform: translate3d(0,0,0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate3d(-2%,2%,0) scale(1.01);
    opacity: 0.96;
  }
}

/* === STARS STAGE === */
.stage {
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  perspective: 900px;
  z-index: 1;
  will-change: transform;
}

/* === HEADER NAVIGATION === */
.certificates-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(109, 211, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.logo:hover .logo-text {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent1);
}

.nav-link:hover::after {
  width: 100%;
}

/* === HERO SECTION === */
.hero-certificates {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 2rem 0;
  background: linear-gradient(135deg, #6dd3ff 0%, #b792ff 35%, #ff91d9 70%, #6dd3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradientFlow 8s ease infinite;
}

.hero-title span {
  display: inline-block;
  animation: letterFloat 3s ease-in-out infinite;
}

.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.2s; }
.hero-title span:nth-child(3) { animation-delay: 0.3s; }
.hero-title span:nth-child(4) { animation-delay: 0.4s; }
.hero-title span:nth-child(5) { animation-delay: 0.5s; }
.hero-title span:nth-child(6) { animation-delay: 0.6s; }
.hero-title span:nth-child(7) { animation-delay: 0.7s; }
.hero-title span:nth-child(8) { animation-delay: 0.8s; }
.hero-title span:nth-child(9) { animation-delay: 0.9s; }
.hero-title span:nth-child(10) { animation-delay: 1.0s; }
.hero-title span:nth-child(11) { animation-delay: 1.1s; }
.hero-title span:nth-child(12) { animation-delay: 1.2s; }

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes letterFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(109, 211, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent1);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}

@keyframes scroll {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

/* === CERTIFICATES SHOWCASE === */
.certificates-showcase {
  position: relative;
  z-index: 10;
  padding: 6rem 2rem;
}

.certificates-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* === CERTIFICATE ITEM === */
.certificate-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 10rem;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease forwards;
}

.certificate-item:nth-child(1) { animation-delay: 0.1s; }
.certificate-item:nth-child(2) { animation-delay: 0.2s; }
.certificate-item:nth-child(3) { animation-delay: 0.3s; }
.certificate-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alternar dirección */
.certificate-item.reverse {
  direction: rtl;
}

.certificate-item.reverse > * {
  direction: ltr;
}

/* === CERTIFICATE VISUAL === */
.certificate-visual {
  position: relative;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.certificate-item:hover .certificate-visual {
  transform: scale(1.05) rotate(1deg);
}

.certificate-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.certificate-item:hover .certificate-img {
  transform: scale(1.02);
  box-shadow: 0 30px 80px rgba(109, 211, 255, 0.3);
}

.certificate-overlay {
  position: absolute;
  top: 2rem;
  right: 2rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

.certificate-item:hover .certificate-overlay {
  opacity: 1;
  transform: translateY(0);
}

.badge-excellence,
.badge-verified {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(11, 11, 18, 0.9);
  backdrop-filter: blur(15px);
  border: 2px solid var(--accent1);
  border-radius: 50px;
  color: var(--accent1);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(109, 211, 255, 0.3);
}

.badge-excellence {
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.badge-excellence svg,
.badge-verified svg {
  flex-shrink: 0;
}

/* === CERTIFICATE INFO === */
.certificate-info {
  padding: 2rem;
  position: relative;
  background: rgba(11, 11, 18, 0.4);
  backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(109, 211, 255, 0.1);
  border-radius: 20px;
  transition: all 0.5s ease;
}

.certificate-item:hover .certificate-info {
  background: rgba(11, 11, 18, 0.6);
  border-color: rgba(109, 211, 255, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.certificate-number {
  font-size: 6rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(109, 211, 255, 0.2);
  position: absolute;
  top: -2rem;
  left: 0;
  z-index: -1;
  line-height: 1;
}

.certificate-institution {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent2);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.certificate-institution svg {
  color: var(--accent2);
  filter: drop-shadow(0 0 8px rgba(183, 146, 255, 0.5));
}

.certificate-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.certificate-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: width 0.5s ease;
}

.certificate-item:hover .certificate-title::after {
  width: 120px;
}

.certificate-description {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 2rem 0;
}

/* === CERTIFICATE SKILLS === */
.certificate-skills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  padding: 0.5rem 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item:hover {
  transform: translateX(10px);
  color: var(--accent1);
}

.skill-item svg {
  flex-shrink: 0;
  color: var(--accent1);
  filter: drop-shadow(0 0 8px rgba(109, 211, 255, 0.5));
}

/* === CERTIFICATE TECH === */
.certificate-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.tech-badge {
  padding: 0.6rem 1.2rem;
  background: rgba(183, 146, 255, 0.1);
  border: 1px solid rgba(183, 146, 255, 0.3);
  border-radius: 20px;
  color: var(--accent2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-badge:hover {
  background: rgba(183, 146, 255, 0.25);
  border-color: rgba(183, 146, 255, 0.8);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(183, 146, 255, 0.3);
  animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(183, 146, 255, 0.5));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(183, 146, 255, 0.8));
  }
}

/* === CERTIFICATE ACTIONS === */
.certificate-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.cert-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cert-btn.primary {
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.15), rgba(183, 146, 255, 0.15));
  border: 2px solid rgba(109, 211, 255, 0.5);
  color: var(--accent1);
}

.cert-btn.primary::before {
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.3), rgba(183, 146, 255, 0.3));
}

.cert-btn.primary:hover {
  border-color: var(--accent1);
  box-shadow:
    0 15px 40px rgba(109, 211, 255, 0.4),
    0 0 40px rgba(109, 211, 255, 0.3);
  transform: translateY(-5px) scale(1.05);
}

.cert-btn:hover::before {
  opacity: 1;
}

.cert-btn svg {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.cert-btn:hover svg {
  transform: scale(1.2) rotate(5deg);
}

/* === STATISTICS SECTION === */
.stats-section {
  position: relative;
  z-index: 10;
  padding: 6rem 2rem;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.stat-item {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(11, 11, 18, 0.4);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(109, 211, 255, 0.2);
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item:hover {
  transform: translateY(-15px);
  border-color: rgba(109, 211, 255, 0.6);
  box-shadow:
    0 30px 70px rgba(109, 211, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* === CTA SECTION === */
.cta-section {
  position: relative;
  z-index: 10;
  padding: 8rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 3rem;
  background: rgba(11, 11, 18, 0.6);
  border: 2px solid rgba(109, 211, 255, 0.3);
  border-radius: 32px;
  backdrop-filter: blur(25px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
  position: relative;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(109, 211, 255, 0.2) 0%, transparent 70%);
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cta-content:hover {
  transform: translateY(-15px);
  border-color: rgba(109, 211, 255, 0.6);
  box-shadow:
    0 40px 100px rgba(109, 211, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta-content:hover::before {
  opacity: 1;
  animation: ripple 2s ease infinite;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-text {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 3rem 0;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-btn.primary {
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.2), rgba(183, 146, 255, 0.2));
  border: 2px solid rgba(109, 211, 255, 0.6);
  color: var(--accent1);
}

.cta-btn.primary::before {
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.4), rgba(183, 146, 255, 0.4));
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid rgba(183, 146, 255, 0.5);
  color: var(--accent2);
}

.cta-btn.secondary::before {
  background: linear-gradient(135deg, rgba(183, 146, 255, 0.3), rgba(255, 145, 217, 0.3));
}

.cta-btn:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow:
    0 20px 50px rgba(109, 211, 255, 0.5),
    0 0 50px rgba(109, 211, 255, 0.4);
}

.cta-btn:hover::before {
  opacity: 1;
}

.cta-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.cta-btn:hover svg {
  transform: scale(1.2) rotate(10deg);
}

.cta-btn:active {
  animation: buttonPulse 0.6s ease;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(109, 211, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(109, 211, 255, 0);
  }
}

/* === FOOTER === */
.certificates-footer {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(109, 211, 255, 0.1);
  background: rgba(11, 11, 18, 0.8);
  backdrop-filter: blur(20px);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 211, 255, 0.08);
  border: 2px solid rgba(109, 211, 255, 0.3);
  border-radius: 50%;
  color: var(--accent1);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-links a:hover {
  background: rgba(109, 211, 255, 0.2);
  border-color: rgba(109, 211, 255, 0.8);
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 10px 25px rgba(109, 211, 255, 0.4);
}

.footer-links a svg {
  transition: transform 0.3s ease;
}

.footer-links a:hover svg {
  transform: rotate(360deg);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .certificate-item,
  .certificate-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 3rem;
  }

  .certificate-visual {
    height: 400px;
  }

  .certificate-number {
    font-size: 4rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-certificates {
    padding: 6rem 1.5rem 3rem;
  }

  .certificates-showcase {
    padding: 4rem 1.5rem;
  }

  .certificate-item {
    margin-bottom: 6rem;
  }

  .certificate-visual {
    height: 350px;
  }

  .certificate-info {
    padding: 1.5rem;
  }

  .certificate-number {
    font-size: 3rem;
    top: -1rem;
  }

  .certificate-skills {
    gap: 0.8rem;
  }

  .skill-item {
    font-size: 0.95rem;
  }

  .certificate-actions {
    gap: 1rem;
  }

  .cert-btn {
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
  }

  .stats-section {
    padding: 4rem 1.5rem;
  }

  .stats-container {
    gap: 2rem;
  }

  .stat-number {
    font-size: 3rem;
  }

  .cta-section {
    padding: 5rem 1.5rem;
  }

  .cta-content {
    padding: 3rem 2rem;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .hero-certificates {
    padding: 5rem 1rem 2rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .certificates-showcase {
    padding: 3rem 1rem;
  }

  .certificate-item {
    margin-bottom: 4rem;
    gap: 2rem;
  }

  .certificate-visual {
    height: 280px;
  }

  .certificate-image-container {
    padding: 1rem;
  }

  .certificate-overlay {
    top: 1rem;
    right: 1rem;
  }

  .badge-excellence,
  .badge-verified {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .certificate-info {
    padding: 1rem;
  }

  .certificate-number {
    font-size: 2.5rem;
    top: -0.5rem;
  }

  .certificate-institution {
    font-size: 0.9rem;
  }

  .certificate-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .certificate-description {
    font-size: 1rem;
  }

  .certificate-skills {
    gap: 0.6rem;
  }

  .skill-item {
    font-size: 0.9rem;
  }

  .certificate-tech {
    gap: 0.6rem;
  }

  .tech-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .certificate-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cert-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .stats-section {
    padding: 3rem 1rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 2rem 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.95rem;
  }

  .cta-section {
    padding: 4rem 1rem;
  }

  .cta-content {
    padding: 2.5rem 1.5rem;
  }

  .cta-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .cta-text {
    font-size: 1.05rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 2rem;
    font-size: 1rem;
  }

  .certificates-footer {
    padding: 2rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before,
  .wheel,
  .scroll-indicator {
    animation: none !important;
  }

  .hero-title {
    animation: none !important;
  }

  .hero-title span {
    animation: none !important;
  }
}

/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === EFECTOS ADICIONALES === */

/* Efecto de brillo en los números */
@keyframes numberGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(109, 211, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 40px rgba(109, 211, 255, 0.6);
  }
}

.certificate-item:hover .certificate-number {
  animation: numberGlow 2s ease-in-out infinite;
}

/* Efecto de destello en las tarjetas */
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.certificate-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.8s ease;
  z-index: 2;
}

.certificate-item:hover .certificate-visual::before {
  animation: shine 1.5s ease;
}

/* Mejoras visuales */
.certificate-visual,
.certificate-info {
  will-change: transform;
}

.certificate-item:not(:hover) .certificate-visual,
.certificate-item:not(:hover) .certificate-info {
  will-change: auto;
}

/* Soporte para pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
  .cert-btn,
  .cta-btn,
  .nav-link {
    min-height: 44px;
    min-width: 44px;
  }

  .tech-badge {
    min-height: 36px;
  }

  .footer-links a {
    width: 48px;
    height: 48px;
  }
}

/* Print styles */
@media print {
  .stage,
  body::before,
  .certificates-header,
  .scroll-indicator,
  .stats-section,
  .cta-section,
  .certificates-footer {
    display: none !important;
  }

  .certificate-item {
    page-break-inside: avoid;
    margin-bottom: 3rem;
  }

  .certificate-visual {
    height: 300px;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .certificate-title,
  .hero-title {
    color: black !important;
    -webkit-text-fill-color: black !important;
  }
}

/* Mejoras de contraste para accesibilidad */
@media (prefers-contrast: high) {
  .nav-link {
    color: rgba(255, 255, 255, 0.95);
  }

  .certificate-description {
    color: rgba(255, 255, 255, 0.9);
  }

  .skill-item {
    color: rgba(255, 255, 255, 0.95);
  }

  .tech-badge {
    border-width: 2px;
  }

  .cert-btn {
    border-width: 3px;
  }
}

/* === FIN DEL STYLESHEET === */
