/* ==========================================================================
   1. ESTILOS GLOBALES Y PALETA DE COLOR
   ========================================================================== */
body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  background-color: #f0f4f8;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ==========================================================================
   2. LAYOUT PRINCIPAL (CONTENEDOR)
   ========================================================================== */
.container {
  width: 80%;
  max-width: 960px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* ==========================================================================
   3. BARRA DE NAVEGACIÓN
   ========================================================================== */
nav {
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 2px solid #eaf1f8;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
nav a {
  display: inline-block;
  text-decoration: none;
  color: #2c3e50;
  background-color: #f0f4f8;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 25px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
nav a:hover {
  background-color: #eaf1f8;
  border-color: #3498db;
  color: #3498db;
}
nav a.activo {
  background-color: #3498db;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* ==========================================================================
   4. TÍTULOS Y TEXTOS
   ========================================================================== */
h1 {
  text-align: center;
}
h1 + p {
  text-align: center;
  padding: 0 20px;
}
h2 { /* Estilo base para todos los h2 */
  font-weight: bold;
  color: #2c3e50;
}


/* ==========================================================================
   5. SECCIÓN "SOBRE MÍ"
   ========================================================================== */
.sobre-mi {
  display: flex;
  align-items: center;
  gap: 40px;
}
.sobre-mi-imagen {
  flex: 1;
  max-width: 300px;
}
.sobre-mi-imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.15);
}
.sobre-mi-texto {
  flex: 2;
}
.sobre-mi-texto h2 {
  margin-top: 25px;
  margin-bottom: 10px;
}
.sobre-mi-texto h2:first-of-type {
  margin-top: 0;
}
.sobre-mi-texto p {
  text-align: justify;
}

/* ==========================================================================
   6. PORTAFOLIO FILTRABLE (CON MENÚ ACORDEÓN)
   ========================================================================== */
.portfolio-wrapper {
  display: flex;
  gap: 30px;
}
.filtros {
  flex: 0 0 220px;
}
.filtros h3 {
  border-bottom: 2px solid #eaf1f8;
  padding-bottom: 10px;
}
.lista-filtros-principal {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lista-filtros-principal > li {
  margin-bottom: 10px;
}
.boton-filtro {
  display: block;
  width: 100%;
  background-color: transparent;
  border: 1px solid #eaf1f8;
  color: #2c3e50;
  padding: 12px;
  text-align: left;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.boton-filtro:hover {
  background-color: #f0f4f8;
  border-color: #3498db;
}
.boton-filtro.activo {
  background-color: #3498db;
  color: #ffffff;
  border-color: #3498db;
  font-weight: bold;
}
.categoria-padre {
  position: relative;
}
.subcategorias {
  list-style: none;
  padding-left: 25px;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
.categoria-padre.expandido .subcategorias {
  max-height: 500px;
}
.subcategorias li {
  position: relative;
  margin-bottom: 10px;
}
.subcategorias li::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 22px;
  border-bottom: 1px solid #ccc;
  width: 10px;
}
.subcategorias li::after {
  content: '';
  position: absolute;
  left: -15px;
  top: 0;
  border-left: 1px solid #ccc;
  height: 100%;
}
.subcategorias li:last-child::after {
  height: 22px;
}
.galeria-filtrable {
  flex-grow: 1;
  column-count: 3;
  column-gap: 15px;
}
.item-galeria {
  margin-bottom: 15px;
  break-inside: avoid;
  border-radius: 5px;
  overflow: hidden;
}
.item-galeria img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

/* === SECCIÓN PARA ADVERTENCIA DE CONTENIDO === */
.item-galeria.contenido-sensible {
  position: relative;
  cursor: pointer;
}
.item-galeria.contenido-sensible img {
  filter: blur(15px);
  transition: filter 0.3s ease;
}
.item-galeria.contenido-sensible::before {
  content: attr(data-advertencia);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
}

/* ==========================================================================
   7. PÁGINA DE CONTACTO (GRID EN LI - VERSIÓN FINAL)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-column h3 {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 150px 48px; 
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* -- El estilo para los botones individuales (enlace <a>) -- */
.contact-list a {
  display: block;
  padding: 15px 10px;
  background-color: #ffffff;
  border: 1px solid #6cc4ff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

/* El texto ahora está en un span, lo preparamos para estar por encima */
.contact-list a span {
    position: relative;
    z-index: 2;
}

/* La capa de barrido genérica */
.contact-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Activación del barrido al hacer hover */
.contact-list a:hover::before {
  transform: translateX(0);
}

/* -- Estilos para la imagen del icono -- */
.contact-list .link-icon {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

/* === SECCIÓN PARA COLORES ESPECÍFICOS === */

/* --- X / Twitter --- */
.contact-list .btn-twitter::before {
  background-color: #222034;
}
.contact-list .btn-twitter:hover span {
  color: #ffffff;
}

/* --- Bluesky --- */
.contact-list .btn-bluesky::before {
  background-color: #208bfe;
}
.contact-list .btn-bluesky:hover span {
  color: #ffffff;
}

/* --- FurAffinity --- */
.contact-list .btn-furaffinity::before {
  background-color: #f9b038;
}
.contact-list .btn-furaffinity:hover span {
  color: #222034;
}

/* --- Inkbunny --- */
.contact-list .btn-inkbunny::before {
  background-color: #ffabe5;
}
.contact-list .btn-inkbunny:hover span {
  color: #515256;
}

/* --- Eka's Portal --- */
.contact-list .btn-ekas::before {
  background-color: #9966ff;
}
.contact-list .btn-ekas:hover span {
  color: #ffffff;
}

/* --- Picarto --- */
.contact-list .btn-picarto::before {
  background-color: #37946e;
}
.contact-list .btn-picarto:hover span {
  color: #ffffff;
}

/* --- Piczel.tv --- */
.contact-list .btn-piczel::before {
  background-color: #306082;
}
.contact-list .btn-piczel:hover span {
  color: #ffffff;
}

/* --- Discord --- */
.contact-list .btn-discord::before {
  background-color: #5865f2;
}
.contact-list .btn-discord:hover span {
  color: #ffffff;
}

/* === ¡NUEVO ESTILO PARA EL ESTADO 'COPIED'! === */
/* Este estilo se activa con JavaScript y tiene prioridad */
.contact-list .btn-discord.copied::before {
  background-color: #2ecc71; /* Un color verde de éxito */
  transform: translateX(0); /* Asegura que el barrido esté visible */
  transition: none; /* Opcional: hace que el cambio a verde sea instantáneo */
}

.contact-list .btn-discord.copied span {
  color: #ffffff;
}

/* ==========================================================================
   8. PÁGINA DE PRECIOS
   ========================================================================== */
.bloque-precios {
  margin-bottom: 60px;
}
.titulo-seccion-precios {
  text-align: center;
  font-size: 24px;
  color: #16a085;
  text-transform: uppercase;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaf1f8;
}
.contenido-precios {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 30px;
  align-items: center;
}
.imagen-ejemplo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid #eaf1f8;
}
.nota-privada {
  margin-top: 20px;
  font-style: italic;
  color: #7f8c8d;
  text-align: center;
  font-size: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
table tbody td strong {
  font-size: 16px;
  text-transform: uppercase;
  color: #2c3e50;
}
thead tr {
    background-color: #2c3e50;
    color: #ffffff;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #c4e1ff;
}
.tabla-precios td:last-child,
.tabla-precios th:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.tabla-precios thead th:first-child {
  border-top-left-radius: 8px;
}
.tabla-precios thead th:last-child {
  border-top-right-radius: 8px;
}

/* ==========================================================================
   9. MODALES (AVISO DE EDAD Y LIGHTBOX)
   ========================================================================== */
#aviso-edad {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contenido-aviso {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.contenido-aviso h2 {
  margin-top: 0;
  color: #e74c3c;
}
#boton-aceptar {
  background-color: #16a085;
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}
#boton-aceptar:hover {
  background-color: #1abc9c;
}
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.visible {
  display: flex;
}
.lightbox-container {
  position: relative;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.4s ease-out;
}
.lightbox-contenido {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
}
.cerrar-lightbox {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #fff;
  color: #2c3e50;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.cerrar-lightbox:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   10. ANIMACIONES
   ========================================================================== */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   11. RESPONSIVIDAD (REGLAS PARA MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {

  /* --- "Sobre Mí" en móvil --- */
  .sobre-mi {
    flex-direction: column;
    text-align: center;
  }
  .sobre-mi-texto h2 {
    text-align: center;
  }
  .sobre-mi-imagen {
    margin-bottom: 20px;
  }

  /* --- Portafolio Filtrable en móvil --- */
  .portfolio-wrapper {
    flex-direction: column;
  }
  .filtros {
    flex: 1 1 auto;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
  }
  .lista-filtros-principal {
     /* En móvil, no queremos un layout de árbol complejo, lo simplificamos */
  }
  .subcategorias {
     padding-left: 15px; /* Menos indentación en móvil */
  }
  .subcategorias li::before, .subcategorias li::after {
     display: none; /* Ocultamos las líneas conectoras en móvil */
  }

  /* --- Galería en móvil --- */
  .galeria-filtrable {
    column-count: 2;
  }

  /* --- Página de Contacto en móvil --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* --- Página de Precios en móvil --- */
  .contenido-precios {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}