:root {
  --primary: #007bff;
  --bg-color: #e9eaf0;
  --text-main: #111111;
  --text-muted: #555555;
  --card-bg: rgba(120, 120, 120, 0.08);
  --border-card: rgba(0, 0, 0, 0.1);
  --footer-bg: #dcdfea;
  --form-input-bg: #ececef;
  --form-focus-bg: #cecfd2;
  --btn-bg: #111111;
  --btn-text: #ffffff;
  --project-bg: #ff4d4d;
  --navbar-bg: #e9eaf0;
}

body.dark-theme {
  --bg-color: #1c1e26;
  --text-main: #f3f3f6;
  --text-muted: #a0a0aa;
  --card-bg: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.1);
  --footer-bg: #23252d;
  --form-input-bg: #2a2c35;
  --form-focus-bg: #33353f;
  --btn-bg: #f3f3f6;
  --btn-text: #1c1e26;
--project-bg: rgba(255, 77, 77, 0.15);  
--navbar-bg: #23252d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Urbanist",Arial, sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1100px;
  font-size: 20px;
  margin: auto;
}

h2 {
  font-size: 3rem;
}

.highlight {
  color: var(--primary);
}

/* ------------------- navbar ------------------------ */

header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.navbar {
  width: min(1100px, 90%);
  height: 45px;
  display: flex;
  justify-content: space-evenly; /* antes: space-between */
  align-items: center;
  padding: 0 30px;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: -1px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem; /* separación fija entre los links */
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  transition: 0.25s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-right button {
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  background: var(--card-bg);
  color: var(--text-main);

  transition: 0.25s;
}

.nav-right button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.menu-socials{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: .4s ease;
    
}

.menu-socials a{
    font-size: 1.6rem;
    color: var(--text);
    transition: color .3s ease, transform .3s ease;
}

.menu-socials a:hover{
    color: var(--primary);
    transform: translateY(-3px);
}

.nav-menu.active .menu-socials{
    opacity: 1;
    transform: translateY(0);
    transition-delay: .5s;
}

#themeToggle { /*boton modo oscuro*/
  width: 30px;
  height: 30px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#themeToggle i {
  font-size: 13px;
}

/* -------------------- hero ----------------------*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-intro {
  font-size: 3rem;
  color: var(--text-muted);
}

.hero-name {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-main);
}

.hero-role {
  font-size: 3.5rem;
  color: var(--primary);
  margin-top: 10px;
}

.hero-do {
  font-weight: normal;
  max-width: 600px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.hero-available {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  margin-top: 10px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.486);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  color: #4ade80;
}

.available-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.buttons {
  margin-top: 20px;
}

.hero-intro,
.hero-name,
.hero-role,
.hero-do,
.hero-available,
.buttons{
    opacity: 0;
    transform: translateY(25px);
    animation: heroFade .8s ease forwards;
}

.hero-intro{ animation-delay: .1s; }

.hero-name{ animation-delay: .25s; }

.hero-role{ animation-delay: .4s; }

.hero-do{ animation-delay: .55s; }

.buttons{ animation-delay: .7s; }

@keyframes heroFade{
    from{
        opacity: 0;
        transform: translateY(25px);
    }

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

/* ------------------------- sections --------------------- */
.section {
  padding: 100px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.4s; }
.section:nth-child(4) { animation-delay: 0.6s; }

/* ----------------- about me --------------------- */
#about h2 {
  margin-bottom: 30px;
}

.about-text {
  font-weight: normal;
  max-width: 600px;
  color: var(--btn-bg);
  margin-top: 20px;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-left: auto;
  margin-right: auto;
}

.about-info {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--btn-bg);
  line-height: 1.7;
  font-size: 1.1rem;
}

.info-item {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s, transform 0.2s;
}

.info-item:hover {
  background: rgba(120, 120, 120, 0.15);
  transform: translateY(-2px);
}

.info-item i {
  color: var(--primary);
  font-size: 18px;
}

.resume-btn {
  background: var(--card-bg);
  display: inline-block;
  margin-top: 10px;
  padding: 10px 25px;
  font-size: 16px;
  text-decoration: none;
  color: var(--text-main);
  border-radius: 30px;
  border: 1px solid var(--border-card);
  transition: 0.3s;
}

.resume-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.about-photo-wrapper {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3b82f6; /* ajustá al azul de tu logo CQ */
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1),
              0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.15),
            0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Dark mode: si tu darkmode.css usa una clase body.dark o similar */
body.dark .about-photo {
  border-color: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.15),
              0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  .about-photo {
    width: 140px;
    height: 140px;
  }
}

/* ----------------- proyectos ----------------------- */
.project {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 48px;
  margin-bottom: 40px;

  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  background-color: #09090900;
  backdrop-filter: blur(220px);
  -webkit-backdrop-filter: blur(220px);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.05),
    0 24px 48px rgba(59, 130, 246, 0.06);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    background .35s ease;
}

.project:hover {
  transform: translateY(-8px);

  border-color: rgba(59, 130, 246, .25);

  box-shadow:
    0 20px 45px rgba(15, 23, 42, .08),
    0 35px 70px rgba(59, 130, 246, .12);
}

.project-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.project:nth-child(2) { animation-delay: 0.2s; }
.project:nth-child(3) { animation-delay: 0.4s; }

.project.reverse {
  flex-direction: row-reverse;
}

.project-text p{
    line-height:1.8;
    color:#666;
}

.project-text h3{
    font-size:2rem;
    font-weight:700;
    margin-bottom:18px;
}

