
    /* ======= BASE ======= */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Sora', sans-serif;
  background: radial-gradient(circle at center, #000000, #000000);
  color: #fff;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative; /* ayuda con el scroll y fixed */
}


/* ======= NAVBAR ======= */
.navbar {
  width: 100vw;
  padding: 0.7rem 1.5rem;
  background-color: #000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-container {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}
.nav-logo img {
  height: 2.5rem;
  transition: filter 0.3s;
  filter: drop-shadow(0 0 4px #7700ff);
}

/* ======= PERFIL PRINCIPAL ======= */
.pfp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem 1rem 1rem;
  width: 100vw;
  max-width: 400px;
}
.pfp {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #7700ff;
  box-shadow: 0 0 10px #7700ff;
  margin-bottom: 1rem;
}
h1, .username {
  font-size: 2.5rem;
  text-shadow: 0 0 10px #7700ff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}



.badge-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #7700ff);
}
.verified {
  font-size: 1.2rem;
  color: #fff;
  background-color: #0000009f;
  border-radius: 50%;
  padding: 2px 6px;
  border: 2px solid #7700ff;
  box-shadow: 0 0 8px #7700ff;
}
.social-icons {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.social-icons img {
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 0 4px #7700ff);
  transition: transform 0.3s;
}
.social-icons img:hover {
  transform: scale(1.2);
}

/* ======= LINKS PRINCIPALES ======= */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90vw;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  margin-top: 0.3 ;
}
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.5rem 2rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.25rem;
  font-family: 'Sora', sans-serif;
  background: #000000;
  color: #fff;
  border: 2px solid #000000;
  box-shadow: 0 0 10px #000000;
  transition: all 0.3s;
}
.link-btn:hover {
  background: rgb(0, 0, 0);
  color: #7700ff;
  box-shadow: 0 0 20px #7700ff;
}
.button-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* ======= STACK ======= */
#stack {
  margin-top: 0.5rem;
  padding: 2rem 1rem;
  width: 100vw;
  max-width: 900px;
}
#stack h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  padding: 0;
  margin: 1.5rem 0 0 0;
  list-style: none;
  text-align: center;
}
.stack-list li {
  background-color: #7700ff;
  padding: 1rem;
  border-radius: 1rem;
  width: 100px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px #000;
}
.stack-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px #000000;
}
.stack-list img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.stack-list span {
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

/* ======= BLOG / NOTAS ======= */
.blog {
  margin-top: 2rem;
  width: 100vw;
  max-width: 900px;
  padding: 0 1rem;
}
.blog h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
  text-align: center;
}
.card {
  background: #7700ff;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgba(69, 0, 160, 0.3);
  transition: background-color 0.3s;
}
.card h3 {
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.card p {
  font-size: 1rem;
  line-height: 1.3;
}

/* ======= HERRAMIENTAS / BADGES ======= */
.tools {
  margin-top: 2rem;
  width: 100vw;
  max-width: 900px;
  padding: 0 1rem;
}
.tools h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  text-align: center;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.badge {
  background: #7700ff;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  user-select: none;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s;
}
.badge:hover {
  background-color: #7700ff;
}
.badge .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ======= SERVICIOS ======= */
.services {
  margin-top: 3rem;
  width: 100vw;
  max-width: 900px;
  padding: 0 1rem;
}
.services h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  width: 100%;
  margin: 0 auto 2rem auto;
}
.serviceicon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem auto;
  filter: drop-shadow(0 0 8px #7700ff);
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.service-card {
  perspective: 1000px;
  cursor: pointer;
  width: 250px;
  min-height: 220px;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.service-card.flipped .card-inner {
  transform: rotateY(180deg);
}
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  background: #7700ff;
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card-back {
  transform: rotateY(180deg);
  background: #181818;
  color: #fff;
}
.card-back a {
  color: #fff;
  text-decoration: underline;
}

/* ======= CONTACTO FLOTANTE ======= */
.cta {
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  padding: 0.7rem 1.2rem;
  border: 3px solid #7700ff;
  border-radius: 50px;
  background: #7700ff;
  cursor: pointer;
  z-index: 9999;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}
.cta:before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  display: block;
  border-radius: 50px;
  background: rgb(0, 0, 0);
  width: 45px;
  height: 45px;
  transition: all 0.8s;
}
.cta span {
  position: relative;
  font-family: Montserrat;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.cta svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #000;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.5s;
}
.cta:hover:before {
  width: 100%;
  background: #1c1c1c;
}
.cta:hover svg {
  transform: translateX(0);
  transition: all 2s;
}
.cta:active {
  transform: scale(0.95);
  transition: all 2s;
}

/* ======= TOP BAR (DISCORD) ======= */
.top-bar {
  position: fixed;
  top: 2vw;
  right: 2vw;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
}
.discord-logo {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.discord-logo:hover {
  transform: scale(1.1);
}

/* ======= FOOTER ======= */
.footer {
  background-color: #000;
  padding: 2rem 1rem;
  margin-top: 4rem;
  width: 100vw;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #4c00ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer .socials {
  display: flex;
  gap: 1rem;
}
.footer .socials a {
  transition: transform 0.3s;
}
.footer .socials a:hover {
  transform: scale(1.2);
}
.footer .socials img {
  width: 1.5rem;
  height: 1.5rem;
}

/* ======= REVEAL ANIMATION ======= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .card-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  .service-card {
    width: 90vw;
    max-width: 340px;
    min-width: 0;
    margin: 0 auto;
  }
  .services, .tools, .blog, #stack {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
}
@media (max-width: 600px) {
  body, h1, h2, h3, h4, h5, h6, p, .section-title, .stack-list, .blog, .tools, .links, .link-container {
    text-align: center !important;
  }
  .pfp {
    width: 7rem;
    height: 7rem;
  }
  .stack-list {
    gap: 0.7rem;
    margin: 1rem 0 0 0;
  }
  .stack-list li {
    min-width: 60px;
    padding: 0.6rem;
    font-size: 0.95rem;
  }
  .link-btn {
    font-size: 1rem;
    padding: 2px 10px;
  }
  .tools, .badges {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
  }
  .badge {
    margin-left: auto;
    margin-right: auto;
  }
  .card {
    padding: 0.7rem 0.8rem;
  }
  .footer {
    padding: 1.2rem 0.5rem;
  }
  .top-bar {
    top: 1vw;
    right: 1vw;
  }
  .cta {
    bottom: 1vw;
    right: 1vw;
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

/* ======= GALLERY (SI USAS) ======= */
.gallery-section {
  padding: 3rem 1rem;
  color: #d6c9f7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #b491f6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .overlay {
    font-size: 1rem;
    padding: 0.8rem;
  }
}
/* Overlay con texto al hacer hover */
.overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(107, 48, 255, 0.85) 90%);
  color: white;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
