/* ========================================
   COPY'S PLACE WEBSITE - ESTILOS PRINCIPALES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  background-color: #0f0a08;
  background-image: url('../assets/fondo.gif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-dark);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* ========== HEADER / NAVEGACIÓN ========== */
/* Minimalista y transparente: se funde con el fondo, el título es quien protagoniza */
header {
  background: transparent;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
}

.header-spacer {
  flex: 1;
}

/* DARK MODE TOGGLE */
.theme-toggle {
  background: rgba(15, 10, 8, 0.6);
  border: 2px solid var(--orange);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--orange);
  transform: scale(1.1);
}

/* BOTÓN DE MENÚ (antes escondido, ahora es la navegación principal) */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 10, 8, 0.6);
  border: 2px solid var(--orange);
  color: var(--cream);
  font-size: 1.1rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: var(--orange);
  transform: scale(1.1);
}

/* ========== HERO SECTION ========== */
.hero {
  background: transparent;
  color: var(--cream);
  padding: 2rem 1rem 3rem;
  text-align: center;
  border-bottom: none;
  box-shadow: none;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Estrellitas decorativas alrededor del título, sutiles */
.hero::before,
.hero::after {
  content: "✦ ⋆ ✦ ⋆ ✦";
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--orange);
  opacity: 0.5;
  font-size: 0.9rem;
  letter-spacing: 1.5rem;
  animation: twinkle 4s ease-in-out infinite;
}

.hero::before {
  top: 12%;
}

.hero::after {
  bottom: 12%;
  animation-delay: 2s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.6; }
}

.hero-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 3.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0.5rem 0;
  text-shadow: 
    4px 4px 0 var(--text-dark),
    8px 8px 0 rgba(0, 0, 0, 0.3);
  color: var(--orange);
  animation: pixelGlow 3s ease-in-out infinite;
}

@keyframes pixelGlow {
  0%, 100% {
    text-shadow: 
      4px 4px 0 var(--text-dark),
      8px 8px 0 rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 
      4px 4px 0 var(--text-dark),
      8px 8px 0 rgba(0, 0, 0, 0.3),
      0 0 20px var(--orange);
    transform: scale(1.02);
  }
}

.hero-content .pixel-cat {
  font-size: 2.5rem;
  animation: bounce-cat 2.5s ease-in-out infinite;
}

@keyframes bounce-cat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== CAJA DE INTRODUCCIÓN DEL SITIO ========== */
/* Usa var(--cream)/var(--text-dark), así se adapta correctamente al modo claro/oscuro */
.site-intro-box {
  background: var(--cream);
  color: var(--text-dark);
  border: 5px solid var(--orange);
  padding: 2rem 1.8rem;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 640px;
  width: 100%;
  margin: 1rem auto 0;
}

.site-intro-box h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  color: var(--deep-orange);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 var(--light-pink);
}

.site-intro-box p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* SLIDE PANEL DE REDES */
.social-slide-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 350px;
  height: 100vh;
  background: rgba(20, 12, 8, 0.95);
  border-left: 4px solid var(--orange);
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 300;
  padding: 2rem 1rem;
  transform: translateX(400px);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}

.social-slide-panel.active {
  transform: translateX(0);
}

.social-slide-panel h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 0 var(--hot-pink);
}

.social-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--hot-pink);
  border: 2px solid var(--text-dark);
  color: var(--cream);
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-close-btn:hover {
  transform: scale(1.1);
}

.social-link-item {
  background: rgba(255, 122, 61, 0.2);
  border: 3px solid var(--orange);
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link-item:hover {
  background: rgba(255, 122, 61, 0.4);
  transform: translate(-5px, 0);
}

.social-link-item.active-link {
  background: var(--orange);
  border-color: var(--hot-pink);
}

.social-link-item.active-link .social-link-text {
  color: var(--text-dark);
}

.social-link-icon {
  font-size: 1.5rem;
}

.social-link-text {
  color: var(--cream);
  font-weight: bold;
  font-size: 0.9rem;
}

/* ========== OVERLAY PARA SLIDE ========== */
.social-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-overlay.active {
  display: block;
  opacity: 1;
}

/* ========== CONTAINER GENÉRICO ========== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========== SECCIONES ========== */
section {
  padding: 3rem 1rem;
  border-bottom: 4px dashed var(--orange);
  transition: background-color 0.3s ease;
  background: rgba(15, 10, 8, 0.98);
}

section h2 {
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--deep-orange);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  position: relative;
  padding-left: 1rem;
  text-shadow: 2px 2px 0 rgba(255, 122, 61, 0.2);
}

