/* ========================================
   PATRIMONIO FICHAS - HERITAGE DESIGN SYSTEM
   ======================================== */

/* ========================================
   1. DESIGN SYSTEM VARIABLES
   ======================================== */
:root {
  /* Brand Colors */
  --pf-primary: #C65D33;
  --pf-secondary: #D4AF37;
  --pf-accent: #2D5F3F;
  
  /* Base Colors */
  --pf-background: #FDFCF9;
  --pf-foreground: #2C1810;
  --pf-muted: #F5F3F0;
  --pf-border: #E8E3DB;
  
  /* Status Colors */
  --pf-excellent: #D4AF37;
  --pf-good: #4A7C59;
  --pf-caution: #E07A39;
  --pf-danger: #dc3545;
  
  /* Gradients */
  --pf-gradient-heritage: linear-gradient(135deg, #C65D33, #D4AF37);
  --pf-gradient-card: linear-gradient(145deg, #FFFFFF, #F5F3F0);
  
  /* Shadows */
  --pf-shadow-card: 0 2px 10px rgba(44, 24, 16, 0.08);
  --pf-shadow-elevated: 0 8px 30px rgba(198, 93, 51, 0.2);
  
  /* Transitions */
  --pf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. BASE STYLES & RESET
   ======================================== */
.pf-dashboard,
.pf-dashboard * {
  box-sizing: border-box;
}

.pf-dashboard {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--pf-foreground);
  background-color: var(--pf-background);
}

/* ========================================
   3. HERO SECTION
   ======================================== */
.pf-hero {
  background: var(--pf-gradient-heritage);
  color: white !important;
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.pf-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pf-hero-title {
  font-size: 2.5rem;
  color: white !important;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pf-hero-title i {
  font-size: 2rem;
}

.pf-hero-description {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   4. STATISTICS SECTION
   ======================================== */
.pf-stats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pf-stat-card {
  background: var(--pf-gradient-card);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--pf-shadow-card);
  transition: var(--pf-transition);
}

.pf-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pf-shadow-elevated);
}

.pf-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pf-primary);
  margin-bottom: 0.5rem;
}

.pf-stat-excellent .pf-stat-number {
  color: var(--pf-excellent);
}

.pf-stat-good .pf-stat-number {
  color: var(--pf-good);
}

.pf-stat-caution .pf-stat-number {
  color: var(--pf-caution);
}

.pf-stat-label {
  font-size: 0.875rem;
  color: var(--pf-foreground);
  opacity: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ========================================
   CSS para hacer el mapa responsive
   ======================================== */

.pf-map-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  height: 300px;      /* 👈 altura fija */
  overflow: hidden;
  border-radius: 10px;
}

.pf-map-container iframe {
  width: 100%;
  height: 100%;       /* 👈 llena esos 300px */
  border: 0;
  border-radius: 10px;
}

/* ========================================
   5. FILTERS SECTION
   ======================================== */
.pf-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pf-filters-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Search Input */
.pf-search-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.pf-search-container input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid var(--pf-border);
  border-radius: 24px;
  font-size: 16px;
  background: white;
  transition: var(--pf-transition);
}

.pf-search-container input:focus {
  outline: none;
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(198, 93, 51, 0.1);
}

.pf-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pf-primary);
  opacity: 0.6;
}

/* Category Selector */
.pf-category-selector {
  position: relative;
  min-width: 160px;
}

.pf-category-selector select {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid var(--pf-border);
  border-radius: 24px;
  font-size: 16px;
  background: white;
  transition: var(--pf-transition);
  appearance: none;
  cursor: pointer;
}

.pf-category-selector select:focus {
  outline: none;
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(198, 93, 51, 0.1);
}

.pf-category-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pf-primary);
  opacity: 0.6;
  pointer-events: none;
}

.pf-category-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pf-primary);
  opacity: 0.6;
  pointer-events: none;
}

/* Filter Badges */
.pf-filter-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.pf-filter-label {
  color: var(--pf-foreground);
  opacity: 0.7;
  font-weight: 500;
  margin-right: 0.5rem;
}

