@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@100;200;300;400;500;600&display=swap');

/* General styles */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Poppins', sans-serif;
  color: white;
  background: #000 url('fondo.webp') center top repeat-y;
  background-size: 120% auto;
  background-attachment: scroll;
  position: relative;
  overflow-x: hidden;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: absolute ;
  inset: 0; /* Esto reemplaza top/left/right/bottom */
  z-index: -1;
  background: rgba(0, 0, 0, 0.697);
  pointer-events: none;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 700px) {
  body {
    background-size: cover;
    background-position: center top;
    background-attachment: scroll; /* Mejor rendimiento en móvil */
  }
}

/* Header */
header {
  background-color: #000;
  width: 100%;
  height: 90px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  padding: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}

/* Navigation */
nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 1.1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  height: 100%;
}

nav .dropdown {
  position: relative;
  display: inline-block;
}

nav .dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  min-width: 100%;
  box-sizing: border-box;
  background-color: #222;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 8px;
  padding: 10px 0;
}

nav .dropdown-content a {
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  transition: background 0.2s;
}

nav .dropdown-content a:hover {
  background-color: #444;
}

nav .dropdown:hover .dropdown-content {
  display: block;
}

nav > a,
nav .dropdown > a {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  justify-content: center;
  white-space: nowrap;      /* <-- Cambia a nowrap */
  position: relative;
  overflow: hidden;
  min-width: unset;         /* <-- Añade esto */
  width: auto;              /* <-- Añade esto */
  flex: 0 0 auto;           /* <-- Añade esto */
  padding-left: 13px;       /* <-- Ajusta padding si lo deseas */
  padding-right: 13px;
}

nav > a::after, nav .dropdown > a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #4579ea;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: 4px;
}
nav > a:hover::after, nav .dropdown > a:hover::after {
  width: 100%;
}

nav > a:hover, nav .dropdown > a:hover {
  background: #222;
}

nav a.active-link,
nav .dropdown > a.active-link {
  color: #fff !important;
  background: #4579ea !important;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 12px 0 rgba(69,121,234,0.18);
}

nav a.active-link::after,
nav .dropdown > a.active-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  bottom: 4px;
  transition: width 0.3s;
}

nav a.active-link:hover::after,
nav .dropdown > a.active-link:hover::after {
  width: 100%;
}


/* Main */
main {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 15px 40px 15px;
  box-sizing: border-box;
  text-align: center;
}

/* Intro section */
.intro-section {
  max-width: 540px;
  margin: 40px auto 0 auto;
  text-align: center;
  padding: 0 16px;
}

.intro-section.animation-intro {
  margin: 0px auto 0 auto !important;
}

.intro-section.visualart-intro {
  margin-top: 0px !important;
}

.main-name.logo {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 18px;
  margin-top: 0;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 32px auto 18px auto;
  border: 3px solid #4579ea;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
  transition: transform 0.3s cubic-bezier(.4,2,.3,1);
}

.profile-avatar:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 24px 0 rgba(69,121,234,0.18);
}

.intro-text {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 1.12rem;
  color: #e0e0e0;
  margin-bottom: 32px;
}

/* Portfolio categories */
.portfolio-title {
  font-size: 2.2rem;
  margin-top: 40px;
  margin-bottom: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}

.portfolio-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  width: 100%;
  max-width: 1200px;
  align-content: flex-start;
  margin-bottom: 48px;
}

.category-card {
  width: 340px;
  height: 390px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.22);
  z-index: 1;
  pointer-events: none;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  opacity: 1;
  top: 0;
  left: 0;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(.4,2,.3,1);
}

.category-card h3,
.category-card .card-desc {
  position: relative;
  z-index: 2;
}

.category-card h3 {
  margin: 0;
  padding: 0 10px;
  font-size: 2.0rem;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}

.category-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 12px 32px 0 rgba(69,121,234,0.18);
  border: 2px solid #4579ea;
  z-index: 2;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-card:hover h3 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(69,121,234,0.25);
}

.category-card .card-desc {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(40,40,60,0.92);
  color: #fff;
  font-size: 1rem;
  padding: 18px 12px;
  box-sizing: border-box;
  text-align: center;
  transition: opacity 0.3s;
  opacity: 0;
  z-index: 2;
}

.category-card:hover .card-desc {
  display: block;
  opacity: 1;
}


/* Responsive */
@media (max-width: 900px) {
  .portfolio-categories {
    gap: 24px;
  }
  .category-card {
    width: 90vw;
    height: 220px;
    font-size: 1rem;
  }
  .portfolio-title {
    font-size: 2.1rem;
  }
  .intro-section {
    padding: 0 10px;
  }
}

@media (max-width: 700px) {
  .header-content {
    padding: 0 8px;
  }
  .portfolio-title {
    font-size: 1.5rem;
  }
  .category-card {
    width: 98vw;
    height: 180px;
    font-size: 0.95rem;
  }
  .intro-section {
    padding: 0 6px;
  }
  .profile-avatar {
    width: 60px;
    height: 60px;
  }
  .contact-section {
    margin-top: 32px;
    margin-bottom: 16px;
    padding: 18px 0 12px 0;
  }
}

.gallery-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.gallery-modal-img {
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0 !important;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.28);
  background: #000000;
  object-fit: contain;
  margin: auto;
  display: block;
  cursor: default;
  transition: none;
}

.gallery-flex {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  background: #222;
  cursor: pointer;
  transition: none;
  display: block;
}

@media (max-width: 900px) {
  .gallery-flex {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery-flex {
    grid-template-columns: 1fr;
  }
}

.background-art-gallery > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 columnas, una por imagen */
  gap: 12px;
}

