/* ==========================================================================
   PERFIL DE ARTISTA Y CONSTELACIÓN TARAB - CSS DEFINITIVO Y UNIFICADO
   ========================================================================== */
/* ==========================================================================
   OCULTAR EL SELECTOR DE OPERADOR EN EL FILTRO EXPUESTO
   ========================================================================== */
.js-form-item-field-perfil-especialidades-value-op {
  display: none !important;
}
.views-exposed-form .form-actions {
  display: none !important;
}
/* Ocultar definitivamente el select nativo de Drupal para que solo se vean las pastillas */
#edit-field-perfil-especialidades-value {
  display: none !important;
}

/* 1. Contenedor General */
.artist-profile-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.node--type-artist { display: block; }

/* 2. Hero */
.artist-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  overflow: visible;
}
@media (min-width: 992px) {
  .artist-hero-grid {
    grid-template-columns: 320px 1fr;
    align-items: stretch;
  }
}
.artist-hero-grid .field-item.tile-music iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 10 !important;
  background: #1e1e1e !important;
}

/* Foto principal del detalle individual */
.main-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background: #1a1a1a;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.main-photo-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.main-photo-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  position: relative;
  z-index: 2;
}
.main-photo-overlay > p { display: none; }
.artist-origin-badge {
  color: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  width: 100%;
  justify-content: center;
}
.artist-origin-badge i { color: #ff7b00; }
.specialty-chips { width: 100%; }
.specialty-chips .field-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.specialty-chips .field-item {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  color: #1f2937;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}
.specialty-chips .field-item:hover {
  background: #ff7b00;
  color: #fff;
  border-color: #ff7b00;
  transform: translateY(-2px);
}

/* ==========================================================================
   TARJETA CINEMATOGRÁFICA (EXCLUSIVO PARA LA VISTA DE ARTISTAS)
   ========================================================================== */

.view-id-artistas .views-view-responsive-grid__item-inner {
  background: #111111 !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
}

.view-id-artistas .views-field-field-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px;
  overflow: hidden;
}

.view-id-artistas .views-field-field-image img.image-field {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.view-id-artistas .views-field-field-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  pointer-events: none;
}

.view-id-artistas .views-field-title {
  position: absolute;
  bottom: 65px;
  left: 0;
  width: 100%;
  z-index: 4;
  text-align: center;
  padding: 0 14px;
  box-sizing: border-box;
}

.view-id-artistas .views-field-title a {
  color: #ff8c1a !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 123, 0, 0.6);
}

.view-id-artistas .views-field-field-perfil-especialidades {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  padding: 0 12px;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.view-id-artistas .views-field-field-perfil-especialidades ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 5px !important;
  max-width: 96% !important;
}

.view-id-artistas .views-field-field-perfil-especialidades li {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 3px 9px !important;
  border-radius: 12px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  pointer-events: auto;
  white-space: nowrap !important;
}


/* ==========================================================================
   MINIPASTILLAS INDEPENDIENTES PARA CADA ESPECIALIDAD (DEFINITIVO)
   ========================================================================== */

.views-field-field-perfil-especialidades {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  padding: 0 12px;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* Contenedor general de la lista de Drupal */
.views-field-field-perfil-especialidades ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 5px !important;
  max-width: 96% !important;
}

/* Cada <li> se convierte en su propia pastilla individual flotante */
.views-field-field-perfil-especialidades li {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 3px 9px !important;
  border-radius: 12px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  pointer-events: auto;
  white-space: nowrap !important; /* Mantiene icono y texto pegados sin separarse */
}

/* Efecto hover elegante en cada pastilla individual */
.views-field-field-perfil-especialidades li:hover {
  background: rgba(255, 123, 0, 0.85) !important;
  border-color: #ff7b00 !important;
}

/* ==========================================================================
   4. FILTROS SUPERIORES (PASTILLAS DE BÚSQUEDA)
   ========================================================================== */

.views-exposed-form {
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 2rem;
  text-align: center;
}

.tarab-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.tarab-pill {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
  outline: none !important;
}

.tarab-pill:hover {
  border-color: #ff7b00 !important;
  color: #ff7b00 !important;
  background: #fff8f0 !important;
}

.tarab-pill.is-active {
  background: #ff7b00 !important;
  color: #ffffff !important;
  border-color: #ff7b00 !important;
  box-shadow: 0 3px 8px rgba(255, 123, 0, 0.3) !important;
}

/* ==========================================================================
   5. COMPONENTES GENERALES Y GALERÍA BENTO (INTERIOR DE PERFIL)
   ========================================================================== */

.artist-hero-grid .metro-gallery {
  width: 100% !important;
  height: 520px !important;
  min-height: 480px !important;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: #ff7b00 rgba(0,0,0,0.05);
}

/* Grilla fluida por defecto para móviles (2 columnas) */
.artist-hero-grid .metro-gallery .field-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 110px;
  grid-auto-flow: dense;
  gap: 10px;
  width: 100%;
  padding: 2px;
}