.project-text p {
  color: var(--btn-bg);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project img{
    width:100%;
    max-width:430px;

    border-radius:10px;

    transition:
        transform .45s ease,
        box-shadow .45s ease;
}

.project:hover img{
    transform:scale(1.02);

    box-shadow:
        0 20px 40px rgba(167, 9, 9, 0.12);
}

.project-buttons {
  display: flex;
  gap: 20px; /*separacion live demo / git hub*/
  margin-top: 10px;
}

.project-tags {
  display: flex;
  gap: 10px; /*separacion entre tags de proyectos */
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.project-tags span {
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(0, 123, 255, .12);
  color: var(--primary);
  font-size: .85rem;
}

#projects h2 {
  margin-bottom: 50px;
}

/* ------------------- skills ------------------ */
#skills h2 {
  margin-bottom: 40px;
}

.section .skills {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  justify-content: center;
  gap: 20px;
}

.section .skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.skill i {
  font-size: 70px;
  color: var(--text-main);
  transition: 0.3s;
}

.skill p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.skill:hover i {
  color: var(--primary);
  transform: scale(1.2);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 50px;
}

/* ------------------- currently learning ------------------ */
.learning-container {
  margin-top: 50px;
  padding-top: 30px;
}

.learning-title {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 25px;
  font-weight: 600;
}

.learning-skills {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.learning-item i {
  color: var(--text-main);
  filter: grayscale(40%);
}

.learning-item:hover i {
  filter: grayscale(0%);
  color: var(--primary);
}

.learning-item a {
  text-decoration: none;
}

.learning-item i {
  text-decoration: none;
}

/* ------------------- footer ---------------------- */
.footer {
  background: var(--footer-bg);
  padding: 80px 0 40px;
  margin-top: 100px;
  border-top: 1px solid var(--border-card);
  text-align: center;
  transition: background 0.3s ease;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  width: 90%;
}

.footer h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 35px;
  color: var(--text-main);
}

.footer h3 span {
  color: #4ade80;
}

/* --------------- formulario de contacto------------------------- */

.contact-form-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: var(--form-input-bg);
  border: none;
  padding: 16px 20px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: background-color 0.3s;
}

.contact-form input:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.contact-form textarea {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background-color: var(--form-focus-bg);
}

.form-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-submit {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 12px 35px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ----------------- botones e iconos de contacto) --------------*/

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--text-main);
  color: var(--text-main);
}

.btn.outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.contact-icons a {
  font-size: 35px;
  color: var(--text-main);
  transition: 0.3s;
}

.contact-icons a:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* ---------------- animaciones y responsividad ---------------------*/
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}


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

/* --------------- TABLETS Y MOBILE (hasta 768px) --------------- */
@media (max-width: 768px) {

  .navbar {
    justify-content: space-between;
    background: transparent;
  backdrop-filter: blur(1px);
  }

  .nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .nav-right {
    display: flex;
    gap: 10px;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
  }

  /* MENÚ */

  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 25px;
    background: var(--navbar-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: .3s;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-menu.active li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.nav-menu li {
  list-style: none;
  width: 80%;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
}

.nav-menu a {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  text-align: center;
  padding: 12px 0;
  border: 2px solid var(--border-card);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}
  /* HERO */

  .hero {
    min-height: 100vh;
    padding: 120px 0 60px;
  }

  .hero-intro {
    font-size: 2.5rem;
  }

  .hero-name {
    font-size: 3.8rem;
    line-height: 1;
  }

  .hero-role {
    font-size: 2.4rem;
  }

  .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* SECTIONS */

  .section {
    padding: 60px 0;
  }

  h2 {
    font-size: 2rem;
  }

  /* SKILLS */

  .section .skills {
    grid-template-columns: repeat(2, 110px);
    gap: 24px;
  }

  .skill i {
    font-size: 52px;
  }

  /* PROJECTS */

  .project {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .project.reverse {
    flex-direction: column;
  }

  .project img {
    width: 100%;
  }

  .project-text {
    width: 100%;
    text-align: center;
  }

  .project-tags,
  .project-buttons {
    justify-content: center;
  }

  /* ABOUT */

  .about-info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* FOOTER */

  .footer {
    padding: 40px 16px;
    margin-top: 60px;
  }

  .contact-icons {
    gap: 20px;
  }

}

/* ESCRITORIO */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .menu-socials {
    display: none;
  }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 400px) {

  .navbar {
    height: 60px;
    padding: 0 15px;
    background: transparent;
  backdrop-filter: blur(1px);
  }

  .logo {
    font-size: 1.4rem;
  }

  .hero-name {
    font-size: 3.2rem;
  }

  .hero-role {
    font-size: 2rem;
  }

  .hero-intro {
    font-size: 2.2rem;
  }

  .section .skills {
    grid-template-columns: repeat(2, 95px);
  }

}
/* ------------ ANIMACIÓN PUNTERO/CURSOR/MOUSE -----------------*/

/* Ocultar cursor default y activar cursor custom en dispositivos con mouse */
@media (pointer: fine) {
  body,
  a,
  button,
  input,
  textarea,
  .btn,
  .resume-btn,
  .info-item {
    cursor: none;
  }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  }

  .cursor-ring.hovering {
    width: 50px;
    height: 50px;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
  }

  .cursor-dot.hovering {
    opacity: 0;
  }
}


.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1100px, 90%);
  height: 45px;
  padding: 0 30px;
}

.logo {
  justify-self: start;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 9rem;
  justify-self: center;
}

#themeToggle {
  justify-self: end;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
  }
}

.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}


@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    gap: 14px;
  }

  .hamburger {
    margin-left: auto;
  }
}
@media (max-width: 768px) {
  #themeToggle {
    display: none;
  }
}

