/* ------sepsi------- */
body {
  background-color: #FFF6F6;
  background-image: url('https://www.transparenttextures.com/patterns/rice-paper.png');
  font-family: 'ZCOOL QingKe HuangYou', monospace;
  color: #5C3317;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ------------ EFECTOS GLITCH MEJORADOSJAJAJ ------------ */
.glitch {
  animation: glitch 1.5s linear infinite;
}

.glitch-img {
  animation: glitch-img 5s linear infinite;
}

.glitch-text {
  animation: glitch-text 8s linear infinite;
}

.glitch-border {
  animation: glitch-border 3s linear infinite;
}

@keyframes glitch {
  0%, 100% { 
    text-shadow: 2px 2px 0px #8B0000; 
    transform: translate(0);
  }
  20% { 
    text-shadow: -2px -2px 0 red, 2px 2px 0 cyan;
    transform: translate(-2px, 2px);
  }
  40% { 
    text-shadow: 2px -2px 0 lime, -2px 2px 0 yellow;
    transform: translate(2px, -2px);
  }
  60% { 
    text-shadow: -2px 0 0 magenta, 2px 0 0 aqua;
    transform: skew(5deg);
  }
  80% { 
    text-shadow: 0 -2px 0 orange, 0 2px 0 purple;
    transform: skew(-5deg);
  }
}

@keyframes glitch-img {
  0%, 100% { 
    filter: none;
    transform: translateY(0);
  }
  20% { 
    filter: drop-shadow(2px 0 0 red) drop-shadow(-2px 0 0 cyan);
    transform: translateY(-3px);
  }
  40% { 
    filter: drop-shadow(0 2px 0 lime) drop-shadow(0 -2px 0 yellow);
    transform: translateY(3px);
  }
  60% { 
    filter: hue-rotate(90deg) contrast(150%);
    transform: scale(1.02);
  }
  80% { 
    filter: hue-rotate(-90deg) brightness(120%);
    transform: scale(0.98);
  }
}

@keyframes glitch-text {
  0%, 100% { 
    opacity: 1;
    letter-spacing: normal;
  }
  25% { 
    opacity: 0.8;
    letter-spacing: 1px;
  }
  50% { 
    opacity: 0.9;
    letter-spacing: -1px;
  }
  75% { 
    opacity: 0.7;
    letter-spacing: 2px;
  }
}

@keyframes glitch-border {
  0%, 100% { 
    background: repeating-linear-gradient(45deg, #AE0001, #AE0001 10px, #FFDE00 10px, #FFDE00 20px);
  }
  33% { 
    background: repeating-linear-gradient(45deg, #00AE68, #00AE68 10px, #FF8C00 10px, #FF8C00 20px);
  }
  66% { 
    background: repeating-linear-gradient(45deg, #6800AE, #6800AE 10px, #00FFAA 10px, #00FFAA 20px);
  }
}

/* ------------ BARRA SUPERIOR ------------ */
.barra_superior {
  background: #AE0001;
  color: #FFDE00;
  padding: 10px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.5rem;
  border-bottom: 3px dashed #FFDE00;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  overflow: hidden;
  white-space: nowrap;
}

.banner-text {
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ------------ DIVIDER ------------ */
.divider {
  height: 5px;
  width: 100%;
  margin-top: 50px;
}

/* ------------ CONTENEDORUNICO PRINCIPAL ------------ */
.main-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: rgba(255, 253, 245, 0.9);
  border: 8px double #AE0001;
  box-shadow: 0 0 0 8px #FFDE00, 
              0 0 20px rgba(0,0,0,0.3);
  margin-top: 80px;
}

/* ------------ PERFIL ------------ */
.profile-box {
  text-align: center;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border: 4px solid #AE0001;
  border-radius: 0 0 50px 50px;
  width: 80%;
  position: relative;
  transition: all 0.5s ease;
}

.profile-box:before {
  content: "唯";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #AE0001;
  color: #FFDE00;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  font-family: 'Noto Serif SC', serif;
}

.profile-img {
  border: 3px solid #AE0001;
  border-radius: 5px;
  box-shadow: 5px 5px 0px rgba(174, 0, 1, 0.3);
  max-width: 200px;
  height: auto;
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: rotate(-5deg) scale(1.05);
  animation: none !important;
}

.portfolio-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 2.5rem;
  color: #AE0001;
  margin: 15px 0;
  text-shadow: 3px 3px 0px rgba(174, 0, 1, 0.2);
  letter-spacing: 3px;
}

.portfolio-title span {
  display: block;
  font-family: 'ZCOOL QingKe HuangYou', monospace;
  font-size: 1.2rem;
  color: #5C3317;
  letter-spacing: normal;
  margin-top: 5px;
}

/* ------------ MENSAJE OCULTO EN LA IMAGEN ------------ */
.hidden-message {
  position: absolute;
  width: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  overflow: hidden;
  background-color: #FFF9F9;
  top: 50%;
  transform: translateY(-50%);
  padding: 20px;
  border-left: 4px solid #FFDE00;
  font-family: 'Noto Serif SC', serif;
}

.profile-box:hover {
  width: 90%;
  min-height: 300px;
}

.profile-box:hover .hidden-message {
  visibility: visible;
  width: 400px;
  opacity: 1;
  padding: 20px;
}

/* ------------ GALERÍA IMAGENES ------------ */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Esto mantiene las imágenes centradas */
  gap: 30px;
  margin: 40px 0;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border: 5px solid white;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: float 4s ease-in-out infinite;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 15px rgba(174, 0, 1, 0.5);
  border-color: #FFDE00;
  animation: none;
}


.scroll-img {
  border: 5px solid white;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  width: 250px; /* Tamaño fijo para uniformidad */
  height: 250px;
  object-fit: cover; /* Para que las imágenes mantengan proporciones */
  transition: all 0.3s ease;
  animation: float 4s ease-in-out infinite;
}

.image-caption {
  text-align: center;
  padding: 10px;
  font-family: 'Noto Serif SC', serif;
  background: white;
  color: #5C3317;
  border-top: 2px dashed #AE0001;
}

.image-caption span {
  display: block;
  font-size: 0.9em;
  color: #AE0001;
  margin-top: 5px;
}

.gallery-item::after {
  content: "◕‿◕ :3";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(174, 0, 1, 0.85);
  color: #FFDE00;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.2rem;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
  flex-direction: column;
}

.gallery-item:hover::after {
  opacity: 1;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ------------ FOOTER ------------ */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-family: 'Noto Serif SC', serif;
  border-top: 1px solid #AE0001;
  color: #5C3317;
  position: relative;
}

.footer-seal {
  background: #AE0001;
  color: #FFDE00;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin: 0 auto 10px;
}

/* ------------ GATOS ANIMADOS CON LICHR ------------ */
.cat-decoration {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  z-index: 50;
  opacity: 0.9;
  pointer-events: none;
  animation: glitch-cat-container 8s linear infinite;
}

.cat-decoration.left {
  left: 3%;
  transform: translateY(-50%) scaleX(-1);
}

.cat-decoration.right {
  right: 3%;
}

@keyframes glitch-cat-container {
  0%, 100% { 
    filter: drop-shadow(0 0 5px rgba(174, 0, 1, 0.5));
  }
  20% { 
    filter: drop-shadow(2px 0 0 red) drop-shadow(-2px 0 0 cyan);
    transform: translateY(-51%) scale(1.02);
  }
  40% { 
    filter: drop-shadow(0 2px 0 lime) drop-shadow(0 -2px 0 yellow);
    transform: translateY(-49%) scale(0.98);
  }
  60% { 
    filter: hue-rotate(45deg) contrast(150%);
    transform: translateY(-50%) scale(1.01) skewX(5deg);
  }
  80% { 
    filter: hue-rotate(-45deg) brightness(120%);
    transform: translateY(-50%) scale(0.99) skewX(-5deg);
  }
}

.cat-decoration.left {
  animation-name: glitch-cat-container-left;
}

@keyframes glitch-cat-container-left {
  0%, 100% { 
    filter: drop-shadow(0 0 5px rgba(174, 0, 1, 0.5));
    transform: translateY(-50%) scaleX(-1);
  }
  20% { 
    filter: drop-shadow(2px 0 0 red) drop-shadow(-2px 0 0 cyan);
    transform: translateY(-51%) scaleX(-1.02) scaleY(1.02);
  }
  40% { 
    filter: drop-shadow(0 2px 0 lime) drop-shadow(0 -2px 0 yellow);
    transform: translateY(-49%) scaleX(-0.98) scaleY(0.98);
  }
  60% { 
    filter: hue-rotate(45deg) contrast(150%);
    transform: translateY(-50%) scaleX(-1.01) scaleY(1.01) skewX(5deg);
  }
  80% { 
    filter: hue-rotate(-45deg) brightness(120%);
    transform: translateY(-50%) scaleX(-0.99) scaleY(0.99) skewX(-5deg);
  }
}

.cat-decoration .tenor-gif-embed {
  width: 100%;
  height: auto;
}

/* ------------ BOTONES ------------ */
.chinese-button {
  background: #AE0001;
  color: #FFDE00;
  border: none;
  padding: 12px 25px;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  margin: 10px;
}

.chinese-button:hover {
  background: #8B0000;
  transform: translateY(-3px);
  box-shadow: 5px 5px 0px rgba(0,0,0,0.2);
}

.chinese-button::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #FFDE00, #AE0001, #FFDE00);
  background-size: 200% 200%;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
  animation: gradientGlow 3s ease infinite;
}

.chinese-button:hover::before {
  opacity: 0.3;
}

@keyframes gradientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.chinese-button.glitch {
  animation: glitch-button 5s linear infinite;
}

@keyframes glitch-button {
  0%, 100% { 
    text-shadow: 1px 1px 0px #8B0000;
    transform: translateY(0);
  }
  20% { 
    text-shadow: -1px -1px 0 red, 1px 1px 0 cyan;
    transform: translateY(-2px);
  }
  40% { 
    text-shadow: 1px -1px 0 lime, -1px 1px 0 yellow;
    transform: translateY(2px);
  }
  60% { 
    text-shadow: -1px 0 0 magenta, 1px 0 0 aqua;
    transform: skew(3deg);
  }
  80% { 
    text-shadow: 0 -1px 0 orange, 0 1px 0 purple;
    transform: skew(-3deg);
  }
}

/* ------------ VISOR DE IMAGEN ------------ */
.image-viewer-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 40px 20px;
  background: rgba(255, 253, 245, 0.9);
  border: 8px double #AE0001;
  box-shadow: 0 0 0 8px #FFDE00, 
              0 0 20px rgba(0,0,0,0.3);
  margin-top: 80px;
  text-align: center;
}