.pf-filter-badge {
  padding: 12px 20px;
  border-radius: 30px;
  border: 2px solid var(--pf-border);
  background: white;
  color: var(--pf-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--pf-transition);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pf-filter-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pf-filter-badge.active,
.pf-filter-badge.pf-badge-excellent {
  background: var(--pf-excellent);
  border-color: var(--pf-excellent);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.pf-filter-badge.pf-badge-good {
  background: var(--pf-good);
  border-color: var(--pf-good);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.pf-filter-badge.pf-badge-caution {
  background: var(--pf-caution);
  border-color: var(--pf-caution);
  color: white;
  box-shadow: 0 4px 15px rgba(224, 122, 57, 0.3);
}

/* ========================================
   6. CARDS GRID
   ======================================== */
.pf-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}




/* ========================================
   6B. SIMPLE GRID (Shortcode)
   ======================================== */
.pf-grid-simple {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pf-card-simple {
  background: white;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--pf-shadow-card);
  transition: var(--pf-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pf-card-simple:hover {
  transform: translateY(-3px);
  box-shadow: var(--pf-shadow-elevated);
}

.pf-card-simple .pf-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pf-card-simple .pf-card-title a {
  text-decoration: none;
  color: var(--pf-foreground);
  transition: var(--pf-transition);
}

.pf-card-simple .pf-card-title a:hover {
  color: var(--pf-primary);
}

.pf-card-chars {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
}

.pf-card-chars li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: var(--pf-foreground);
}

.pf-card-chars i {
  color: var(--pf-primary);
  font-size: 0.95rem;
}

.pf-card-simple .pf-button {
  align-self: flex-start;
  margin-top: auto;
}




/* ========================================
   6C. COMPACT MODE FOR MAIN GRID
   ======================================== */


/* ✅ Forzar que en el grid los textos estén alineados a la izquierda */
.pf-grid .pf-card-description,
.pf-grid .pf-card-description p,
.pf-grid .pf-characteristic,
.pf-grid .pf-card-title,
.pf-grid .pf-card p,
.pf-grid .pf-card-chars li {
  text-align: left !important;
}


.pf-grid .pf-card-title {
  font-size: clamp(1.1rem, 1vw, 1.1rem) !important; /* más pequeño y fluido */
  margin-bottom: 5px;
  line-height: 1.2;                       /* compacto */
  max-height: calc(1.2em * 2);            /* máximo 2 líneas */
  overflow: hidden;                       /* corta lo que exceda */
  white-space: normal;                    /* permite saltos de línea */
}




/* ✅ Compactar características solo dentro del grid */
.pf-grid .pf-characteristic {
  font-size: 0.7rem !important;        /* texto más pequeño */
  line-height: 1.2 !important;         /* más compacto */
}

.pf-grid .pf-characteristic i {
  font-size: 0.7rem !important;        /* iconos más pequeños */
  margin-right: 0.25rem !important;    /* menos espacio al lado del icono */
}

.pf-grid .pf-characteristic-name,
.pf-grid .pf-status {
  font-size: 0.7rem !important;        /* nombres y estados más pequeños */
}




/* ========================================
  6D. Ocultar la seccion de cumplimiento
   ======================================== */

.pf-progress-section {
  display: none !important;
}


/* ========================================
   7. INDIVIDUAL CARD STYLES
   ======================================== */
.pf-card {
  background: var(--pf-gradient-card);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--pf-shadow-card);
  transition: var(--pf-transition);
  display: flex;
  flex-direction: column;
}

.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pf-shadow-elevated);
}

/* Card Header */

.pf-card-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;  /* ✅ siempre vertical */
  align-items: flex-start;
  gap: 0.75rem;
}






.pf-card-title-section {
  flex: 1;
  min-width: 0;
}

.pf-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.pf-card-title a {
  color: var(--pf-foreground);
  text-decoration: none;
  transition: var(--pf-transition);
}

.pf-card-title a:hover {
  color: var(--pf-primary);
}

.pf-card-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--pf-foreground);
  opacity: 0.7;
}

.pf-card-location i {
  color: var(--pf-primary);
}

/* Card Description */
.pf-card-description {
  padding: 0 1.5rem 1rem;
  background: rgba(198, 93, 51, 0.05);
  margin: 0 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--pf-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pf-foreground);
}

/* Card Content */
.pf-card-content {
  padding: 1.5rem;
  flex: 1;
}

.pf-characteristics-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pf-foreground);
  opacity: 0.7;
  margin: 0 0 1rem;
}

.pf-characteristics {
  margin-bottom: 1.5rem;
}

.pf-characteristic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: var(--pf-transition);
}

.pf-characteristic:hover {
  box-shadow: var(--pf-shadow-card);
}

