/* ===== VARIABLES ===== */
:root {
  /* Paleta de colores mejorada con burdeos */
  --primary: #8b1538;
  --primary-dark: #6d1029;
  --primary-light: #a91d47;
  --secondary: #1a1a2e;
  --accent: #d4a574;
  --accent-light: #e8c9a8;
  --background: #fafafa;
  --foreground: #1a1a2e;
  --muted: #f5f0ed;
  --muted-foreground: #6b7280;
  --border: #e2d9d3;
  --card: #ffffff;
  --radius: 12px;
  /* Sombras más elegantes */
  --shadow: 0 4px 20px rgba(139, 21, 56, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(139, 21, 56, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 24px 48px rgba(139, 21, 56, 0.16), 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  /* Suavizado de fuentes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

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

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Botones mejorados con mejor feedback visual */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 21, 56, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 21, 56, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d2d4a 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(26, 26, 46, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 26, 46, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ===== TOP BAR ===== */
.top-bar {
  background: linear-gradient(135deg, var(--secondary) 0%, #252544 100%);
  color: white;
  padding: 0.625rem 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info span {
  margin-right: 1.5rem;
  opacity: 0.9;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.language-selector a {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.language-selector a:hover,
.language-selector a.lang-active {
  background-color: var(--primary);
}

/* ===== HEADER ===== */
.header {
  background-color: var(--card);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 0;
}

/* Logo más elegante */
.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo i {
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-list a {
  font-weight: 500;
  color: var(--foreground);
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 75vh;
  min-height: 550px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
}

/* Gradiente hero con burdeos */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(139, 21, 56, 0.92) 0%,
    rgba(26, 26, 46, 0.85) 50%,
    rgba(26, 26, 46, 0.7) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  color: white;
  max-width: 750px;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 2.25rem;
  opacity: 0.92;
  line-height: 1.6;
  font-weight: 400;
}

.slider-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.slider-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn.active,
.slider-btn:hover {
  background: white;
  transform: scale(1.15);
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

/* Tarjetas de categoría más elegantes */
.category-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(139, 21, 56, 0.25);
}

.category-icon i {
  font-size: 1.85rem;
  color: white;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(139, 21, 56, 0.35);
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.category-card span {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ===== LATEST COMPANIES ===== */
.latest-companies {
  padding: 6rem 0;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Tarjetas de empresa completamente rediseñadas */
.company-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
}

.company-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.company-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-card:hover .company-image img {
  transform: scale(1.08);
}

/* Badge más llamativo */
.company-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

/* Header de tarjeta con gradiente mejorado */
.company-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1.125rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company-logo {
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.company-logo i {
  font-size: 1.35rem;
  color: var(--primary);
}

.company-category {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.company-body {
  padding: 1.75rem;
}

.company-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.company-description {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.company-contact p {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--foreground);
  margin-bottom: 0.6rem;
}

.company-contact i {
  color: var(--primary);
  width: 18px;
  font-size: 0.95rem;
}

/* Footer de tarjeta más elegante */
.company-footer {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(180deg, var(--muted) 0%, #f0ebe7 100%);
  border-top: 1px solid var(--border);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(139, 21, 56, 0.3);
}

.view-all {
  text-align: center;
  margin-top: 3.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

/* Wrapper de contacto mejorado */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info-block {
  background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 3.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-info-block::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-info-block h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
}

.contact-info-block > p {
  opacity: 0.92;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  position: relative;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.contact-list li:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-list i {
  width: 22px;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-form-block {
  padding: 3.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--foreground);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.1);
  background: var(--card);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--primary);
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-group a {
  color: var(--primary);
  font-weight: 500;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--secondary) 0%, #12121f 100%);
  color: white;
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.footer-logo i {
  font-size: 2rem;
  color: var(--accent);
}

.footer-col p {
  opacity: 0.75;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.footer-col h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--accent);
  letter-spacing: 0.025em;
}

.footer-col ul li {
  margin-bottom: 0.85rem;
}

.footer-col ul a {
  opacity: 0.75;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 8px;
}

.contact-footer li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  opacity: 0.75;
}

.contact-footer i {
  margin-top: 0.25rem;
  color: var(--accent);
}

.footer-bottom {
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 2.5rem;
}

.footer-legal a {
  opacity: 0.7;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom p {
  opacity: 0.5;
  font-size: 0.9rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--secondary) 0%, #12121f 100%);
  color: white;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  padding: 0;
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem;
}

.cookie-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.cookie-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.cookie-content a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-content a:hover {
  color: white;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cookie-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.cookie-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.cookie-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.cookie-checkbox input[type="checkbox"]:disabled {
  opacity: 0.7;
}

.cookie-checkbox label {
  cursor: pointer;
}

.cookie-checkbox label span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
}

.btn-cookie-config {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
}

.btn-cookie-config:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-cookie-reject:hover {
  background: var(--primary);
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(139, 21, 56, 0.4);
}

.btn-cookie-accept:hover {
  box-shadow: 0 6px 20px rgba(139, 21, 56, 0.5);
  transform: translateY(-2px);
}

/* ===== DIRECTORIO PAGE ===== */
.page-header {
  background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 5rem 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  position: relative;
}

.page-header p {
  opacity: 0.92;
  font-size: 1.15rem;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
}

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

.directory-section {
  padding: 4rem 0;
}

.directory-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.search-box {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  max-width: 420px;
}

.search-box input {
  flex: 1;
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.1);
}

.filter-select {
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--card);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.results-count {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Cambiado de 2 a 3 columnas */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Estilos para mensaje de no resultados */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.no-results-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 21, 56, 0.25);
}

.no-results-icon i {
  font-size: 2.25rem;
  color: white;
}

.no-results h3 {
  font-size: 1.6rem;
  color: var(--foreground);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.no-results p {
  color: var(--muted-foreground);
  max-width: 420px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  width: 100%;
  clear: both;
}

.pagination a,
.pagination span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
}

.pagination .pagination-ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--muted-foreground);
}

.pagination a:hover:not(.disabled):not(.pagination-ellipsis) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 21, 56, 0.25);
}

.pagination .pagination-number.active,
.pagination span.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: var(--primary);
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(139, 21, 56, 0.35);
}

.pagination .prev-btn,
.pagination .next-btn {
  background: var(--muted);
  color: var(--foreground);
}

.pagination .prev-btn:hover:not(.disabled),
.pagination .next-btn:hover:not(.disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .prev-btn.disabled,
.pagination .next-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  padding: 5rem 0;
}

.legal-content .container {
  max-width: 900px;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.legal-content .last-updated {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
  color: var(--foreground);
}

.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.85rem;
  color: var(--foreground);
}

.legal-content p {
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.legal-content ul {
  margin: 1.15rem 0;
  padding-left: 1.75rem;
}

.legal-content ul li {
  color: var(--muted-foreground);
  margin-bottom: 0.6rem;
  list-style: disc;
  line-height: 1.7;
}

.legal-content a {
  color: var(--primary);
  font-weight: 500;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide-content h1 {
    font-size: 2.75rem;
  }

  /* Añadido breakpoint para tablets con 2 columnas */
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .contact-info span {
    display: block;
    margin: 0.3rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .nav-list a {
    display: block;
    padding: 1rem 0;
  }

  .nav-list a::after {
    display: none;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    height: 60vh;
    min-height: 450px;
  }

  .slide-content {
    padding: 0 6%;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1.05rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info-block,
  .contact-form-block {
    padding: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

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

  .directory-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: 100%;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .cookie-content {
    padding: 1.5rem;
  }

  .cookie-checkboxes {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }

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

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

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

  .category-card {
    padding: 1.75rem 1.25rem;
  }

  .slide-content h1 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .contact-info-block,
  .contact-form-block {
    padding: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
  }

  .company-body {
    padding: 1.5rem;
  }
}