.image-viewer-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fullsize-img {
  max-width: 85%;
  max-height: 65vh;
  object-fit: contain; /* Mantiene proporciones sin recortar */
  border: 5px solid white;
  box-shadow: 0 0 15px rgba(174, 0, 1, 0.5);
  margin: 0 auto 30px;
  animation: glitch-img 5s linear infinite;
}

.image-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 2rem;
  color: #AE0001;
  margin-bottom: 15px;
  text-shadow: 3px 3px 0px rgba(174, 0, 1, 0.2);
  animation: glitch-text 8s linear infinite;
}

.image-description {
  font-family: 'Noto Serif SC', serif;
  max-width: 600px;
  margin: 0 auto 30px;
  padding: 15px;
  background: rgba(255, 222, 0, 0.1);
  border-left: 3px solid #AE0001;
}

.navigation-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* el visor */
@media (max-width: 768px) {
  .image-viewer-container {
    padding: 20px 10px;
    margin-top: 60px;
  }
  
  .fullsize-img {
    max-width: 95%;
    max-height: 55vh;
  }
  
  .image-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .fullsize-img {
    max-width: 100%;
    max-height: 50vh;
  }
  
  .image-title {
    font-size: 1.3rem;
  }
  
  .image-description {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* ------------ RESPONSIV ------------ */
@media (max-width: 1200px) {
  .cat-decoration {
    width: 180px;
  }
  .cat-decoration.left {
    left: 5%;
  }
  .cat-decoration.right {
    right: 5%;
  }
}

@media (max-width: 768px) {
  .glitch, .glitch-img, .glitch-text, .glitch-border {
    animation: none !important;
  }
  
  .profile-box {
    width: 90%;
  }
  
  .profile-box:hover .hidden-message {
    width: 80%;
    position: relative;
    transform: none;
    top: auto;
    margin: 20px auto;
    border-left: none;
    border-top: 4px solid #FFDE00;
  }
  
  .gallery {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .scroll-img {
    max-width: 80%;
  }
  
  .cat-decoration {
    width: 140px;
    opacity: 0.8;
  }
  .cat-decoration.left {
    left: 2%;
  }
  .cat-decoration.right {
    right: 2%;
  }
  
  .image-viewer-container {
    padding: 20px 10px;
    margin-top: 60px;
  }
  
  .fullsize-img {
    max-width: 95%;
    max-height: 55vh;
  }
  
  .image-title {
    font-size: 1.5rem;
  }
  
  .navigation-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .gallery-item::after {
    font-size: 1rem;
  }
  
  .chinese-button {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cat-decoration {
    width: 100px;
  }
  .cat-decoration.left {
    left: 1%;
  }
  .cat-decoration.right {
    right: 1%;
  }
  
  .image-caption {
    font-size: 0.9rem;
  }
  
  .image-caption span {
    font-size: 0.8rem;
  }
  
  .gallery-item::after {
    font-size: 0.9rem;
    padding: 10px;
  }
  
  .fullsize-img {
    max-width: 100%;
    max-height: 50vh;
  }
  
  .image-title {
    font-size: 1.3rem;
  }
  
  .image-description {
    padding: 10px;
    font-size: 0.9rem;
  }
}
/* ------------ PANEL DE NAVEGACIÓN SUPERIOR ------------ */
.nav-panel {
  background: rgba(174, 0, 1, 0.9);
  padding: 10px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  border-bottom: 3px dashed #FFDE00;
}

.nav-container {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.nav-section {
  position: relative;
}

.nav-link {
  font-family: 'Ma Shan Zheng', cursive;
  color: #FFDE00;
  text-decoration: none;
  font-size: 1.3rem;
  padding: 5px 15px;
  transition: all 0.3s ease;
  display: block;
}

.nav-link span {
  display: block;
  font-family: 'ZCOOL QingKe HuangYou', monospace;
  font-size: 0.9rem;
  margin-top: 3px;
}

.nav-link:hover {
  color: white;
  transform: translateY(-3px);
}

.social-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(174, 0, 1, 0.95);
  border: 2px solid #FFDE00;
  border-radius: 0 0 10px 10px;
  width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-section:hover .social-dropdown {
  opacity: 1;
  visibility: visible;
}

.social-link {
  display: block;
  padding: 10px;
  color: #FFDE00;
  text-decoration: none;
  font-family: 'ZCOOL QingKe HuangYou', monospace;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 222, 0, 0.2);
}

.social-link:last-child {
  border-bottom: none;
}

.social-link:hover {
  background: rgba(255, 222, 0, 0.1);
  color: white;
}

.social-link i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

/* Ajuste para responsive */
@media (max-width: 768px) {
  .nav-container {
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 10px;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 5px 10px;
  }
  
  .barra_superior {
    top: 90px; /* Más espacio en móviles */
  }
}

@media (max-width: 480px) {
  .nav-container {
    gap: 10px;
  }
  
  .nav-link {
    font-size: 1rem;
  }
  
  .nav-link span {
    font-size: 0.8rem;
  }
  
  .social-dropdown {
    width: 130px;
  }
}
/* ------------ MENSAJE DE BIENVENIDA ------------ */
.welcome-message {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.8rem;
  color: #AE0001;
  text-align: center;
  margin: 20px 0 40px;
  padding: 15px;
  background: rgba(255, 222, 0, 0.2);
  border-radius: 10px;
  border: 2px dashed #AE0001;
}

/* Ajustes para el mensaje de bienvenida */
@media (max-width: 768px) {
  .welcome-message {
    font-size: 1.5rem;
    margin: 15px 0 30px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .welcome-message {
    font-size: 1.3rem;
    margin: 10px 0 20px;
  }
}
