:root {
  --primary-bg: #0b0f19;
  --text-main: #ffffff;
  --accent-gradient: linear-gradient(90deg, #ff416c, #ff4b2b);
  --badge-bg: #1c1f26;
  --badge-border: #2c313a;
  --blue: #007bff;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  scroll-behavior: smooth;
}

.header {
  background-color: #1a1a1a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
}

.hero span {
  color: var(--primary);
}

.projects {
  padding: 4rem 2rem;
  background-color: #181818;
}

.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: #222;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px var(--glow);
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px var(--primary);
}

.footer {
  text-align: center;
  padding: 2rem;
  background-color: #111;
  color: #aaa;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #1a1a1a;
    position: absolute;
    right: 0;
    top: 70px;
    width: 100%;
    text-align: center;
  }

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

  .menu-toggle {
    display: block;
  }
}

.about {
  padding: 3rem 2rem;
  background-color: #1c1c1c;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.profile-img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.about-text {
  flex: 1;
  min-width: 250px;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
}

.tech-stack {
  padding: 4rem 2rem;
  background-color: #181818;
}

.tech-stack h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.card.tech {
  background: linear-gradient(145deg, #1e1e1e, #252525);
  color: #fff;
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease-in-out;
}

.card.tech:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--primary);
}
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: #000;
}

.card.tech {
  display: none;
}

.card.tech.show {
  display: block;
}
.full-hero {
  padding: 4rem 2rem;
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 240px; /* antes: 180px */
  height: 240px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
  transition: transform 0.4s ease;
}

.hero-img img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(0, 123, 255, 0.9);
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: var(--primary);
}

.roles {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.mission {
  color: #ccc;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 80px; /* ✅ Esto lo mueve un poco a la derecha */
  text-align: center;   /* ✅ Opcional: lo alinea tipo texto normal */
}

.logo img.logo-img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.card.tech .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.card.tech {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: none;
  animation: none;
}

.card.tech.show {
  display: block;
  pointer-events: auto;
  animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.card.tech h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #00d4ff, #007bff);
  background-clip: text; /* 👍 Estándar */
  -webkit-background-clip: text; /* ✅ Para WebKit (Chrome, Safari) */
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.card.tech h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  opacity: 0.6;
}

.full-hero {
  padding: 4rem 2rem;
  background: #101010;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
}

.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

#typewriter {
  font-family: 'Courier New', monospace;
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--primary);
  white-space: nowrap;
  margin-bottom: 1rem;
  /* 🔥 Eliminamos borde y animación del cursor */
  border: none;
  animation: none;
}

.role-title {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 0.6rem;
}

.mission {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.5;
}

.rotating-role {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ccc;
  height: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;     /* 🔥 Esto centra el texto */
  width: 100%;            /* 🔥 Ocupa todo el ancho disponible */
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}

.cv-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cv-button:hover {
  background: #0056b3;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-icons a {
  color: #ccc;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
}

.full-hero {
  padding: 4rem 2rem;
  background: #101010;
  display: flex;
  justify-content: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center; /* opcional: puedes usar space-between también */
  flex-wrap: wrap;
  gap: 2rem; /* ⬅️ Cambiar de 2rem a 1rem */
  max-width: 1100px;
  width: 100%;
}

.hero-img {
  flex: 0 0 150px; /* antes: 180px, lo reducimos un poco */
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
}

.hero-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    margin-bottom: 1rem;
  }

  .hero-text {
    text-align: center;
  }
}

.hero-container {
  align-items: flex-start; /* mejor en pantallas grandes */
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
  }
}

