/* ====== RESET Y BASE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #fff;
  background: transparent;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* ====== CANVAS BACKGROUND ====== */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  background: radial-gradient(circle at 30% 30%, #101018, #07070a);
}

/* ====== HEADER ====== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #00b4ff;
  text-decoration: none;
  letter-spacing: 1px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: #00b4ff;
}

/* ====== HERO ====== */
.hero {
  min-height: 60dvh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem 8rem;
  flex-flow: row nowrap;
}

.hero-inner {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
}

.hero-left {
  flex: 1 1 450px;
}

.hero-right {
  flex: 1 1 400px;
  position: relative;
  perspective: 1000px;
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}


.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.hero .role {
  display: block;
  font-size: 1.3rem;
  color: #00b4ff;
  margin-top: 0.5rem;
}

.lede {
  margin: 1.5rem 0;
  color: #ccc;
  font-size: 1rem;
  max-width: 460px;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.7rem 1.3rem;
  border: 1px solid #00b4ff;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #7b61ff, #00b4ff);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
/* ====== HERO ====== */
.hero {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem 8rem;
  overflow: hidden;
  box-sizing: border-box;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;

  display: flex;
  flex-direction: row;        /* ←→ lado a lado */
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Texto */
.hero-left {
  flex: 1 1 50%;
  max-width: 520px;
}

/* Contenedor de la imagen */
.hero-right {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tarjeta con tu foto (STYLE ORIGINAL) */
.card-me {
  background-image: url(NE.jpeg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  width: 100%;
  max-width: 420px;
  height: 60dvh;

  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.05);
}

/* Títulos y textos (TU ESTILO ORIGINAL) */
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.hero .role {
  display: block;
  font-size: 1.3rem;
  color: #00b4ff;
  margin-top: 0.5rem;
}

.lede {
  margin: 1.5rem 0;
  color: #ccc;
  font-size: 1rem;
  max-width: 460px;
}

/* Botones y badges — idénticos */
.actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 3rem 1.5rem;
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-right {
    width: 100%;
  }

  .card-me {
    max-width: 90%;
    height: 45dvh;
  }

  .actions {
    justify-content: center;
  }
}


/* Badges */
.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* ====== SOBRE MÍ ====== */
.about {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: auto;
}
.separetor{
  display: flex;
  justify-content: center;
  align-items:center;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #00b4ff;
  letter-spacing: 1px;
}

.split {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 1rem;
}


.about-copy p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #ddd;
}

.card {


  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.05);

}
.about-copy-card {  width: 80%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.05);
  height: 45dvh;}
.card-me {

  background-image: url(NE.jpeg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.05);
  width: 40%;
  height: 60dvh;
  border-radius: 1rem;
}


/* ====== SKILLS ====== */
.skills {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.skill {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  transition: all 0.3s;
}

.skill:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.skill .icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

/* Icon colors */
.icon-html i { color: #e34f26; }
.icon-css i { color: #264de4; }
.icon-js i { color: #f7df1e; }
.icon-php i { color: #777bb3; }
.icon-sql i { color: #f29111; }
.icon-node i { color: #83cd29; }

.skill h3 {
  color: #fff;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.skill p {
  color: #aaa;
  font-size: 0.9rem;
}

/* ====== PROJECTS ====== */
.projects {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.viewport {
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  list-style: none;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
}



.preview img {
  height: 40dvh;
  max-width: 38dvw;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.meta h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.meta p {
  color: #ccc;
  margin-bottom: 0.5rem;
}

.c-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0 0.7rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s;
}

.c-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.c-btn.prev { left: 0.5rem; }
.c-btn.next { right: 0.5rem; }

.pager {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.7rem;
}

.dot {
  width: 10px;
  height: 10px;
  background: #555;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.dot[aria-selected="true"],
.dot:hover {
  background: #00b4ff;
}

/* ====== CONTACT ====== */
.contact {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: #00b4ff;
  transition: all 0.3s;
}

.contact-icons a:hover {
  color: #7b61ff;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #aaa;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  resize: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid #00b4ff;
}

.btn-outline:hover {
  background: rgba(0, 180, 255, 0.15);
}

.muted {
  color: #999;
  margin-top: 0.8rem;
}

/* ====== FOOTER ====== */
.site-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: #00b4ff;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: #7b61ff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .actions {
    justify-content: center;
  }

  .split {
    flex-direction: column;
  }

  .slide {
    flex-direction: column;
  }
  .about-copy-card p {font-size: 0.8em;}
  .brand{visibility: hidden;}
}
