:root {
  /* Colores */
  --color-bg-dark: #0d0d0d;
  --color-bg-dark-alt: #1a1a1a;
  --color-white: #ffffff;
  --color-text-main: #ffffff;
  --color-text-secondary: #cccccc;
  --color-text-muted: #dddddd;
  --color-accent: #ff4f5a;
  --color-border: #1f1f1f;
  --color-accent-glow: #ff4f5a77;

  /* Tipografía */
  --font-main: 'Urbanist', sans-serif;

  /* Tamaños base */
  --fs-base: 1.6rem;  /* 16px */
  --fs-large: 2rem;
  --fs-xlarge: 7.4rem;
  --fs-logo: 2.6rem;
}


html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 62.5%; /* 1rem = 10px */
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  scroll-behavior: smooth;
}
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.appear {
  opacity: 1;
  transform: translateY(0);
}

/*HEADER*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.4rem 6rem;
  width: 100%;
  background: rgba(13, 13, 13, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(.4rem);
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
}

.logo {
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--color-accent);
  letter-spacing: 1px;
}
.nav {
  display: flex;
  gap: 4rem;
}
.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

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

/* 🍔 HAMBURGER ICON */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger img {
  width: 28px;
  height: auto;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 3rem;
  }

  .hamburger {
    display: block;
    align-self: flex-end;
    margin-bottom: 1rem;
  }
  .hamburger img{
    filter: invert(1);
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .nav.show {
    max-height: 300px; /* Altura suficiente para los enlaces */
  }

  .nav a {
    font-size: 1.6rem;
    margin: 0;
  }
}
/**/
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, var(--color-bg-dark) 0%, var(--color-bg-dark-alt) 100%);
  height: 100vh;
  padding: 0 10%;
  padding-top: 8rem;
}

.hero-content h1 {
  font-size: var(--fs-xlarge);
  font-weight: 800;
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: var(--fs-large);
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  font-size: var(--fs-large);
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  padding: 1.3rem 2.8rem;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: var(--color-white);
  color: var(--color-bg-dark);
}

.hero-image img {
  width: 50rem;
  height: auto;
  filter: drop-shadow(0px 0px 10px var(--color-accent-glow));
}


@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 3rem;
  }

  .logo {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
  }

  .nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav a {
    margin: 0.8rem 0;
    font-size: 1.6rem;
  }

  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 12rem 3rem 4rem;
    height: auto;
  }

  .hero-content h1 {
    font-size: 3.6rem;
  }

  .hero-content p {
    font-size: 1.6rem;
  }

  .btn {
    font-size: 1.6rem;
    padding: 1rem 2.4rem;
  }

  .hero-image {
    position: fixed;
    bottom: 10%;
    right: 5%;
    width: 22rem;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 10px var(--color-accent-glow));
  }

  .hero-image img {
    width: 22rem;
  }
}


/*MANIFIESTO*/
.manifesto {
  padding: 12rem 6rem;
  background-color: var(--color-bg-dark-alt);
  color: var(--color-text-secondary);
  text-align: center;
}

.manifesto-container {
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-title {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 3rem;
}

.manifesto-text {
  font-size: 2rem;
  line-height: 1.8;
  font-weight: 400;
}


/* TECNOLOGÍAS */
.stack {
  padding: 12rem 6rem;
  background-color: #0d0d0d;
  color: var(--color-text-main);
  text-align: center;
}

.stack-container {
  max-width: 1000px;
  margin: 0 auto;
}

.stack-title {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 6rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4rem;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.stack-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 8px #ff4f5a88); 
}

.stack-item:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 14px #ff4f5a); 
}

.stack-item span {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: 1rem;
}


/*SOBRE MI*/
.about {
  padding: 12rem 6rem;
  background-color: #0d0d0d;
  color: var(--color-text-main);
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    align-items: center;
  }
}

.about-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 1.5rem;
  filter: drop-shadow(0 0 10px #ff4f5a44);
}

.about-content {
  flex: 1;
}

.about-title {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 2.4rem;
}

.about-text {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-values {
  padding: 0;
  font-size: 1.6rem;
  color: var(--color-text-secondary);
}

.about-values li {
  margin-bottom: 1rem;
}


/*CONTACTO*/
.contact {
  position: relative;
  padding: 14rem 6rem;
  background: linear-gradient(145deg, #0d0d0d, #1a1a1a);
  color: var(--color-text-main);
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 3rem;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2rem;
  box-shadow: 0 0 20px #ff4f5a22;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-text {
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 4rem;
}

.contact-cta {
  position: relative;
  display: inline-block;
}

.pulse-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  background-color: #ff4f5a44;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-out infinite;
  z-index: -1;
  filter: blur(30px);
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
}

.btn-contacto {
  background-color: #ff4f5a;
  color: #0d0d0d;
  font-size: 1.8rem;
  padding: 1.2rem 3.2rem;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.btn-contacto:hover {
  background-color: #fff;
  color: #0d0d0d;
}

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

.social-icons img {
  width: 32px;
  height: 32px;
  filter: invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
  filter: brightness(1) saturate(1) drop-shadow(0 0 6px #ff4f5a);
}


/*FOOTER*/
.footer {
  background-color: #0b0b0b;
  border-top: 1px solid #1f1f1f;
  padding: 3rem 6rem;
  color: var(--color-text-secondary);
  text-align: center;
  font-size: 1.4rem;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.footer-name {
  font-weight: 500;
  color: #999;
}

.footer-nav {
  display: flex;
  gap: 2.4rem;
}

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

.footer-nav a:hover {
  color: #ff4f5a;
}


/* PROYECTOS */
.projects {
  padding: 12rem 6rem;
  background-color: var(--color-bg-dark-alt);
  color: var(--color-text-main);
  text-align: center;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-title {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 6rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
}

.project-card {
  background: #111;
  border: 1px solid var(--color-border);
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px #ff4f5a44;
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.project-content {
  padding: 2rem;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1.6rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.btn-small {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  font-size: 1.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 4rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-small:hover {
  background-color: var(--color-white);
  color: var(--color-bg-dark);
}



/* FORMULARIO DE CONTACTO */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.4rem 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
  font-size: 1.6rem;
  font-family: var(--font-main);
  background-color: #111;
  color: var(--color-white);
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent-glow);
}

.contact-form textarea {
  resize: none;
}


