/* ==========================================================================
   EmpresasMX - Directorio Nacional de Empresas Mexicanas
   Diseño moderno, responsive, mobile-first
   ========================================================================== */

/* ==========================================================================
   Variables CSS (Design Tokens)
   ========================================================================== */
:root {
  /* Colores Principales - Inspirados en la Bandera de México */
  --color-primary: #006847;        /* Verde México */
  --color-primary-dark: #004d35;
  --color-primary-light: #00844d;

  --color-secondary: #CE1126;      /* Rojo México */
  --color-secondary-dark: #a00d1e;

  --color-accent: #CE1126;         /* Rojo para CTAs */
  --color-accent-dark: #a00d1e;

  /* Colores de Soporte */
  --color-gray-900: #1F2937;
  --color-gray-800: #374151;
  --color-gray-700: #4B5563;
  --color-gray-600: #6B7280;
  --color-gray-500: #9CA3AF;
  --color-gray-400: #D1D5DB;
  --color-gray-300: #E5E7EB;
  --color-gray-200: #F3F4F6;
  --color-gray-100: #F9FAFB;

  --color-white: #FFFFFF;

  /* Colores Semánticos */
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --color-success: #10B981;
  --color-info: #3B82F6;

  /* Tipografía */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Espaciado */
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 9999px;

  /* Transiciones - DESACTIVADAS */
  --transition-fast: 0ms;
  --transition-base: 0ms;
  --transition-slow: 0ms;

  /* Contenedor máximo */
  --container-max-width: 1280px;
}

/* ==========================================================================
   Reset y Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin: 0 0 var(--spacing-4) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--spacing-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-8);
  }
}

.section {
  padding: var(--spacing-12) 0;
}

@media (min-width: 1024px) {
  .section {
    padding: var(--spacing-20) 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--font-size-lg);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-1) var(--spacing-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-premium {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.badge-success {
  background-color: #D1FAE5;
  color: #065F46;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.nav {
  display: none;
  gap: var(--spacing-8);
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav a {
  color: var(--color-gray-700);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.nav a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-gray-700);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #006847 0%, #004d35 100%);
  color: var(--color-white);
  padding: var(--spacing-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(206, 17, 38, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero {
    padding: var(--spacing-20) 0;
  }
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-4);
  font-size: var(--font-size-3xl);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: var(--font-size-5xl);
  }
}

.hero p {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  margin-bottom: var(--spacing-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-4);
  box-shadow: var(--shadow-xl);
  max-width: 800px;
  margin: 0 auto var(--spacing-8);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

@media (min-width: 640px) {
  .search-form {
    flex-direction: row;
  }
}

.search-input {
  flex: 1;
  padding: var(--spacing-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-gray-900);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-select {
  padding: var(--spacing-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  cursor: pointer;
}

@media (min-width: 640px) {
  .search-select {
    width: 200px;
  }
}

.search-btn {
  padding: var(--spacing-4) var(--spacing-8);
}

.quick-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  justify-content: center;
}

.quick-category {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-category:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-12);
}

.section-title h2 {
  margin-bottom: var(--spacing-3);
}

.section-title p {
  color: var(--color-gray-600);
  font-size: var(--font-size-lg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-4);
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-6);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  text-align: center;
  cursor: pointer;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-3);
}

.category-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-2);
}

.category-count {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   FEATURED COMPANIES
   ========================================================================== */
.companies-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-6);
}

@media (min-width: 768px) {
  .companies-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .companies-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.company-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Imagen superior de la card */
.company-image {
  width: calc(100% + (var(--spacing-6) * 2));
  height: 180px;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  margin: calc(var(--spacing-6) * -1) calc(var(--spacing-6) * -1) var(--spacing-6);
  margin-top: calc(var(--spacing-6) * -1);
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
}

.company-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-4);
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--color-gray-200);
}

.company-title-section {
  width: 100%;
}

.company-info h3 {
  margin: 0 0 var(--spacing-2) 0;
  font-size: var(--font-size-lg);
  line-height: 1.3;
  color: var(--color-gray-900);
}

.company-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  background: #FEF2F2;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-2);
}

.company-meta {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.company-meta::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
}

.company-body {
  flex: 1;
  margin-bottom: var(--spacing-2);
}

.company-description {
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-4);
  line-height: 1.6;
  font-size: var(--font-size-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-bottom: 0;
}

.company-tag {
  font-size: var(--font-size-xs);
  padding: var(--spacing-1) var(--spacing-3);
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
}

.company-footer {
  margin-top: auto;
  padding-top: var(--spacing-3);
  border-top: 1px solid var(--color-gray-200);
}

.company-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-4);
  font-size: var(--font-size-xs);
  color: var(--color-gray-600);
}

.company-contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.company-contact-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.company-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2);
}

.company-actions .btn {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
  justify-content: center;
  width: 100%;
}

