/* =====================================================
   DESACTIVA CABECERAS ANTERIORES DEL TEMA / EAU
   Solo se aplica cuando este plugin está activo.
===================================================== */

body.apgh-header-active #site-header,
body.apgh-header-active header.site-header:not(.apgh-header),
body.apgh-header-active #masthead,
body.apgh-header-active .elementor-location-header,
body.apgh-header-active .hfe-site-header,
body.apgh-header-active .ehf-header,
body.apgh-header-active [data-elementor-type="header"] {
  display: none !important;
}

body.apgh-header-active #ap-global-header,
body.apgh-header-active #ap-global-header .apgh-header {
  display: block !important;
}

  /* =====================================================
     CONFIGURACIÓN GENERAL
  ====================================================== */

  #ap-global-header,
  #ap-global-header * {
    box-sizing: border-box;
  }

  #ap-global-header {
    --apgh-red: #c82026;
    --apgh-red-dark: #98171d;
    --apgh-black: #111111;
    --apgh-white: #ffffff;
    --apgh-border: #e7e7e7;
    --apgh-gray: #62646a;
    --apgh-max: 1380px;

    width: 100%;
    position: relative;
    z-index: 999999;

    color: var(--apgh-black);
    font-family: Arial, Helvetica, sans-serif;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  #ap-global-header a {
    color: inherit;
    text-decoration: none;
  }

  #ap-global-header button {
    font: inherit;
    cursor: pointer;
  }

  #ap-global-header img,
  #ap-global-header svg {
    display: block;
  }

  #ap-global-header .apgh-shell {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);

    position: sticky;
    top: 0;
    z-index: 999999;

    background: #ffffff;

    box-shadow:
      0 7px 30px rgba(0, 0, 0, 0.07);
  }

  body.admin-bar #ap-global-header .apgh-shell {
    top: 32px;
  }

  #ap-global-header .apgh-container {
    width: min(var(--apgh-max), calc(100% - 34px));
    margin-inline: auto;
  }


  /* =====================================================
     FRANJA SUPERIOR
  ====================================================== */

  #ap-global-header .apgh-topbar {
    position: relative;
    overflow: hidden;

    background:
      radial-gradient(
        circle at 50% -120%,
        rgba(200, 32, 38, 0.30),
        transparent 58%
      ),
      linear-gradient(
        100deg,
        #050505 0%,
        #191919 48%,
        #070707 100%
      );

    border-bottom:
      1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
      inset 0 -1px 0 rgba(255, 255, 255, 0.035),
      0 8px 25px rgba(0, 0, 0, 0.12);
  }

  #ap-global-header .apgh-topbar::before {
    content: "";

    width: 46%;
    height: 1px;

    position: absolute;
    left: 50%;
    bottom: 0;

    background:
      linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.27),
        transparent
      );

    transform: translateX(-50%);

    pointer-events: none;
  }

  #ap-global-header .apgh-topbar::after {
    content: "";

    width: 340px;
    height: 75px;

    position: absolute;
    top: -58px;
    left: 50%;

    border-radius: 50%;

    background: rgba(200, 32, 38, 0.17);

    filter: blur(46px);

    transform: translateX(-50%);

    pointer-events: none;
  }

  #ap-global-header .apgh-topbar-inner {
    min-height: 52px;

    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
  }

  #ap-global-header .apgh-topbar-spacer {
    min-width: 1px;
  }

  #ap-global-header .apgh-topbar-message {
    margin: 0;

    grid-column: 2;

    color: #ffffff;

    font-family:
      Georgia,
      "Times New Roman",
      serif !important;

    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-align: center;
    white-space: nowrap;

    text-shadow:
      0 1px 13px rgba(255, 255, 255, 0.12);
  }

  #ap-global-header .apgh-topbar-phone {
    min-height: 40px;
    padding: 5px 10px 5px 6px;

    grid-column: 3;
    justify-self: end;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    border:
      1px solid rgba(255, 255, 255, 0.24);

    border-radius: 7px;

    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.11),
        rgba(255, 255, 255, 0.025)
      );

    color: #ffffff;

    box-shadow:
      0 7px 22px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.11);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
      border-color 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.25s ease;
  }

  #ap-global-header .apgh-topbar-phone:hover {
    border-color:
      rgba(255, 255, 255, 0.68);

    background:
      linear-gradient(
        135deg,
        var(--apgh-red),
        var(--apgh-red-dark)
      );

    box-shadow:
      0 10px 28px rgba(200, 32, 38, 0.30);

    transform: translateY(-2px);
  }

  #ap-global-header .apgh-phone-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;
    flex: 0 0 30px;

    border-radius: 5px;

    background: var(--apgh-red);
    color: #ffffff;

    box-shadow:
      0 6px 16px rgba(200, 32, 38, 0.34);
  }

  #ap-global-header .apgh-phone-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #ap-global-header .apgh-phone-copy {
    display: grid;
    gap: 2px;

    line-height: 1;
  }

  #ap-global-header .apgh-phone-copy small {
    color: rgba(255, 255, 255, 0.64);

    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
  }

  #ap-global-header .apgh-phone-copy strong {
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.055em;
    white-space: nowrap;
  }

  #ap-global-header .apgh-phone-arrow {
    margin-left: 2px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 17px;
    line-height: 1;

    transition: transform 0.25s ease;
  }

  #ap-global-header
  .apgh-topbar-phone:hover
  .apgh-phone-arrow {
    transform: translateX(4px);
  }


  /* =====================================================
     CABECERA BLANCA
  ====================================================== */

  #ap-global-header .apgh-header {
    height: 84px;

    position: relative;
    z-index: 5;

    border-bottom:
      1px solid var(--apgh-border);

    background:
      rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  #ap-global-header .apgh-header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }


  /* =====================================================
     LOGO
  ====================================================== */

  #ap-global-header .apgh-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  #ap-global-header .apgh-logo img {
    width: 172px;
    height: auto;
  }


  /* =====================================================
     NAVEGACIÓN DE ESCRITORIO
  ====================================================== */

  #ap-global-header .apgh-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
  }

  #ap-global-header .apgh-nav-list {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 2px;

    list-style: none;
  }

  #ap-global-header .apgh-nav-item {
    position: relative;
  }

  /*
    PUENTE INVISIBLE:
    mantiene activo el hover mientras el cursor baja
    desde Especialidades hasta el panel.
  */
  #ap-global-header .apgh-specialties::after {
    content: "";

    height: 30px;

    position: absolute;
    z-index: 3;
    top: 100%;
    right: -34px;
    left: -34px;

    background: transparent;
  }

  #ap-global-header .apgh-nav-link {
    min-height: 44px;
    padding: 11px 12px;

    display: flex;
    align-items: center;
    gap: 6px;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: var(--apgh-black);

    font-family:
      Arial,
      Helvetica,
      sans-serif;

    font-size: 14.5px;
    font-weight: 400;
    line-height: 1;

    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  #ap-global-header .apgh-nav-link:hover,
  #ap-global-header .apgh-nav-link:focus-visible,
  #ap-global-header .apgh-nav-link.is-active {
    background: #f2f2f2;
    color: var(--apgh-red);
  }

  #ap-global-header .apgh-specialties-trigger svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.25s ease;
  }

  #ap-global-header
  .apgh-specialties.is-open
  .apgh-specialties-trigger svg,
  #ap-global-header
  .apgh-specialties:hover
  .apgh-specialties-trigger svg,
  #ap-global-header
  .apgh-specialties:focus-within
  .apgh-specialties-trigger svg {
    transform: rotate(180deg);
  }


  /* =====================================================
     PANEL DE ESPECIALIDADES
  ====================================================== */

  #ap-global-header .apgh-specialties-panel {
    width: min(720px, 92vw);
    padding: 20px;

    position: absolute;
    z-index: 5;
    top: calc(100% + 11px);
    left: 50%;

    border: 1px solid #e9e9e9;
    border-radius: 19px;

    background: #ffffff;

    box-shadow:
      0 32px 75px rgba(17, 17, 17, 0.17),
      0 8px 22px rgba(17, 17, 17, 0.07);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
      translate(-50%, 14px)
      scale(0.98);

    transform-origin: top center;

    transition:
      opacity 0.23s ease,
      visibility 0.23s ease,
      transform 0.23s ease;
  }

  #ap-global-header .apgh-specialties-panel::before {
    content: "";

    width: 16px;
    height: 16px;

    position: absolute;
    top: -9px;
    left: 50%;

    border-top: 1px solid #e9e9e9;
    border-left: 1px solid #e9e9e9;

    background: #ffffff;

    transform:
      translateX(-50%)
      rotate(45deg);
  }

  #ap-global-header
  .apgh-specialties:hover
  .apgh-specialties-panel,
  #ap-global-header
  .apgh-specialties:focus-within
  .apgh-specialties-panel,
  #ap-global-header
  .apgh-specialties.is-open
  .apgh-specialties-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
      translate(-50%, 0)
      scale(1);
  }

  #ap-global-header .apgh-panel-heading {
    margin-bottom: 15px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
  }

  #ap-global-header .apgh-panel-heading span {
    display: block;
    margin-bottom: 4px;

    color: var(--apgh-red);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #ap-global-header .apgh-panel-heading strong {
    display: block;

    color: var(--apgh-black);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
  }


  /* =====================================================
     SLIDER
  ====================================================== */

  #ap-global-header .apgh-slider {
    position: relative;
  }

  #ap-global-header .apgh-slider-viewport {
    overflow: hidden;

    border-radius: 14px;
  }

  #ap-global-header .apgh-slider-track {
    display: flex;

    transform: translateX(0);

    transition:
      transform 0.58s cubic-bezier(.22, 1, .36, 1);
  }

  #ap-global-header .apgh-slide {
    width: 100%;
    min-width: 100%;
    min-height: 240px;
    padding: 30px 165px 28px 29px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    border-radius: 14px;
  }

  #ap-global-header .apgh-slide::before {
    content: "";

    width: 250px;
    height: 250px;

    position: absolute;
    top: -130px;
    right: -100px;

    border:
      1px solid rgba(255, 255, 255, 0.14);

    border-radius: 50%;

    box-shadow:
      0 0 0 42px rgba(255, 255, 255, 0.025),
      0 0 0 84px rgba(255, 255, 255, 0.018);
  }

  #ap-global-header .apgh-slide--penal {
    background:
      linear-gradient(
        130deg,
        #090909 0%,
        #1c1c1d 57%,
        #4f1115 100%
      );

    color: #ffffff;
  }

  #ap-global-header .apgh-slide--cobranzas {
    background:
      linear-gradient(
        130deg,
        #171717 0%,
        #29231f 54%,
        #785a36 100%
      );

    color: #ffffff;
  }

  #ap-global-header .apgh-slide--familia {
    background:
      linear-gradient(
        130deg,
        #5d1015 0%,
        #9e1b23 55%,
        #d74a51 100%
      );

    color: #ffffff;
  }

  #ap-global-header .apgh-slide-number {
    position: absolute;
    top: 20px;
    right: 23px;

    color:
      rgba(255, 255, 255, 0.35);

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
  }

  #ap-global-header .apgh-slide-content {
    position: relative;
    z-index: 3;
  }

  #ap-global-header .apgh-slide-label {
    display: block;
    margin-bottom: 9px;

    color:
      rgba(255, 255, 255, 0.63);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #ap-global-header .apgh-slide-content h3 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 33px;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  #ap-global-header .apgh-slide-content p {
    max-width: 420px;
    margin: 0 0 18px;

    color:
      rgba(255, 255, 255, 0.74);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
  }

  #ap-global-header .apgh-slide-content > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }

  #ap-global-header .apgh-slide-content > a span {
    font-size: 17px;

    transition: transform 0.2s ease;
  }

  #ap-global-header
  .apgh-slide-content
  > a:hover
  span {
    transform: translateX(5px);
  }

  #ap-global-header .apgh-slide-symbol {
    width: 105px;
    height: 105px;

    position: absolute;
    z-index: 2;
    right: 35px;
    bottom: 35px;

    display: grid;
    place-items: center;

    border:
      1px solid rgba(255, 255, 255, 0.22);

    border-radius: 50%;

    background:
      rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #ap-global-header .apgh-slide-symbol svg {
    width: 53px;
    height: 53px;

    fill: none;
    stroke:
      rgba(255, 255, 255, 0.82);

    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
  }


  /* =====================================================
     CONTROLES DEL SLIDER
  ====================================================== */

  #ap-global-header .apgh-slider-controls {
    display: flex;
    gap: 7px;
  }

  #ap-global-header .apgh-slider-arrow {
    width: 34px;
    height: 34px;
    padding: 0;

    display: grid;
    place-items: center;

    border: 1px solid #dedede;
    border-radius: 50%;

    background: #ffffff;
    color: var(--apgh-black);

    font-size: 15px;
    line-height: 1;

    transition:
      border-color 0.2s ease,
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  #ap-global-header .apgh-slider-arrow:hover {
    border-color: var(--apgh-red);

    background: var(--apgh-red);
    color: #ffffff;

    transform: translateY(-2px);
  }

  #ap-global-header .apgh-slider-dots {
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  #ap-global-header .apgh-slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #c9c1b8;

    transition:
      width 0.25s ease,
      border-radius 0.25s ease,
      background-color 0.25s ease;
  }

  #ap-global-header .apgh-slider-dot.is-active {
    width: 24px;

    border-radius: 20px;

    background: var(--apgh-red);
  }


  /* =====================================================
     RESEÑAS GOOGLE
  ====================================================== */

  #ap-global-header .apgh-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  #ap-global-header .apgh-google-trust {
    min-width: 174px;
    padding: 7px 10px;

    display: grid;

    grid-template-columns:
      32px auto;

    grid-template-areas:
      "mark stars"
      "mark meta"
      "mark verified";

    column-gap: 9px;
    row-gap: 1px;
    align-items: center;

    border: 1px solid #e3e4e7;
    border-radius: 13px;

    background: #ffffff;

    box-shadow:
      0 5px 16px rgba(0, 0, 0, 0.06);

    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }

  #ap-global-header .apgh-google-trust:hover {
    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.10);

    transform: translateY(-1px);
  }

  #ap-global-header .apgh-google-mark {
    grid-area: mark;

    width: 30px;
    height: 30px;
  }

  #ap-global-header .apgh-google-stars {
    grid-area: stars;

    color: #f4b400;

    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  #ap-global-header .apgh-google-meta {
    grid-area: meta;

    display: flex;
    align-items: baseline;
    gap: 6px;

    line-height: 1.05;
    white-space: nowrap;
  }

  #ap-global-header .apgh-google-meta strong {
    color: #202124;

    font-size: 14px;
    font-weight: 700;
  }

  #ap-global-header .apgh-google-meta span {
    color: #5f6368;

    font-size: 10px;
    font-weight: 700;
  }

  #ap-global-header .apgh-google-verified {
    grid-area: verified;

    color: #777b80;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
  }


  /* =====================================================
     BOTÓN DEL MENÚ MÓVIL
  ====================================================== */

  #ap-global-header .apgh-menu-button {
    width: 46px;
    height: 46px;
    padding: 0;

    position: relative;

    display: none;

    border: 1px solid #d8d9dc;
    border-radius: 13px;

    background: #ffffff;
  }

  #ap-global-header .apgh-menu-button span,
  #ap-global-header .apgh-menu-button::before,
  #ap-global-header .apgh-menu-button::after {
    content: "";

    width: 22px;
    height: 2px;

    position: absolute;
    left: 11px;

    background: var(--apgh-black);

    transition:
      opacity 0.2s ease,
      top 0.2s ease,
      transform 0.2s ease;
  }

  #ap-global-header .apgh-menu-button span {
    top: 21px;
  }

  #ap-global-header .apgh-menu-button::before {
    top: 14px;
  }

  #ap-global-header .apgh-menu-button::after {
    top: 28px;
  }

  #ap-global-header
  .apgh-menu-button[aria-expanded="true"]
  span {
    opacity: 0;
  }

  #ap-global-header
  .apgh-menu-button[aria-expanded="true"]::before {
    top: 21px;

    transform: rotate(45deg);
  }

  #ap-global-header
  .apgh-menu-button[aria-expanded="true"]::after {
    top: 21px;

    transform: rotate(-45deg);
  }


  /* =====================================================
     MENÚ MÓVIL
  ====================================================== */

  #ap-global-header .apgh-mobile-menu {
    display: none;
    max-height: calc(100vh - 120px);
    padding: 14px 18px 25px;

    overflow-y: auto;

    border-top:
      1px solid var(--apgh-border);

    background: #ffffff;
  }

  #ap-global-header .apgh-mobile-menu.is-open {
    display: block;

    animation:
      apghMenuOpen 0.27s ease both;
  }

  @keyframes apghMenuOpen {
    from {
      opacity: 0;

      transform: translateY(-8px);
    }

    to {
      opacity: 1;

      transform: translateY(0);
    }
  }

  #ap-global-header .apgh-mobile-menu > a,
  #ap-global-header .apgh-mobile-menu summary {
    min-height: 53px;
    padding: 13px 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
      1px solid #ededed;

    color: var(--apgh-black);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;

    list-style: none;
  }

  #ap-global-header
  .apgh-mobile-menu
  summary::-webkit-details-marker {
    display: none;
  }

  #ap-global-header
  .apgh-mobile-specialties[open]
  summary {
    color: var(--apgh-red);
  }

  #ap-global-header
  .apgh-mobile-specialties
  summary span {
    font-size: 21px;

    transition: transform 0.25s ease;
  }

  #ap-global-header
  .apgh-mobile-specialties[open]
  summary span {
    transform: rotate(45deg);
  }

  #ap-global-header .apgh-slider--mobile {
    padding: 16px 0 18px;
  }

  #ap-global-header
  .apgh-slider--mobile
  .apgh-slide {
    min-height: 265px;
    padding: 28px 24px;
  }

  #ap-global-header
  .apgh-slider--mobile
  .apgh-slide-content h3 {
    font-size: 29px;
  }

  #ap-global-header
  .apgh-slider--mobile
  .apgh-slide-content p {
    max-width: 300px;
  }

  #ap-global-header .apgh-mobile-slider-footer {
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #ap-global-header
  .apgh-mobile-slider-footer
  .apgh-slider-dots {
    margin-top: 0;
  }

  #ap-global-header .apgh-mobile-contact {
    margin-top: 18px;
    padding: 19px;

    border-radius: 14px;

    background: var(--apgh-black);
    color: #ffffff;
  }

  #ap-global-header .apgh-mobile-contact > span {
    display: block;
    margin-bottom: 6px;

    color: #e08c91;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  #ap-global-header .apgh-mobile-contact strong {
    display: block;
    margin-bottom: 15px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
  }

  #ap-global-header .apgh-mobile-contact > a {
    min-height: 45px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 5px;

    background: var(--apgh-red);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
  }


  /* =====================================================
     TABLET
  ====================================================== */

  @media (max-width: 1120px) {
    #ap-global-header .apgh-nav-link {
      padding-right: 8px;
      padding-left: 8px;

      font-size: 13.5px;
    }

    #ap-global-header .apgh-google-trust {
      min-width: 158px;
    }
  }

  @media (max-width: 1050px) {
    #ap-global-header .apgh-nav {
      display: none;
    }

    #ap-global-header .apgh-menu-button {
      display: block;
    }
  }


  /* =====================================================
     CELULAR
  ====================================================== */

  @media (max-width: 782px) {
    body.admin-bar #ap-global-header .apgh-shell {
      top: 46px;
    }
  }

  @media (max-width: 680px) {
    #ap-global-header .apgh-container {
      width: calc(100% - 28px);
    }

    #ap-global-header .apgh-topbar-inner {
      min-height: 45px;

      grid-template-columns:
        minmax(0, 1fr) auto;

      gap: 10px;
    }

    #ap-global-header .apgh-topbar-spacer {
      display: none;
    }

    #ap-global-header .apgh-topbar-message {
      grid-column: 1;

      justify-self: start;

      font-size: 13px;
      text-align: left;
      white-space: normal;
    }

    #ap-global-header .apgh-topbar-phone {
      min-height: 35px;
      padding: 4px 6px 4px 4px;

      grid-column: 2;

      gap: 7px;
    }

    #ap-global-header .apgh-phone-icon {
      width: 26px;
      height: 26px;
      flex-basis: 26px;
    }

    #ap-global-header .apgh-phone-icon svg {
      width: 14px;
      height: 14px;
    }

    #ap-global-header .apgh-phone-copy small {
      display: none;
    }

    #ap-global-header .apgh-phone-copy strong {
      font-size: 11px;
      letter-spacing: 0.035em;
    }

    #ap-global-header .apgh-phone-arrow {
      display: none;
    }

    #ap-global-header .apgh-header {
      height: 76px;
    }

    #ap-global-header .apgh-header-inner {
      gap: 9px;
    }

    #ap-global-header .apgh-logo img {
      width: 130px;
    }

    #ap-global-header .apgh-google-trust {
      min-width: 126px;
      padding: 5px 6px;

      grid-template-columns: 24px auto;

      column-gap: 6px;

      border-radius: 10px;
    }

    #ap-global-header .apgh-google-mark {
      width: 23px;
      height: 23px;
    }

    #ap-global-header .apgh-google-stars {
      font-size: 9px;
    }

    #ap-global-header .apgh-google-meta {
      gap: 4px;
    }

    #ap-global-header .apgh-google-meta strong {
      font-size: 12px;
    }

    #ap-global-header .apgh-google-meta span {
      font-size: 8px;
    }

    #ap-global-header .apgh-google-verified {
      max-width: 76px;

      overflow: hidden;

      font-size: 7px;
      text-overflow: ellipsis;
    }

    #ap-global-header .apgh-menu-button {
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
    }

    #ap-global-header .apgh-menu-button span,
    #ap-global-header .apgh-menu-button::before,
    #ap-global-header .apgh-menu-button::after {
      left: 9px;
    }
  }

  @media (max-width: 430px) {
    #ap-global-header .apgh-topbar-message {
      max-width: 145px;

      overflow: hidden;

      font-size: 12px;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    #ap-global-header .apgh-logo img {
      width: 112px;
    }

    #ap-global-header .apgh-google-trust {
      min-width: 118px;
    }
  }


  /* =====================================================
     ACCESIBILIDAD
  ====================================================== */

  @media (prefers-reduced-motion: reduce) {
    #ap-global-header *,
    #ap-global-header *::before,
    #ap-global-header *::after {
      animation: none !important;
      scroll-behavior: auto !important;
      transition: none !important;
    }
  }