section h2::before {
  content: "▶ ";
  color: var(--hot-pink);
  font-size: 1.2rem;
}

/* ========== NOVEDAD DESTACADA (home) ========== */
.novedad-destacada {
  background: var(--cream);
  color: var(--text-dark);
  border: 5px solid var(--hot-pink);
  padding: 2rem 1.8rem;
  max-width: 640px;
  width: calc(100% - 2rem);
  margin: 2.5rem auto 0;
  text-align: center;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
  position: relative;
  animation: floatSpotlight 4s ease-in-out infinite;
}

@keyframes floatSpotlight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.spotlight-label {
  color: var(--hot-pink);
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.spotlight-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--deep-orange);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.spotlight-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.spotlight-link {
  display: inline-block;
  color: var(--orange);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--orange);
  transition: all 0.3s ease;
}

.spotlight-link:hover {
  color: var(--hot-pink);
  border-color: var(--hot-pink);
}

/* ========== TÍTULO DE PÁGINA (subpáginas) ========== */
.page-title-section {
  padding: 2.5rem 1rem 1rem;
  text-align: center;
}

.page-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.6rem;
  color: var(--orange);
  text-shadow: 3px 3px 0 var(--text-dark);
  letter-spacing: 2px;
}

/* Placeholders genéricos de secciones en construcción */
.gallery-placeholder,
.collab-placeholder,
.recursos-placeholder,
.timeline-placeholder {
  background: var(--cream);
  border: 4px dashed var(--orange);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-dark);
  box-shadow: 4px 4px 0 var(--orange);
}

.gallery-placeholder p,
.collab-placeholder p,
.recursos-placeholder p,
.timeline-placeholder p {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.gallery-placeholder small,
.collab-placeholder small,
.recursos-placeholder small,
.timeline-placeholder small {
  color: var(--deep-orange);
  opacity: 0.85;
}

.gallery-grid,
.colaboraciones-grid,
.recursos-grid {
  display: grid;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: var(--cream);
  border: 4px solid var(--text-dark);
  box-shadow: 4px 4px 0 var(--orange);
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--hot-pink);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--text-dark);
}

.gallery-caption {
  padding: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-align: center;
}

/* ========== PORTAFOLIO / PROYECTOS ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  background: var(--cream);
  border: 4px solid var(--text-dark);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--orange);
}

.portfolio-item:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--orange);
}

.portfolio-item h3 {
  color: var(--deep-orange);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--light-pink);
}

.portfolio-item p {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.portfolio-tag {
  display: inline-block;
  background-color: var(--orange);
  color: var(--cream);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 2px solid var(--text-dark);
  font-weight: bold;
}

.project-preview {
  position: relative;
}

.project-preview::before {
  content: "[ Preview ]";
  display: block;
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 1px;
}

.project-preview img {
  width: 100%;
  border: 2px solid var(--text-dark);
  margin: 0.5rem 0;
}

/* ========== ABOUT ME ========== */
.about-content {
  background: var(--cream);
  padding: 2rem;
  border: 4px solid var(--text-dark);
  box-shadow: 4px 4px 0 var(--orange);
}

.about-content .name {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: var(--deep-orange);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.about-content .alias {
  font-size: 1rem;
  color: var(--hot-pink);
  font-weight: bold;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-content h3 {
  color: var(--deep-orange);
  text-shadow: 2px 2px 0 var(--light-pink);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill {
  background: var(--light-pink);
  border: 3px solid var(--text-dark);
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  color: var(--deep-orange);
  box-shadow: 2px 2px 0 var(--orange);
  transition: all 0.3s ease;
}

.skill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--hot-pink);
}

/* ========== CONTACT SECTION ========== */
.contact-form-wrapper {
  max-width: 550px;
  margin: 0 auto;
}

.contact-container {
  background: var(--cream);
  padding: 2rem;
  border: 4px solid var(--text-dark);
  text-align: center;
  box-shadow: 4px 4px 0 var(--orange);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  width: 50px;
  height: 50px;
  background-color: var(--orange);
  color: var(--cream);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 3px solid var(--text-dark);
  box-shadow: 3px 3px 0 var(--text-dark);
}

.social-link:hover {
  background-color: var(--hot-pink);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--text-dark);
}