.projects {
  padding: 4rem 2rem;
  background-color: #0e0e0e;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.project-card {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-left: 5px solid var(--primary);
  padding: 2rem;
  width: 300px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.project-card a:hover {
  text-decoration: underline;
}

.project-filters {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 🔵 Stack tecnológico - Botones */
.filter-btn-tech {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.filter-btn-tech.active,
.filter-btn-tech:hover {
  background-color: var(--primary);
  color: #000;
}

/* 🧱 Proyectos - Botones */
:root {
  --primary: #00d4ff;
}

.projects {
  padding: 4rem 2rem;
  text-align: center;
  background: #111;
}

.section-title {
  color: var(--primary);
  margin-bottom: 2rem;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn-project {
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.filter-btn-project:hover,
.filter-btn-project.active {
  background: var(--primary);
  color: #000;
  transform: scale(1.05);
}

.projects-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-card {
  background: #1c1c1c;
  color: #ddd;
  padding: 2rem;
  border-radius: 8px;
  width: 280px;
  display: none;
  transition: all 0.3s ease;
}

.project-card.show {
  display: block;
}

.icon-project {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.project-card a i {
  margin-right: 6px;
}

.project-card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.project-card a:hover {
  background-color: var(--primary);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.project-card a i {
  transition: transform 0.3s ease;
}

.project-card a:hover i {
  transform: scale(1.2);
}


.modal-links a:hover {
  background: #00aaff;
}

.modal-content {
  animation: modalFadeIn 0.4s ease-out;
}

.modal-overlay {
  overflow-y: auto;
  padding: 2rem;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #222;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #1e1e1e;
  color: #ddd;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.4s ease;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #222;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 3px;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

.modal-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1rem 0;
}

.modal-links {
  margin-top: 1rem;
}

.modal-links a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.modal-links a:hover {
  background: #00aaff;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content {
  background: rgba(30, 30, 30, 0.6); /* vidrio semi-transparente */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.4s ease;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

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

.project-card.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card.animate.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}

.project-card.animate {
  opacity: 0;
  transform: translateY(30px);
}

.project-card.show.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}

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

/* Estilos generales del navbar */
/* Navbar */
.header {
  background-color: #000;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}

.logo {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.logo-img {
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00d4ff;
}


/* Ícono de menú para dispositivos móviles */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* Responsividad */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000000;
    flex-direction: column;
    align-items: center;
    display: none;
  }

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

  .menu-toggle {
    display: block;
  }
}

#inicio {
  padding-top: 100px; /* 👈 ajusta si tu navbar tiene menos o más altura */
}

/* Estilos Generales del Footer */
.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 40px 20px 20px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 200px;
  margin: 20px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
  color: #00d4ff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #00d4ff;
}

/* Estilos de Redes Sociales */
.social-icons a {
  color: #ffffff;
  margin-right: 15px;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00d4ff;
}

/* Línea Inferior del Footer */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333333;
  margin-top: 20px;
  font-size: 14px;
  color: #aaaaaa;
}

/* Responsividad */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    margin: 10px 0;
    text-align: center;
  }

  .social-icons a {
    margin: 0 10px;
  }
}

.section-title {
  font-size: 2.5rem;           /* mismo tamaño */
  font-weight: 700;            /* negrita */
  color: var(--primary);       /* usa tu azul cian */
  text-align: center;
  margin-bottom: 2rem;
}

.about, .contact {
  background-color: #111;
  color: #ddd;
  padding: 4rem 2rem;
  text-align: center;
}

.about-text p,
.contact-container p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-links a {
  color: var(--primary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a i {
  margin-right: 0.5rem;
}

.contact-links a:hover {
  color: #00aaff;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.divider-glow {
  width: 120px;
  height: 3px;
  margin: 2rem auto;
  background: linear-gradient(90deg, #00d4ff, #007bff);
  box-shadow: 0 0 15px #00d4ff;
  border-radius: 50px;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 10px #00d4ff;
  }
  to {
    box-shadow: 0 0 25px #00d4ff;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-tags {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  color: #00d4ff;
  font-weight: 500;
}

.skill-tags li {
  background: #111;
  padding: 0.4rem 0.8rem;
  border: 1px solid #00d4ff;
  border-radius: 5px;
  font-size: 0.95rem;
}

.section-title i {
  animation: bounce 2s infinite;
  display: inline-block;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
  background-color: #111;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--primary);
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px var(--primary);
}

.submit-btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #00aaff;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--primary);
}

/* Breakpoint general para tablets y móviles */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-img {
    margin-bottom: 1rem;
  }

.hero-text {
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
  .card-container,
  .projects-container,
  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .project-card {
    width: 100%;
    max-width: 320px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    width: 90%;
    padding: 1.5rem;
  }

  .contact-links {
    gap: 1rem;
  }
}

/* Extra small: < 480px */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .hero-img img {
    width: 150px;
    height: 150px;
  }

  .submit-btn,
  .cv-button {
    width: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.nav-links.active {
  background-color: rgba(0, 0, 0, 0.95);
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .section, .about-me {
    padding: 24px 12px;
  }

  .about-me p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .tag-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .profile-image {
    margin: 0 auto;
    display: block;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--light);
  cursor: pointer;
}


@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .section, .about-me {
    padding: 24px 12px;
  }

  .about-me p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .tag-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  h1, h2, h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .profile-image {
    margin: 0 auto;
    display: block;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--light);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    display: none;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  }

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

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 1001;
  }

  .logo {
    position: relative;
    z-index: 1002;
    margin-left: 1rem;
  }

  .navbar {
    position: relative;
    justify-content: space-between;
    align-items: center;
  }
}

/* 📏 Establece dimensiones seguras */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.some-container,
.container,
.hero-container,
.full-hero {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img, canvas {
  max-width: 100%;
  height: auto;
}

.full-hero {
  padding: 5rem 2rem;
}

@media (max-width: 768px) {
  .full-hero {
    padding-top: 130px;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


@media (max-width: 768px) {
  .card,
  .section,
  .container {
    padding: 10px;
    margin: 0 auto;
    flex-direction: column;
    width: 100%;
  }

  h1 {
    font-size: 1.6rem;
  }

  #typewriter {
    font-size: 1rem;
    word-break: break-word;
  }

  .mission {
    font-size: 0.95rem;
    padding: 0 1rem;
    text-align: center;
    word-break: break-word;
  }

  .logo {
    position: relative;
    margin-left: 0;
  }

  .menu-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
  }
}

.mission {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 40px;
  width: auto;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem; /* espacio entre imagen y texto */
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.hero-img {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.hero-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
}
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }
}

.header {
  background-color: #000;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  padding: 1rem 2rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* reparte logo a izq, nav a der */
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  flex: 2;
  display: flex;
  justify-content: flex-end; /* o center si prefieres centrado */
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background-color: #000;
    width: 100%;
    display: none;
    padding: 1rem 2rem;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 999;
  }

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

  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
  }
}