.pf-characteristic-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.pf-characteristic-info i {
  color: var(--pf-primary);
  opacity: 0.7;
  width: 16px;
}

.pf-characteristic-info span {
  font-size: 0.875rem;
  font-weight: 500;
}

.pf-more-characteristics {
  text-align: center;
  font-size: 0.75rem;
  color: var(--pf-foreground);
  opacity: 0.6;
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* Progress Section */
.pf-progress-section {
  margin-top: 1rem;
}

.pf-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pf-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pf-foreground);
  opacity: 0.7;
}

.pf-progress-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pf-primary);
}

.pf-progress {
  height: 8px;
  background: var(--pf-muted);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.pf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pf-good), var(--pf-excellent));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.pf-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--pf-foreground);
  opacity: 0.8;
}

/* Card Actions */
.pf-card-actions {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--pf-border);
  background: white;
}

/* ========================================
   8. BADGE & STATUS STYLES
   ======================================== */
.pf-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pf-badge-excellent {
  background: var(--pf-excellent);
}

.pf-badge-good {
  background: var(--pf-good);
}

.pf-badge-caution {
  background: var(--pf-caution);
}

.pf-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.pf-status-complete {
  background: rgba(74, 124, 89, 0.1);
  color: var(--pf-good);
}

.pf-status-partial {
  background: rgba(224, 122, 57, 0.1);
  color: var(--pf-caution);
}

.pf-status-incomplete {
  background: rgba(220, 53, 69, 0.1);
  color: var(--pf-danger);
}

/* ========================================
   9. BUTTON STYLES
   ======================================== */
.pf-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--pf-transition);
  flex: 1;
  justify-content: center;
}

.pf-button-outline {
  background: transparent;
  border: 2px solid var(--pf-border);
  color: var(--pf-foreground);
}

.pf-button-outline:hover {
  border-color: var(--pf-primary);
  color: var(--pf-primary);
  transform: translateY(-1px);
}

.pf-button-secondary {
  background: var(--pf-secondary);
  color: white;
}

.pf-button-secondary:hover {
  background: var(--pf-primary);
  transform: translateY(-1px);
}

/* ========================================
   10. SINGLE FICHA PAGE STYLES
   ======================================== */
.pf-single-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.pf-single-header {
  margin-bottom: 2rem;
}

.pf-single-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pf-foreground);
  margin-bottom: 1rem;
}

.pf-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pf-single-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--pf-shadow-card);
  margin-bottom: 2rem;
}


/* Justificar texto de los párrafos en .pf-single-content */
.pf-single-content p {
  text-align: justify;
}

/* Single Page Characteristics */
.pf-single-characteristics {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--pf-muted);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  box-shadow: var(--pf-shadow-card);
}

.pf-single-characteristics h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--pf-primary);
}

.pf-single-characteristics ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-char {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--pf-border);
}

.pf-char:last-child {
  border-bottom: none;
}

.pf-char-name,
.pf-char strong {
  font-weight: 700;
  color: var(--pf-foreground);
  margin-right: 6px;
}

.pf-char i {
  font-size: 1.1rem;
  color: var(--pf-primary);
  flex-shrink: 0;
}

.pf-char-status {
  color: var(--pf-accent);
  font-size: 0.95rem;
}

/* Single Page Categories */
.pf-single-categories {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--pf-background);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
}

.pf-single-categories h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--pf-primary);
}

.pf-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pf-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0.8rem;
  background: var(--pf-muted);
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--pf-foreground);
}

/* Solo quitar subrayado en enlaces dentro de pf-card-title-section */
.pf-card-title-section h3.pf-card-title a {
  text-decoration: none;       /* ❌ sin subrayado */
  color: var(--pf-primary);    /* ✅ color destacado */
  transition: var(--pf-transition);
}

.pf-card-title-section h3.pf-card-title a:hover {
  color: var(--pf-secondary);  /* ✅ cambio en hover */
}


/* ========================================
   11. NO RESULTS STATE
   ======================================== */
.pf-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--pf-foreground);
  opacity: 0.6;
}

.pf-no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--pf-primary);
  opacity: 0.3;
}

.pf-no-results p {
  font-size: 1.125rem;
  margin: 0;
}

/* ========================================
   12. RESPONSIVE DESIGN
   ======================================== */