/* ========== UPDATES SECTION ========== */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-month {
  background: var(--light-pink);
  border: 3px solid var(--text-dark);
  padding: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--deep-orange);
  text-shadow: 1px 1px 0 var(--cream);
}

.update-item {
  background: var(--cream);
  border: 4px solid var(--text-dark);
  padding: 1.5rem;
  box-shadow: 4px 4px 0 var(--orange);
  transition: all 0.3s ease;
}

.update-item:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--orange);
}

.update-title {
  color: var(--deep-orange);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.update-description {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== COMMENTS / CHAT ========== */
.comments-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comment-form {
  background: var(--cream);
  border: 4px solid var(--text-dark);
  padding: 1.5rem;
  box-shadow: 4px 4px 0 var(--orange);
  order: 2;
}

.comment-form h3,
.comments-display h3 {
  color: var(--deep-orange);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--light-pink);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--deep-orange);
  font-weight: bold;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 3px solid var(--text-dark);
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background-color: var(--orange);
  color: var(--cream);
  border: 3px solid var(--text-dark);
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 var(--text-dark);
  font-family: 'Courier New', monospace;
}

.submit-btn:hover {
  background-color: var(--hot-pink);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--text-dark);
}

.comments-display {
  background: var(--cream);
  border: 4px solid var(--text-dark);
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: 4px 4px 0 var(--orange);
  order: 1;
}

.comment {
  background-color: var(--light-pink);
  border: 3px solid var(--text-dark);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 var(--orange);
}

.comment-author {
  font-weight: bold;
  color: var(--deep-orange);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--orange);
  opacity: 0.8;
}

.comment-text {
  margin-top: 0.5rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  word-break: break-word;
}

/* COMMENT REACTIONS */
.comment-reactions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.reaction-btn {
  background: var(--cream);
  border: 2px solid var(--text-dark);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.reaction-btn:hover {
  transform: scale(1.1);
  background: var(--orange);
  border-color: var(--orange);
}

.reaction-btn.active {
  background: var(--orange);
  color: var(--cream);
  border-color: var(--orange);
}

.reaction-count {
  font-size: 0.8rem;
  display: inline-block;
}

.no-comments {
  text-align: center;
  color: var(--text-dark);
  font-style: italic;
  padding: 2rem;
  opacity: 0.7;
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--deep-orange);
  color: var(--cream);
  text-align: center;
  padding: 2rem 1rem;
  border-top: 6px solid var(--orange);
  border-bottom: 6px solid var(--text-dark);
  font-size: 0.9rem;
  box-shadow: 0 -4px 0 var(--text-dark);
}

footer p {
  margin-bottom: 0.5rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* ========== DECORATIONS ========== */
.divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--orange);
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
}

.pixel-decoration {
  display: inline-block;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49%, 100% { opacity: 1; }
  50%, 99% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .site-intro-box,
  .novedad-destacada {
    padding: 1.5rem;
    border-width: 4px;
  }

  .hero::before,
  .hero::after {
    letter-spacing: 1rem;
    font-size: 0.75rem;
  }

  .social-slide-panel {
    width: 85vw;
    transform: translateX(100vw);
  }

  .pixel-cat {
    font-size: 2.5rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .comments-section {
    grid-template-columns: 1fr;
  }

  .comment-form,
  .comments-display {
    order: unset !important;
  }

  .comments-display {
    max-height: 400px;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }

  .update-item {
    padding: 1rem;
    box-shadow: 2px 2px 0 var(--orange);
  }

  .update-item:hover {
    box-shadow: 4px 4px 0 var(--orange);
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 0;
  }

  .hero {
    min-height: 45vh;
    padding: 1.5rem 1rem 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin: 1rem 0;
  }

  .pixel-cat {
    font-size: 2rem;
  }

  section,
  .page-title-section {
    padding: 2rem 1rem;
  }

  section h2 {
    font-size: 1.1rem;
  }

  .page-title {
    font-size: 1.2rem;
  }

  .site-intro-box,
  .novedad-destacada {
    padding: 1rem;
    border-width: 3px;
  }

  .site-intro-box h2 {
    font-size: 0.95rem;
  }

  .spotlight-title {
    font-size: 1.1rem;
  }

  .portfolio-item {
    padding: 1rem;
    box-shadow: 2px 2px 0 var(--orange);
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .social-slide-panel {
    width: 90vw;
  }
}