body.loading {
  overflow: hidden;
  height: 100vh;
}
@media (max-width: 600px) {
  .cta {
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-width: 2px;
    gap: 0.3rem;
  }

  .cta span {
    font-size: 0.8rem;
  }

  .cta svg {
    width: 10px;
    height: 10px;
  }

  .cta:before {
    width: 30px;
    height: 30px;
  }
}

    /* ======= BASE ======= */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Sora', sans-serif;
  background: radial-gradient(circle at center, #000000, #000000);
  color: #fff;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative; /* ayuda con el scroll y fixed */
}


/* ======= NAVBAR ======= */
.navbar {
  width: 100vw;
  padding: 0.7rem 1.5rem;
  background-color: #000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-container {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}
.nav-logo img {
  height: 2.5rem;
  transition: filter 0.3s;
  filter: drop-shadow(0 0 4px #7700ff);
}

/* ======= PERFIL PRINCIPAL ======= */
.pfp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem 1rem 1rem;
  width: 100vw;
  max-width: 400px;
}
.pfp {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #7700ff;
  box-shadow: 0 0 10px #7700ff;
  margin-bottom: 1rem;
}
h1, .username {
  font-size: 2.5rem;
  text-shadow: 0 0 10px #7700ff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}



.badge-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #7700ff);
}
.verified {
  font-size: 1.2rem;
  color: #fff;
  background-color: #0000009f;
  border-radius: 50%;
  padding: 2px 6px;
  border: 2px solid #7700ff;
  box-shadow: 0 0 8px #7700ff;
}
.social-icons {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.social-icons img {
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 0 4px #7700ff);
  transition: transform 0.3s;
}
.social-icons img:hover {
  transform: scale(1.2);
}

/* ======= LINKS PRINCIPALES ======= */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90vw;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  margin-top: 0.3 ;
}
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.5rem 2rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.25rem;
  font-family: 'Sora', sans-serif;
  background: #000000;
  color: #fff;
  border: 2px solid #000000;
  box-shadow: 0 0 10px #000000;
  transition: all 0.3s;
}
.link-btn:hover {
  background: rgb(0, 0, 0);
  color: #7700ff;
  box-shadow: 0 0 20px #7700ff;
}
.button-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* ======= STACK ======= */
#stack {
  margin-top: 0.5rem;
  padding: 2rem 1rem;
  width: 100vw;
  max-width: 900px;
}
#stack h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  padding: 0;
  margin: 1.5rem 0 0 0;
  list-style: none;
  text-align: center;
}
.stack-list li {
  background-color: #7700ff;
  padding: 1rem;
  border-radius: 1rem;
  width: 100px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px #000;
}
.stack-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px #000000;
}
.stack-list img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.stack-list span {
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

/* ======= BLOG / NOTAS ======= */
.blog {
  margin-top: 2rem;
  width: 100vw;
  max-width: 900px;
  padding: 0 1rem;
}
.blog h2 {
  margin-bottom: 1rem;
  font-size: 1.7rem;
  text-align: center;
}
.card {
  background: #7700ff;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgba(69, 0, 160, 0.3);
  transition: background-color 0.3s;
}
.card h3 {
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.card p {
  font-size: 1rem;
  line-height: 1.3;
}

/* ======= HERRAMIENTAS / BADGES ======= */
.tools {
  margin-top: 2rem;
  width: 100vw;
  max-width: 900px;
  padding: 0 1rem;
}
.tools h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  text-align: center;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.badge {
  background: #7700ff;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  user-select: none;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s;
}
.badge:hover {
  background-color: #7700ff;
}
.badge .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ======= SERVICIOS ======= */
.services {
  margin-top: 3rem;
  width: 100vw;
  max-width: 900px;
  padding: 0 1rem;
}
.services h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  width: 100%;
  margin: 0 auto 2rem auto;
}
.serviceicon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem auto;
  filter: drop-shadow(0 0 8px #7700ff);
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.service-card {
  perspective: 1000px;
  cursor: pointer;
  width: 250px;
  min-height: 220px;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.service-card.flipped .card-inner {
  transform: rotateY(180deg);
}
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  background: #7700ff;
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card-back {
  transform: rotateY(180deg);
  background: #181818;
  color: #fff;
}
.card-back a {
  color: #fff;
  text-decoration: underline;
}

/* ======= CONTACTO FLOTANTE ======= */
.cta {
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  padding: 0.7rem 1.2rem;
  border: 3px solid #7700ff;
  border-radius: 50px;
  background: #7700ff;
  cursor: pointer;
  z-index: 9999;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}
.cta:before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  display: block;
  border-radius: 50px;
  background: rgb(0, 0, 0);
  width: 45px;
  height: 45px;
  transition: all 0.8s;
}
.cta span {
  position: relative;
  font-family: Montserrat;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.cta svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #000;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.5s;
}
.cta:hover:before {
  width: 100%;
  background: #1c1c1c;
}
.cta:hover svg {
  transform: translateX(0);
  transition: all 2s;
}
.cta:active {
  transform: scale(0.95);
  transition: all 2s;
}

/* ======= TOP BAR (DISCORD) ======= */
.top-bar {
  position: fixed;
  top: 2vw;
  right: 2vw;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
}
.discord-logo {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.discord-logo:hover {
  transform: scale(1.1);
}

/* ======= FOOTER ======= */
.footer {
  background-color: #000;
  padding: 2rem 1rem;
  margin-top: 4rem;
  width: 100vw;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #4c00ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer .socials {
  display: flex;
  gap: 1rem;
}
.footer .socials a {
  transition: transform 0.3s;
}
.footer .socials a:hover {
  transform: scale(1.2);
}
.footer .socials img {
  width: 1.5rem;
  height: 1.5rem;
}

/* ======= REVEAL ANIMATION ======= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .card-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  .service-card {
    width: 90vw;
    max-width: 340px;
    min-width: 0;
    margin: 0 auto;
  }
  .services, .tools, .blog, #stack {
    max-width: 98vw;
    padding: 0 0.5rem;
  }
}
@media (max-width: 600px) {
  body, h1, h2, h3, h4, h5, h6, p, .section-title, .stack-list, .blog, .tools, .links, .link-container {
    text-align: center !important;
  }
  .pfp {
    width: 7rem;
    height: 7rem;
  }
  .stack-list {
    gap: 0.7rem;
    margin: 1rem 0 0 0;
  }
  .stack-list li {
    min-width: 60px;
    padding: 0.6rem;
    font-size: 0.95rem;
  }
  .link-btn {
    font-size: 1rem;
    padding: 2px 10px;
  }
  .tools, .badges {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
  }
  .badge {
    margin-left: auto;
    margin-right: auto;
  }
  .card {
    padding: 0.7rem 0.8rem;
  }
  .footer {
    padding: 1.2rem 0.5rem;
  }
  .top-bar {
    top: 1vw;
    right: 1vw;
  }
  .cta {
    bottom: 1vw;
    right: 1vw;
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

/* ======= GALLERY (SI USAS) ======= */
.gallery-section {
  padding: 3rem 1rem;
  color: #d6c9f7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #b491f6;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .overlay {
    font-size: 1rem;
    padding: 0.8rem;
  }
}
/* Overlay con texto al hacer hover */
.overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(107, 48, 255, 0.85) 90%);
  color: white;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
body.loading {
  overflow: hidden;
  height: 100vh;
}
@media (max-width: 600px) {
  .cta {
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-width: 2px;
    gap: 0.3rem;
  }

  .cta span {
    font-size: 0.8rem;
  }

  .cta svg {
    width: 10px;
    height: 10px;
  }

  .cta:before {
    width: 30px;
    height: 30px;
  }
}