/* ==========================================================================
   STATES SECTION
   ========================================================================== */
.states-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  justify-content: center;
}

.state-tag {
  padding: var(--spacing-3) var(--spacing-5);
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  border: 1px solid var(--color-gray-300);
}

.state-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.benefits {
  background: var(--color-gray-100);
}

.benefits-grid {
  display: grid;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-10);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  text-align: center;
  background: transparent;
  box-shadow: none;
  padding: var(--spacing-4);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-4);
}

.benefit-card h3 {
  margin-bottom: var(--spacing-3);
}

.benefit-card p {
  color: var(--color-gray-600);
  margin-bottom: 0;
}

.benefits-cta {
  text-align: center;
}

.pricing-hint {
  margin-top: var(--spacing-4);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-grid {
  display: grid;
  gap: var(--spacing-6);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-image {
  width: 100%;
  height: 200px;
  background: var(--color-gray-200);
  margin-bottom: var(--spacing-4);
}

.blog-content {
  padding: 0 var(--spacing-6) var(--spacing-6);
}

.blog-card h3 {
  margin-bottom: var(--spacing-3);
  font-size: var(--font-size-xl);
}

.blog-meta {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats {
  background: var(--color-primary);
  color: var(--color-white);
}

.stats-grid {
  display: grid;
  gap: var(--spacing-8);
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-2);
  color: var(--color-white);
}

.stat-label {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

.stats-quote {
  text-align: center;
  margin-top: var(--spacing-12);
  font-size: var(--font-size-xl);
  font-style: italic;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: var(--spacing-12) 0 var(--spacing-6) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-10);
  margin-bottom: var(--spacing-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-8);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-12);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  margin-bottom: var(--spacing-6);
}

.footer-brand .logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--spacing-3);
}

.footer-brand .logo span {
  color: var(--color-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.footer-contact p {
  margin: 0;
  color: var(--color-gray-400);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.footer-heading {
  color: var(--color-white);
  margin-bottom: var(--spacing-5);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--spacing-6);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  background: var(--color-gray-100);
  padding: var(--spacing-4) 0;
  font-size: var(--font-size-sm);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 var(--spacing-2);
  color: var(--color-gray-500);
}

/* ==========================================================================
   CATEGORY HERO
   ========================================================================== */
.category-hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--spacing-12) 0;
  text-align: center;
}

.category-hero-content {
  margin-bottom: var(--spacing-8);
}

.category-icon-large {
  margin: 0 auto var(--spacing-6);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.category-icon-large .icon {
  width: 48px;
  height: 48px;
  stroke: var(--color-white);
}

.category-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-4);
}

.category-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  max-width: 700px;
  margin: 0 auto var(--spacing-3);
}

.category-count {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   FILTERS SECTION
   ========================================================================== */
.filters-section {
  background: var(--color-white);
  padding: var(--spacing-6) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.filters-bar {
  display: flex;
  gap: var(--spacing-4);
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.filter-select {
  padding: var(--spacing-3) var(--spacing-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--color-gray-900);
  background: var(--color-white);
  cursor: pointer;
  font-family: inherit;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.1);
}

@media (max-width: 768px) {
  .filter-group {
    min-width: 100%;
  }
}

/* ==========================================================================
   RESULTS HEADER
   ========================================================================== */
.results-header {
  margin-bottom: var(--spacing-8);
}

.results-header h2 {
  margin-bottom: var(--spacing-2);
}

.results-header p {
  color: var(--color-gray-600);
  font-size: var(--font-size-base);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  gap: var(--spacing-2);
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-10);
  flex-wrap: wrap;
}

.pagination-btn {
  padding: var(--spacing-2) var(--spacing-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-gray-700);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--color-gray-100);
  border-color: var(--color-gray-400);
}

.pagination-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-dots {
  color: var(--color-gray-500);
  padding: 0 var(--spacing-2);
}

/* ==========================================================================
   COMPANY PROFILE PAGE
   ========================================================================== */
.company-profile-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--spacing-12) 0 var(--spacing-10);
}

/* Hero Grid Layout - 3 Columnas */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: var(--spacing-8);
  align-items: start;
}

/* Columna Izquierda - Logo y Badges */
.hero-left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.company-profile-image {
  width: 150px;
  height: 150px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.company-profile-badges {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  align-items: center;
  width: 100%;
}

.company-verified {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-4);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  backdrop-filter: blur(10px);
}

/* Columna Central - Información Principal */
.hero-center-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.company-profile-hero h1 {
  color: var(--color-white);
  margin: 0;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.company-tagline {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.6;
  font-weight: var(--font-weight-medium);
}

/* Meta Inline - Rating y Ubicación en línea */
.hero-meta-inline {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.hero-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--font-size-xl);
  line-height: 1;
}

.company-rating-large {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.company-rating-large span {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: rgba(255, 255, 255, 0.85);
}

.company-location-large {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-weight-medium);
}