/* Tablet Styles */
@media (max-width: 768px) {
  .pf-hero {
    padding: 3rem 1rem;
  }
  
  .pf-hero-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .pf-hero-description {
    font-size: 1.125rem;
  }
  
  .pf-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 1.5rem 1rem;
  }
  
  .pf-filters {
    padding: 0 1rem 1.5rem;
    gap: 1.25rem;
  }
  
  .pf-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  
  .pf-search-container {
    min-width: auto;
    width: 100%;
  }
  
  .pf-category-selector {
    min-width: auto;
    width: 100%;
  }
  
  .pf-filter-badges {
    flex-direction: column;   /* ✅ en tablet vertical */
    align-items: stretch;
    gap: 1.5rem;              /* ✅ más separación */
    width: 100%;
  }
  
  .pf-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
    gap: 1.5rem;
  }
  
  .pf-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .pf-card-actions {
    flex-direction: column;
  }
  
  .pf-single-title {
    font-size: 2rem;
  }
  
  .pf-single-container {
    padding: 1.5rem 1rem;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .pf-card {
    border-radius: 12px;
  }
  
  .pf-card-header,
  .pf-card-content,
  .pf-card-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .pf-hero-title {
    font-size: 1.75rem;
  }
  
  .pf-stats {
    grid-template-columns: 1fr;
  }

  /* ✅ Ajustes extra para móvil */
  .pf-filters {
    flex-direction: column;
    gap: 1.25rem;
  }

  .pf-filters-row {
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }

  .pf-filter-badges {
    flex-direction: column;
    gap: 1.75rem;  /* ✅ aún más separación en móvil */
    width: 100%;
  }

  .pf-filter-badge {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;  /* ✅ separación extra */
  }
}

/* Tablet y móvil: que el contenido ocupe todo el ancho disponible */
@media (max-width: 768px) {
  .pf-single-content {
    width: 100%;
    margin: 1rem 0;   /* ✅ solo margen arriba y abajo */
    padding: 1.5rem 1rem; /* ✅ padding interno sin romper ancho */
  }
}

@media (max-width: 480px) {
  .pf-single-content {
    width: 100%;
    margin: 1rem 0;   /* ✅ arriba y abajo */
    padding: 1rem;    /* ✅ padding más compacto */
  }
}

/* ========================================
   13. PRINT STYLES
   ======================================== */
@media print {
  .pf-hero,
  .pf-filters,
  .pf-card-actions {
    display: none;
  }
  
  .pf-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* ========================================
   14. EXTENDED BADGES & CHARACTERISTICS
   ======================================== */

/* Badges adicionales para admin/metabox */
.pf-badge-very-good { background: var(--pf-good); }
.pf-badge-average  { background: rgba(191,175,127,0.8); color: var(--pf-foreground); }
.pf-badge-specific { background: var(--pf-accent); }

/* Características en admin (metabox) */
.pf-characteristics-container {
  background: var(--pf-muted);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 2rem;
}

.pf-characteristic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: var(--pf-transition);
}

.pf-characteristic-row:hover {
  box-shadow: var(--pf-shadow-card);
}

.pf-characteristic-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-characteristic-info i {
  color: var(--pf-primary);
  width: 18px;
}

.pf-characteristic-info span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Botones eliminar/añadir características */
.pf-characteristic-actions {
  display: flex;
  gap: 8px;
}

.pf-remove-characteristic {
  color: var(--pf-danger);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--pf-transition);
}

.pf-remove-characteristic:hover {
  background: rgba(220,53,69,0.1);
}

/* Progress Bars compactas para ficha */
.pf-characteristic-progress {
  height: 6px;
  background: var(--pf-muted);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.pf-characteristic-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pf-good), var(--pf-excellent));
  transition: width 0.5s ease;
}

/* Compactar texto de características en grids */
.pf-grid .pf-characteristic {
  font-size: 0.75rem;
  line-height: 1.2;
}

.pf-grid .pf-characteristic i {
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* Ficha individual: estilos para estados */
.pf-status.very-good {
  background: rgba(74,124,89,0.1);
  color: var(--pf-good);
}

.pf-status.average {
  background: rgba(191,175,127,0.15);
  color: var(--pf-foreground);
}

.pf-status-specific {
  background: rgba(45,95,63,0.15);
  color: var(--pf-accent);
}

/* Responsive tweaks adicionales */
@media (max-width: 480px) {
  .pf-characteristic-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pf-characteristic-info {
    flex-direction: column;
    gap: 4px;
  }
}