:root {
  --bg: #0f172a;
  --bg-dark: #020617;
  --bg-soft: #111827;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --white: #ffffff;
  --accent-1: #a855f7;
  --accent-2: #ec4899;
  --accent-3: #6366f1;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --container: 1200px;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-2: linear-gradient(135deg, var(--accent-3), var(--accent-1));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.02);
}

.section-dark {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2,
.about-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--white);
}

.section-tag {
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.gradient-text,
.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: var(--white);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  color: var(--muted);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 0.7rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s ease;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-left {
  top: 10%;
  left: -10%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
}

.hero-glow-right {
  bottom: 5%;
  right: -8%;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14) 0%, transparent 70%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #c084fc;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.12em;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 38rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: bold;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(168, 85, 247, 0.45);
}

.btn-outline {
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: var(--muted);
  transition: 0.25s ease;
}

.social-links a:hover {
  color: var(--white);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.hero-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.12) 48%, transparent 70%);
}

.hero-image-card {
  width: 340px;
  height: 410px;
  overflow: hidden;
  border-radius: 45% 45% 55% 55% / 36% 36% 64% 64%;
  border: 2px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.25);
  position: relative;
  z-index: 2;
  background: #1e293b;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  min-width: 120px;
  text-align: center;
}

.floating-card strong {
  display: block;
  font-size: 1.3rem;
  color: var(--white);
}

.floating-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-card-left {
  left: 0;
  bottom: 3rem;
}

.floating-card-right {
  right: 0;
  top: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content p {
  color: var(--muted);
}

.skills-grid,
.cards-grid,
.contact-grid,
.progress-grid,
.education-grid {
  display: grid;
  gap: 1.5rem;
}

.skills-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}

.skill-card,
.project-card,
.service-card,
.contact-card,
.education-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skill-card,
.service-card,
.contact-card,
.education-card {
  padding: 1.5rem;
}

.skill-card h3,
.service-card h3,
.contact-card h3,
.project-card h3,
.education-card h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.skill-card ul {
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.progress-grid {
  grid-template-columns: repeat(2, 1fr);
}

.progress-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: var(--white);
  font-size: 0.95rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
}

.cards-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  overflow: hidden;
  transition: 0.25s ease;
}

.project-card:hover,
.service-card:hover,
.contact-card:hover,
.skill-card:hover,
.education-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content p,
.service-card p,
.contact-card p,
.education-card p,
.education-card span {
  color: var(--muted);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: #d8b4fe;
  font-weight: bold;
}

.project-list {
  margin-top: 1rem;
  margin-left: 1rem;
  list-style: disc;
  color: var(--muted);
}

.project-list li {
  margin-bottom: 0.4rem;
}

.project-tech {
  margin-top: 1rem;
  color: #c084fc !important;
  font-weight: bold;
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: var(--gradient-2);
  font-size: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card a:hover {
  color: #d8b4fe;
}

.education-grid {
  grid-template-columns: repeat(2, 1fr);
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-dark);
}

.footer-content {
  text-align: center;
  display: grid;
  gap: 0.5rem;
}

.footer h2 {
  color: var(--white);
}

.footer p {
  color: var(--muted);
}

@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .cards-grid,
  .services-grid,
  .contact-grid,
  .progress-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .about-content,
  .section-header {
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-buttons,
  .social-links {
    justify-content: center;
  }

  .floating-card-left {
    left: 1rem;
    bottom: 1rem;
  }

  .floating-card-right {
    right: 1rem;
    top: 1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.98);
    border-top: 1px solid rgba(168, 85, 247, 0.18);
    display: none;
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-image-card {
    width: 280px;
    height: 340px;
  }

  .hero-ring {
    width: 300px;
    height: 300px;
  }

  .floating-card {
    min-width: 100px;
    padding: 0.8rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .logo-text {
    font-size: 0.95rem;
  }
}
.cert-logo{
  width:70px;
  margin-bottom:20px;
  transition:0.3s;
}

.cert-card:hover .cert-logo{
  transform:scale(1.1);
}

.cert-card{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;

  display: flex;
  flex-direction: column;
  align-items: center;   /* centra horizontalmente */
  text-align: center;    /* centra el texto */

  transition: 0.25s ease;
}