.company-location-large svg {
  flex-shrink: 0;
}

/* Tags de Servicios */
.company-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
}

.company-profile-tags .company-tag {
  padding: var(--spacing-2) var(--spacing-4);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

/* Columna Derecha - Botones de Acción */
.hero-right-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  font-size: var(--font-size-base);
  padding: var(--spacing-3) var(--spacing-6);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  font-weight: var(--font-weight-semibold);
}

.btn-accent {
  background-color: #25D366;
  color: var(--color-white);
  border: 2px solid #25D366;
}

.btn-accent:hover {
  background-color: #20BA5A;
  border-color: #20BA5A;
  color: var(--color-white);
}

/* Responsive - Mobile */
@media (max-width: 1024px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }

  .hero-left-column {
    text-align: center;
  }

  .company-profile-badges {
    flex-direction: row;
    justify-content: center;
  }

  .company-profile-hero h1 {
    font-size: var(--font-size-3xl);
  }

  .company-tagline {
    font-size: var(--font-size-base);
  }

  .hero-meta-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-3);
  }

  .hero-separator {
    display: none;
  }

  .hero-right-column {
    width: 100%;
  }

  .company-profile-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .company-profile-hero {
    padding: var(--spacing-10) 0 var(--spacing-8);
  }
}

/* Company Content Layout */
.company-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--spacing-8);
}

@media (max-width: 1024px) {
  .company-content {
    grid-template-columns: 1fr;
  }
}

.company-main-content h2 {
  margin-bottom: var(--spacing-4);
  color: var(--color-gray-900);
}

.company-main-content h3 {
  margin-top: var(--spacing-8);
  margin-bottom: var(--spacing-4);
  color: var(--color-gray-900);
}

.company-main-content h4 {
  margin-top: var(--spacing-6);
  margin-bottom: var(--spacing-3);
  color: var(--color-gray-900);
}

.company-main-content p {
  margin-bottom: var(--spacing-4);
  line-height: 1.8;
  color: var(--color-gray-700);
}

.services-section {
  margin-bottom: var(--spacing-8);
  padding: var(--spacing-6);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-4) 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2);
}

.services-list li {
  padding-left: var(--spacing-6);
  position: relative;
  color: var(--color-gray-700);
  line-height: 1.8;
}

.services-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.info-box {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-6);
  border-radius: var(--radius-lg);
  margin: var(--spacing-8) 0;
}

.info-box h4 {
  color: var(--color-white);
  margin-top: 0;
  margin-bottom: var(--spacing-3);
}

.info-box p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
}

/* Sidebar */
.company-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

.sidebar-card {
  position: sticky;
  top: var(--spacing-20);
}

.sidebar-card h3 {
  margin-bottom: var(--spacing-4);
  font-size: var(--font-size-lg);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.contact-info-item {
  display: flex;
  gap: var(--spacing-3);
  align-items: flex-start;
}

.contact-info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong {
  display: block;
  margin-bottom: var(--spacing-1);
  color: var(--color-gray-900);
  font-size: var(--font-size-sm);
}

.contact-info-item p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.location-item {
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--color-gray-200);
}

.location-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.location-item strong {
  display: block;
  margin-bottom: var(--spacing-2);
  color: var(--color-gray-900);
  font-size: var(--font-size-base);
}

.location-item p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.categories-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
}

.category-tag-link {
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: 1px solid var(--color-gray-300);
}

.category-tag-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-6);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.testimonial-rating {
  font-size: var(--font-size-lg);
  color: var(--color-accent);
}

.testimonial-text {
  flex: 1;
  font-style: italic;
  color: var(--color-gray-700);
  line-height: 1.8;
  margin: 0;
}

.testimonial-author {
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--spacing-3);
}

.testimonial-author strong {
  display: block;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-1);
}

.testimonial-author p {
  margin: var(--spacing-1) 0 0 0;
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-5);
  background: var(--color-white);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-4);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--color-gray-50);
}

.faq-question span {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--spacing-5) var(--spacing-5);
}

.faq-answer p {
  margin: 0;
  color: var(--color-gray-700);
  line-height: 1.8;
  font-size: var(--font-size-base);
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */
@media (max-width: 640px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

/* ==========================================================================
   Utilities adicionales
   ========================================================================== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

/* ==========================================================================
   Iconos SVG Minimalistas
   ========================================================================== */
.icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  margin-bottom: var(--spacing-3);
}

.icon-lg {
  width: 64px;
  height: 64px;
}

.icon-xl {
  width: 80px;
  height: 80px;
}

.category-card .icon {
  width: 56px;
  height: 56px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

.category-card:hover .icon {
  stroke: var(--color-primary);
}

.benefit-icon .icon {
  width: 64px;
  height: 64px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

/* Contenedor de icono centrado */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
