/* ============================
   🖥️ ESTILOS ESCRITORIO
   ============================ */
@media screen and (min-width: 768px) {
  body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
  }

  #navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }

  .navbar-container {
    max-width: 1200px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    height: 48px;
  }

  .navbar-links a {
    margin-left: 24px;
    color: #0D95E8;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
  }

  .navbar-links a:hover {
    color: #0077cc;
  }

  .facebook-logo {
    height: 24px;
  }

  .main-container {
    display: flex;
    max-width: 1400px; /* 🔧 expandido */
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
  }

  .sticky-filtros {
    position: sticky;
    top: 72px;
    z-index: 999;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: fit-content;
    max-width: 600px; /* 🔧 reducido */
    margin: auto;
  }

  .sticky-filtros h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #0D95E8;
    text-align: center;
  }

  .filtro-tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🔧 4 columnas */
    gap: 8px;
    margin-bottom: 16px;
  }

  .filtro-tags button {
    padding: 6px 12px;
    border: none;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-align: center;
  }

  .filtro-tags button.active {
    background-color: #0056b3;
  }

  .grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px; /* 🔧 expandido */
    margin: 0 auto;
  }

  .card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    text-align: center;
  }

  .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .card img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 6px;
    background-color: #f0f0f0;
    object-fit: contain;
  }

  .card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0D95E8;
    margin-bottom: 8px;
  }

  .card p {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
  }
}


/* ============================
   📱 ESTILOS MÓVIL
   ============================ */
@media screen and (max-width: 767px) {
  body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
  }

  #navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  }

  .navbar-container {
    padding: 0px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    height: 40px;
    margin-bottom: 4px;
  }

  .navbar-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .navbar-links a {
    color: #0D95E8;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
  }

  .facebook-logo {
    height: 20px;
  }

  .main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
  }

  .sticky-filtros {
    position: sticky;
    top: 70px;
    z-index: 1001;
    background-color: #fff;
    padding: 0px 0px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    max-width: 600px;
    text-align: center;
  }

  .sticky-filtros h3 {
    font-size: 12px;
    margin-bottom: 5px;
    color: #0D95E8;
  }

  .filtro-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔧 2 columnas en móvil */
    gap: 4px;
    margin-bottom: 5px;
  }

  .filtro-tags button {
    padding: 2px 4px;
    font-size: 12px;
    border: none;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-align: center;
  }

  .filtro-tags button.active {
    background-color: #0056b3;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 600px;
  }

  .card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
    background-color: #f0f0f0;
    object-fit: contain;
  }

  .card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #0D95E8;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
  }
}
