/* ==========================================================
   OGA HOME · Regalos YA · Reloj de corte 14 h
   Whitespacez · diciembre 2026

   Barra naranja arriba de todo con el reloj hasta las 14 h y
   el día de entrega. La arma oga-entrega.js.
   ========================================================== */

.oga-ya,
.oga-ya:hover,
.oga-ya:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 42px;
  padding: 0 16px;
  background: #ff7300;
  color: #fff;
  text-decoration: none !important;
  font-family: "Outfit", "Poppins", sans-serif;
  white-space: nowrap;
  overflow: hidden;
}

.oga-ya:hover {
  background: #f26d00;
}

/* Regalos YA */
.oga-ya__marca {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.oga-ya__regalo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Solo Córdoba Capital y alrededores */
.oga-ya__zona {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #d65f00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.oga-ya__pin {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d65f00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Mensaje con el reloj */
.oga-ya__msj {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

.oga-ya__msj strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.oga-ya__reloj {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  margin: 0 2px;
}

.oga-ya__reloj b {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.oga-ya__reloj i {
  margin-right: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  opacity: .8;
}

.oga-ya__reloj i:last-child {
  margin-right: 0;
}

.oga-ya__corto {
  display: none;
}

.oga-ya__cta {
  padding-bottom: 2px;
  border-bottom: 1.5px solid #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* Última hora antes del corte: el reloj late */
.oga-ya.is-ultima-hora .oga-ya__reloj {
  animation: oga-ya-late 1s ease-in-out infinite;
}

@keyframes oga-ya-late {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Tablet */
@media (max-width: 1099px) {
  .oga-ya,
  .oga-ya:hover,
  .oga-ya:visited {
    gap: 16px;
  }

  .oga-ya__cta {
    display: none;
  }
}

/* Celular: dos líneas */
@media (max-width: 767px) {
  .oga-ya,
  .oga-ya:hover,
  .oga-ya:visited {
    flex-wrap: wrap;
    row-gap: 5px;
    column-gap: 7px;
    padding: 7px 12px 6px;
  }

  .oga-ya__marca {
    font-size: 0;
    letter-spacing: 0;
  }

  .oga-ya__regalo {
    width: 15px;
    height: 15px;
  }

  .oga-ya__largo {
    display: none;
  }

  .oga-ya__corto {
    display: inline;
  }

  .oga-ya__msj {
    font-size: 13px;
  }

  .oga-ya__reloj b {
    font-size: 15px;
  }

  .oga-ya__reloj i {
    margin-right: 3px;
    font-size: 10px;
  }

  .oga-ya__zona {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 4px;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    opacity: .95;
  }

  .oga-ya__pin {
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  }
}

@media (prefers-reduced-motion: reduce) {
  .oga-ya.is-ultima-hora .oga-ya__reloj {
    animation: none;
  }
}