/* Escritorio (Pantallas grandes de 4 columnas) */
@media (min-width: 768px) {
  .artist-hero-grid .metro-gallery .field-items {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 115px;
  }
}

/* Tamaños Bento adaptados */
.artist-hero-grid .metro-gallery .field-item.tile-small { grid-column: span 1 !important; grid-row: span 1 !important; }
.artist-hero-grid .metro-gallery .field-item.tile-square { grid-column: span 2 !important; grid-row: span 2 !important; }
.artist-hero-grid .metro-gallery .field-item.tile-video { grid-column: span 2 !important; grid-row: span 2 !important; }
@media (min-width: 768px) {
  .artist-hero-grid .metro-gallery .field-item.tile-video { grid-column: span 3 !important; grid-row: span 2 !important; }
}
.artist-hero-grid .metro-gallery .field-item.tile-tall { grid-column: span 2 !important; grid-row: span 3 !important; }
.artist-hero-grid .metro-gallery .field-item.tile-landscape { grid-column: span 2 !important; grid-row: span 2 !important; }
@media (min-width: 768px) {
  .artist-hero-grid .metro-gallery .field-item.tile-landscape { grid-column: span 4 !important; grid-row: span 2 !important; }
}
.artist-hero-grid .metro-gallery .field-item.tile-half { grid-column: span 2 !important; grid-row: span 1 !important; }

.artist-hero-grid .tile-inner-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.artist-hero-grid .tile-img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 1;
}

.artist-hero-grid .tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 8px;
  pointer-events: none;
}

.artist-hero-grid .tile-overlay.overlay-bottom {
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
}

.artist-hero-grid .tile-label {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  line-height: 1.1;
  word-break: break-word;
}

/* Modales y secciones secundarias */
.tarab-media-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}
.tarab-media-modal .tarab-modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.tarab-media-modal .tarab-modal-close {
  position: absolute;
  top: 10px; right: 15px;
  background: transparent; border: none;
  color: #fff; font-size: 32px; cursor: pointer; z-index: 10;
}
.tarab-media-modal .tarab-modal-body {
  width: 100%; aspect-ratio: 16/9; background: #000;
}
.tarab-media-modal .tarab-modal-body iframe {
  width: 100%; height: 100%; border: 0;
}

/* Secciones de contenido */
.artist-profile-container .artist-section {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.artist-profile-container .section-title {
  font-size: 1.35rem; font-weight: 700; color: #1f2937; margin-bottom: 1.5rem; position: relative; padding-bottom: 12px;
}
.artist-profile-container .section-title::before {
  content: ""; position: absolute; bottom: 4px; left: 0; width: 60px; height: 3px; background-color: #ff7b00; border-radius: 2px;
}
/* ==========================================================================
   ELIMINAR CAJA GRIS DEL FILTRO EXPUESTO
   ========================================================================== */
.views-exposed-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
}

