

/* Header, navegación y estilos base de botones movidos a css/main.css */

    /* ── Page Hero ── */
    .page-hero {
      background: linear-gradient(135deg, var(--primary) 0%, #0a3a6a 60%, #0077cc 100%);
      padding: 180px 0 100px;
      text-align: center;
      color: white;
      position: relative;
      overflow: hidden;
    }

    .page-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--hero-bg) center/cover;
      opacity: 0.08;
    }

    .page-hero-content {
      position: relative;
      z-index: 2;
    }

    .page-hero h1 {
      font-size: clamp(2.4rem, 5vw, 3.8rem);
      margin-bottom: 1.2rem;
      line-height: 1.2;
    }

    .page-hero p {
      font-size: 1.25rem;
      opacity: 0.88;
      max-width: 680px;
      margin: 0 auto 2rem;
    }

    .page-hero-wave {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      overflow: hidden;
      line-height: 0;
    }

    .page-hero-wave svg {
      display: block;
      width: 100%;
      height: 70px;
    }

    /* ── Filter bar ── */
    .filter-bar {
      background: white;
      padding: 2.5rem 0;
      border-bottom: 1px solid #e5e7eb;
      position: sticky;
      top: 111px;
      z-index: 100;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .filter-inner {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .filter-label {
      font-weight: 700;
      color: var(--primary);
      font-size: 1rem;
      margin-right: 0.5rem;
    }

    .filter-btn {
      padding: 0.6rem 1.6rem;
      border-radius: 50px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      border: 2px solid #d1d5db;
      background: white;
      color: var(--gray);
      transition: all 0.25s;
      font-family: 'Open Sans', sans-serif;
    }

    .filter-btn:hover {
      border-color: var(--primary-light);
      color: var(--primary-light);
    }

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

    .count-badge {
      margin-left: auto;
      background: var(--light);
      padding: 0.5rem 1.2rem;
      border-radius: 50px;
      font-size: 0.9rem;
      color: var(--gray);
      font-weight: 600;
      border: 1px solid #e5e7eb;
    }

    /* ── Content area ── */
    .content-area {
      padding: 80px 0 100px;
    }

    /* ── Group label ── */
    .group-label {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      margin-bottom: 3rem;
      margin-top: 1rem;
    }

    .group-label h2 {
      font-size: 1.85rem;
      color: var(--primary);
      white-space: nowrap;
    }

    .group-label .group-line {
      flex: 1;
      height: 2px;
      background: linear-gradient(to right, var(--primary-light), transparent);
    }

    .group-label .group-count {
      background: var(--primary-light);
      color: white;
      font-size: 0.85rem;
      font-weight: 700;
      padding: 0.35rem 0.9rem;
      border-radius: 50px;
      white-space: nowrap;
    }

    /* ── Cards grid ── */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 2.4rem;
      margin-bottom: 6rem;
    }

    .office-card {
      background: white;
      border-radius: 20px;
      padding: 2.2rem 2rem;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
      border: 1px solid #e5e7eb;
      transition: all 0.35s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .office-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 5px;
      height: 100%;
      background: var(--primary-light);
      transform: scaleY(0);
      transition: transform 0.3s ease;
      transform-origin: bottom;
    }

    .office-card:hover::before {
      transform: scaleY(1);
    }

    .office-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
      border-color: transparent;
    }

    .office-card.corresponsal::before {
      background: #7c3aed;
    }

    .office-card-top {
      display: flex;
      align-items: flex-start;
      gap: 1.2rem;
      margin-bottom: 1.4rem;
    }

    .office-icon {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
      background: linear-gradient(135deg, var(--primary), #0055aa);
      color: white;
    }

    .office-card.corresponsal .office-icon {
      background: linear-gradient(135deg, #5b21b6, #7c3aed);
    }

    .office-title h3 {
      font-size: 1.2rem;
      color: var(--primary);
      margin-bottom: 0.3rem;
    }

    .office-card.corresponsal .office-title h3 {
      color: #5b21b6;
    }

    .type-badge {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.2rem 0.7rem;
      border-radius: 50px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: #eff6ff;
      color: var(--primary-light);
    }

    .office-card.corresponsal .type-badge {
      background: #f5f3ff;
      color: #7c3aed;
    }

    .office-info {
      font-size: 0.92rem;
      color: var(--gray);
      line-height: 1.7;
    }

    .office-info strong {
      color: var(--text);
      font-weight: 600;
      display: block;
      margin-bottom: 0.4rem;
    }

    .office-info a {
      color: var(--primary-light);
      text-decoration: none;
    }

    .office-info a:hover {
      text-decoration: underline;
    }

    .office-card-footer {
      margin-top: 1.4rem;
      padding-top: 1rem;
      border-top: 1px solid #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .view-map-btn {
      font-size: 0.88rem;
      color: var(--primary-light);
      font-weight: 600;
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0;
      font-family: 'Open Sans', sans-serif;
      transition: gap 0.2s;
    }

    .view-map-btn:hover {
      gap: 0.7rem;
    }

    .office-card.corresponsal .view-map-btn {
      color: #7c3aed;
    }

    /* ── Modal ── */
    .modal {
      display: none;
      position: fixed;
      z-index: 2000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      animation: fadeIn 0.2s;
    }

    .modal-content {
      background: white;
      margin: 6% auto;
      padding: 0;
      border-radius: 24px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
      width: 90%;
      max-width: 560px;
      position: relative;
      animation: slideUp 0.3s ease;
      overflow: hidden;
    }

    .modal-head {
      padding: 2.2rem 2.5rem 1.5rem;
      border-bottom: 1px solid #f1f5f9;
    }

    .modal-head h3 {
      font-size: 1.7rem;
      color: var(--primary);
      margin-bottom: 0.4rem;
    }

    .modal-head .modal-type-badge {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 0.25rem 0.8rem;
      border-radius: 50px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 1.2rem;
    }

    .modal-body-inner {
      padding: 1.8rem 2.5rem 2.5rem;
    }

    .close-modal {
      position: absolute;
      top: 18px;
      right: 22px;
      font-size: 2rem;
      cursor: pointer;
      color: #999;
      line-height: 1;
      background: none;
      border: none;
    }

    .close-modal:hover {
      color: var(--primary);
    }

    .modal-detail-row {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1.1rem;
      font-size: 1rem;
    }

    .modal-detail-row i {
      width: 20px;
      color: var(--primary-light);
      margin-top: 3px;
      flex-shrink: 0;
    }

    .modal-map-embed {
      margin-top: 1.8rem;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #e5e7eb;
    }

    .modal-map-embed iframe {
      display: block;
      width: 100%;
      height: 230px;
      border: 0;
    }

    /* ── Section divider ── */
    .section-divider {
      border: none;
      border-top: 2px dashed #e2e8f0;
      margin: 2rem 0 5rem;
    }

    /* ── Chile strip ── */
    .chile-strip {
      background: var(--primary);
      padding: 60px 0;
      text-align: center;
      color: white;
    }

    .chile-strip h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .chile-strip p {
      opacity: 0.8;
      max-width: 600px;
      margin: 0 auto 2.5rem;
      font-size: 1.1rem;
    }

   

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes slideUp {
      from {
        transform: translateY(40px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .office-card.hidden {
      display: none;
    }

    /* ════════════════════════════════════════════════════
       RESPONSIVE — IDÉNTICO AL INDEX DEFINITIVO
    ════════════════════════════════════════════════════ */

    @media (max-width: 768px) {

      .hamburger {
        display: flex;
        margin-left: auto;
      }

      .hamburger.is-open {
        display: none;
      }

      /* Page hero */
      .page-hero {
        padding: 110px 0 70px;
      }

      .page-hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
      }

      .page-hero p {
        font-size: 1rem;
      }

      .page-hero>div>div[style] {
        gap: 0.8rem !important;
        flex-direction: column;
        align-items: center;
      }

      /* Filter bar */
      .filter-bar {
        top: 72px;
        padding: 1.2rem 0;
      }

      .filter-inner {
        gap: 0.5rem;
      }

      .filter-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.82rem;
      }

      .count-badge {
        display: none;
      }

      /* Content */
      .content-area {
        padding: 40px 0 50px;
      }

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

      .office-card {
        padding: 1.4rem 1.2rem;
      }

      .office-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
      }

      .office-title h3 {
        font-size: 1rem;
      }

      .office-info {
        font-size: 0.88rem;
      }

      .group-label {
        margin-bottom: 2rem;
        gap: 0.8rem;
      }

      .group-label h2 {
        font-size: 1.3rem;
        white-space: normal;
      }

      .section-divider {
        margin: 1.5rem 0 3rem;
      }

      /* Modal */
      .modal-content {
        margin: 4% auto;
        width: 96%;
        border-radius: 16px;
      }

      .modal-head {
        padding: 1.4rem 1.2rem 1rem;
      }

      .modal-head h3 {
        font-size: 1.3rem;
      }

      .modal-body-inner {
        padding: 1.2rem 1.2rem 1.8rem;
      }

      .modal-detail-row {
        font-size: 0.92rem;
      }

      .modal-map-embed iframe {
        height: 180px;
      }

      /* Chile strip */
      .chile-strip {
        padding: 40px 0;
      }

      .chile-strip h2 {
        font-size: 1.6rem;
      }

      .chile-strip p {
        font-size: 0.95rem;
      }

      /* .btn responsive moved to css/main.css */
    }