.header {
  background-color: #000;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.navbar {
  display: flex;
  align-items: center;          /* ✅ alinea verticalmente */
  justify-content: space-between;
  padding: 1rem 2rem;
  height: 70px;                 /* ✅ altura fija para alinear */
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

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

  .nav-links {
    position: absolute;
    top: 70px;  /* usa la misma altura del navbar */
    left: 0;
    width: 100%;
    background-color: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    display: none;
    z-index: 999;
  }

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

/* 👉 Modal general */
#tech-modal.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

/* 👉 Contenido del modal */
#tech-modal .modal-content {
  background: #1a1a1a;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px #00d4ff88;
  position: relative;
  text-align: center;
  animation: zoomIn 0.3s ease-in-out;
}

/* ✨ Animación de entrada */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ❌ Botón de cerrar */
.modal-content .close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-content .close-button:hover {
  color: #00d4ff;
}

/* 🔧 Título */
#tech-modal h2 {
  color: #00d4ff;
  margin-bottom: 15px;
  font-weight: 600;
}

/* 🧩 Contenedor de íconos */
#tech-icons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

/* 🎯 Íconos */
#tech-icons-container i {
  font-size: 2rem;
  color: #00d4ff;
  transition: transform 0.3s ease, color 0.3s ease;
}
#tech-icons-container i:hover {
  transform: scale(1.2);
  color: #66fcf1;
}

/* 📱 Responsive ajustes */
@media (max-width: 500px) {
  #tech-icons-container i {
    font-size: 1.7rem;
  }
  #tech-modal .modal-content {
    padding: 20px;
  }
}
.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  background-color: transparent;
  border: 1px solid #00d4ff;
  color: #00d4ff;
  font-weight: 500;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-btn i {
  font-size: 1rem;
}

.project-btn:hover {
  background-color: #00d4ff;
  color: #101010;
}

@media (max-width: 500px) {
  .project-btn {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}
.custom-tech-icon {
  width: 24px;
  height: 24px;
  margin: 0 8px;
  object-fit: contain;
  vertical-align: middle;
}

.custom-tech-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}
.tech-icon {
  margin: 0 10px;
  font-size: 24px;
  color: #00d4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.tech-icon:hover {
  transform: scale(1.2);
}
.tech-icon svg {
  width: 24px;
  height: 24px;
  fill: #00d4ff;
}
/* MODAL */

#tech-modal .modal-box {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px #00d4ff;
  text-align: center;
  width: 90%;
  max-width: 600px;
  animation: fadeInUp 0.4s ease;
  position: relative;
}

#tech-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #00d4ff;
}

/* Icon Grid */
#tech-icons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
}

#tech-icons-container i,
#tech-icons-container img {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00d4ff;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 3px #00d4ff);
}

#tech-icons-container img {
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
}

