  *,
  *::before,
  *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

  :root {
      --navy: rgb(17, 32, 63);
      --blue: rgb(29, 71, 126);
      --blue-dark: rgb(30, 58, 138);
      --accent: rgb(75, 158, 217);
      --text-body: rgb(40, 41, 67);
      --white: #ffffff;
      --border: rgba(17, 32, 63, 0.15);
      --radius-card: 8px;
      --radius-btn: 10px;
      --radius-img: 8px;
      --font-head: 'Poppins', sans-serif;
      --font-body: 'Open Sans', sans-serif;
  }

  body {
      background-color: #ffffff;
  }

  /* ── WRAPPER PRINCIPAL ────────────────────────────────── */
  .proyectos-block {
      width: 100%;
      max-width: 1440px;
      margin: 0 auto;
      padding: 64px 84px;
      display: flex;
      flex-direction: column;
      gap: 48px;
      background: var(--white);
      font-family: var(--font-body);
  }

  /* ── CABECERA: TÍTULO + FILTROS ───────────────────────── */
  .proyectos__header {
      display: flex;
      flex-direction: column;
      gap: 32px;
  }

  .proyectos__title {
      font-family: var(--font-head);
      font-size: 24px;
      font-weight: 700;
      line-height: 36px;
      color: var(--blue);
  }

  /* ── FILA DE FILTROS ──────────────────────────────────── */
  .filtros-row {
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
  }

  /* Botón limpiar filtros */
  .btn-limpiar {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      font-family: var(--font-body);
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.012em;
      color: var(--navy);
      background: var(--white);
      border: 1px solid var(--navy);
      border-radius: var(--radius-btn);
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s;
      flex-shrink: 0;
  }

  .btn-limpiar:hover {
      background: var(--navy);
      color: var(--white);
  }

  /* Selects / dropdowns */
  .filtro-select-wrap {
      position: relative;
      flex: 1 1 200px;
      min-width: 160px;
      max-width: 320px;
  }

  .filtro-select-wrap select {
      width: 100%;
      appearance: none;
      -webkit-appearance: none;
      padding: 10px 40px 10px 14px;
      font-family: var(--font-body);
      font-size: 16px;
      font-weight: 400;
      color: rgba(17, 32, 63, 0.6);
      background: var(--white);
      border: 1px solid var(--navy);
      border-radius: 8px;
      cursor: pointer;
      outline: none;
      transition: border-color 0.2s;
  }

  .filtro-select-wrap select:focus {
      border-color: var(--accent);
      color: var(--navy);
  }

  .filtro-select-wrap select.active {
      color: var(--navy);
      font-weight: 600;
  }

  /* Chevron SVG personalizado */
  .filtro-select-wrap::after {
      content: '';
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 10px;
      height: 6px;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.5L4 3.5L7 0.5' stroke='%2311203F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-size: contain;
      pointer-events: none;
  }

  /* Botón de búsqueda */
  .btn-buscar {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: var(--navy);
      border: none;
      border-radius: var(--radius-btn);
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.2s;
  }

  .btn-buscar:hover {
      background: var(--blue);
  }

  .btn-buscar svg {
      width: 20px;
      height: 20px;
  }

  /* ── GRID DE CARDS ────────────────────────────────────── */
  .proyectos-grid {
      display: flex;
      flex-direction: column;
      gap: 24px;
  }

  .proyectos-row {
      display: flex;
      gap: 24px;
      align-items: flex-start;
  }

  /* ── CARD ─────────────────────────────────────────────── */
  .project-card {
      flex: 0 0 calc(33.333% - 16px);
      background: var(--white);
      border-radius: var(--radius-card);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 24px;
      box-shadow: 0 2px 12px rgba(17, 32, 63, 0.08);
      border: 1px solid var(--border);
      transition: transform 0.25s, box-shadow 0.25s;
  }

  .project-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(17, 32, 63, 0.14);
  }

  /* Imagen */
  .project-card__img {
      width: 100%;
      aspect-ratio: 16 / 16.5;
      object-fit: cover;
      border-radius: var(--radius-img);
      border: 1px solid rgb(29, 71, 126);
      display: block;
  }

  /* Cuerpo de la card */
  .project-card__body {
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex: 1;
  }

  /* Logos de clientes */
  .project-card__clients {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
  }

  .project-card__clients img {
      height: 32px;
      width: auto;
      object-fit: contain;
      filter: grayscale(100%);
      opacity: 0.6;
      transition: opacity 0.2s, filter 0.2s;
  }

  .project-card__clients img:hover {
      filter: none;
      opacity: 1;
  }

  /* Categoría */
  .project-card__categoria {
      font-size: 16px;
      font-weight: 600;
      color: var(--blue-dark);
      line-height: 1.4;
  }

  /* Línea divisoria */
  .project-card__divider {
      width: 100%;
      height: 2px;
      background: var(--navy);
      border: none;
  }

  /* Info principal */
  .project-card__info {
      display: flex;
      flex-direction: column;
      gap: 16px;
  }

  .project-card__meta {
      display: flex;
      flex-direction: column;
      gap: 8px;
  }

  .project-card__titulo {
      font-size: 28px;
      font-weight: 700;
      color: var(--blue-dark);
      line-height: 1.2;
  }

  .project-card__fecha-wrap {
      display: flex;
      /*align-items: center;*/
      gap: 8px;
      flex-direction: column-reverse;
  }

  .project-card__banderas {
      display: flex;
      align-items: center;
      gap: 4px;
  }

  .project-card__banderas span {
      font-size: 18px;
      line-height: 1;
  }

  .project-card__fecha {
      font-size: 16px;
      font-weight: 600;
      color: var(--navy);
      line-height: 1.4;
  }

  /* Descripción */
  .project-card__desc {
      font-size: 16px;
      font-weight: 400;
      color: var(--text-body);
      line-height: 1.6;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  /* Botón Leer más */
  .project-card__cta {
      display: inline-flex;
      align-items: center;
      padding: 8px 18px;
      font-family: var(--font-body);
      font-size: 16px;
      font-weight: 700;
      color: var(--navy);
      background: var(--accent);
      border: none;
      border-radius: var(--radius-btn);
      cursor: pointer;
      text-decoration: none;
      width: fit-content;
      transition: background 0.2s, transform 0.2s;
  }

  .project-card__cta:hover {
      background: rgb(55, 138, 197);
      transform: translateX(2px);
  }

  /* ── ESTADO VACÍO ─────────────────────────────────────── */
  .proyectos-empty {
      text-align: center;
      padding: 48px;
      font-size: 18px;
      color: rgba(17, 32, 63, 0.5);
      font-family: var(--font-body);
  }

  /* ── RESPONSIVE ───────────────────────────────────────── */
  @media (max-width: 1024px) {
      .proyectos-block {
          padding: 48px 40px;
      }

      .project-card {
          flex: 0 0 calc(50% - 12px);
      }

      .proyectos-row {
          flex-wrap: wrap;
      }

      .filtros-row {
          gap: 16px;
      }

      .filtro-select-wrap {
          flex: 1 1 calc(50% - 8px);
          max-width: 100%;
      }
  }

  @media (max-width: 640px) {
      .proyectos-block {
          padding: 32px 20px;
          gap: 32px;
      }

      .proyectos__title {
          font-size: 20px;
      }

      .filtros-row {
          flex-direction: column;
          align-items: stretch;
          gap: 12px;
      }

      .filtro-select-wrap {
          max-width: 100%;
      }

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

      .btn-buscar {
          width: 100%;
          height: 44px;
          border-radius: var(--radius-btn);
      }

      .proyectos-row {
          flex-direction: column;
      }

      .project-card {
          flex: 0 0 100%;
      }

      .project-card__titulo {
          font-size: 22px;
      }
  }