.views-exposed-form fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ocultar el título "Perfil / Especialidades" si ya se entiende por las pastillas */
.views-exposed-form .fieldset-legend {
  display: none !important;
}
/* 3. Ficha Técnica y Estadísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.stat-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.stat-value { font-size: 1.25rem; font-weight: 700; color: #1a1a1a; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; color: #6c757d; margin-top: 4px; }

/* 4. Tablas y Experiencia */
.table-responsive-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}
.tarab-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; text-align: left; }
.tarab-table th {
  position: sticky; top: 0;
  background: #1f2937 !important; color: #ffffff !important;
  font-weight: 700; text-transform: uppercase; font-size: 0.73rem;
  letter-spacing: 0.8px; padding: 12px 14px; border-bottom: 3px solid #ff7b00; z-index: 10;
}
.tarab-table td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: middle; }
.tarab-table tr:hover td { background-color: rgba(255, 123, 0, 0.03); }
/* 5. Habilidades y Gatitos Tarab! */
.skills-convention-box {
  background: #fdfbf7;
  border: 1px solid #fae1d2;
  border-left: 4px solid #ff7b00;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #374151;
}
.convention-title { font-weight: 700; color: #1f2937; margin-bottom: 6px; text-transform: uppercase; font-size: 0.8rem; }
.convention-list { margin: 0; padding-left: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 16px; list-style-type: disc; }

.skills-compact-grid .field-items { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; align-items: center !important; }
.paragraph--type--competencia-artistica {
  display: inline-flex !important; flex-direction: row !important; align-items: center !important;
  justify-content: space-between; gap: 12px !important; background: #ffffff !important;
  border: 1px solid #e5e7eb !important; border-radius: 20px !important; padding: 8px 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02); font-size: 0.88rem; transition: all 0.2s ease;
}
.skill-name { font-weight: 600; color: #1f2937; }
.skill-cats { display: inline-flex; gap: 3px; align-items: center; background: #fff3e0; padding: 3px 8px; border-radius: 12px; border: 1px solid #ffe0b2; }
.cat-icon {
  display: inline-block; width: 13px; height: 16px;
  background-image: url('/themes/tarab/images/gato-tarab.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
/* 6. Redes Sociales y Management */
.social-links-grid { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; align-items: center !important; margin-top: 10px !important; }
.social-btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 44px !important; height: 44px !important; background: #1f2937 !important; border-radius: 50% !important;
  text-decoration: none !important; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); transition: all 0.25s ease;
}
.social-btn i { color: #ffffff !important; font-size: 1.2rem !important; line-height: 1 !important; }
.social-btn:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.social-btn.instagram:hover { background: #e1306c !important; }
.social-btn.youtube:hover    { background: #ff0000 !important; }
.social-btn.facebook:hover   { background: #1877f2 !important; }
.social-btn.tiktok:hover     { background: #000000 !important; }

.management-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #fdf8f5; border: 1px solid #fae1d2; border-radius: 10px; padding: 1rem;
}
.mgmt-info span { font-size: 0.85rem; color: #6c757d; }

/* 7. Listas Limpias (Tarab Bullets) */
.tarab-bullet-list { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.tarab-bullet-list li {
  list-style: none !important; display: flex; align-items: center; gap: 12px;
  background: #fdfbf7; border: 1px solid #fae1d2; border-radius: 10px; padding: 10px 14px;
  font-size: 0.9rem; color: #1f2937; transition: all 0.2s ease;
}
.tarab-bullet-list li::marker { content: "" !important; }
.tarab-bullet-list li:hover { border-color: #ff7b00; background: #fff8f0; transform: translateX(3px); }
.tarab-bullet-list li i { color: #ff7b00; font-size: 1.1rem; flex-shrink: 0; }

.connections-grid-two-cols { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .connections-grid-two-cols { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.conn-col { background: #fcfcfc; border: 1px solid #eaeaea; border-radius: 10px; padding: 1.2rem; min-width: 0; overflow: hidden; }
.sub-section-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #374151; margin-bottom: 0.75rem; font-weight: 700; }

.projects-clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.pc-card { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.2rem; }
.pc-card h3 { font-size: 0.85rem; text-transform: uppercase; color: #ff7b00; margin-bottom: 0.5rem; font-weight: 700; }