#tech-icons-container i:hover,
#tech-icons-container img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #00d4ff);
}
#tech-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background-color: #161616;
  color: #00eaff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px #00eaff55;
  animation: scaleIn 0.3s ease-in-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
}

#tech-icons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

#tech-icons-container i,
#tech-icons-container img {
  font-size: 2rem;
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 10px;
  padding: 8px;
  background: #0a0a0a;
  box-shadow: 0 0 10px #00eaff55;
  transition: transform 0.2s, box-shadow 0.2s;
}

#tech-icons-container i:hover,
#tech-icons-container img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px #00eaff;
}
/* Estilo base del botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #00eaff;
  z-index: 9999;
  position: relative;
  margin: 15px;
}

/* Contenedor del menú móvil */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Versión móvil - Menú oculto por defecto */
@media (max-width: 500px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* Menú oculto fuera de la pantalla */
    width: 80%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: left 0.4s ease;
    z-index: 800;
  }

  .nav-links.active {
    left: 0; /* Menú visible */
  }

  /* Botón de cerrar integrado */
  .nav-links::before {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
  }

  .nav-links li {
    margin: 15px 0;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    font-size: 18px;
    color: #ffffff;
    padding: 12px;
    border-radius: 5px;
    transition: all 0.3s;
  }

  .nav-links li a:hover {
    color: #00eaff;
    background: rgba(255, 255, 255, 0.1);
  }
}

.sobre-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.perfil-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* círculo */
  object-fit: cover;
  border: 2px solid #00eaff;
  box-shadow: 0 0 10px #00eaff80;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px; /* cuadrado con bordes suaves */
  box-shadow: 0 0 10px #00eaff80;
  border: 2px solid #00eaff;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #00eaff;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.section-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 10px #00eaff;
  background-color: #000; /* si quieres un fondo oscuro */
  padding: 5px;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.profile-pic {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 4px solid #00d4ff;
  box-shadow: 0 0 20px #00d4ff;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .profile-pic {
    width: 250px;
    height: 250px;
  }
}

.logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(59%) sepia(99%) saturate(1734%) hue-rotate(164deg) brightness(102%) contrast(104%);
  transition: transform 0.3s ease, filter 0.3s ease;
  opacity: 0.9;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: brightness(1.2) saturate(120%);
}
@media (max-width: 768px) {
  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
  }

  .logo-img {
    height: 50px;
  }
}
/* Foto de perfil - Tamaño original: 350px */
.profile-pic {
  width: 420px;  /* Aumentado 20% */
  height: 420px;
  /* Mantener el resto de propiedades */
}

/* Logo - Tamaño original: 60px */
.logo-img {
  height: 80px;  /* Aumentado 33% */
  /* Mantener el resto de propiedades */
}

/* Versión móvil */
@media (max-width: 768px) {
  .profile-pic {
    width: 300px;  /* Original 250px */
    height: 300px;
  }
  
  .logo-img {
    height: 65px;  /* Original 50px */
  }
}

/* FOTO DE PERFIL - Tamaño aumentado */
.profile-pic {
  width: 330px !important;  /* Tamaño aumentado */
  height: 330px !important;
  border: 8px solid #00d4ff;  /* Borde más grueso */
  transform: scale(1.1);  /* Escala adicional */
}

/* LOGO - Tamaño aumentado */
.logo-img {
  height: 100px !important;  /* Altura aumentada */
  width: auto !important;
  position: relative;
  z-index: 999;
}

/* Contenedor principal */
.hero-image {
  position: relative;
  max-width: 800px;  /* Espacio para ambos elementos */
  margin: 0 auto;
}

/* Círculo de referencia rojo (simulación del diseño) */
.hero-image::before {
  content: "";
  position: absolute;
  width: 480px;  /* Diámetro del círculo */
  height: 480px;
  border: 3px dashed red;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.logo-img {
  height: 60px;
  width: auto;
  max-width: 100%;
  filter: brightness(0) saturate(100%) invert(59%) sepia(99%) saturate(1734%) hue-rotate(164deg) brightness(102%) contrast(104%);
  transition: transform 0.3s ease, filter 0.3s ease;
  opacity: 0.9;
}

/* Móvil: más pequeño y centrado si es necesario */
@media (max-width: 768px) {
  .logo-img {
    height: 45px;
  }

  .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .navbar {
    justify-content: space-between;
    padding: 0 1rem;
  }
}
.menu-toggle i {
  font-size: 1.8rem;
  color: #00eaff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle.open i {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
  }
}