.background-art-thumb {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  background: #222;
  display: block;
}

@media (max-width: 700px) {
  .background-art-gallery > div {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 6vw;
  }
  .background-art-thumb {
    width: 310px;
    max-width: 98vw;
    height: auto;
  }
}


.ngau-kahua-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

.ngau-kahua-thumb {
  width: 70vw;
  max-width: 800px;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  border-radius: 0px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28);
  border: none;
  background: #222;
  cursor: pointer;
  transition: box-shadow 0.18s;
  display: block;
  margin: 0 auto;
}

.custom-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(69,121,234,0.92);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  z-index: 2;
}

.custom-play-btn:hover {
  background: #fff;
  color: #4579ea;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 32px rgba(69,121,234,0.18);
}

video {
  border-radius: 0 !important;
}

.laurels-main {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.laurel-img-big {
  height: 200px;
  display: block;
  margin: 0 auto;
  transition: transform 0.18s;
}

.laurel-img-big:hover {
  transform: scale(1.08);
}
.laurel-label {
  display: block;
  text-align: center;
  color: #bfc8e6;
  font-size: 1.05rem;
  margin-top: 8px;
}
.laurels-nominations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 800px; /* Ajusta según el tamaño de tus laureles */
  margin: 0 auto;
}
.laurel-img-small {
  height: 100px;
  opacity: 0.85;
  transition: transform 0.18s;
}
.laurel-img-small:hover {
  transform: scale(1.08);
  opacity: 1;
}

@media (max-width: 700px) {
  .laurels-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
  }
  .laurel-img-big {
    height: 190px;
    max-width: 90vw;
    margin: 0 auto;
  }
  .laurels-nominations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
  }
  .laurel-img-small {
    height: 80px;
    max-width: 38vw;
    margin: 0 2px 6px 2px;
  }
}

.about-skills-title {
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: 1px;
}
.about-skills-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
}

.skill-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #181b28;
  border-radius: 12px;
  padding: 18px 8px 12px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  min-height: 60px;
  width: 100%;
  max-width: 100px;
  transition: box-shadow 0.18s;
}


.skill-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: #23283a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin-bottom: 8px;
}

.skill-logo span {
  font-size: 0.98rem;
  color: #e0e0e0;
  margin-top: 2px;
  min-height: 32px; /* Asegura espacio para dos líneas */
  display: flex;
  align-items: center;
  text-align: center;
}
.about-skills-card {
  background: #23283a;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
  padding: 15px 32px 40px 32px;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}




.contact-details-card {
  background: #23283a;
  border-radius: 12px;
  padding: 14px 20px;
  margin: 18px auto 32px auto;
  color: #e0e0e0;
  max-width: 600px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
}
.contact-details-card a {
  color: #4579ea;
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s, transform 0.18s;
  text-decoration: none;
  padding: 0; /* Elimina el padding */
  border: none; /* Asegura que no haya borde extra */
}

.contact-details-card a:hover {
  color: #e0e0e0;
  transform: scale(1.15);
}

.contact-title {
  font-weight: bold;
  font-size: 1.08rem;
  text-align: center;
}

.contact-icons {
  display: flex;
  gap: 32px; /* Espacio entre los íconos */
  margin-top: 15px; /* Espacio entre el texto y los íconos */
  margin-bottom: 10px;
  justify-content: center;
}

.highlight-video-editor {
  background: #23283a;
  border-radius: 12px;
  padding: 14px 20px;
  margin: 10px auto 30px auto;
  color: #e0e0e0;
  max-width: 600px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.08rem;
}
.highlight-video-editor i {
  color: #4579ea;
  font-size: 1.4rem;
}

footer {
  background: #23283a;
  color: #e0e0e0;
  text-align: center;
  padding: 12px 0 12px 0;
  font-size: 0.95rem;
  margin-top: 0px;
}
.footer-content a {
  color: #4579ea;
  text-decoration: none;
  margin-left: 8px;
}
.footer-content a:hover {
  text-decoration: underline;
}

/* Botón de idioma */
.lang-btn {
  background: transparent;
  color: #4579ea;
  border: 2px solid #4579ea;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  margin-left: 18px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover {
  background: #23283a;
  color: #fff;
}

.manga-credit {
  font-size: 0.95rem;
  color: #aaa;
  margin-top: 8px;
  margin-bottom: 18px;
  text-align: center;
  font-style: italic;
}

.mobile-avatar-block {
  display: none;
}
@media (max-width: 700px) {
  .mobile-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0 8px 0;
    animation: logoPop 0.8s cubic-bezier(.68,-0.55,.27,1.55);
  }
  .mobile-avatar-block .profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    margin-bottom: 10px;
    object-fit: cover;
  }
  .mobile-avatar-block .main-name {
    margin: 0;
    font-size: 2.0rem;
    color: #4579ea;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
  }
}

.animated-avatar {
  opacity: 0;
  transform: scale(0.7) rotate(-8deg);
  animation: avatarPopIn 0.8s cubic-bezier(.68,-0.55,.27,1.55) 0.2s forwards;
}

.animated-name {
  opacity: 0;
  transform: translateY(32px) scale(0.95);
  animation: nameFadeIn 1s cubic-bezier(.4,2,.3,1) 0.7s forwards;
}

@keyframes avatarPopIn {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-8deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes nameFadeIn {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-modal-credits {
  margin-top: 18px;
  color: #bfcfff;
  font-size: 1.05rem;
  font-family: 'Poppins', Arial, sans-serif;
  background: rgba(30,40,70,0.7);
  border-radius: 8px;
  padding: 10px 22px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  text-align: center;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}

